/**
 * ═══════════════════════════════════════════════════════════════════════════
 * TOURWILL — DESTINATION CATEGORY TEMPLATE
 * Mobile-first stylesheet for taxonomy-destination-category.php
 *
 * Design tokens follow the Tourwill brand:
 *   --color-primary  : #134e4a   (deep teal)
 *   --color-accent   : #eab308   (warm gold)
 *   --color-bg       : #f8f8f6   (off-white)
 * ═══════════════════════════════════════════════════════════════════════════
 */

:root {
    --dcat-primary:        var(--color-primary, #134e4a);
    --dcat-primary-dark:   #0d3a35;
    --dcat-primary-deep:   #0a2e2a;
    --dcat-accent:         var(--color-accent, #eab308);
    --dcat-accent-dark:    #ca8a04;
    --dcat-ink:            #0f172a;
    --dcat-ink-soft:       #475569;
    --dcat-muted:          #94a3b8;
    --dcat-line:           #e5e7eb;
    --dcat-bg:             #ffffff;
    --dcat-bg-soft:        #f8f8f6;
    --dcat-bg-card:        #fffaf0;
    --dcat-radius-sm:      12px;
    --dcat-radius:         20px;
    --dcat-radius-lg:      28px;
    --dcat-shadow-sm:      0 2px 8px rgba(15, 23, 42, .06);
    --dcat-shadow:         0 12px 36px rgba(15, 23, 42, .08);
    --dcat-shadow-lg:      0 20px 60px rgba(15, 23, 42, .12);
    --dcat-ease:           cubic-bezier(.4, 0, .2, 1);
    --dcat-nav-height:     88px;   /* same as DLP — adjust if your nav differs */
}

/* ═══════════════════════════════════════════════════════════════════════════
 * BASE
 * ═══════════════════════════════════════════════════════════════════════════ */

.dcat-main {
    background: var(--dcat-bg);
    color: var(--dcat-ink);
    overflow-x: hidden;
    line-height: 1.55;
}

.dcat-main *,
.dcat-main *::before,
.dcat-main *::after { box-sizing: border-box; }

.dcat-section { padding: 40px 0; position: relative; }

.dcat-section__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.dcat-section__title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dcat-primary);
    margin: 0 0 20px;
    letter-spacing: -.01em;
    position: relative;
    padding-bottom: 6px;
    display: inline-block;
}
.dcat-section__title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    height: 3px; width: 36px;
    background: linear-gradient(90deg, var(--dcat-accent) 0%, transparent 100%);
    border-radius: 2px;
}

.dcat-empty {
    text-align: center;
    padding: 32px 16px;
    background: var(--dcat-bg-soft);
    border-radius: var(--dcat-radius);
    color: var(--dcat-ink-soft);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * BUTTONS
 * ═══════════════════════════════════════════════════════════════════════════ */

.dcat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .25s var(--dcat-ease), box-shadow .25s var(--dcat-ease),
                background .25s var(--dcat-ease), color .25s var(--dcat-ease);
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
}
.dcat-btn svg { width: 16px; height: 16px; }
.dcat-btn:hover { transform: translateY(-1px); }

.dcat-btn--primary {
    background: var(--dcat-accent);
    color: var(--dcat-ink);
    box-shadow: 0 8px 22px rgba(234, 179, 8, .35);
}
.dcat-btn--primary:hover {
    background: var(--dcat-accent-dark);
    box-shadow: 0 12px 28px rgba(234, 179, 8, .45);
}

.dcat-btn--primary-solid {
    background: var(--dcat-primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(19, 78, 74, .25);
    align-self: flex-start;
}
.dcat-btn--primary-solid:hover {
    background: var(--dcat-primary-dark);
    box-shadow: 0 12px 28px rgba(19, 78, 74, .35);
}

.dcat-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.dcat-btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .85);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * HERO
 * ═══════════════════════════════════════════════════════════════════════════ */

.dcat-hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}
.dcat-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.dcat-hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.dcat-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg,
            rgba(10, 46, 42, .94) 0%,
            rgba(13, 58, 53, .82) 35%,
            rgba(13, 58, 53, .45) 65%,
            rgba(13, 58, 53, .15) 100%);
}

.dcat-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: calc(48px + var(--dcat-nav-height));
    padding-bottom: 96px;
    position: relative;
}

.dcat-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 16px;
}
.dcat-breadcrumbs a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: color .2s;
}
.dcat-breadcrumbs a:hover { color: var(--dcat-accent); }
.dcat-breadcrumbs__current {
    color: rgba(255, 255, 255, .55);
    font-weight: 500;
}

.dcat-hero__content { max-width: 640px; }

.dcat-hero__eyebrow {
    color: var(--dcat-accent);
    font-style: italic;
    font-size: 14px;
    margin-bottom: 12px;
    display: inline-block;
}

.dcat-hero__title {
    font-size: clamp(32px, 7vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 16px;
    letter-spacing: -.02em;
    color: #fff;
}

.dcat-hero__desc {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
    max-width: 540px;
    margin: 0 0 24px;
}

.dcat-hero__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}
.dcat-hero__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
}
.dcat-hero__feature-icon {
    width: 28px; height: 28px;
    color: var(--dcat-accent);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dcat-hero__feature-icon svg { width: 100%; height: 100%; }
.dcat-hero__feature-text { line-height: 1.2; }

.dcat-hero__ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * QUICK INFO STRIP
 * ═══════════════════════════════════════════════════════════════════════════ */

.dcat-quick-info {
    position: relative;
    margin-top: -56px;
    margin-bottom: 24px;
    z-index: 5;
}
.dcat-quick-info__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.dcat-quick-info__card {
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: var(--dcat-radius);
    box-shadow: var(--dcat-shadow-lg);
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.dcat-quick-info__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.dcat-quick-info__icon {
    width: 28px; height: 28px;
    color: var(--dcat-primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.dcat-quick-info__icon svg { width: 100%; height: 100%; }
.dcat-quick-info__content { min-width: 0; }
.dcat-quick-info__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dcat-ink);
    margin: 0 0 2px;
    line-height: 1.3;
}
.dcat-quick-info__value {
    font-size: 12.5px;
    color: var(--dcat-ink-soft);
    margin: 0;
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * TABS
 * ═══════════════════════════════════════════════════════════════════════════ */

.dcat-tabs-section {
    padding: 16px 0 24px;
    position: sticky;
    top: 0;
    background: var(--dcat-bg);
    z-index: 8;
    border-bottom: 1px solid var(--dcat-line);
}
.dcat-tabs-section .dcat-section__title {
    font-size: 18px;
    margin: 0 0 12px;
}
.dcat-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    margin: 0 -16px;
    padding: 4px 16px;
}
.dcat-tabs::-webkit-scrollbar { display: none; }

.dcat-tabs__rail {
    display: inline-flex;
    gap: 8px;
    padding-right: 16px;
}

.dcat-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: var(--dcat-bg-soft);
    border: 1px solid var(--dcat-line);
    border-radius: 999px;
    color: var(--dcat-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s var(--dcat-ease), color .25s var(--dcat-ease),
                border-color .25s var(--dcat-ease), transform .25s var(--dcat-ease);
    flex-shrink: 0;
    scroll-snap-align: start;
    cursor: pointer;
}
.dcat-tab__avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.dcat-tab__name { line-height: 1.2; }

.dcat-tab:hover {
    background: #fff;
    border-color: var(--dcat-primary);
    color: var(--dcat-primary);
}
.dcat-tab.is-active {
    background: var(--dcat-primary);
    border-color: var(--dcat-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(19, 78, 74, .25);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * DESTINATION BLOCK
 * ═══════════════════════════════════════════════════════════════════════════ */

.dcat-dest {
    padding: 32px 0 24px;
    scroll-margin-top: 120px;  /* offset for sticky tabs */
}

.dcat-dest__card {
    background: #fff;
    border-radius: var(--dcat-radius);
    overflow: hidden;
    box-shadow: var(--dcat-shadow-sm);
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 24px;
}

.dcat-dest__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--dcat-bg-soft);
}
.dcat-dest__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--dcat-ease);
}
.dcat-dest__card:hover .dcat-dest__media img { transform: scale(1.04); }

.dcat-dest__body {
    padding: 24px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.dcat-dest__index {
    position: absolute;
    top: -16px;
    left: 20px;
    width: 40px; height: 40px;
    background: var(--dcat-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 6px 16px rgba(19, 78, 74, .3);
    letter-spacing: 0.5px;
}

.dcat-dest__title {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--dcat-ink);
    letter-spacing: -.015em;
}

.dcat-dest__intro {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dcat-ink-soft);
    margin: 0;
}

.dcat-dest__meta {
    list-style: none;
    padding: 0;
    margin: 4px 0 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.dcat-dest__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.dcat-dest__meta-icon {
    width: 26px; height: 26px;
    color: var(--dcat-primary);
    flex-shrink: 0;
    margin-top: 2px;
}
.dcat-dest__meta-icon svg { width: 100%; height: 100%; }
.dcat-dest__meta-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--dcat-ink);
    margin: 0;
    line-height: 1.2;
}
.dcat-dest__meta-value {
    font-size: 13px;
    color: var(--dcat-ink-soft);
    margin: 2px 0 0;
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * EXPERIENCES GRID
 * ═══════════════════════════════════════════════════════════════════════════ */

.dcat-experiences {
    margin-bottom: 16px;
}

.dcat-experiences__title {
    font-size: clamp(16px, 3.5vw, 20px);
    font-weight: 700;
    color: var(--dcat-ink);
    margin: 0 0 14px;
    line-height: 1.25;
}

.dcat-experiences__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 0 16px 8px;
}
.dcat-experiences__grid::-webkit-scrollbar { display: none; }

.dcat-exp-card {
    flex: 0 0 78%;
    max-width: 280px;
    background: #fff;
    border-radius: var(--dcat-radius-sm);
    overflow: hidden;
    box-shadow: var(--dcat-shadow-sm);
    border: 1px solid var(--dcat-line);
    scroll-snap-align: start;
    transition: transform .3s var(--dcat-ease), box-shadow .3s var(--dcat-ease);
}
.dcat-exp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dcat-shadow);
}
.dcat-exp-card__media {
    margin: 0;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--dcat-bg-soft);
}
.dcat-exp-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--dcat-ease);
}
.dcat-exp-card:hover .dcat-exp-card__media img { transform: scale(1.06); }
.dcat-exp-card__body {
    padding: 12px 14px 16px;
}
.dcat-exp-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dcat-ink);
    margin: 0 0 6px;
    line-height: 1.25;
}
.dcat-exp-card__desc {
    font-size: 12.5px;
    color: var(--dcat-ink-soft);
    margin: 0;
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * ACCORDION
 * ═══════════════════════════════════════════════════════════════════════════ */

.dcat-accordion {
    margin-top: 20px;
    border-top: 1px solid var(--dcat-line);
    padding-top: 16px;
}

.dcat-accordion__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 12px 16px;
    color: var(--dcat-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color .25s var(--dcat-ease);
    font-family: inherit;
}
.dcat-accordion__toggle:hover { color: var(--dcat-accent-dark); }

.dcat-accordion__chevron {
    width: 18px; height: 18px;
    transition: transform .3s var(--dcat-ease);
}
.dcat-accordion__toggle[aria-expanded="true"] .dcat-accordion__chevron {
    transform: rotate(180deg);
}

.dcat-accordion__panel {
    background: var(--dcat-bg-card);
    border-radius: var(--dcat-radius);
    margin-top: 12px;
    overflow: hidden;
    transition: max-height .35s var(--dcat-ease), opacity .25s var(--dcat-ease);
}
.dcat-accordion__panel[hidden] {
    display: block !important;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}
.dcat-accordion__panel:not([hidden]) {
    max-height: 1500px;
    opacity: 1;
}

.dcat-accordion__items {
    list-style: none;
    padding: 20px;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.dcat-accordion__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.dcat-accordion__icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--dcat-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--dcat-shadow-sm);
}
.dcat-accordion__icon svg { width: 18px; height: 18px; }
.dcat-accordion__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dcat-ink);
    margin: 0 0 2px;
    line-height: 1.25;
}
.dcat-accordion__value {
    font-size: 13px;
    color: var(--dcat-ink-soft);
    margin: 0;
    line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * OTHER DESTINATIONS GRID
 * ═══════════════════════════════════════════════════════════════════════════ */

.dcat-other { padding: 32px 0; }

.dcat-other__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.dcat-other-card {
    background: #fff;
    border-radius: var(--dcat-radius-sm);
    overflow: hidden;
    box-shadow: var(--dcat-shadow-sm);
    border: 1px solid var(--dcat-line);
    text-decoration: none;
    color: inherit;
    transition: transform .3s var(--dcat-ease), box-shadow .3s var(--dcat-ease);
    display: flex;
    flex-direction: column;
}
.dcat-other-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--dcat-shadow);
}
.dcat-other-card__media {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--dcat-bg-soft);
}
.dcat-other-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--dcat-ease);
}
.dcat-other-card:hover .dcat-other-card__media img { transform: scale(1.05); }
.dcat-other-card__body {
    padding: 14px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.dcat-other-card__text { min-width: 0; flex: 1; }
.dcat-other-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dcat-ink);
    margin: 0 0 2px;
    line-height: 1.25;
}
.dcat-other-card__desc {
    font-size: 12px;
    color: var(--dcat-ink-soft);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dcat-other-card__arrow {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--dcat-bg-soft);
    color: var(--dcat-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .25s, color .25s;
}
.dcat-other-card__arrow svg { width: 14px; height: 14px; }
.dcat-other-card:hover .dcat-other-card__arrow {
    background: var(--dcat-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * FINAL CTA
 * ═══════════════════════════════════════════════════════════════════════════ */

.dcat-final-cta {
    position: relative;
    margin: 24px 16px;
    border-radius: var(--dcat-radius-lg);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.dcat-final-cta__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.dcat-final-cta__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center right;
}
.dcat-final-cta__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(110deg,
        rgba(10, 46, 42, .94) 0%,
        rgba(13, 58, 53, .82) 50%,
        rgba(19, 78, 74, .35) 100%);
}
.dcat-final-cta__inner {
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.dcat-final-cta__title {
    font-size: clamp(20px, 4.5vw, 28px);
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
    color: #fff;
}
.dcat-final-cta__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .88);
    margin: 0;
    line-height: 1.5;
    max-width: 520px;
}
.dcat-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
 * RESPONSIVE — TABLET (≥ 640px)
 * ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 640px) {
    .dcat-section { padding: 52px 0; }
    .dcat-section__inner { padding: 0 24px; }

    .dcat-hero { border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; }
    .dcat-hero__inner {
        padding-left: 24px;
        padding-right: 24px;
        padding-top: calc(64px + var(--dcat-nav-height));
        padding-bottom: 120px;
    }
    .dcat-hero__features { grid-template-columns: repeat(4, 1fr); gap: 16px; }

    .dcat-quick-info__inner { padding: 0 24px; }
    .dcat-quick-info { margin-top: -64px; }
    .dcat-quick-info__card {
        grid-template-columns: 1fr 1fr;
        padding: 24px;
        gap: 24px;
    }

    .dcat-tabs-section { padding: 20px 0 24px; }

    .dcat-dest { padding: 40px 0 28px; }
    .dcat-dest__card { grid-template-columns: 1fr 1.1fr; }
    .dcat-dest__media { aspect-ratio: auto; min-height: 360px; }
    .dcat-dest__body { padding: 32px 30px; gap: 16px; }
    .dcat-dest__meta { grid-template-columns: repeat(3, 1fr); gap: 18px; }

    .dcat-experiences__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 0;
        padding: 0;
        gap: 16px;
        overflow: visible;
    }
    .dcat-exp-card { flex: none; max-width: none; }

    .dcat-accordion__items { grid-template-columns: 1fr 1fr; gap: 22px; }

    .dcat-other__grid { grid-template-columns: 1fr 1fr; gap: 20px; }

    .dcat-final-cta { margin: 32px 24px; }
    .dcat-final-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 40px 36px;
    }
    .dcat-final-cta__text { flex: 1; min-width: 0; }
    .dcat-final-cta__actions { flex-shrink: 0; flex-wrap: nowrap; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * RESPONSIVE — DESKTOP (≥ 1024px)
 * ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    .dcat-section { padding: 60px 0; }
    .dcat-section__inner { padding: 0 32px; }

    .dcat-hero__inner {
        padding-left: 32px;
        padding-right: 32px;
        padding-top: calc(80px + var(--dcat-nav-height));
        padding-bottom: 140px;
    }

    .dcat-quick-info__inner { padding: 0 32px; }
    .dcat-quick-info__card {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
        padding: 28px;
    }

    .dcat-tabs-section { padding: 24px 0 28px; }
    .dcat-tabs-section .dcat-section__title { font-size: 22px; margin-bottom: 16px; }
    .dcat-tabs { margin: 0; padding: 4px 0; overflow: visible; }
    .dcat-tabs__rail { flex-wrap: wrap; padding-right: 0; }

    .dcat-dest { padding: 48px 0 32px; }
    .dcat-dest__card { grid-template-columns: 1fr 1.15fr; }
    .dcat-dest__media { min-height: 420px; }
    .dcat-dest__body { padding: 40px 40px; gap: 18px; }

    .dcat-experiences__grid { grid-template-columns: repeat(4, 1fr); }

    .dcat-other__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }

    .dcat-final-cta__inner { padding: 48px 56px; gap: 32px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * ACCESSIBILITY
 * ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .dcat-main *,
    .dcat-main *::before,
    .dcat-main *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.dcat-main a:focus-visible,
.dcat-main button:focus-visible {
    outline: 2px solid var(--dcat-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ═════════════════════════════════════════════════════════════════════════
 * TOURWILL — DESTINATION CATEGORY TEMPLATE — POLISH v2
 *
 * APPEND THIS BLOCK to the END of:
 *   assets/css/pages/taxonomy-destination-category.css
 *
 * Fixes:
 *   • Issue 1 — Index badge no longer clipped (it now sits inside the card)
 *   • Issue 5 — Final CTA inner content always sits above the gradient overlay
 *   • Issue 6 — Beautiful editorial-style article inside the View More accordion
 *   • Smooth-scroll target offset for explore buttons
 * ═════════════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────────
 * FIX 1 — Index badge
 * Original `top: -16px` got clipped by `.dcat-dest__card { overflow: hidden }`.
 * We move the badge fully INSIDE the card and tighten its size.
 * ───────────────────────────────────────────────────────────────────── */
.dcat-dest__index {
    position: absolute;
    top: 18px;             /* was -16px (clipped) → now fully inside */
    left: 18px;
    width: 38px;
    height: 38px;
    background: var(--dcat-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(19, 78, 74, .35);
    z-index: 2;
    /* small entrance shimmer */
    border: 2px solid rgba(255, 255, 255, .25);
}

/* Tighten the body padding-top on tablet+ so the title doesn't overlap the badge */
@media (min-width: 640px) {
    .dcat-dest__body { padding-top: 36px; }
    .dcat-dest__index { top: 20px; left: 20px; }
}
@media (min-width: 1024px) {
    .dcat-dest__body { padding-top: 44px; }
    .dcat-dest__index { top: 24px; left: 24px; width: 42px; height: 42px; font-size: 14px; }
}


/* ─────────────────────────────────────────────────────────────────────
 * FIX 5 — Final CTA gradient stacking
 *
 * Bug: __overlay is position:absolute with no z-index, while __inner is
 * position:static. Absolute siblings paint ABOVE static siblings regardless
 * of DOM order — so the overlay was sitting on top of the buttons & text.
 *
 * Fix: give __overlay a z-index of 0 and __inner a z-index of 1 so the
 * stacking order matches the visual intent.
 * ───────────────────────────────────────────────────────────────────── */
.dcat-final-cta__overlay {
    z-index: 0;
}

.dcat-final-cta__inner {
    position: relative;
    z-index: 1;
}

.dcat-final-cta__bg {
    z-index: 0;            /* was -1 — bring it into the same stacking context */
}
.dcat-final-cta__bg img {
    position: relative;
    z-index: 0;
}


/* ─────────────────────────────────────────────────────────────────────
 * Explore button — smooth-scroll target offset
 * ───────────────────────────────────────────────────────────────────── */
.dcat-accordion {
    scroll-margin-top: 140px;
}


/* ─────────────────────────────────────────────────────────────────────
 * FIX 6 — Beautiful editorial article inside the accordion
 *
 * The accordion panel now contains an <article class="dcat-article">
 * with three optional sections:
 *   .dcat-article__lead         long-form description
 *   .dcat-article__highlights   bulleted list with check icons
 *   .dcat-article__facts        the at-a-glance metadata grid
 * ───────────────────────────────────────────────────────────────────── */

.dcat-accordion__panel {
    background: var(--dcat-bg-card);
    border-radius: var(--dcat-radius);
    overflow: hidden;
    margin-top: 14px;
}

.dcat-article {
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    color: var(--dcat-ink);
    max-width: 920px;
    margin: 0 auto;
}

.dcat-article__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(19, 78, 74, .12);
}

.dcat-article__eyebrow {
    color: var(--dcat-accent-dark, #ca8a04);
    font-style: italic;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.dcat-article__title {
    font-size: clamp(22px, 4.5vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dcat-primary);
    margin: 0;
    letter-spacing: -0.015em;
}

.dcat-article__subhead {
    font-size: 15px;
    font-weight: 700;
    color: var(--dcat-ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
    position: relative;
    padding-left: 14px;
}
.dcat-article__subhead::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--dcat-accent);
    border-radius: 2px;
}

/* Lead paragraph (the long-form description) */
.dcat-article__lead {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--dcat-ink-soft);
}
.dcat-article__lead p {
    margin: 0 0 14px;
}
.dcat-article__lead p:last-child { margin-bottom: 0; }

/* Drop-cap on the very first letter of the first paragraph */
.dcat-article__lead p:first-child::first-letter {
    font-size: 3.4em;
    line-height: 0.9;
    font-weight: 700;
    color: var(--dcat-primary);
    float: left;
    margin: 6px 10px 0 0;
    padding: 0 4px 0 0;
}
.dcat-article__lead-paragraph {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dcat-ink-soft);
    margin: 0;
    font-style: italic;
    padding: 0 16px;
    border-left: 3px solid var(--dcat-accent);
}

/* Highlights — compact, scannable bulleted list */
.dcat-article__highlights {
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(19, 78, 74, .08);
    border-radius: var(--dcat-radius-sm);
    padding: 22px 22px 24px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.dcat-article__hlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.dcat-article__hitem {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--dcat-ink);
}

.dcat-article__hicon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--dcat-primary);
    color: var(--dcat-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.dcat-article__hicon svg { width: 14px; height: 14px; }

/* At-a-glance facts grid */
.dcat-article__facts {
    background: #fff;
    border-radius: var(--dcat-radius-sm);
    padding: 22px 22px 24px;
    border: 1px solid rgba(19, 78, 74, .08);
}

.dcat-article__facts-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.dcat-article__fact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.dcat-article__fact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dcat-bg-card);
    color: var(--dcat-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(19, 78, 74, .1);
}
.dcat-article__fact-icon svg { width: 18px; height: 18px; }

.dcat-article__fact-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dcat-ink);
    margin: 0 0 4px;
    line-height: 1.2;
}
.dcat-article__fact-value {
    font-size: 14px;
    color: var(--dcat-ink-soft);
    margin: 0;
    line-height: 1.5;
}

/* Tablet refinements */
@media (min-width: 640px) {
    .dcat-article {
        padding: 36px 32px;
        gap: 32px;
    }
    .dcat-article__hlist {
        grid-template-columns: 1fr 1fr;
        gap: 14px 24px;
    }
    .dcat-article__facts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
}

/* Desktop refinements */
@media (min-width: 1024px) {
    .dcat-article {
        padding: 44px 40px 48px;
        gap: 36px;
    }
    .dcat-article__lead { font-size: 16.5px; line-height: 1.8; }
    .dcat-article__hitem { font-size: 15px; }
}
/* ═════════════════════════════════════════════════════════════════════════
 * TOURWILL — DESTINATION CATEGORY TEMPLATE — POLISH v3
 *
 * APPEND THIS BLOCK to the END of:
 *   assets/css/pages/taxonomy-destination-category.css
 *
 * (You can paste it right after the v2 polish block from the last round.
 *  Later rules override earlier ones, so this safely supersedes them.)
 *
 * Fix v3-1 — Number badge no longer overlaps the destination title.
 *           Badge now sits in the top-left corner of the IMAGE instead
 *           of the body area. Never collides with the title regardless
 *           of breakpoint.
 * ═════════════════════════════════════════════════════════════════════════ */

/* The image needs to be a positioning context for the badge. */
.dcat-dest__media {
    position: relative;
}

/* Reposition the badge: move it onto the image, top-left.
 * Use !important sparingly here only to override the earlier rule's `top`
 * value cleanly without depending on rule order between files.
 * The badge is now anchored to the image — it will follow the image
 * whether the card is stacked (mobile) or side-by-side (tablet+). */
.dcat-dest__index {
    top: 18px !important;
    left: 18px !important;
    width: 42px;
    height: 42px;
    font-size: 13px;
    background: var(--dcat-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    border: 2px solid rgba(255, 255, 255, .9);
    z-index: 3;
}

/* The badge lives inside the media figure now (see PHP change below).
 * If your previous body padding-top was bumped up to make room for the
 * badge, we reset it so the title sits at the normal place again. */
.dcat-dest__body {
    padding-top: 24px;
}
@media (min-width: 640px) {
    .dcat-dest__body { padding-top: 32px; }
    .dcat-dest__index { top: 20px !important; left: 20px !important; }
}
@media (min-width: 1024px) {
    .dcat-dest__body { padding-top: 40px; }
    .dcat-dest__index { top: 24px !important; left: 24px !important; width: 46px; height: 46px; font-size: 14px; }
}


/* ═════════════════════════════════════════════════════════════════════════
 * Fix v3-2 — Smooth "See all" popup for category sections
 *
 * Each section now has an info icon next to the title. Clicking it opens
 * a centered modal listing every term in that taxonomy (with image,
 * destination count, and a link to navigate). Closes on backdrop click,
 * Escape key, or X button.
 * ═════════════════════════════════════════════════════════════════════════ */

/* "See all" pill in the section header */
.dlp-section__see-all {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(19, 78, 74, .06);
    color: var(--dlp-primary, #134e4a);
    border: 1px solid rgba(19, 78, 74, .15);
    border-radius: 999px;
    padding: 8px 16px 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
    font-family: inherit;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.dlp-section__see-all svg { width: 14px; height: 14px; }
.dlp-section__see-all:hover {
    background: var(--dlp-primary, #134e4a);
    color: #fff;
    border-color: var(--dlp-primary, #134e4a);
    transform: translateY(-1px);
}
.dlp-section__see-all:focus-visible {
    outline: 2px solid var(--dlp-accent, #eab308);
    outline-offset: 2px;
}


/* Modal: backdrop + dialog */
.dlp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .25s ease;
    overscroll-behavior: contain;
}
.dlp-modal.is-open {
    display: flex;
    opacity: 1;
}

.dlp-modal__dialog {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 760px;
    max-height: 86vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
    transform: scale(.95) translateY(20px);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.dlp-modal.is-open .dlp-modal__dialog {
    transform: scale(1) translateY(0);
}

.dlp-modal__header {
    padding: 24px 28px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    flex-shrink: 0;
}
.dlp-modal__heading {
    margin: 0;
    flex: 1;
    min-width: 0;
}
.dlp-modal__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dlp-accent-dark, #ca8a04);
    font-style: italic;
    margin-bottom: 4px;
}
.dlp-modal__title {
    margin: 0;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dlp-primary, #134e4a);
    letter-spacing: -.015em;
}
.dlp-modal__close {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(15, 23, 42, .06);
    color: var(--dlp-ink, #0f172a);
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, color .2s, transform .2s;
}
.dlp-modal__close svg { width: 18px; height: 18px; }
.dlp-modal__close:hover {
    background: var(--dlp-primary, #134e4a);
    color: #fff;
    transform: rotate(90deg);
}

/* Body — scrollable grid of category cards */
.dlp-modal__body {
    overflow-y: auto;
    padding: 22px 28px 28px;
    flex: 1;
    min-height: 0;
}
.dlp-modal__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.dlp-modal__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--dlp-bg-soft, #f8f8f6);
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.dlp-modal__card:hover {
    background: #fff;
    border-color: rgba(19, 78, 74, .2);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}

.dlp-modal__thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--dlp-bg-card, #fffaf0);
    flex-shrink: 0;
}
/* When no image: gradient placeholder with first letter */
.dlp-modal__thumb-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--dlp-primary, #134e4a), #0a3a36);
    color: var(--dlp-accent, #eab308);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
}

.dlp-modal__content {
    flex: 1;
    min-width: 0;
}
.dlp-modal__name {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dlp-ink, #0f172a);
    line-height: 1.3;
}
.dlp-modal__count {
    margin: 0;
    font-size: 12.5px;
    color: var(--dlp-muted, #94a3b8);
    line-height: 1.3;
}

.dlp-modal__arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(19, 78, 74, .08);
    color: var(--dlp-primary, #134e4a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, color .2s, transform .2s;
}
.dlp-modal__arrow svg { width: 14px; height: 14px; }
.dlp-modal__card:hover .dlp-modal__arrow {
    background: var(--dlp-primary, #134e4a);
    color: #fff;
    transform: translateX(2px);
}

.dlp-modal__empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--dlp-muted, #94a3b8);
    font-size: 14px;
}

/* Tablet — 2 columns */
@media (min-width: 640px) {
    .dlp-modal__grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

/* Lock the body scroll when modal is open (added via JS) */
body.dlp-modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .dlp-modal,
    .dlp-modal__dialog,
    .dlp-modal__card,
    .dlp-modal__arrow,
    .dlp-modal__close,
    .dlp-section__see-all {
        transition: none !important;
    }
}