﻿/* ============================================
   MODAL INFO — modalbase.css
   ============================================ */
#infoModal,
#infoModal .modal-dialog,
#infoModal .modal-content {
    z-index: 1100 !important;
}
/* Tamaño del modal */
#infoModal .modal-dialog {
    max-width: 380px;
    margin: auto;
}

/* Contenido del modal */
#infoModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* HEADER FIJO */
#infoModal .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 16px;
    border-bottom: 1px solid #ddd;
}

/* Título */
#infoModal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* FOOTER FIJO (si lo usas) */
#infoModal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff;
    border-top: 1px solid #ddd;
}

/* CUERPO CON SCROLL */
#infoModal .modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1 1 auto;
}

/* Contenedor interno */
.popup-card-body {
    max-height: 100%;
    overflow-y: auto;
}

/* LISTA */
.list-group-item {
    font-size: 0.95rem;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #e9ecef;
}

/* Claves y valores */
.item-key {
    flex: 0 0 40%;
    max-width: 40%;
    font-weight: bold;
    color: #198754;
    text-align: left;
    padding-left: 10px;
    padding-right: 0.5rem;
    word-break: break-word;
}

.item-value {
    flex: 0 0 60%;
    max-width: 60%;
    word-break: break-word;
    text-align: left;
}

.itemtitulo {
    flex: 1 1 auto;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 1.1rem;
}


/* Descripción */
.descripcion-row {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid #e9ecef;
}

.descripcion-label {
    font-weight: bold;
    color: #198754;
    padding-left: 10px;
    margin-bottom: 0.25rem;
}

.descripcion-contenido {
    text-align: justify;
    word-break: break-word;
    padding-left: 10px;
    padding-right: 10px;
}
/* Adaptacion a iconos izquierda */
#infoModal.info-modal-mapa .list-group-item .item-key {
    min-width: 40px;
    max-width: 48px;
    width: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#infoModal.info-modal-mapa .list-group-item .item-value {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    word-break: break-word;
    text-align: left;
}

/* Botón de cierre circular */
.btn-close-circle {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 2rem;
    height: 2rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s, color 0.2s;
    font-size: 1.5rem;
    padding: 0;
}

    .btn-close-circle span {
        color: #fff;
        font-size: 1.4rem;
        font-weight: bold;
        line-height: 1;
        margin-top: -2px;
    }

    .btn-close-circle:hover {
        background-color: #c00 !important;
    }

/* COLORES POR CATEGORÍA */

.card-header.bg-alojamientos {
    background: #3f888f !important;
    color: #fff !important;
}

.card-header.bg-cimas {
    background: #287233 !important;
    color: #fff !important;
}
.card-header.bg-cuevas {
    background: #828282 !important;
    color: #fff !important;
}
.card-header.bg-dolmenes {
    background: #4e3b31 !important;
    color: #fff !important;
}
.card-header.bg-fotografias {
    background: #FFB810 !important;
    color: #fff !important;
}
.card-header.bg-hidrografia {
    background: #1E88E5 !important;
    color: #fff !important;
}
.card-header.bg-memoriahistorica {
    background: #6D6D6D !important;
    color: #fff !important;
}
.card-header.bg-montes {
    background: #2f5d3a !important; /* Verde profundo, elegante */
    color: #fff !important;
}
.card-header.bg-monumentos {
    background: #C5A46D !important;
    color: #fff !important;
}
.card-header.bg-monumentosnaturales {
    background: #388E3C !important;
    color: #fff !important;
}
/*.card-header.bg-patrimonio-cultural {
    background-color: #8b4caf;*/ /* ejemplo */
    /*color: white;
}*/
.card-header.bg-patrimonio-cultural {
    background-color: #7A1F2A; /* burdeos profundo */
    color: white;
}

.card-header.bg-patrimonio-natural {
    background-color: #3a7f3a; /* ejemplo */
    color: white;
}
.bg-rutas-verde {
    background-color: #2ecc71;
    color: white;
}

.bg-rutas-azul {
    background-color: #3498db;
    color: white;
}

.bg-rutas-rojo {
    background-color: #e74c3c;
    color: white;
}

.bg-rutas-negro {
    background-color: #2c3e50;
}

.card-header.bg-senderos {
    background: #8D6E63 !important;
    color: #fff !important;
}
.card-header.bg-toponimia {
    background: #4c2882 !important;
    color: #fff !important;
}
.card-header.bg-videos {
    background: #FF0038 !important;
    color: #fff !important;
}
.card-header.bg-zonaspaisaje {
    background: #81C784 !important;
    color: #fff !important;
}
/* Blanco */
.card-header.bg-aludes-n0 {
    background-color: #ffffff !important;
}

/* Verde */
.card-header.bg-aludes-n1 {
    background-color: #00cc00 !important;
    /*2ecc71*/
}
/* Amarillo */
.card-header.bg-aludes-n2 {
    background-color: #ffff00 !important;
    /*f1c40f*/
}
/* Marrón claro */
.card-header.bg-aludes-n3 {
    background-color: #ff6600 !important;
    /*d7b48a*/
}
/* Rojo */
.card-header.bg-aludes-n4 {
    background-color: #ff0000 !important;
    /*e74c3c*/
}
/* Rojo oscuro */
.card-header.bg-aludes-n5 {
    background-color: #990000 !important;
    /*8b0000*/
}


.icono-seleccionado {
    filter: drop-shadow(0 0 6px #00aaff) drop-shadow(0 0 12px #00aaff);
}















