/* ================================
   FUENTES / ICONOS
================================ */

/* Material Symbols Font */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* ================================
   CARROUSEL GENÉRICO
================================ */

.cicerone-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.cicerone-carousel.recommended-carousel {
    padding: 0px;
}
/* Título genérico de bloque */
.cicerone-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a3c5e;
    margin: 0 0 10px;
    text-align: left;
}

.cicerone-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px;
    text-align: left;
}

/* Contenedor de scroll horizontal */
.cicerone-carousel .viewport {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 30px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.cicerone-carousel .viewport::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Flechas genéricas del carrusel */
.cicerone-carousel .go-left,
.cicerone-carousel .go-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid var(--main-color, #4a90e2);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: var(--main-color, #4a90e2);
    text-align: center;
    line-height: 34px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    z-index: 10;
    font-family: 'Material Symbols Outlined';
    display: flex;
    align-items: center;
    justify-content: center;
}

.cicerone-carousel .go-left {
    left: 10px;
}

.cicerone-carousel .go-right {
    right: -20px;
}
/* Flecha SIN .active → más oscura / gris y sin cursor */
.cicerone-carousel .go-left:not(.active),
.cicerone-carousel .go-right:not(.active) {
    background: #f2f2f2;
    border: 3px solid #b0b0b0;
    color: #7a7a7a;
    opacity: 0.7;
    cursor: default;
}

/* Flecha ACTIVA → color de marca, más visible */
.cicerone-carousel .go-left.active,
.cicerone-carousel .go-right.active {
    background: #ffffff;
    border: 3px solid var(--main-color, #cc0044);
    color: var(--main-color, #cc0044);
    opacity: 1;
    cursor: pointer;
}

.cicerone-carousel .go-left:hover,
.cicerone-carousel .go-right:hover{
    opacity: 1;
}

/* Accesibilidad para flechas */
.cicerone-carousel .go-left::before {
    content: "Anterior";
    clip: rect(0, 0, 0, 0);
    position: absolute;
}

.cicerone-carousel .go-right::before {
    content: "Siguiente";
    clip: rect(0, 0, 0, 0);
    position: absolute;
}


/* ================================
   CAROUSEL ESPECÍFICO: EVENTOS
================================ */

.cicerone-carousel.events-carousel {
    border-radius: 15px;
}

.cicerone-carousel.events-carousel .cicerone-title {
    color: #fff;
}

.cicerone-carousel.events-carousel .go-left,
.cicerone-carousel.events-carousel .go-right {
    border-color: #fff;
    color: #4e848e;
}

.cicerone-carousel.events-carousel .cicerone-card {
    flex: 0 0 clamp(180px, 18vw, 260px);
    height: 220px;
}

/* ================================
   CAROUSEL ESPECÍFICO: PDFs
================================ */

.cicerone-carousel.pdfs-carousel {
    border-radius: 15px;
}

.cicerone-carousel.pdfs-carousel .cicerone-title {
    color: #000;
}

.cicerone-carousel.pdfs-carousel .go-left,
.cicerone-carousel.pdfs-carousel .go-right {
    border-color: #fff;
    color: #4e848e;
}

/* ================================
   CAROUSEL ESPECÍFICO: POIs
================================ */

.cicerone-carousel.pois-carousel {
    border-radius: 15px;
}

.cicerone-carousel.pois-carousel .cicerone-title {
    color: #fff;
}

.cicerone-carousel.pois-carousel .go-left,
.cicerone-carousel.pois-carousel .go-right {
    border-color: #fff;
    color: #4e848e;
}

/* ================================
   SLIDERS (si se usan)
================================ */

.slider-container .slider-prev,
.slider-container .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 3px solid #4e848e;
    border-radius: 50%;
    color: #e3e3e3;
    text-align: center;
    line-height: 34px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    z-index: 10;
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
   MODAL PDFs
================================ */

.cicerone-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.cicerone-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 70px auto;
    max-width: 80%;
    max-height: 80%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

#modal-pdf {
    width: 100%;
    height: 500px;
    margin-top: 10px;
}

.download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #007bff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    align-self: center;
}

.download-btn:hover {
    background: #005d87;
}

/* =========================
   AGENDA / CALENDARIO CICERONE
   ========================= */

.cicerone-calendar-container {
    max-width: 1340px;
    margin: 0 auto 40px;
    padding: 20px 0;
}

/* Títulos */
.cicerone-calendar-container .agenda-text {
    font-size: 28px;
    font-weight: 700;
    color: #1f2933;
    margin: 0 0 4px;
}

.cicerone-calendar-container .agenda-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 18px;
}

/* Tarjeta grande: calendario + cards */
.cicerone-calendar-container .calendar-wrapper {
    display: flex;
    align-items: stretch;
    gap: 32px;
    width: 100%;
    background: transparent;   /* sin bloque "tarjeta" */
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}

/* Escondemos el input, usamos solo el calendario inline */
.cicerone-calendar-container #cicerone-datepicker {
    display: none;
}

/* === COLUMNA IZQUIERDA: calendario Flatpickr === */

.cicerone-calendar-container .flatpickr-calendar.inline {
    margin: 0;
    width: 416px;
    min-width: 320px;
    border: none;
    border-right: 0px;
    box-shadow: none;
    background: transparent;
}

/* Días y estilos de selección */

.cicerone-calendar-container .flatpickr-day {
    font-size: 18px;
    max-width: none;
}
.cicerone-calendar-container .flatpickr-day {
    position: relative;
    font-size: 18px;
    max-width: none;

    /* clave para círculo */
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 4px auto;

    border-radius: 999px;    /* círculo perfecto */
    border: 0;
}

span.flatpickr-weekday {
    font-size: 18px!important;
    color: var(--main-color)!important;
    font-weight: 400!important;
}
.cicerone-calendar-container .flatpickr-day {
    position: relative;
    font-size: 18px;
    max-width: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 700!important;
    font-size: 18px!important;
    color: var(--main-color)!important;
}
/* Círculo "selector" centrado dentro de cada día */
.cicerone-calendar-container .flatpickr-day::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    z-index: -1; /* el número queda por encima */
}

/* Estados seleccionado / hoy: pinta el círculo y el texto en blanco */
.cicerone-calendar-container .flatpickr-day.selected,
.cicerone-calendar-container .flatpickr-day.today {
    background: transparent !important;  /* nada de fondo rectangular */
    color: #fff !important;
}

.cicerone-calendar-container .flatpickr-day.selected::before,
.cicerone-calendar-container .flatpickr-day.today::before {
    background: var(--main-color);
}

/* Opcional: hover bonito (solo si quieres) */
.cicerone-calendar-container .flatpickr-day:not(.selected):not(.today):hover::before {
    background: rgba(159, 40, 90, 0.12); /* un degradado suave */
}

.cicerone-calendar-container .flatpickr-months .flatpickr-month {
    height: 50px;
}
.cicerone-calendar-container .flatpickr-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--main-color);
    border-radius: 8px;
}

.cicerone-calendar-container .flatpickr-current-month .flatpickr-monthDropdown-month,
.cicerone-calendar-container .flatpickr-current-month .numInputWrapper {
    font-size: 0.9rem;
    display: none;
}
.cicerone-calendar-container .flatpickr-rContainer {
    width: 90%;
}
.cicerone-calendar-container .flatpickr-weekdays {
    height: 50px;
    width: 100%;
}
.cicerone-calendar-container .flatpickr-days {
    width: 100%;
}
.cicerone-calendar-container .flatpickr-days .dayContainer {
    width: 100%;
    max-width: none;
    height: 270px;
    border-radius: 999px;
}
.cicerone-calendar-container .flatpickr-days .dayContainer {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 0;   /* importante: nada de 999px aquí */
}

/* === COLUMNA DERECHA: cards de eventos === */

.cicerone-calendar-container #event-details {
    flex: 1;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: -60px;
    position: relative;
}

/* Cabecera: contador + flechas */
.cicerone-calendar-container .cicerone-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.cicerone-calendar-container #event-count {
    font-size: 0.9rem;
    font-weight: 500;
    color: #9ca3af;
    margin: 0;
}
.cicerone-calendar-container #event-count {
	display:none!important;
}
.cicerone-calendar-container .cicerone-events-nav-wrapper {
    display: flex;
    gap: 8px;
}
.cicerone-calendar-container .cicerone-events-nav, .cicerone-arrow {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--main-color);
    color: #fff;
    font-size: 20px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}
/* Estado DESACTIVADO: mismo color principal pero más oscuro */
.cicerone-events-nav.is-disabled, .cicerone-arrow.is-disabled {
    background: var(--main-color);
    filter: brightness(0.75);      /* oscurece el color principal */
    color: #fff;
    cursor: default;
    opacity: 0.9;
    box-shadow: none;
}

/* Evitar cambios en hover si está desactivado */
.cicerone-events-nav.is-disabled:hover, .cicerone-arrow.is-disabled:hover {
    background: var(--main-color);
    filter: brightness(0.75);
    color: #fff;
    transform: none;
}
.cicerone-calendar-container .cicerone-events-nav:hover, .cicerone-calendar-container .cicerone-events-nav, .cicerone-calendar-container .cicerone-events-nav:focus, .cicerone-arrow:hover, .cicerone-arrow:focus {
    border-radius: 8px;
}
.span.flatpickr-weekday {
    color: var(--main-color)!important;
}
.cicerone-calendar-container .cicerone-events-nav:active {
    transform: translateY(0);
}

/* Carrusel horizontal de tarjetas SIN barra visible */
.cicerone-calendar-container #event-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* Ocultar barra en todos los navegadores */
    -ms-overflow-style: none;   /* IE/Edge */
    scrollbar-width: none;      /* Firefox */
}

.cicerone-calendar-container #event-cards::-webkit-scrollbar {
    display: none;              /* Chrome / Safari */
}

/* Tarjeta individual (agenda-event-card + cicerone-event-card) */
.cicerone-calendar-container .agenda-event-card {
    scroll-snap-align: start;
    min-width: 266px;
    max-width: 266px;
}

.cicerone-calendar-container .cicerone-event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 0;          /* sin bordes redondeados */
    background: transparent;   /* dejamos que se vea el fondo de la página */
    border: none;              /* sin borde */
    overflow: visible;
    box-shadow: none;          /* sin sombra */
    height: 100%;
    transition: transform 0.1s ease;
}
.cicerone-calendar-container .cicerone-event-card:hover {
    transform: none!important
}
.cicerone-calendar-container .cicerone-event-card:hover *:not(.material-symbols-outlined) {
    font-family: inherit !important;
}
/* Imagen + badge */
.cicerone-calendar-container .event-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 242px;
    overflow: hidden;
    border-radius: 8px; /* borde redondeado */
}

.cicerone-calendar-container .event-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px; /* por si acaso, aunque ya recorta el wrapper */
}

.cicerone-calendar-container .event-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    background: #fff;
    color: var(--main-color);
}

/* Contenido de la tarjeta: fechas, título, ubicación */
.cicerone-calendar-container .event-card-content {
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cicerone-calendar-container .event-card-dates {
    font-size: 16px;
    color: var(--main-color) !important;
}
/* Ubicación con icono, color primario */
.cicerone-calendar-container .event-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--main-color) !important;
}

.cicerone-calendar-container .event-card-location span {
    color: inherit !important;
}

.cicerone-calendar-container .event-card-location-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: start;
    justify-content: center;
    height: 100%;
    margin-top: 4px;
}

.cicerone-calendar-container .event-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.cicerone-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color, #4a90e2); /* aquí manda el color primario */
}
.cicerone-detail-page svg {
    color: var(--main-color, #4a90e2);
}
.cicerone-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.cicerone-search-item {
    text-align: start;
}
/* Datos: fechas, horario, ubicación */
.cicerone-calendar-container .schedule-data-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cicerone-calendar-container .calendar-info-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cicerone-calendar-container .calendar-info,
.cicerone-calendar-container .calendar-info-text {
    font-size: 0.78rem;
    color: #6b7280;
}

.cicerone-calendar-container .schedule-data-container img {
    width: 16px;
    height: 16px;
}

/* Responsive */

@media (max-width: 900px) {
    .cicerone-calendar-container .calendar-wrapper {
        flex-direction: column;
        padding: 18px 16px;
    }

    .cicerone-calendar-container .flatpickr-calendar.inline {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 0 0 16px 0;
        margin-bottom: 8px;
    }

    .cicerone-calendar-container #event-cards {
        padding-top: 8px;
    }

    .cicerone-calendar-container .agenda-event-card {
        min-width: 230px;
        max-width: 230px;
    }
}
/* Tira de cards de eventos: scroll horizontal SIN barra visible */
.cicerone-calendar-container .cicerone-events-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;

    /* Ocultar barra en todos los navegadores */
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}

.cicerone-calendar-container .cicerone-events-strip::-webkit-scrollbar {
    display: none;             /* Chrome / Safari */
}

/* ================================
   LISTADO DE CATEGORÍA (GRID)
================================ */

/* Contenedor que envuelve el hero de Elementor (fullwidth) */
.cicerone-category-list {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Contenedor del listado (contenido centrado) */
.cicerone-list-category {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.cicerone-category-header {
    text-align: center;
    margin-bottom: 30px;
}

.cicerone-category-title {
    font-size: 45px;
    font-weight: 700;
    color: var(--main-color);
    margin: 0;
}

.cicerone-category-subtitle {
    font-size: 30px;
    font-weight: 500;
    color: #000;
    margin: 5px 0 0;
}

/* Filtros SOLO dentro del listado de categoría */
.cicerone-list-category .cicerone-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.cicerone-list-category .cicerone-search {
    position: relative;
    width: 300px;
}

.cicerone-list-category .cicerone-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 25px !important;
    font-size: 14px;
    background: #fff !important;
    box-sizing: border-box;
}

.cicerone-list-category .cicerone-search-icon {
    position: absolute;
    right: 15px;
    top: 56%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.cicerone-list-category .cicerone-order-select-wrapper {
    position: relative;
    width: 200px;
}

.cicerone-list-category .cicerone-order-select {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
}

.cicerone-list-category .cicerone-order-select-wrapper::after {
    content: '\25BC';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #000;
    pointer-events: none;
}

.cicerone-list-category .cicerone-items-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    column-gap: 32px;
    row-gap: 16px;
}

.cicerone-list-category .card-image-wrapper {
    width: 100%;
    height: 70%;
    overflow: hidden;
}

.cicerone-list-category .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cicerone-list-category .card-content {
    height: 35%;
    margin-top: 1%;
    width: 100%;
    text-align: left;
    padding: 3px 12px;
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
}

.cicerone-list-category .card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color) !important;
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cicerone-no-results {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin: 20px 0;
    grid-column: 1 / -1;
}

/* Paginación genérica */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination .page-numbers {
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .page-numbers.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .page-numbers:hover {
    background: #f0f0f0;
}
/* ============================
   BUSCADOR PREDICTIVO CICERONE
============================ */

/* Contenedor principal */
.cicerone-search-wrapper {
    position: relative;
    max-width: 640px;
    width: 100%;
    margin: 0.5rem auto;   /* auto en izquierda/derecha => centrado */
    font-family: inherit;
}

/* Input + botón en forma de píldora */
.cicerone-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    z-index: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 0px 2px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

/* Input */
.cicerone-search-wrapper .cicerone-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 1.25rem;
    border-radius: 10px;
    border: none !important;
    background: transparent;
    font-size: 0.95rem;
    color: #111827;
}

.cicerone-search-wrapper .cicerone-search-input::placeholder {
    color: #9ca3af;
}

/* Botón “AI Route” */
.cicerone-search-button {
    flex: 0 0 auto;
    height: 40px;
    padding: 10px!important;
    margin-right: 2px;
    border-radius: 8px!important;
    border: none;
    cursor: pointer;
    background-color: var(--main-color) !important;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    line-height: 0.5em!important;
    font-weight: 600!important;
}

.cicerone-search-button:hover {
    background-color: var(--main-color) !important;
}

.cicerone-search-button:active {
    transform: translateY(0);
}

.cicerone-search-button-label {
    white-space: nowrap;
}
.cicerone-search-wrapper .cicerone-search-input:focus-within,.cicerone-search-wrapper .cicerone-search-input:focus-visible{
    border:0px;
    outline: none!important;
}
/* Icono opcional (círculo con rayo) */
.cicerone-search-button-icon {
    width: 18px;
    height: 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}
.cicerone-search-button.is-search {
  background-color: #ffffff!important;
  color: var(--main-color) !important;
}
.cicerone-search-button.is-search .cicerone-search-button-icon {
  border-color: var(--main-color) !important;
}
/* Contenedor del icono dentro del botón */
.cicerone-search-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}

/* Tamaño uniforme de los iconos */
.cicerone-search-button-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 0;
    fill: none;
}

/* MODO NORMAL (AI Route → sparkles) */
.cicerone-search-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

/* MODO BÚSQUEDA */
.cicerone-search-button.is-search {
    background: #fff !important;
    color: var(--main-color) !important;
    border: 1px solid var(--main-color) !important;
}

/* Dropdown de resultados */
.cicerone-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
}
.cicerone-search-results::-webkit-scrollbar {
    display: none;
}

/* Cuando hay resultados se muestra */
.cicerone-search-wrapper.has-results .cicerone-search-results {
    display: block;
}

/* Panel interno (tarjeta blanca) */
.cicerone-search-panel {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* Línea superior con la query */
.cicerone-search-panel-top {
    display: none;
}

.cicerone-search-query-label {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    background: #f3f4f6;
}

/* Tabs: All results / Places / Events */
.cicerone-search-panel-tabs {
    display: flex;
    gap: 1.25rem;
    padding: 0.5rem 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.85rem;
}
/* Contenedor absoluto del dropdown (SIN scroll aquí) */
.cicerone-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  z-index: 9999;
  /* sin max-height, sin overflow */
}

/* Panel interno (tarjeta blanca con bordes redondos y scroll) */
.cicerone-search-panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;         /* recorta el contenido dentro del borde redondo */
  max-height: 360px;        /* límite de altura del panel */
  overflow-y: auto;         /* scroll vertical dentro del panel */
}

.cicerone-search-tab {
    border: none;
    background: none;
    padding: 0px!important;
    cursor: pointer;
    color: #000!important;
    position: relative;
    font-weight: 500;
}

.cicerone-search-tab.is-active {
    color: #111827;
}

.cicerone-search-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    border-radius: 10px;
    background: var(--main-color);
}

/* Lista de items */
.cicerone-search-list {
    padding: 0.25rem 0 0.5rem;
}

.cicerone-search-item {
    display: block;
    padding: 0.45rem 1rem;
    text-decoration: none;
    color: #111827;
    font-size: 0.9rem;
}

.cicerone-search-item:hover {
    background: #f9fafb;
}

.cicerone-search-item-title {
    font-weight: 500;
}

.cicerone-search-item-meta {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Resaltado del término buscado */
.cicerone-search-highlight {
    color: inherit;                           /* mismo color que el texto normal */
    font-weight: inherit;                     /* sin extra de negrita */
    background: color-mix(in srgb, var(--main-color) 20%, transparent);
    border-radius: 3px;
    padding: 0 2px;
}

/* Mensajes estados dentro del panel */
.cicerone-search-loading,
.cicerone-search-empty,
.cicerone-search-error {
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    color: #4b5563;
}
/* ---- Tabs tipo "All results / Places / Events" planos ---- */
.cicerone-search-panel-tabs {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 1rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.85rem;
}

.cicerone-search-tab {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 0.4rem;
  margin: 0;
  cursor: pointer;
  color: #6b7280;
  font-weight: 400;
  position: relative;
  border-radius: 0 !important;
}

.cicerone-search-tab.is-active {
  color: #111827;
  font-weight: 500;
}

.cicerone-search-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--main-color);
  border-radius: 8px;
  transition: width 0.15s ease;
}

.cicerone-search-tab.is-active::after {
  width: 100%;
}

/* ---- Lista de resultados ---- */
.cicerone-search-list {
  padding: 0.25rem 0 0.5rem;
}

.cicerone-search-item {
  display: block;
  padding: 0.45rem 1rem;
  text-decoration: none;
}

.cicerone-search-item-title {
  color: #111827;
  font-weight: 400;
}

.cicerone-search-item-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

/* Primer resultado con fondo suave (como en la captura) */
.cicerone-search-item:first-child {
  background: #f9fafb;
}

.cicerone-search-item:hover {
  background: #f3f4f6;
}

/* ================================
   PÁGINA DE RESULTADOS DE BÚSQUEDA
================================ */

.cicerone-search-page {
    max-width: 1200px;
    margin: -1rem auto;
    padding: 0 1rem 3rem;
}

.cicerone-search-page-header {
    margin-bottom: 2rem;
}

.cicerone-search-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #7f1d1d;
}

/* Grid de resultados reutilizando las mismas cards de portada (.place-card) */
.cicerone-search-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* Ajuste de ancho de las cards dentro del grid de resultados */
.cicerone-search-grid .place-card {
    flex: 0 0 calc(20% - 14px);  /* mismo cálculo que en portada */
    min-width: 210px;
    max-width: 230px;
}

/* Móvil: 1–2 columnas centradas */
@media (max-width: 640px) {
    .cicerone-search-grid {
        justify-content: center;
    }
    .cicerone-search-grid .place-card {
        flex: 0 0 calc(50% - 14px);
        max-width: 260px;
    }
}
/* Etiqueta pequeña con el tipo (EVENTO, PUNTO DE INTERÉS...) */
.place-card-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 2px;
}

.cicerone-search-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cicerone-search-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.18);
}

.cicerone-search-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Imagen + banda blanca + botón + */
.cicerone-search-card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.cicerone-search-card-thumb img,
.cicerone-search-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e5e7eb;
}

.cicerone-search-card-top-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #fff;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.cicerone-search-card-bottom-strip {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 72px;
    height: 6px;
    border-radius: 10px;
    background: #ffffff;
    opacity: 0.9;
}

/* Cuerpo de la card */
.cicerone-search-card-body {
    padding: 0.9rem 1rem 1.1rem;
}

.cicerone-search-card-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.cicerone-search-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem;
}

/* Duración en rojo, como "4 hours" */
.cicerone-search-card-duration {
    font-size: 0.85rem;
    color: var(--main-color) !important;
}


.cicerone-search-page-more {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--main-color) !important;
}

.cicerone-search-page-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.8rem;
    border-radius: 8px;
    border: 1px solid #e11d48;
    color: #e11d48;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    transition: background 0.15s ease, color 0.15s ease;
}

.cicerone-search-page-more-btn:hover {
    background: #e11d48;
    color: #fff;
}
/* ======================
   Galería AI Hero
   ====================== */

/* Tamaño base de cada "ventana" de imagen */
:root {
  --ai-hero-gallery-width: 323px;
  --ai-hero-gallery-height: 323px;
}

.ai-hero-gallery {
  display: flex;
  gap: 15px;                /* más aire entre columnas */
  align-items: center;
}

/* Cada columna: ventana que muestra UNA imagen completa */
.ai-hero-gallery-col {
  position: relative;
  width: var(--ai-hero-gallery-width);
  height: var(--ai-hero-gallery-height);
  overflow: hidden;
  background: #ffffff;
}

/* Pila vertical que se desplaza */
.ai-hero-gallery-track {
  display: flex;
  width: 100%;
  flex-direction: column;
}

/* Cada item ocupa exactamente el alto de la ventana */
.ai-hero-gallery-item {
  margin: 0;
  padding: 0;
  flex: 0 0 var(--ai-hero-gallery-height);
}

/* Solo imagen, sin enlace */
.ai-hero-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;         /* recorta para que todas se vean igual */
  border-radius: 8px!important;
}

/* Desvanecido arriba y abajo (más suave) */
.ai-hero-gallery-col::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,1) 0%,          /* blanco arriba */
      rgba(255,255,255,0.9) 10%,
      rgba(255,255,255,0.0) 30%,       /* zona central casi sin fade */
      rgba(255,255,255,0.0) 70%,
      rgba(255,255,255,0.9) 90%,
      rgba(255,255,255,1) 100%         /* blanco abajo */
    );
}

/* Animaciones (misma lógica que ya tenías) */
.ai-hero-gallery-col-up .ai-hero-gallery-track {
  animation: aiHeroScrollUp 28s linear infinite;
}

.ai-hero-gallery-col-down .ai-hero-gallery-track {
  animation: aiHeroScrollDown 32s linear infinite;
}

@keyframes aiHeroScrollUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); } /* porque duplicamos lista */
}

@keyframes aiHeroScrollDown {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
/* Pila vertical que se desplaza */
.ai-hero-gallery-track {
  display: flex;
  width: 100%;
  flex-direction: column;
  /* pequeño padding para que no empiece/termine pegado */
  padding: 8px 0;
}

/* Cada item ocupa exactamente el alto de la ventana,
   pero con separación entre ellos */
.ai-hero-gallery-item {
  margin: 0 0 16px 0!important;              /* <-- separación vertical tipo Figma */
  padding: 0;
  flex: 0 0 var(--ai-hero-gallery-height);
}

.ai-hero-gallery-item:last-child {
  margin-bottom: 0;
}
/* Solo imagen, sin enlace */
.ai-hero-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px !important;
}
@media (min-width: 1200px) {
  .ai-hero-gallery-col {
    width: var(--ai-hero-gallery-width);
    height: auto;
    aspect-ratio: 3 / 2;   /* ventana panorámica */
    overflow: hidden;
  }

  /* en este caso, cada item ocupa toda la ventana */
  .ai-hero-gallery-item {
    flex: 0 0 100%;
    margin: 0 0 16px 0;
  }
}
/* ======================
   Galería AI Hero - móvil
   ====================== */
@media (max-width: 768px) {
  .ai-hero-gallery {
    justify-content: center;
    gap: 10px;             /* separación más pequeña entre columnas */
    padding: 0px;       /* margen lateral para que no pegue al borde */
    margin: auto -30px;
  }

  .ai-hero-gallery-col {
    /* Dos columnas al 50% menos el gap */
    width: calc(50% - 8px);
    /* Altura proporcional tipo 4:3 para que parezcan “tarjetas” apaisadas */
    aspect-ratio: 4 / 3;
    height: auto;          /* dejamos que la altura la marque el ratio */
    border-radius: 12px;
    overflow: hidden;
  }

  /* Cada item ocupa toda la “ventana” de la columna */
  .ai-hero-gallery-item {
    flex: 0 0 100%;
  }

  .ai-hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}



/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
    .cicerone-list-category {
        width: auto;
    }

    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 300px;
    }

    .cicerone-list-category .cicerone-card {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .cicerone-carousel .viewport,
    .cicerone-carousel.events-carousel .viewport,
    .cicerone-carousel.pois-carousel .viewport,
    .cicerone-carousel.pdfs-carousel .viewport {
        padding: 0 20px;
    }

    .cicerone-card {
        flex: 0 0 clamp(150px, 40vw, 180px);
        height: 260px;
    }

    .cicerone-card .card-title {
        font-size: 12px;
    }

    .cicerone-carousel .go-left,
    .cicerone-carousel .go-right,
    .cicerone-carousel.events-carousel .go-left,
    .cicerone-carousel.events-carousel .go-right,
    .cicerone-carousel.pois-carousel .go-left,
    .cicerone-carousel.pois-carousel .go-right,
    .cicerone-carousel.pdfs-carousel .go-left,
    .cicerone-carousel.pdfs-carousel .go-right {
        width: 30px;
        height: 30px;
        line-height: 24px;
        font-size: 18px;
    }

    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    .cicerone-list-category .cicerone-card {
        height: 250px;
    }

    .cicerone-list-category .cicerone-filters {
        flex-direction: column;
        gap: 20px;
    }

    .cicerone-list-category .cicerone-search,
    .cicerone-list-category .cicerone-order-select-wrapper {
        width: 100%;
    }

    .cicerone-category-title {
        font-size: 28px;
    }

    .cicerone-category-subtitle {
        font-size: 16px;
    }

    .cicerone-calendar-container {
        padding: 10px;
    }

    .agenda-text {
        font-size: 24px;
    }

    .agenda-subtitle {
        font-size: 14px;
    }

    .calendar-wrapper {
        flex-direction: column;
        max-height: none;
        min-height: auto;
    }

    .flatpickr-calendar.inline {
        margin: 10px;
    }

    .cicerone-event-card {
        max-width: 100%;
        height: auto;
        flex-direction: column;
    }

    .cicerone-calendar-container .event-card-image {
        width: 100%;
        height: 150px;
        aspect-ratio: 3 / 2;
    }

    .cicerone-calendar-container .event-card-content {
        width: 100%;
        padding: 10px;
    }

    .event-card-button {
        position: static;
        margin-top: 10px;
        align-self: flex-end;
    }

    .cicerone-search-wrapper .cicerone-search-input {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

}

@media (max-width: 600px) {
    .cicerone-carousel.pois-carousel,
    .cicerone-carousel.events-carousel {
        padding: 0;
    }

    .cicerone-carousel.pois-carousel .viewport,
    .cicerone-carousel.events-carousel .viewport {
        padding: 0;
    }

    .cicerone-carousel.pois-carousel .go-right,
    .cicerone-carousel.events-carousel .go-right {
        right: 0;
    }

    .cicerone-search-page {
        padding: 0 0.75rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .cicerone-list-category .cicerone-items-wrapper {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .cicerone-list-category .cicerone-card {
        height: 200px;
    }
}
/* Forzar fullwidth del contenedor Elementor que envuelve la búsqueda Cicerone */
.elementor-element-b7cff68.e-con-boxed > .e-con-inner {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0px;
}
.elementor-element-b7cff68.e-con-boxed {
    padding: 0px;
}
/* =========================================
   RECOMMENDED ROUTES (routes-carousel)
   ========================================= */

.cicerone-carousel.routes-carousel {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0;
}

/* La tira de cards */
.cicerone-carousel.routes-carousel .viewport {
    gap: 16px;
    padding: 0 0 10px;
    scroll-behavior: smooth;
}

/* Card base: sobreescribe la genérica */
.cicerone-carousel.routes-carousel .cicerone-card.route-card {
    flex: 0 0 280px;
    height: auto;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    display: block;
}

/* Enlace interior */
.routes-carousel .route-card-inner {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* Imagen */
.routes-carousel .route-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.routes-carousel .route-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge "Destacada" en la esquina superior izquierda */
.routes-carousel .route-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--main-color, #e11d48);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--main-color, #e11d48);
}

/* Cuerpo de la card */
.routes-carousel .route-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Meta: "12 points of interest" */
.routes-carousel .route-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #6b7280;
}

.routes-carousel .route-meta-icon {
    font-size: 0.9rem;
    color: var(--main-color, #e11d48);
    line-height: 1;
}
.route-icon {
    color: var(--main-color, #e11d48);
}
.routes-carousel .route-meta-icon svg {
    width: 16px;
    height: 16px;
    transform: rotateZ(90deg);
}
.routes-carousel .route-meta-text {
    font-weight: 400;
    font-size: 16px;
    color: var(--main-color, #e11d48);
}
.count-poi{
    font-weight: 700;
}
/* Título: similar al Figma, 3 líneas máx */
.routes-carousel .route-title {
    margin: 4px 0 0;
    font-size: 20px;   /* ~17px */
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Días de ruta: "2 days" */
.routes-carousel .route-days {
    margin-top: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--main-color, #e11d48);
}

/* CTA principal */
.routes-carousel .route-cta {
    margin-top: 10px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: var(--main-color, #e11d48);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.routes-carousel .route-cta:hover {
    border-radius: 8px;
    background: var(--main-color, #e11d48);
}
.routes-carousel .route-cta:active {
    transform: translateY(0);
}

/* Enlace de "More details" debajo */
.routes-carousel .route-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color, #e11d48);
    text-decoration: underline;
}
/* ==== Carrusel de rutas ==== */
.routes-carousel {
    position: relative;
    margin-top: 24px;
    padding-bottom: 40px; /* deja sitio para las flechas abajo a la derecha */
}

/* Fila de tarjetas horizontal */
.routes-carousel .viewport {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0 4px;
}

/* Ocultar scrollbar */
.routes-carousel .viewport::-webkit-scrollbar {
    display: none;
}
.routes-carousel .viewport {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Flechas de rutas: mismas que agenda pero fuera del calendario */
.routes-carousel .cicerone-events-nav-wrapper.routes-nav {
    position: absolute;
    right: 0;
    bottom: 0;              /* salen abajo a la derecha, tipo Figma */
    display: flex;
    gap: 8px;
    z-index: 2;
    top:-60px;
}

.routes-carousel .cicerone-events-nav {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--main-color);
    color: #fff;
    font-size: 20px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Estado desactivado */
.routes-carousel .cicerone-events-nav.is-disabled {
    background: var(--main-color);
    filter: brightness(0.75);
    color: #fff;
    cursor: default;
    opacity: 0.9;
    box-shadow: none;
}

.cicerone-events-nav.is-disabled:hover, .cicerone-events-nav.is-disabled:focus, .cicerone-events-nav:hover, .cicerone-events-nav:focus {
    transform: none;
    border-radius: 8px!important;
}

/* ========================
   Flechas del carrusel
   ======================== */


/* Responsive pequeño: cards algo más estrechas */
@media (max-width: 768px) {
    .cicerone-carousel.routes-carousel .cicerone-card.route-card {
        flex: 0 0 240px;
    }

    .routes-carousel .route-card-image-wrapper {
        height: 180px;
    }
}

/* ============================
   Recommended Routes - layout
   ============================ */

/* Filtros tipo "chips" */
.cicerone-carousel.routes-carousel .routes-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.routes-filter-chip {
    border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.6);
    background: #fff;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #374151;
    cursor: default;
}

.routes-filter-chip.is-active {
    background: var(--main-color, #e11d48);
    border-color: var(--main-color, #e11d48);
    color: #fff;
}

/* Neutralizar hover genérico de .cicerone-card dentro de rutas */
.cicerone-carousel.routes-carousel .cicerone-card.route-card {
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Ajustes finos de tipografía para parecerse a la agenda / Figma */
.routes-carousel .route-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.routes-carousel .route-title {
    font-size: 1rem;
    line-height: 1.35;
}

.routes-carousel .route-days {
    font-size: 0.85rem;
    margin-top: 4px;
}

.routes-carousel .route-cta {
    margin-top: 12px;
}

/* Enlace "Más detalles" centrado y subrayado */
.routes-carousel .route-more {
    display: block;
    text-align: center;
    text-decoration: underline;
    margin-top: 10px;
}
/* =============================================================
   RECOMMENDED ROUTES – RESET TOTAL Y ESTILO DEFINITIVO
   ============================================================= */

.cicerone-carousel.routes-carousel {
    box-sizing: border-box;
}

.cicerone-carousel.routes-carousel *,
.cicerone-carousel.routes-carousel *::before,
.cicerone-carousel.routes-carousel *::after {
    box-sizing: inherit;
}

/* Contenedor general */
.cicerone-carousel.routes-carousel {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
    position: relative;
}

/* ===== FILTROS ===== */

.cicerone-carousel.routes-carousel .routes-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.routes-carousel .routes-filter-chip, .routes-carousel .routes-filter-chip:focus {
    padding: 8px 8px;
    padding-inline-end: 8px!important;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(148,163,184,0.5);
    font-size: .85rem;
    color: #374151;
    cursor: pointer;
}

.routes-carousel .routes-filter-chip.is-active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

/* ===== VIEWPORT ===== */

.cicerone-carousel.routes-carousel .viewport {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;

    scrollbar-width: none;
}
.cicerone-carousel.routes-carousel .viewport::-webkit-scrollbar {
    display: none;
}

/* =============================================================
   CARD – TOTALMENTE PERSONALIZADA
   ============================================================= */

.cicerone-carousel.routes-carousel .route-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.16);
    transition: transform .15s ease, box-shadow .15s ease;
}

.cicerone-carousel.routes-carousel .route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(15,23,42,0.25);
}

/* ===== Imagen ===== */

.routes-carousel .route-card-image-wrapper {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
}

.routes-carousel .route-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge “Featured” */
.routes-carousel .route-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #fff;
    color: var(--main-color);
    font-size: .75rem;
    font-weight: 600;
    border: 1px solid var(--main-color);
    z-index: 5;
}

/* ===== BODY ===== */

.routes-carousel .route-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Meta */
.routes-carousel .route-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: .82rem;
}

.routes-carousel .route-meta-icon {
    color: var(--main-color);
    font-size: 2rem;
}

/* Título */
.routes-carousel .route-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

/* Días */
.routes-carousel .route-days {
    font-size: .85rem;
    font-weight: 600;
    color: var(--main-color);
}

/* Enlace “More details” */
.routes-carousel .route-more {
    margin-top: 12px;
    text-align: center;
    font-size: 16px;
    color: var(--main-color, #e11d48);
    text-decoration: underline;
}
.routes-carousel .route-more:hover{
    transform: none!important;
    transition: none!important;
    line-height: 24px;
    font-size: 16px!important;
}
/* =============================================================
   FLECHAS – AISLADAS Y FUNCIONALES
   ============================================================= */

.cicerone-carousel.routes-carousel .go-left,
.cicerone-carousel.routes-carousel .go-right {
    width: 44px;
    height: 44px;
    position: absolute;
    top: -58px;
    background: var(--main-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: none;
}

.cicerone-carousel.routes-carousel .go-left {
    right: 58px;
}

.cicerone-carousel.routes-carousel .go-right {
    right: 10px;
}

.cicerone-carousel.routes-carousel .go-left:hover,
.cicerone-carousel.routes-carousel .go-right:hover {
    background: #000;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 768px) {
    .cicerone-carousel.routes-carousel .route-card {
        flex: 0 0 240px;
    }

    .routes-carousel .route-card-image-wrapper {
        height: 180px;
    }
}

/* =========================================
   AJUSTES FINOS RUTAS (sobre lo existente)
   ========================================= */

/* 1) Card sin fondo, sin borde, sin sombra
      y ancho para que salgan 4,5 cards */
.cicerone-carousel.routes-carousel .route-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    /* 4,5 cards visibles en desktop */
    flex: 0 0 calc(100% / 4.5) !important;
    max-width: calc(100% / 4.5) !important;
}

/* Sin efecto “flotante” */
.cicerone-carousel.routes-carousel .route-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 2) Imagen con los 4 bordes redondeados */
.routes-carousel .route-card-image-wrapper {
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 10px;      /* pequeño espacio con el texto */
}

/* Por si la imagen tenía otros radios */
.routes-carousel .route-card-image {
    border-radius: 0 !important;
}

/* 3) Cuerpo de la card sin caja rara debajo */
.routes-carousel .route-card-body {
    background: transparent !important;
    padding: 0 4px 0 0; /* ajusta si quieres un pelín más de aire */
}

/* Título / textos se mantienen como estaban */
.routes-carousel .route-title {
    margin-top: 4px;
}

/* 4) Flechas: sin sombra y con icono correcto */
.cicerone-carousel.routes-carousel .go-left,
.cicerone-carousel.routes-carousel .go-right {
    box-shadow: none !important;
    border: none !important;
    background: var(--main-color, #e11d48) !important;
    color: #fff !important;

    /* forzamos fuente de Material Symbols */
    font-family: 'Material Symbols Outlined' !important;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    line-height: 1;
}
/* =========================================
   BADGE DEMO DE CATEGORÍA
========================================= */

.routes-carousel .route-badge-demo {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 10px;
    background: #ffffff;
    color: var(--main-color, #e11d48);
    font-size: 0.80rem;
    font-weight: 600;
    z-index: 5;
}
/* =========================================
   CHIPS FILTRABLES CON "X"
========================================= */

.routes-filter-chip {
    position: relative;
    padding-right: 30px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Ocultar X por defecto */
.routes-filter-chip .chip-close {
    display: none;
    font-size: 14px;
    margin-left: 6px;
}

/* Cuando está activo -> mostrar X */
.routes-filter-chip.is-active .chip-close {
    display: inline;
    color: #fff;
}

/* Hover */
.routes-filter-chip:hover {
    opacity: 0.9;
}
/* =========================================
   BLOQUE "PLACES" (All content por categoría)
========================================= */

.cicerone-places {
    max-width: 1200px;
    margin: 3rem auto 4rem;
    padding: 0 1rem;
}
/* Cabecera general */

.cicerone-places-header {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    margin-left:-42px;
}
.cicerone-search-page .cicerone-places-header {
    margin-left:0px;
}
.cicerone-places-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--main-color, #e11d48);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.cicerone-places-title {
    margin: 0;
    font-size: 40px!important;
    font-weight: 800;
    color: #7f1d1d;
}
.text-search {
    font-weight: 400;
}
.cicerone-places-intro {
    margin: 6px 0 0;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    color: #374151;
    font-family: Roboto;
    display: none;
}

/* Bloque por categoría */

.places-category-block {
    margin-bottom: 40px;
}

.places-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.places-category-arrow {
    font-size: 1.6rem;
    color: var(--main-color, #e11d48);
}

/* Tira horizontal (4.5 cards) */

.places-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;

    /* ocultamos barra */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.places-strip::-webkit-scrollbar {
    display: none;
}

/* Card de lugar */

.place-card {
    flex: 0 0 calc(20% - 14px);  /* ~5 cards -> se ven 4 y pico */
    min-width: 210px;
    max-width: 230px;
}

.place-card-link {
    display: block;
    text-decoration: none!important;
    color: inherit;
}

/* Thumbnail con badge, barra y plus opcional */

.place-card-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    height: 160px;
}

/* Imagen ocupa todo, con 4 bordes redondeados */

.place-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Carrusel horizontal dentro de la miniatura de Places */

.cicerone-places .place-card-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;   /* IE/Edge antiguo */
    scrollbar-width: none;      /* Firefox */
    touch-action: pan-y;        /* deja libre el scroll horizontal */
}

.cicerone-places .place-card-slider::-webkit-scrollbar {
    display: none;
}

/* Cada slide ocupa el 100% de ancho → hay scroll */
.cicerone-places .place-card-slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
}

.cicerone-places .place-card-slider.is-dragging {
    cursor: grabbing;
}
/* Evitar selección de texto / drag nativo del navegador */
.cicerone-places .place-card-slider,
.cicerone-places .place-card-slide img {
    user-select: none;
    -webkit-user-drag: none;
}
.cicerone-places .place-card-slider {
    cursor: grab;
}

.cicerone-places .place-card-slider.is-dragging {
    cursor: grabbing;
}

.cicerone-places .place-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none; /* muy importante para desktop */
}

.cicerone-places .place-card-slider {
    cursor: grab;
}

.cicerone-places .place-card-slider.is-dragging {
    cursor: grabbing;
}


.place-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* --- Dots del carrusel dentro de la card --- */

.place-card-bullets {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
    background: #FFF;
    border-radius: 999px;
    padding: 3px 8px;
}

/* Estado base: círculos claros, solo borde */
.place-card-bullet {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #F2F2F2;
    flex-shrink: 0;
    transition:
        width 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* Activo: pastilla alargada roja, como en el diseño */
.place-card-bullet.is-active {
    width: 24px;
    background: var(--main-color, #e11d48);
    border-color: var(--main-color, #e11d48);
    box-shadow: none;
}

/* Badge tipo "Featured" */

.place-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0px 7px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 10px;
    background: #fff;
    color: var(--main-color, #e11d48);
    z-index: 2;
}

/* Barra rojita inferior dentro de la imagen */

.place-card-bar {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 70px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.65);
    overflow: hidden;
    z-index: 2;
}

.place-card-bar-inner {
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    height: 3px;
    border-radius: 999px;
    background: var(--main-color, #e11d48);
}

/* Texto de la card */

.place-card-body {
    margin-top: 8px;
}

.place-card-title {
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card-duration {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--main-color, #e11d48);
}

.places-category-more {
    display: inline-block;
    border: 2px solid var(--main-color, #e11d48);
    color: var(--main-color, #e11d48)!important;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    padding: 16px 32px;
    background-color: #ffffff;
    font-weight: 600!important;
    font-size: 14px!important;
}

.places-category-more:hover,
.places-category-more:focus-visible {
color: #ffffff;
font-weight: 600!important;
}
/* Responsive */

@media (max-width: 980px) {
    .place-card {
        flex: 0 0 40%;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .cicerone-places {
        padding: 0 0.75rem;
    }
    .place-card {
        flex: 0 0 70%;
    }
}
/* ============================
   BLOQUE "SITIOS" (Places)
============================ */

.cicerone-places {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.cicerone-places-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.cicerone-places-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--main-color, #e11d48);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    font-size: 0.9rem;
}


.cicerone-places-intro {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Categoría */

.places-category-block {
    margin-bottom: 32px;
}

.places-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.places-category-arrow {
    margin-left: 6px;
    color: var(--main-color, #e11d48);
}
/* Cabecera de la agenda: fila con flechas a la derecha */
.cicerone-events-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Contenedor de las flechas pegado al borde derecho */
.cicerone-events-nav-wrapper {
    margin-left: auto;          /* empuja las flechas a la derecha */
    display: inline-flex;
    gap: 8px;
}
/* ============================
   Botón "Mostrar más" (resultados)
   ============================ */

.cicerone-search-page-more {
    text-align: center;
}

/* Botón como en la maqueta: pequeño, centrado, borde rojo */
.cicerone-show-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    border: 2px solid var(--main-color, #e11d48);
    background-color: #fff;
    color: var(--main-color, #e11d48)!important;
    font-size: 14px!important;
    font-weight: 600!important;
    text-decoration: none;
    width: auto;          /* sobrescribe botones full width del theme */
    max-width: none;
    box-shadow: none;
}

/* Hover: relleno rojo y texto blanco */
.cicerone-show-more-button:hover {
    background: transparent!important;
    font-weight: 600 !important;
}
.cicerone-search-page-more .cicerone-show-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    border: 2px solid var(--main-color, #e11d48);
    background-color: #fff;
    color: var(--main-color, #e11d48)!important;
    font-size: 14px!important;
    font-weight: 600!important;
    text-decoration: none;
    width: auto;          /* sobrescribe botones full width del theme */
    max-width: none;
    box-shadow: none;
}
.cicerone-search-page-more .cicerone-show-more-button:hover, .cicerone-search-page-more .cicerone-show-more-button:focus {
    background: transparent!important;
    font-weight: 600 !important;
}
/* Grid de 8 ítems máx: 4 columnas desktop, 2 en tablet, 1 en móvil */

.places-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1024px) {
    .places-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .places-strip {
        grid-template-columns: 1fr;
    }
}

/* Card de sitio */

.place-card {
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.place-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.place-card-thumb {
    position: relative;
    width: 100%;
    height: 170px;
    border-radius: 8px;
    overflow: hidden;
}

.place-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Body card */

.place-card-body {
    padding: 8px 2px 0;
}

.place-card-title {
    margin: 0 0 2px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.place-card-duration {
    font-size: 0.8rem;
    color: var(--main-color, #e11d48);
}

/* Footer: Ver todos */

.places-category-footer {
    margin-top: 10px;
    text-align: center;
}


/* ============================
   Ajustes extra "Sitios"
============================ */

/* Cabecera */

.cicerone-places-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #fff;
    color: var(--main-color, #e11d48);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.cicerone-places-icon .material-symbols-outlined {
    font-size: 20px;
}

/* Botón "Ver todos ..." ya usa color primario, subimos un poco tamaño */
.places-category-more {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Todas las imágenes igual de cuadradas (ratio fijo) */
.place-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;    /* todas con el mismo formato */
    border-radius: 8px;
    overflow: hidden;
}

.place-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Títulos de cards un poco más pequeños */
.place-card-title {
    margin: 0 0 2px;
    font-size: 0.85rem;      /* más pequeño */
    font-weight: 600;
    color: #111827;
}

/* Duración en color primario, como en Figma */
.place-card-duration {
    font-size: 0.8rem;
    color: var(--main-color, #e11d48);
}
/* =========================================
   OVERRIDES FINALES BLOQUE "SITIOS"
   ========================================= */

/* 1) Título principal y títulos de categoría:
      mismo tamaño y color primario */
.cicerone-places-title,
.places-category-title {
    margin: 0 0 4px;
    font-size: 20px;                    /* igual de grande */
    font-weight: 800;
    color: var(--main-color, #e11d48)!important;  /* color primario */
}
.places-category-title a{
    font-size: 36px!important;                    /* igual de grande */
    font-weight: 600!important;
    color: var(--main-color, #e11d48)!important;  /* color primario */
}

/* 2) Un poco más de separación entre filas
      (grid de 4x2 = 8 sitios) */
.cicerone-places .places-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 32px;   /* más aire entre filas */
}
.recommended-carousel .go-left, .recommended-carousel .go-right {
    display: none;
}
/* 3) Botón "+" totalmente reseteado y re-estilizado
      para evitar estilos del tema */
.cicerone-places .place-card-plus, .places-strip .place-card-plus {
    all: unset; /* elimina estilos de botones del theme */
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.85);
    background: #fff;
    color: var(--main-color, #e11d48);
    font-weight: 700;
    font-size: 1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cicerone-places .place-card-plus:hover, .places-strip .place-card-plus:hover {
    background-color: #fff;
    border-radius: 4px;
}

/* 4) Aseguramos imágenes homogéneas y títulos de card
      un poco más pequeños (por si algo los pisa) */
.cicerone-places .place-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
}

.cicerone-places .place-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cicerone-places .place-card-title, .places-strip .place-card-title {
    margin: 0 0 2px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

/* 5) Icono de localización en el chip de "Sitios" */
.cicerone-places-icon .material-symbols-outlined {
    font-size: 30px;
    margin-top: 10px;
}
/* =======================================
   DETALLE CICERONE (POI / EVENT / ROUTE)
   ======================================= */
.cicerone-detail-page p, .cicerone-detail-right .detail-card p, .cicerone-detail-right .detail-card li, .cicerone-schedule-hours {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}
/* Header: título + pill + (opcional) acciones */
.cicerone-detail-header {
    margin-bottom: 1.5rem;
}

.cicerone-detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.cicerone-detail-title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--main-color);
}

.cicerone-detail-pill {
    padding: .35rem .75rem;
    border-radius: 8px;
    background: var(--main-color, #e11d48);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}

/* Pequeña fila para iconos / extras (tipo social) */
.cicerone-detail-subrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: #6b7280;
}

/* HERO: galería tipo Figma */
.cicerone-detail-hero {
    margin-bottom: 1.75rem;
}

.cicerone-detail-gallery {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 12px;
    min-height: 260px;
    cursor: grab;
}
.cicerone-detail-gallery:active { cursor: grabbing; }
.cicerone-detail-gallery::-webkit-scrollbar { display: none; }

.cicerone-detail-gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #e5e7eb;
    cursor: pointer;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Imagen principal: ocupa ~65% del ancho */
.cicerone-detail-gallery-item.is-main {
    flex: 0 0 65%;
    min-height: 260px;
}

/* Imágenes secundarias: más estrechas */
.cicerone-detail-gallery-item.is-side-top,
.cicerone-detail-gallery-item.is-side-bottom {
    flex: 0 0 30%;
    min-height: 124px;
}

/* Extras visibles en el scroll */
.cicerone-detail-gallery-item.is-extra {
    flex: 0 0 30%;
    min-height: 260px;
}

.cicerone-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Modal de imagen (reutilizable) */
.cicerone-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    padding: 50px 10px;
}

.cicerone-detail-modal img {
    display: block;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.cicerone-detail-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 34px;
    color: #fff;
    cursor: pointer;
}

/* Layout principal 2 columnas */
.cicerone-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
    gap: 40px;
}

/* Columna izquierda */
.cicerone-detail-left section {
    margin-bottom: 1.8rem;
}

.cicerone-detail-left h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 .65rem;
}

.cicerone-detail-text {
    font-size: .95rem;
    line-height: 1.7;
    color: #374151;
}

/* Columna derecha: tarjetas de info (Address, Schedule, Price, etc.) */
.cicerone-detail-right .detail-card {
    background: #fff;
    border-radius: 14px;
    padding:0px;
    box-shadow: none;
    margin-bottom: 32px;
}

.cicerone-detail-right .detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cicerone-detail-right .detail-card li + li {
    margin-top: .2rem;
}

/* Tags */
.cicerone-detail-tags-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--main-color, #e11d48);
    margin: 0 0 .5rem;
}

.cicerone-detail-taglist {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.cicerone-detail-tag {
    padding: .25rem .7rem;
    border-radius: 8px;
    font-size: .8rem;
    background: #f3f4f6;
    color: #374151;
}

/* Botones tipo CTA (para links POI/evento) */
.cicerone-detail-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.cicerone-detail-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--main-color, #e11d48);
    background: var(--main-color, #e11d48);
    color: #fff!important;
    font-size: 14px!important;
    font-weight: 600!important;
    text-decoration: none;
    cursor: pointer;
}
.cicerone-detail-cta:hover {
    border-radius: 8px;
    border: 1px solid var(--main-color, #e11d48);
    background: var(--main-color, #e11d48);
    color: #fff!important;
    font-size: 14px!important;
    font-weight: 600!important;
    text-decoration: none;
}
.cicerone-detail-cta.secondary {
    background: #fff;
    color: var(--main-color, #e11d48);
}
/* Responsive */
@media (max-width: 992px) {
    .cicerone-detail-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .cicerone-detail-gallery {
        min-height: 220px;
        padding: 0 16px 0 0;
        gap: 10px;
    }
    .cicerone-detail-gallery-item.is-main,
    .cicerone-detail-gallery-item.is-side-top,
    .cicerone-detail-gallery-item.is-side-bottom,
    .cicerone-detail-gallery-item.is-extra {
        flex: 0 0 88%;
        min-height: 220px;
    }

    .cicerone-detail-title {
        font-size: 1.7rem;
    }
}
/* ============================
   FIX HEADER SINGLE (POI / EVENT / ROUTE)
   ============================ */

/* Fila del título + pills + flechas */
.cicerone-detail-page .cicerone-detail-title-row {
    display: flex;          /* aseguramos flex aunque el theme lo toque */
    flex-wrap: wrap;
    align-items: center;    /* alinear verticalmente en el centro */
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    margin-bottom: 0.75rem; /* un poco de aire con la galería */
}

/* Título pegado a las pills, sin márgenes raros */
.cicerone-detail-page .cicerone-detail-title {
    margin: 0;
}

/* Las pills se comportan como chips en línea */
.cicerone-detail-page .cicerone-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Flechas de la galería pegadas a la derecha */
.cicerone-detail-page .cicerone-detail-gallery-arrows {
    margin-left: auto;      /* empuja el bloque de flechas al extremo derecho */
    display: inline-flex;
    gap: 8px;
}
.cicerone-detail-gallery-arrows .cicerone-events-nav {
	border-radius:8px;
}
/* ============================
   BLOQUE HORARIO / SCHEDULE
   ============================ */

.detail-card.detail-card-schedule {
    background: #ffffff;
    border-radius: 8px;
    padding: 0px;
}

/* Título de horario estilo Address/Schedule */
.detail-card.detail-card-schedule .cicerone-schedule-title, .cicerone-detail-right .detail-card h3,.cicerone-detail-right .detail-card h3, .cicerone-detail-section-title  {
    margin: 0 0 0.85rem;
    font-size: 36px!important;
    font-weight: 700;
    color: var(--main-color, #7b1221);
}

/* Grid a dos columnas como en el diseño */
.cicerone-schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.75rem;
    row-gap: 0.4rem;
}

/* En móvil, una sola columna */
@media (max-width: 768px) {
    .cicerone-schedule-grid {
        grid-template-columns: 1fr;
    }
}

.cicerone-schedule-item {
    font-size: 0.9rem;
}

.cicerone-schedule-day {
    font-weight: 600;
    font-size: 18px;
    color: var(--main-color, #7b1221);
    margin-bottom: 0;
}

.cicerone-schedule-hours .arrow {
    display: inline-block;
    margin: 0 0.35rem;
    color: var(--main-color, #e11d48);
    font-weight: 700;
}

/* Layout 2 columnas detalle */
.cicerone-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    margin-top: 40px;
}

.cicerone-detail-left,
.cicerone-detail-right {
    min-width: 0;
}

.cicerone-detail-section + .cicerone-detail-section {
    margin-top: 32px;
}

.cicerone-detail-section-title {
    font-size: 36px!important;
    font-weight: 700;
    margin: 0 0 12px;
    color:var(--main-color, #7b1221)!important;
}

.cicerone-detail-text {
    line-height: 1.6;
    color: #444;
}

/* Cards de la columna derecha */
.detail-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.detail-card + .detail-card {
    margin-top: 20px;
}

.detail-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.detail-address {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    white-space: pre-line;
}

/* Horario */
.detail-schedule {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.detail-schedule li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.detail-schedule li strong {
    font-weight: 600;
}

/* Tags a ancho completo */
.cicerone-detail-tags {
    margin-top: 48px;
    padding-top: 28px;
}

.detail-tags-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-tags-icon {
    font-size: 18px;
    color: var(--main-color);
}

.detail-tags-title {
    font-size: 35px!important;
    font-weight: 700;
    margin: 0;
    color: var(--main-color, #7b1221)!important;
}

.detail-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
}

.detail-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 8px;
    margin: 16px;
    margin-left: 0px;
    border-radius: 8px;
    border: 1px solid  var(--main-color, #7b1221)!important;
    background: transparent;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}
.detail-tags-icon {
    transform: rotateY(175deg);
}
/* Responsive */
@media (max-width: 900px) {
    .cicerone-detail-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
/* Sitios recomendados dentro de la ficha */
.cicerone-detail-recommended {
    margin-top: 48px;
}

.cicerone-detail-recommended-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: 30px;
}

.cicerone-detail-recommended-title {
    font-size: 35px!important;
    font-weight: 700;
    color: var(--main-color, #7b1221)!important;
    margin: 0;
}

.cicerone-detail-recommended .places-category-arrow {
    font-size: 1.6rem;
    font-weight: 800;
}

/* Carrusel de sitios recomendados */
.cicerone-detail-recommended .recommended-carousel .viewport {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    padding: 0px;
}

/* 4 tarjetas completas + media siguiente */
.cicerone-detail-recommended .place-card {
    flex: 0 0 calc(100% / 4.5);
    max-width: calc(100% / 4.5);
    scroll-snap-align: start;
}

/* Responsive sencillo */
@media (max-width: 1200px) {
    .cicerone-detail-recommended .place-card {
        flex: 0 0 calc(100% / 3.2);
        max-width: calc(100% / 3.2);
    }
}

@media (max-width: 768px) {
    .cicerone-detail-recommended .place-card {
        flex: 0 0 calc(100% / 1.4);
        max-width: calc(100% / 1.4);
    }
}
.cicerone-detail-recommended.cicerone-pois-shortcode {
  margin-top: 32px;
}
/* ==== Ajustes específicos para [cicerone_pois] ==== */

/* Forzamos ancho/alto homogéneo de las tarjetas de POIs */
.pois-carousel .cicerone-card {
  flex: 0 0 260px;
  max-width: 260px;
}

/* El contenedor de imagen ocupa altura fija */
.pois-carousel .card-image-wrapper {
  height: 200px;
}

/* La imagen rellena completamente el hueco */
.pois-carousel .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ==== Estilos para el shortcode [cicerone_events] ==== */

.events-carousel .viewport {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 24px 0 16px;
  scroll-behavior: smooth;
}

.events-carousel .viewport::-webkit-scrollbar {
  display: none;
}

.events-carousel .agenda-event-card {
  flex: 0 0 240px;
  max-width: 240px;
    background-color: #fff;
    border-radius: 10px;
}

.events-carousel .cicerone-event-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* Imagen + badge */
.events-carousel .event-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
}

.events-carousel .event-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.events-carousel .event-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  background: #ffffff;
  color: var(--main-color, #e11d48);
}

/* Contenido */
.events-carousel .event-card-content {
  padding-top: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.events-carousel .event-card-dates {
  font-size: 13px;
  color: var(--main-color, #e11d48);
}

.events-carousel .event-card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.events-carousel .event-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--main-color, #e11d48);
}

.events-carousel .event-card-location-icon {
  font-size: 18px;
  line-height: 1;
}
/* ===== Mobile layout para el buscador [cicerone_search] (versión corregida) ===== */
@media (max-width: 767px) {

  .cicerone-search-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* Pastilla blanca grande */
  .cicerone-search-input-wrapper {
    position: relative;          /* clave para colocar el botón dentro */
    display: block;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    overflow: visible;           /* que el botón pueda sobresalir un poco si hace falta */
  }

  /* Input a lo largo de toda la pastilla, dejando hueco a la derecha */
/* Input con espacio automático según botón */
.cicerone-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 160px 12px 18px!important;
    font-size: 14px;
    min-height: 52px;
    box-sizing: border-box;
    margin-bottom: 0px!important;
}


  .cicerone-search-input::placeholder {
    color: #9ca3af;
  }

  /* Botón "AI Route" dentro de la pastilla, pegado a la derecha */
  .cicerone-search-button {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    margin: 0;
    border: none;
    outline: none;
    background: #ff4350;              /* ajusta a tu color de marca */
    color: #ffffff;
    padding: 0 16px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }

  .cicerone-search-button-icon {
    width: 14px;
    height: 14px;
  }

  .cicerone-search-results {
    margin-top: 12px;
  }
}
/* ===== MOBILE: Rutas recomendadas [cicerone_rutas] ===== */
@media (max-width: 767px) {

  /* Contenedor general */
  .cicerone-carousel.routes-carousel {
    margin: 24px 0;
    padding-bottom: 16px;
    overflow: visible;
  }

  /* Filtros: fila con scroll horizontal */
  .cicerone-carousel.routes-carousel .routes-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 16px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cicerone-carousel.routes-carousel .routes-filters::-webkit-scrollbar {
    display: none;
  }

  /* Carrusel de tarjetas en horizontal */
  .cicerone-carousel.routes-carousel .viewport {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    padding: 0 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cicerone-carousel.routes-carousel .viewport::-webkit-scrollbar {
    display: none;
  }

.cicerone-carousel.routes-carousel .cicerone-card,
.cicerone-carousel.routes-carousel .route-card {
    flex: 0 0 80vw !important;   /* ancho ≈ 80% */
    max-width: 80vw !important;
    scroll-snap-align: start;
    display: block;              /* NO flex aquí */
    overflow: visible;           /* que no corte nada */
}

  /* Imagen a ancho completo y misma altura en todas */
  .cicerone-carousel.routes-carousel .route-card-image-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
  }
  .cicerone-carousel.routes-carousel .route-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Botón "Empezar ruta" a ancho de tarjeta */
  .cicerone-carousel.routes-carousel .route-cta {
    width: 100%;
    box-sizing: border-box;
  }

  /* En móvil usamos sólo scroll con el dedo, sin flechas */
  .cicerone-carousel.routes-carousel .go-left,
  .cicerone-carousel.routes-carousel .go-right {
    display: none !important;
  }
}
/* ===== MOBILE: Events & POIs ===== */
@media (max-width: 767px) {

  /* 1) Ocultar flechas en events y pois */
  .cicerone-carousel.events-carousel .go-left,
  .cicerone-carousel.events-carousel .go-right,
  .cicerone-carousel.pois-carousel .go-left,
  .cicerone-carousel.pois-carousel .go-right {
    display: none !important;
  }

  /* 2) Carrusel horizontal para EVENTS a pantalla completa */
  .cicerone-carousel.events-carousel .viewport {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    padding: 0 16px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cicerone-carousel.events-carousel .viewport::-webkit-scrollbar {
    display: none;
  }

  /* Cada evento ocupa el 100% del ancho “visible” */
  .cicerone-carousel.events-carousel .cicerone-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    scroll-snap-align: start;
    display: block;
  }

  /* Aseguramos imagen responsiva en events */
  .cicerone-carousel.events-carousel .card-image-wrapper {
    width: 100%;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
  }
  .cicerone-carousel.events-carousel .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Opcional: pequeño padding abajo del contenido de la card */
  .cicerone-carousel.events-carousel .card-content {
    padding-bottom: 8px;
  }

  /* 3) Para POIs: solo scroll horizontal + cards tipo carrusel (mantenemos estilos que ya te gustaban) */
  .cicerone-carousel.pois-carousel .viewport {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    padding: 0 16px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cicerone-carousel.pois-carousel .viewport::-webkit-scrollbar {
    display: none;
  }

  /* Si quieres mismo comportamiento 1,5 cards en POIs, deja 80–85vw; si ya te gusta, puedes omitir esto */
  .cicerone-carousel.pois-carousel .cicerone-card {
    flex: 0 0 80vw !important;
    max-width: 80vw !important;
    scroll-snap-align: start;
    display: block;
  }

  .cicerone-carousel.pois-carousel .card-image-wrapper {
    width: 100%;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
  }
  .cicerone-carousel.pois-carousel .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}
/* =========================
 * AGENDA (calendario) – MOBILE
 * ========================= */
@media (max-width: 768px) {

  /* 1) Ocultar flechas de navegación de la agenda */
  .cicerone-calendar-container .cicerone-events-nav-wrapper {
    display: none !important;
  }

  /* 2) Carrusel horizontal con ~1,5 tarjetas visibles */
  .cicerone-calendar-container #event-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .cicerone-calendar-container .event-card-image {
    height: 100%;
  }
  .cicerone-calendar-container #event-cards::-webkit-scrollbar {
    display: none;
  }

  /* Cada tarjeta de evento de la agenda */
  .cicerone-calendar-container .agenda-event-card {
    scroll-snap-align: start;
    min-width: 82%;
    max-width: 82%;
  }
}
/* =========================================
 * MOBILE: Bloque Sitios [cicerone_all_content]
 * ========================================= */
@media (max-width: 768px) {

  /* Contenedor general de "Places" */
  .cicerone-places {
    padding: 24px 16px 32px;
  }

  /* Cada categoría (Adventure, Nature, etc.) */
  .places-category-block {
    margin-bottom: 32px;
  }

  /* Título + flecha a la derecha, ya lo tienes, sólo ajustamos un poco */
  .places-category-header {
    margin-bottom: 12px;
    margin-left: -15px;
  }

  /* Tira de cards: carrusel horizontal 1–1,5 tarjetas */
  .places-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    margin: 0 -16px 8px;   /* que llegue al borde */
    padding-left: 16px;
    padding-right: 16px;
  }

  .places-strip::-webkit-scrollbar {
    display: none;
  }

  /* Card de sitio: ocupa ~80% del ancho para que se vea un trozo de la siguiente */
  .places-strip .place-card {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
  }

  .place-card-link {
    display: block;
    height: 100%;
  }

  /* Imagen a altura fija y recortada (como en desktop, pero adaptado a móvil) */
  .place-card-thumb {
    width: 100%;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
  }

  .place-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Texto de la card */
  .place-card-body {
    padding-top: 10px;
  }

  .place-card-title {
    margin: 0 0 4px;
  }

  /* Botón inferior "Ver todos 'Categoria'" a ancho completo */
  .places-category-footer {
    margin-top: 8px;
  }

  .places-category-more {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    padding: 10px 16px;
    box-sizing: border-box;
    background-color: #ffffff;
    font-weight: 500;
    text-decoration: none;
  }

  .places-category-more:hover,
  .places-category-more:focus-visible {
    color: #ffffff;
  }
}
/* ============================
 * MOBILE: Places (cicerone_all_content)
 * ============================ */
@media (max-width: 768px) {

  /* Tira de cards: UNA fila con scroll horizontal */
  .cicerone-places .places-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 -16px 16px;   /* que llegue hasta el borde */
    padding: 0 16px 10px;
  }
  .places-strip-recommended {
    margin-left: 0px;
  }

  .cicerone-places .places-strip::-webkit-scrollbar {
    display: none;
  }

  /* Cada place-card ocupa ~1,5 (82%) y NO puede saltar a otra fila */
  .cicerone-places .places-strip .place-card {
    flex: 0 0 82% !important;
    max-width: 82% !important;
    scroll-snap-align: start;
    margin: 0 !important;
  }

  .cicerone-places .places-strip .place-card-link {
    display: block !important;
    height: 100%;
  }

  /* Imagen bien recortada a altura fija */
  .cicerone-places .place-card-thumb {
    width: 100% !important;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
  }

  .cicerone-places .place-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }
.cicerone-places-header{
    flex-direction: column;
     margin-left: -15px;
 }
  /* Un poco de aire en el texto */
  .cicerone-places .place-card-body {
    padding-top: 10px;
  }
}
/* =====================================
 * MOBILE – Singles (POI, Events, Rutas)
 * Quitar flechas de la galería principal
 * y de los carruseles de sitios recomendados
 * ===================================== */
@media (max-width: 768px) {

  /* 1) Flechas de la galería principal (por si usan slider prev/next) */
  .single-punto_de_interes .slider-prev,
  .single-punto_de_interes .slider-next,
  .single-cicerone-events .slider-prev,
  .single-rutas_recomendadas .slider-prev,
  .single-rutas_recomendadas .slider-next,
  .single-cicerone-events .slider-next {
    display: none !important;
  }

  /* 2) Flechas de carruseles dentro de los singles
        (sitios recomendados / otros bloques) */
  .single-punto_de_interes .cicerone-carousel .go-left,
  .single-punto_de_interes .cicerone-carousel .go-right,
  .single-cicerone-events .cicerone-carousel .go-left,
  .single-cicerone-events .cicerone-carousel .go-right,
  .single-rutas_recomendadas .cicerone-carousel .go-left,
  .single-rutas_recomendadas .cicerone-carousel .go-right {
    display: none !important;
  }
.detail-card.detail-card-schedule, .cicerone-detail-right .detail-card {padding: 0px;}
.detail-tag-pill{
    width: 100%;
}
}
/* =====================================
 * MOBILE – Single POI / Event / Route
 * Imagen principal full-width + sin flechas
 * ===================================== */
@media (max-width: 768px) {

  /* Ocultar flechas */
  .single-punto_de_interes .cicerone-gallery-nav,
  .single-cicerone-events .cicerone-gallery-nav,
  .single-rutas_recomendadas .cicerone-gallery-nav,
  /* Por si tus flechas llevan estas clases */
  .single-punto_de_interes .go-left,
  .single-punto_de_interes .go-right,
  .single-cicerone-events .go-left,
  .single-cicerone-events .go-right,
  .single-rutas_recomendadas .go-left,
  .single-rutas_recomendadas .go-right, .cicerone-detail-gallery-arrows {
    display: none !important;
  }

  /* Contenedor que envuelve la imagen principal */
  .single-punto_de_interes .cicerone-single-main-image,
  .single-cicerone-events .cicerone-single-main-image,
  .single-rutas_recomendadas .cicerone-single-main-image {
    margin: 0 -16px; /* Expande hasta los bordes del móvil */
    width: calc(100% + 32px);
  }

  /* Imagen principal */
  .single-punto_de_interes .cicerone-single-main-image img,
  .single-cicerone-events .cicerone-single-main-image img,
  .single-rutas_recomendadas .cicerone-single-main-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 18px;
    object-fit: cover;
    display: block;
  }

  /* Por si la imagen estaba en un wrapper con medidas fijas */
  .single-punto_de_interes .cicerone-image-wrapper,
  .single-cicerone-events .cicerone-image-wrapper,
  .single-rutas_recomendadas .cicerone-image-wrapper {
    width: 100% !important;
    height: auto !important;
  }
}
@media (min-width: 1200px){
  :root{ --site-gutter: 128px; }

  /* Este suele ser el culpable: limita a 1200px */
  .cicerone-carousel,
  .cicerone-places,
  .cicerone-calendar-container{
    max-width: calc(100% - (var(--site-gutter) * 2)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
}
@media (min-width: 1200px){
  /* Evita doble centrado por wrappers internos típicos */
  .cicerone-carousel .elementor-container,
  .cicerone-places .elementor-container,
  .cicerone-calendar-container .elementor-container,
  .cicerone-carousel .container,
  .cicerone-places .container,
  .cicerone-calendar-container .container{
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
.place-card {
	max-width: 256px;
}
.cic-exp-modal__panel{
	display:none;
}

@media (min-width: 1200px){
  :root{ --cicerone-gutter: 128px; }

  /* 1) Liberar el contenedor del theme para estas fichas */
  body.single-punto_de_interes .site-content,
  body.single-punto_de_interes .content-area,
  body.single-punto_de_interes .entry-content,
  body.single-punto_de_interes .elementor,
  body.single-punto_de_interes .elementor-section-wrap{
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* 2) Ahora sí: margen 128 dentro de tu layout */
  body.single-punto_de_interes .cicerone-detail-page{
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--cicerone-gutter) !important;
    padding-right: var(--cicerone-gutter) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* 3) Evitar que algún hijo vuelva a auto-centrarse a 1200 */
  body.single-punto_de_interes .cicerone-detail-page .cicerone-carousel,
  body.single-punto_de_interes .cicerone-detail-page .cicerone-detail-header,
  body.single-punto_de_interes .cicerone-detail-page .cicerone-detail-hero,
  body.single-punto_de_interes .cicerone-detail-page .cicerone-detail-main,
  body.single-punto_de_interes .cicerone-detail-page .cicerone-detail-tags,
  body.single-punto_de_interes .cicerone-detail-page .cicerone-detail-recommended{
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
.cicerone-detail-recommended .place-card {
	max-width: 256px;
}
.cicerone-search-page {
	max-width:none;
}
/* BUSCADOR: solo cuando existe el bloque de búsqueda */
body .elementor-element-b7cff68:has(.cicerone-search-page){
  padding-top: 0 !important;
  padding-left: 0 !important;
	padding-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  gap: 0 !important;
  min-height: 0 !important;
}

/* ===== Categorías: layout fullwidth con padding lateral fijo ===== */
.cicerone-list-category{
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}
.cicerone-list-category .cicerone-filters {
	margin-left:128px;
}
/* <1441px: máx 8 cards (2 filas x 4) */
@media (max-width: 1440px){
.cicerone-places .places-strip:not(.places-flat-grid) .place-card:nth-child(n+9) {
    display: none !important;
}
}

/* >=1441px: 4 columnas fluidas, cards crecen hasta llenar el espacio */
@media (min-width: 1441px){
  .cicerone-places .places-strip{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 16px;
    row-gap: 32px;
    max-width: 1760px;   /* tope ultra-wide */
    margin-left: auto;
    margin-right: auto;
  }
.cicerone-places .places-strip:not(.places-flat-grid) .place-card:nth-child(n+9) {
    display: none !important;
}
  .cicerone-places .places-strip .place-card{
    width: 100%;
    max-width: none;
  }
}

/* Search-page: igual, 4 columnas fluidas >= 1441px */
@media (min-width: 1441px){
  .cicerone-search-page .cicerone-places .places-strip{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 1760px;
    margin-left: auto;
    margin-right: auto;
  }
  .cicerone-search-page .cicerone-places .places-strip .place-card{
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 1200px){
  :root{ --cicerone-gutter: 128px; }

  body.single .site-content,
  body.single .content-area,
  body.single .elementor,
  body.single .elementor-section-wrap{
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .cicerone-detail-page{
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--cicerone-gutter) !important;
    padding-right: var(--cicerone-gutter) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

.cicerone-search-page {
    max-width: none !important;
    margin: -1rem auto;
    padding: 0 1rem 3rem;
}

.cicerone-carousel.recommended-carousel {
    padding: 0px;
    margin: 0px !important;
}

/* Categorías: 5 columnas a partir de 1400px */
@media (min-width: 1400px){
  .cicerone-list-category .cicerone-items-wrapper{
    grid-template-columns: repeat(5, 1fr);
  }
  .cicerone-list-category{
    max-width: 1760px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
}

/* Categorías: 6 columnas a partir de 1800px */
@media (min-width: 1800px){
  .cicerone-list-category .cicerone-items-wrapper{
    grid-template-columns: repeat(6, 1fr);
  }
}
/* =========================================
   PLACES, CATEGORÍAS Y BÚSQUEDA
   4 columnas fluidas a partir de 1441px
   ========================================= */

/* <1441px: máx 8 cards en places */
@media (max-width: 1440px){
.cicerone-places .places-strip:not(.places-flat-grid) .place-card:nth-child(n+9) {
    display: none !important;
}
}

/* >=1441px: 4 columnas fluidas en places */
@media (min-width: 1441px){
  .cicerone-places .places-strip{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 16px;
    row-gap: 32px;
    max-width: 1760px;
    margin-left: auto;
    margin-right: auto;
  }
.cicerone-places .places-strip:not(.places-flat-grid) .place-card:nth-child(n+9) {
    display: none !important;
}
  .cicerone-places .places-strip .place-card,
  .cicerone-search-page .cicerone-places .places-strip .place-card{
    width: 100%;
    max-width: none;
  }

  /* Search-page: hereda las 4 fluidas */
  .cicerone-search-page .cicerone-places .places-strip{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 1760px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Categorías (taxonomy): 4 columnas fluidas */
  .cicerone-list-category .cicerone-items-wrapper{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    max-width: 1760px;
    margin-left: auto;
    margin-right: auto;
  }
  .cicerone-list-category{
    max-width: 1760px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }

  /* Grid de búsqueda: 4 columnas fluidas */
  .cicerone-search-grid{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px;
    max-width: 1760px;
    margin-left: auto;
    margin-right: auto;
  }
  .cicerone-search-grid .place-card{
    flex: unset;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

/* Categorías: 5 columnas a partir de 1800px */
@media (min-width: 1800px){
  .cicerone-list-category .cicerone-items-wrapper{
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px){
  :root{ --cicerone-gutter: 128px; }

  body.single .site-content,
  body.single .content-area,
  body.single .entry-content,
  body.single .elementor,
  body.single .elementor-section-wrap{
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .cicerone-detail-page{
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--cicerone-gutter) !important;
    padding-right: var(--cicerone-gutter) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

.cicerone-search-page {
    max-width: none !important;
    margin: -1rem auto;
    padding: 0 1rem 3rem;
}

.cicerone-carousel.recommended-carousel {
    padding: 0px;
    margin: 0px !important;
}

@media (min-width: 1441px){
  /* Taxonomy categories: el wrapper tiene ambas clases */
  .cicerone-list-category .cicerone-items-wrapper,
  .cicerone-list-category .cicerone-items-wrapper.cicerone-places {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: 250px !important;
    column-gap: 16px !important;
    row-gap: 32px !important;
    width: 100% !important;
    max-width: none !important;
  }
  /* Las place-card dentro del wrapper de taxonomy también deben crecer */
  .cicerone-list-category .cicerone-items-wrapper .place-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: unset !important;
  }
  .cicerone-list-category {
    width: 100% !important;
    max-width: 1760px !important;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  /* Taxonomy categories: mismo comportamiento que places-strip en mobile */
  .cicerone-list-category .cicerone-items-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 -16px 16px;
    padding: 0 16px 10px;
    grid-template-columns: unset !important;
  }

  .cicerone-list-category .cicerone-items-wrapper::-webkit-scrollbar {
    display: none;
  }
  .cicerone-list-category .cicerone-items-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Cada card ocupa ~82% para que se vea un trozo de la siguiente */
  .cicerone-list-category .cicerone-items-wrapper .place-card {
    flex: 0 0 82% !important;
    max-width: 82% !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    grid-auto-rows: unset !important;
  }

  /* Imagen con ratio fijo */
  .cicerone-list-category .cicerone-items-wrapper .place-card-thumb {
    width: 100% !important;
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    aspect-ratio: unset !important;
  }

  .cicerone-list-category .cicerone-items-wrapper .place-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }

  /* Texto de la card */
  .cicerone-list-category .cicerone-items-wrapper .place-card-body {
    padding-top: 10px;
  }
}
@media (max-width: 768px) {
  .cicerone-list-category .cicerone-items-wrapper {
    grid-auto-rows: unset !important;
    height: auto !important;
  }

  /* La card no debe tener altura fija */
  .cicerone-list-category .cicerone-items-wrapper .place-card,
  .cicerone-list-category .cicerone-items-wrapper .cicerone-card {
    height: auto !important;
    grid-auto-rows: unset !important;
  }

  /* Solo la imagen tiene altura fija, el texto fluye libremente */
  .cicerone-list-category .cicerone-items-wrapper .card-image-wrapper {
    height: 190px !important;
    border-radius: 18px;
    overflow: hidden;
  }

  /* Asegurar que el contenido de texto es visible */
  .cicerone-list-category .cicerone-items-wrapper .card-content,
  .cicerone-list-category .cicerone-items-wrapper .place-card-body {
    height: auto !important;
    overflow: visible !important;
    padding: 8px 4px 0;
  }

  .cicerone-list-category .cicerone-items-wrapper .card-title,
  .cicerone-list-category .cicerone-items-wrapper .place-card-title {
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    white-space: normal !important;
  }
}
@media (max-width: 768px) {

  .cicerone-detail-hero {
    margin-left: -16px;
    margin-right: -16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
  }

  .cicerone-detail-gallery {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    min-height: unset !important;
    margin-left: 15px !important;
    padding-right: 0 !important;
    cursor: grab !important;
    width: 100% !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    box-sizing: border-box !important;
  }

  .cicerone-detail-gallery::-webkit-scrollbar { display: none; }

  .cicerone-detail-gallery-item,
  .cicerone-detail-gallery-item.is-main,
  .cicerone-detail-gallery-item.is-side-top,
  .cicerone-detail-gallery-item.is-side-bottom,
  .cicerone-detail-gallery-item.is-extra {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: unset !important;
    height: 240px !important;
    min-height: unset !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    scroll-snap-align: start !important;
  }

  .cicerone-detail-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
}
.cicerone-flat-hidden {
    display: none !important;
}
.cicerone-detail-hero {
    max-height: 512px;
}

.cicerone-detail-gallery {
    max-height: 512px;
}

.cicerone-detail-gallery-item {
    max-height: 512px;
}

.cicerone-detail-gallery-item.is-main {
    max-height: 512px;
}
.hero-with-search {
    position: relative !important;
}

.hero-with-search > .elementor-container,
.hero-with-search .elementor-column,
.hero-with-search .elementor-widget-wrap {
    position: static !important;
}

.hero-with-search .elementor-widget-shortcode:last-child {
    position: absolute !important;
    bottom: -24px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
}

.hero-with-search .cicerone-search-wrapper {
    max-width: 640px !important;
    margin: 0 auto !important;
}
/* La card en columna para que ocupe toda la altura del viewport */
.cicerone-carousel.routes-carousel .cicerone-card.route-card {
    display: flex !important;
    flex-direction: column;
}

/* El inner también en columna ocupando toda la altura */
.routes-carousel .route-card-inner {
    flex: 1;
}

/* El body ocupa el espacio restante y empuja cta y more al fondo */
.routes-carousel .route-card-body {
    flex: 1;
    justify-content: space-between;
}

/* El título ocupa el espacio libre, empujando días+cta+more abajo */
.routes-carousel .route-title {
    flex: 1;
}

/* CTA y more siempre al fondo */
.routes-carousel .route-cta {
    margin-top: auto;
}

.routes-carousel .route-more {
    display: block;
    text-align: center;
    margin-top: 8px;
}
nav.onetap-accessibility.onetap-plugin-onetap .onetap-container .onetap-accessibility-settings header.onetap-header-top .onetap-languages{
	display:none!important;
}