/* ─────────────────────────────────────────────────────────────────────────
 * Página de destino (taxonomy-destinations.php)
 * Usa los tokens de styles.css: --primary-color, --secondary-color,
 * --title-color, --text-color, --line-color, --light-bg, --border-radius.
 * ───────────────────────────────────────────────────────────────────────── */

.tika-dest {
    --dest-teal: #055E68;
    --dest-teal-50: #EEF7F7;
    --dest-teal-100: #D6ECEC;
    --dest-radius: 14px;
    color: var(--text-color);
    background: #fff;
    font-family: var(--font-family);
}

.tika-dest dt,
.tika-dest dd,
.tika-dest summary,
.tika-dest button {
    font-family: inherit;
}

.tika-dest-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.tika-dest-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    background-color: var(--dest-teal);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.tika-dest-hero__overlay {
    position: absolute;
    inset: 0;
    /* Oscuro arriba (menú legible sobre cualquier foto) y abajo (título) */
    background: linear-gradient(180deg, rgba(3, 25, 30, .7) 0%, rgba(3, 25, 30, .3) 35%, rgba(3, 25, 30, .4) 60%, rgba(3, 25, 30, .8) 100%);
}

.tika-dest-hero__inner {
    position: relative;
    padding-top: 150px;
    padding-bottom: 48px;
}

.tika-dest-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 18px;
    opacity: .9;
}

.tika-dest-breadcrumb a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tika-dest-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.tika-dest-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    font-weight: 700;
    max-width: 820px;
    margin: 0 0 18px;
}

.tika-dest-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tika-dest-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 6px 14px;
}

.tika-dest-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Botones ───────────────────────────────────────────────────────────── */
.tika-dest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.tika-dest-btn--primary {
    background: var(--dest-teal);
    color: #fff;
    border: 1px solid var(--dest-teal);
}

.tika-dest-btn--primary:hover {
    background: #044A52;
    color: #fff;
}

.tika-dest-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
}

.tika-dest-btn--ghost:hover {
    background: #fff;
    color: var(--primary-color);
}

/* ── Índice (sticky) ───────────────────────────────────────────────────── */
.tika-dest-toc {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid var(--line-color);
}

.tika-dest-toc__list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 10px;
    padding-bottom: 10px;
}

.tika-dest-toc__list::-webkit-scrollbar {
    display: none;
}

.tika-dest-toc__list a {
    flex: 0 0 auto;
    font-size: 14px;
    color: var(--title-color);
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.tika-dest-toc__list a:hover {
    background: var(--dest-teal-50);
    color: var(--dest-teal);
}

/* ── Cuerpo y secciones ────────────────────────────────────────────────── */
.tika-dest-body {
    padding-top: 48px;
    padding-bottom: 72px;
}

.tika-dest-section {
    margin-bottom: 64px;
    scroll-margin-top: 72px;
}

.tika-dest-section h2,
.tika-dest-cta h2 {
    color: var(--primary-color);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 18px;
}

.tika-dest-section__head {
    margin-bottom: 24px;
}

.tika-dest-section__head p {
    margin: 0;
}

/* Texto editorial (HTML de los campos ft_dest_*) */
.tika-dest-prose {
    max-width: 820px;
    font-size: 17px;
    line-height: 1.75;
}

.tika-dest-prose p {
    margin: 0 0 1em;
}

.tika-dest-prose h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.6em 0 .5em;
}

.tika-dest-prose strong {
    color: var(--title-color);
}

.tika-dest-prose a {
    color: var(--dest-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tika-dest-prose ul,
.tika-dest-prose ol {
    margin: 0 0 1em;
    padding-left: 1.3em;
}

.tika-dest-prose ul {
    list-style: disc;
}

.tika-dest-prose ol {
    list-style: decimal;
}

.tika-dest-prose li {
    margin-bottom: .5em;
}

.tika-dest-prose li::marker {
    color: var(--dest-teal);
}

.tika-dest-intro {
    font-size: 18px;
}

/* Listas destacadas (qué ver / qué llevar) en 2 columnas en escritorio */
@media (min-width: 900px) {
    .tika-dest-highlights {
        max-width: none;
    }

    .tika-dest-highlights ul {
        columns: 2;
        column-gap: 48px;
    }

    .tika-dest-highlights li {
        break-inside: avoid;
    }
}

.tika-dest-boxed {
    max-width: none;
    background: var(--dest-teal-50);
    border-radius: var(--dest-radius);
    padding: 32px;
}

/* ── Tours ─────────────────────────────────────────────────────────────── */
.tika-dest-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tika-dest-empty {
    text-align: center;
    background: var(--light-bg);
    border-radius: var(--dest-radius);
    padding: 48px 24px;
}

.tika-dest-empty i {
    font-size: 36px;
    color: var(--dest-teal);
    margin-bottom: 12px;
}

.tika-dest-empty p {
    max-width: 560px;
    margin: 0 auto 20px;
}

/* ── Tarjetas de subdestinos / otros destinos ──────────────────────────── */
.tika-dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.tika-dest-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--dest-radius);
    overflow: hidden;
    background: var(--dest-teal);
    text-decoration: none;
}

.tika-dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.tika-dest-card:hover img {
    transform: scale(1.05);
}

.tika-dest-card__body {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 40px 16px 14px;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(3, 25, 30, .8) 100%);
}

.tika-dest-card__body strong {
    font-size: 18px;
}

.tika-dest-card__body small {
    font-size: 13px;
    opacity: .9;
}

/* ── Datos importantes ─────────────────────────────────────────────────── */
.tika-dest-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 0;
}

.tika-dest-fact {
    border: 1px solid var(--line-color);
    border-radius: var(--dest-radius);
    padding: 18px;
}

.tika-dest-fact dt {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.tika-dest-fact dt i {
    color: var(--dest-teal);
    margin-right: 4px;
}

.tika-dest-fact dd {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

/* ── Mapa ──────────────────────────────────────────────────────────────── */
.tika-dest-map {
    border-radius: var(--dest-radius);
    overflow: hidden;
    border: 1px solid var(--line-color);
}

.tika-dest-map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

/* ── FAQs ──────────────────────────────────────────────────────────────── */
.tika-dest-faqs {
    max-width: 820px;
    display: grid;
    gap: 12px;
}

.tika-dest-faq {
    border: 1px solid var(--line-color);
    border-radius: var(--dest-radius);
    padding: 0 20px;
}

.tika-dest-faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: var(--primary-color);
    font-weight: 600;
}

.tika-dest-faq summary::-webkit-details-marker {
    display: none;
}

.tika-dest-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--dest-teal);
    font-size: 22px;
    line-height: 1;
}

.tika-dest-faq[open] summary::after {
    content: "\2212";
}

.tika-dest-faq .tika-dest-prose {
    padding-bottom: 18px;
    font-size: 16px;
}

/* ── CTA ───────────────────────────────────────────────────────────────── */
.tika-dest-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--dest-teal);
    border-radius: var(--dest-radius);
    padding: 36px;
    margin-bottom: 64px;
}

.tika-dest-cta h2,
.tika-dest-cta p {
    color: #fff;
}

.tika-dest-cta p {
    max-width: 640px;
    margin: 0;
    opacity: .9;
}

.tika-dest-cta .tika-dest-btn--primary {
    background: #fff;
    color: var(--dest-teal);
    border-color: #fff;
}

.tika-dest-cta .tika-dest-btn--primary:hover {
    background: var(--dest-teal-100);
}

/* ── Móvil ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .tika-dest-hero {
        min-height: 400px;
    }

    .tika-dest-hero__inner {
        padding-top: 96px;
        padding-bottom: 32px;
    }

    .tika-dest-body {
        padding-top: 32px;
    }

    .tika-dest-section {
        margin-bottom: 48px;
    }

    .tika-dest-boxed,
    .tika-dest-cta {
        padding: 24px;
    }

    .tika-dest-prose {
        font-size: 16px;
    }

    .tika-dest-map iframe {
        height: 300px;
    }
}
