
@media (max-width: 768px) {
    .ef-resumen-texto-corto {
        display: none;
    }

    /* Cuando está abierto en móvil, el completo sí se ve */
    .ef-card-resumen[open] .ef-resumen-completo {
        display: block;
    }
}
.ef-card-resumen {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--wp--preset--color--color-3, #555);
}

.ef-card-resumen summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ef-card-resumen summary::-webkit-details-marker { display: none; }

.ef-resumen-texto-corto {
    color: inherit;
}

.ef-resumen-toggle-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wp--preset--color--color-1, #c0392b);
    text-decoration: underline;
}

/* Cuando está abierto */
.ef-card-resumen[open] .ef-mas-info  { display: none; }
.ef-card-resumen:not([open]) .ef-menos-info { display: none; }

.ef-card-resumen[open] .ef-resumen-texto-corto { display: none; }

.ef-resumen-completo {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

/* Evitamos que el click en details propague al enlace padre */
.ef-card-resumen summary {
    pointer-events: auto;
}
.wp-block-group {
    padding-left: 15px;
    padding-right: 15px;
}

/* H1: grande en escritorio, legible en móvil */
.ef-page-h1 {
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.6rem;
}

/* H2: subtítulo proporcional */
.ef-page-h2 {
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.5;
    margin-top: 0;
}
.faq-section-seo {
  padding: 40px 20px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  max-width: 100%;
}
@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
.faq-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  color: #ff7a00;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #ff7a00;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '-';
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-content {
  padding: 0 20px 20px 20px;
  color: #555;
  line-height: 1.6;
}
.faq-content strong {
  color: #333;
}
/* ===== BLOQUE RELACIONADOS ===== */
.ef-relacionados-wrapper {
    margin: 2.5rem 0;
    padding: 0;
}

.ef-relacionados-titulo-global {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff7a00;
    margin: 0 0 1.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ef-relacionados-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .ef-relacionados-grid {
        grid-template-columns: 1fr;
    }
}

/* Cada sección */
.ef-rel-seccion {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #efefef;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Color de acento por tipo de sección */
.ef-rel-comunidad { border-top: 3px solid #ff7a00; }
.ef-rel-ciudad    { border-top: 3px solid #ff7a00; }
.ef-rel-tipo      { border-top: 3px solid #ff7a00; }
.ef-rel-fecha     { border-top: 3px solid #ff7a00; }
.ef-rel-proximas { border-top: 3px solid #ff7a00; }
.ef-rel-proximas li a:hover { background: #fef2f2; }
.ef-rel-titulo {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ff7a00;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.ef-rel-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ef-rel-lista li a {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ef-rel-lista li a:hover {
    background: #f5f5f5;
}

.ef-rel-nombre {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ff7a00;
    line-height: 1.3;
}

.ef-rel-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ef-rel-ciudad {
    font-size: 0.75rem;
    color: #888;
}

.ef-rel-fecha {
    font-size: 0.7rem;
    color: #aaa;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Hover por color de sección */
.ef-rel-comunidad li a:hover { background: #eff6ff; }
.ef-rel-ciudad    li a:hover { background: #f0fdf4; }
.ef-rel-tipo      li a:hover { background: #fffbeb; }
.ef-rel-fecha     li a:hover { background: #f5f3ff; }
.footer-seo-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 15px;
    background-color: #fff;
    border-top: 1px solid #e7e7e7;
}

.footer-seo-title {
    font-size: 24px;
    font-weight: 700;
    color: #ff7a00;
    margin-bottom: 25px;
    font-family: -apple-system, sans-serif;
}

.footer-seo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columnas como en tu imagen */
    gap: 20px;
}

.footer-seo-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ff7a00;
}

.footer-seo-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-seo-col li {
    margin-bottom: 8px;
}

.footer-seo-col a {
    color: #4c4c4c;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-seo-col a:hover {
    color: #ff7a00;
    text-decoration: underline;
}

/* Responsive para tablets y moviles */
@media (max-width: 1024px) {
    .footer-seo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .footer-seo-grid { grid-template-columns: 1fr 1fr; }
}
.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;
}

.travel-hero-overlay {
    margin: 0;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.travel-hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.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);
}
.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;
    text-decoration: underline;
}

.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%;
    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;
    max-height: 60vh;
    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;
}