.booking-footer-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
    z-index: 2000;
    display: flex;
    justify-content: center;
    gap: 10px;
}


.booking-button-triple {
    flex: 1;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ff7a00;
    color: white;
    text-decoration: none;
    padding: 8px 5px;
    border-radius: 12px;
    font-family: sans-serif;
    transition: transform 0.2s;
}

.booking-button-triple img {
    width: 20px;
    height: 20px;
    margin-bottom:4px;
    object-fit: fill;
}

.booking-button-triple span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.booking-button-triple:active {
    transform: scale(0.95);
    background-color: #005a96;
}



.travel-hero {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    height: 380px; /* Definimos la altura aquí para el contenedor */
}

.travel-hero-overlay {
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease; /* Bonus: un efecto suave */
}

/* Efecto opcional: zoom al pasar el ratón */
.travel-hero:hover .travel-hero-overlay {
    transform: scale(1.05);
}

.travel-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.travel-title {
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Mejora la lectura */
}
.filter-grid-checkbox {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

.filter-check-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #fff0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-check-item:hover {
    background: #f9f9f9;
}

.filter-check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff7a00; /* Color azul profesional */
}

.ef-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #fff0e0;
    margin-bottom: 10px;
}
.ef-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 15px;
}

.ef-filter-tag {
    display: flex;
    align-items: center;
    background: #fff0e0;
    color: #ff7a00;
    border: 1px solid #ff7a00;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.ef-filter-tag .close-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* Modal Lista de Ordenar */
.sort-modal-bottom {
    max-width: 400px !important;
    border-radius: 12px !important;
}

.sort-list {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.sort-option {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.sort-option:hover { background: #ff7a00; }

.sort-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: #ff7a00;
}

.sort-option span {
    font-size: 16px;
    color: #333;
}
/* --- BARRA UNIFICADA (Estilo Airbnb) --- */
.ef-map-card-preview {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
    background: white;
    border-radius: 12px;
    display: flex; 
    gap: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    animation: slideUp 0.3s ease-out;
    cursor: pointer;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ef-map-card-preview img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.ef-map-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ef-map-preview-info h3 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #222;
}

.ef-map-preview-badge {
    background: #e7f3ff;
    color: #006ce4;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    margin-bottom: 5px;
}

.ef-map-preview-meta {
    font-size: 12px;
    color: #666;
}
.ef-search-container {
    padding: 10px 15px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 500;
}

.ef-unified-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px; /* Redondeado completo */
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); /* Sombra suave */
    border: 1px solid #ff7a00;
    padding: 5px;
    height: 55px;
}

/* Grupo Izquierdo: Input */
.ef-search-group {
    flex: 1; /* Ocupa el espacio sobrante */
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.ef-search-group input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #333;
    padding-left: 8px;
}

/* Divisor Vertical */
.ef-divider {
    width: 1px;
    height: 25px;
    background-color: #ff7a00;
    margin: 0 10px;
}

/* Grupo Derecho: Fecha */
.ef-date-group {
    display: flex;
    align-items: center;
    padding: 5px 15px 5px 10px;
    cursor: pointer;
    border-radius: 50px;
    transition: background 0.2s;
}

.ef-date-group:hover {
    background-color: #f7f7f7;
}

.ef-date-group .btn-text {
    font-weight: 600;
    font-size: 14px;
    margin-left: 5px;
    white-space: nowrap;
}

/* --- BOTONES DE ACCIÓN (2ª Fila) --- */
.ef-action-row {
    display: flex;
    gap: 10px;
    margin: auto;
    scrollbar-width: none; 
}
.ef-action-row::-webkit-scrollbar { display: none; }

.ef-action-pill {
    background: white;
    border: 1px solid #ff7a00;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}


.ef-action-pill:active { transform: scale(0.95); }

/* El botón pequeño de reset */
.ef-icon-only-btn {
    background: #f8f8f8;
    border: 1px solid #ff7a00;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 95%;
    height: 90%;
    border-radius: 20px;
    position: relative;
    display: flex; /* Mantiene filtros arriba y mapa abajo */
    flex-direction: column;
    overflow: hidden;
}

.modal-filters {
    padding: 0; /* Si está vacío, que no ocupe espacio */
    flex-shrink: 0;
}

.close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000; /* Por encima de los tiles del mapa */
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ef-card-content {
    display: flex;
    align-items: flex-start; 
    gap: 16px;              
    padding: 10px;
}

.ef-card-img-container {
    flex-shrink: 0;         /* Evita que la imagen se encoja */
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: relative;     /* Necesario para el badge si usa absolute */
    border-radius: 8px;
}

.ef-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* La imagen llena el espacio sin deformarse */
}

/* Estilo para la columna de texto */
.ef-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente respecto a la imagen */
}

.ef-card-info h3 {
    margin: 0 0 8px 0;      /* Quita el margen superior del título */
}
/* ==========================================
   1. CONTENEDOR APP
   ========================================== */
#ef-v2-container {
    width: 100%;
    max-height: 90vh; 
    background: #fff;
    display: flex;
    flex-direction: column; /* Apilamos: Header -> Buscador -> Pills -> Panel(Mapa+Lista) */
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.ef-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    align-items: center;
}

/* ==========================================
   2. FILA DE BÚSQUEDA Y PILLS (ARRIBA)
   ========================================== */
.ef-search-row {
    display: flex;
    gap: 10px;
    padding: 0 15px 10px;
    align-items: center;
}

.ef-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 12px;
    padding: 0 12px;
}

#ef-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 5px;
    outline: none;
}

.ef-clear-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
}

.ef-action-btn, .ef-reset-btn {
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #f1f3f4;
    cursor: pointer;
}

.ef-reset-btn { background: #ffebe6; border-color: #ff5a5a; }

.ef-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 15px 15px;
    scrollbar-width: none;
}
.ef-filter-pills::-webkit-scrollbar { display: none; }

.pill {
    padding: 8px 15px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid #eee;
    background: #f8f8f8;
    font-size: 13px;
    cursor: pointer;
}
.pill.active { background: #fff0e0; color: #ff7a00; border-color: #ff7a00; }

/* ==========================================
   3. PANEL DINÁMICO (MAPA + LISTA)
   ========================================== */
.ef-bottom-panel {
    flex: 1; /* Esto hace que el panel ocupe todo el resto de la pantalla */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top:10px;
}

/* IMPORTANTE: El mapa ahora necesita una altura fija o un flex-basis claro */
#ef-map-canvas {
    flex-grow: 1; /* Esto obliga al mapa a ocupar TODO el espacio disponible */
    width: 100%;
    height: 100%; /* Leaflet necesita una altura definida */
    z-index: 1;
}

#ef-results-list {
    flex: 1;
    overflow-y: auto !important; /* Habilita el scroll de las fiestas */
    background: white;
    /*border: 1px solid #ff7a00;*/
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
    z-index: 2;
}

/* ==========================================
   4. TARJETAS DE FIESTAS
   ========================================== */
.ef-event-card.is-active {
    border-color: #ff7a00;
    background: #fff8f0;
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.15);
    z-index: 5;
}

/* Animación para el marcador en el mapa */
@keyframes markerBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); scale: 1.2; }
    100% { transform: translateY(0); }
}
.marker-active {
    z-index: 9999 !important;
    filter: drop-shadow(0 0 8px rgba(255,122,0,0.8)) !important;
}
.marker-highlight {
    animation: markerBounce 0.6s ease;
    filter: drop-shadow(0 0 10px rgba(255, 122, 0, 0.8));
}
.ef-event-card {
    display: flex;
    gap: 12px;
    /*padding: 12px;*/
    border-radius: 15px;
    border: 1px solid #ff7a00;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.4s ease, background-color 0.8s ease, box-shadow 0.4s ease;
}
.ef-event-card:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* ==========================================
   5. MODAL (CORREGIDO)
   ========================================== */
.ef-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center; /* Centrado en escritorio */
    justify-content: center;
}

.ef-modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 20px;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
    display: block;
    max-height: 90%;
}
.ef-modal-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10; /* Por encima de los checkboxes */
    padding: 20px;
    border-bottom: 1px solid #fff0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ef-modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
    padding: 15px 20px;
    border-top: 1px solid #fff0e0;
}

.hidden { display: none !important; }
.tab-pane { display: none; }
.tab-pane.active { display: block !important; }

.ef-datepicker-tabs {
    display: flex;
    background: #fff0e0;
    padding: 5px;
    border-radius: 10px;
    margin: 15px 0;
}
.tab-btn { flex: 1; border: none; padding: 10px; border-radius: 8px; cursor: pointer; background:#fff0e0; }
.tab-btn.active { background: #ff7a00; color: white; }

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.month-card {
    padding: 10px;
    text-align: center;
    background: #fff0e0;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
}
.month-card.active {     background: #fff0e0;
    color: #ff7a00;
    border-color: #ff7a00; }

.ef-apply-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: #ff7a00;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
}