/* Destination detail page (.dx-*): a photo-led hero, a facts strip, a sticky section nav,
   scannable topic cards instead of a wall of text, and a dark plan card.
   Brand colour follows the admin theme colour via --theme-color. */

.dx {
    --d-ink: var(--header, #151415);
    --d-text: var(--text, #455151);
    --d-line: #e8e3d9;
    --d-soft: #f5f1e9;
    --d-brand: var(--theme-color, #e49759);
    --d-brand-soft: color-mix(in srgb, var(--theme-color, #e49759) 16%, #fff);
    --d-peak: #1d6b47;
    --d-ease: cubic-bezier(.16, 1, .3, 1);
    color: var(--d-text);
}

.dx [hidden] {
    display: none !important;
}

.dx ::selection {
    background: color-mix(in srgb, var(--d-brand) 40%, #fff);
    color: var(--d-ink);
}

.dx h1, .dx h2, .dx h3, .dx h4 {
    text-transform: none;
    text-wrap: balance;
    color: var(--d-ink);
}

/* ---------- Hero ---------- */

.dx-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(540px, 80vh, 840px);
    overflow: hidden;
    background: #1b1a19;
    color: #fff;
}

.dx-hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: dxSettle 1.8s var(--d-ease) both;
}

.dx-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(14, 13, 12, .5) 0%, rgba(14, 13, 12, 0) 26%, rgba(14, 13, 12, .3) 52%, rgba(14, 13, 12, .88) 100%);
}

.dx-hero__inner {
    width: 100%;
    padding-top: 140px;
    padding-bottom: 112px;
}

.dx-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 22px;
    font-size: 14.5px;
    font-weight: 500;
}

.dx-crumbs a {
    color: rgba(255, 255, 255, .86);
}

.dx-crumbs a:hover {
    color: #fff;
}

.dx-crumbs i {
    font-size: 11px;
    opacity: .6;
}

.dx-hero .dx-hero__title {
    max-width: 16ch;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 7.2vw, 92px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.03em;
}

.dx-hero__place {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
    font-weight: 500;
}

.dx-hero__place i {
    color: var(--d-brand);
}

.dx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.dx-tags li {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.dx-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

/* ---------- Buttons ---------- */

.dx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 30px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s var(--d-ease), color .25s var(--d-ease), border-color .25s var(--d-ease), transform .25s var(--d-ease);
}

.dx-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.dx-btn--solid {
    background: var(--d-brand);
    color: var(--d-ink);
}

.dx-btn--solid:hover {
    background: #fff;
    color: var(--d-ink);
}

.dx-btn--solid i {
    transition: transform .3s var(--d-ease);
}

.dx-btn--solid:hover i {
    transform: translateX(4px);
}

.dx-btn--ghost {
    border-color: rgba(255, 255, 255, .7);
    background: transparent;
    color: #fff;
}

.dx-btn--ghost:hover {
    background: #fff;
    color: var(--d-ink);
}

.dx-btn--light {
    background: #fff;
    color: var(--d-ink);
}

.dx-btn--light:hover {
    background: var(--d-brand-soft);
    color: var(--d-ink);
}

.dx-btn--block {
    display: flex;
    width: 100%;
}

/* ---------- Facts strip ---------- */

.dx-factswrap {
    position: relative;
    z-index: 3;
    margin-top: -64px;
}

.dx-facts {
    display: grid;
    grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
    margin: 0;
    padding: 8px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px -24px rgba(20, 18, 15, .35), 0 2px 8px rgba(20, 18, 15, .06);
}

.dx-fact {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 22px 26px;
}

.dx-fact + .dx-fact {
    border-left: 1px solid var(--d-line);
}

.dx-fact__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--d-brand-soft);
    color: var(--d-ink);
    font-size: 18px;
}

.dx-fact dt {
    margin: 0 0 4px;
    color: var(--d-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dx-fact dd {
    margin: 0;
    color: var(--d-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* ---------- Section nav ---------- */

.dx-nav {
    position: sticky;
    top: var(--dx-top, 70px);
    z-index: 20;
    margin-top: 48px;
    border-bottom: 1px solid var(--d-line);
    background: #fff;
}

.dx-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dx-nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.dx-nav ul::-webkit-scrollbar {
    display: none;
}

.dx-nav li {
    flex: 0 0 auto;
}

.dx-nav ul a {
    position: relative;
    display: block;
    padding: 20px 0;
    color: var(--d-text);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: color .2s var(--d-ease);
}

.dx-nav ul a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--d-brand);
    transform: scaleX(0);
    transition: transform .35s var(--d-ease);
}

.dx-nav ul a:hover,
.dx-nav ul a[aria-current="true"] {
    color: var(--d-ink);
}

.dx-nav ul a[aria-current="true"]::after {
    transform: scaleX(1);
}

.dx-nav ul a:focus-visible {
    outline: 2px solid var(--d-ink);
    outline-offset: 4px;
}

.dx-nav__cta {
    flex: 0 0 auto;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--d-ink);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    transition: background-color .25s var(--d-ease), color .25s var(--d-ease);
}

.dx-nav__cta:hover {
    background: var(--d-brand);
    color: var(--d-ink);
}

/* ---------- Body ---------- */

.dx-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 72px;
    padding-top: 24px;
    padding-bottom: 130px;
    align-items: start;
}

.dx-main {
    min-width: 0;
}

.dx-sec {
    margin-top: 88px;
    scroll-margin-top: 140px;
}

.dx-sec:first-child {
    margin-top: 64px;
}

.dx-sec > h2 {
    margin: 0 0 30px;
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.dx-sec > h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 20px;
    border-radius: 3px;
    background: var(--d-brand);
}

.dx-overview {
    max-width: 68ch;
    font-size: 18px;
    line-height: 1.75;
}

.dx-overview p {
    margin: 0 0 1.2em;
}

.dx-overview > p:first-of-type {
    color: var(--d-ink);
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -.005em;
}

.dx-overview h3 {
    margin: 1.8em 0 .5em;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.2;
}

.dx-overview strong {
    color: var(--d-ink);
}

.dx-places {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.dx-places li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--d-soft);
    color: var(--d-ink);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: capitalize;
}

.dx-places i {
    color: var(--d-brand);
    font-size: 13px;
}

/* ---------- Topic cards (the long copy, made scannable) ---------- */

.dx-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.dx-card {
    border: 1px solid var(--d-line);
    border-radius: 22px;
    background: #fff;
    transition: border-color .3s var(--d-ease), box-shadow .35s var(--d-ease), transform .35s var(--d-ease), background-color .3s var(--d-ease);
}

.dx-card:hover {
    border-color: color-mix(in srgb, var(--d-brand) 55%, var(--d-line));
    box-shadow: 0 18px 40px -22px rgba(20, 18, 15, .3);
    transform: translateY(-3px);
}

.dx-card[open] {
    border-color: var(--d-brand);
    background: #fffdf8;
    transform: none;
}

.dx-card summary {
    display: block;
    padding: 28px 28px 24px;
    list-style: none;
    cursor: pointer;
    border-radius: 22px;
}

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

.dx-card summary:focus-visible {
    outline: 3px solid var(--d-ink);
    outline-offset: 2px;
}

.dx-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.dx-card summary p {
    margin: 0 0 20px;
    font-size: 16.5px;
    line-height: 1.65;
}

.dx-card__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--d-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.dx-card__more i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--d-brand-soft);
    font-size: 12px;
    transition: transform .35s var(--d-ease), background-color .25s var(--d-ease);
}

.dx-card:hover .dx-card__more i {
    background: var(--d-brand);
}

.dx-card[open] .dx-card__more i {
    transform: rotate(45deg);
}

.dx-card__more-close,
.dx-card[open] .dx-card__more-open {
    display: none;
}

.dx-card[open] .dx-card__more-close {
    display: inline;
}

.dx-card__body {
    padding: 4px 28px 30px;
    font-size: 16.5px;
    line-height: 1.75;
}

.dx-card__body > :first-child {
    margin-top: 0;
}

.dx-card__body p {
    margin: 0 0 1em;
}

.dx-card__body h4,
.dx-card__body h5 {
    margin: 1.4em 0 .4em;
    font-size: 18px;
}

.dx-card__body ul,
.dx-card__body ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

.dx-card__body li {
    margin-bottom: .4em;
}

.dx-card__body a {
    color: var(--d-ink);
    text-decoration: underline;
    text-decoration-color: var(--d-brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.dx-showall {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px auto 0;
    padding: 16px 30px;
    border: 1.5px solid var(--d-ink);
    border-radius: 999px;
    background: transparent;
    color: var(--d-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .25s var(--d-ease), color .25s var(--d-ease);
}

.dx-showall:hover {
    background: var(--d-ink);
    color: #fff;
}

.dx-showall:focus-visible {
    outline: 3px solid var(--d-brand);
    outline-offset: 3px;
}

.dx-showall i {
    font-size: 13px;
    transition: transform .3s var(--d-ease);
}

.dx-showall[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* ---------- Best time panel, tours, map, nearby ---------- */

.dx-sec--panel {
    padding: 60px clamp(24px, 4vw, 60px) 52px;
    border-radius: 30px;
    background: var(--d-soft);
}

.dx-tours {
    margin-bottom: 8px;
}

.dx .dd-map {
    height: 420px;
    border-radius: 24px;
}

/* ---------- Plan card ---------- */

.dx-aside {
    position: sticky;
    top: calc(var(--dx-top, 70px) + var(--dx-nav-h, 56px) + 24px);
    display: grid;
    gap: 20px;
    margin-top: 64px;
}

.dx-plan {
    padding: 36px 32px 32px;
    border-radius: 28px;
    background: var(--d-ink);
    color: rgba(255, 255, 255, .8);
}

.dx-plan h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.dx-plan p {
    margin: 0 0 24px;
    font-size: 16.5px;
    line-height: 1.65;
}

.dx-plan__rows {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.dx-plan__rows li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 15.5px;
}

.dx-plan__rows strong {
    color: #fff;
    font-weight: 700;
    text-align: right;
}

.dx-plan .dx-btn + .dx-btn {
    margin-top: 12px;
}

/* ---------- Motion ---------- */

.dx-crumbs,
.dx-hero__title,
.dx-hero__place,
.dx-tags,
.dx-hero__cta {
    animation: dxRise .95s var(--d-ease) both;
}

.dx-crumbs { animation-delay: .15s; }
.dx-hero__title { animation-delay: .25s; }
.dx-hero__place { animation-delay: .4s; }
.dx-tags { animation-delay: .5s; }
.dx-hero__cta { animation-delay: .6s; }
.dx-factswrap { animation: dxRise 1s var(--d-ease) .75s both; }

@keyframes dxRise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

@keyframes dxSettle {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.dx-js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.dx-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity .8s var(--d-ease), transform .8s var(--d-ease);
    transition-delay: calc(var(--rd, 0) * 70ms);
}

.dx-js .dd-calendar:not(.is-in) .dd-month__bar {
    animation: none;
    transform: scaleY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
    .dx-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .dx-aside {
        position: static;
        margin-top: 88px;
    }

    .dx-nav__cta {
        display: none;
    }
}

@media (max-width: 991px) {
    .dx-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dx-fact:nth-child(odd) {
        border-left: 0;
    }

    .dx-fact:nth-child(n + 3) {
        border-top: 1px solid var(--d-line);
    }
}

@media (max-width: 767px) {
    .dx-hero {
        min-height: 560px;
    }

    .dx-hero__inner {
        padding-top: 110px;
        padding-bottom: 96px;
    }

    .dx-hero__place {
        font-size: 16.5px;
    }

    .dx-btn {
        min-height: 52px;
        padding: 0 24px;
        font-size: 16px;
    }

    .dx-hero__cta .dx-btn {
        flex: 1 1 100%;
    }

    .dx-factswrap {
        margin-top: -44px;
    }

    .dx-fact {
        padding: 18px 16px;
        gap: 12px;
    }

    .dx-fact__icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .dx-fact dd {
        font-size: 16px;
    }

    .dx-nav {
        margin-top: 32px;
    }

    .dx-nav ul {
        gap: 24px;
    }

    .dx-sec {
        margin-top: 64px;
    }

    .dx-sec:first-child {
        margin-top: 44px;
    }

    .dx-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .dx-card summary {
        padding: 24px 22px 20px;
    }

    .dx-card__body {
        padding: 2px 22px 26px;
    }

    .dx-sec--panel {
        padding: 40px 20px 36px;
        border-radius: 24px;
    }

    .dx .dd-map {
        height: 320px;
    }

    .dx-layout {
        padding-bottom: 96px;
    }

    .dx-plan {
        padding: 30px 24px 26px;
    }
}

@media (max-width: 479px) {
    .dx-fact {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dx-hero__img,
    .dx-crumbs,
    .dx-hero__title,
    .dx-hero__place,
    .dx-tags,
    .dx-hero__cta,
    .dx-factswrap {
        animation: none;
    }

    .dx-js [data-reveal],
    .dx-js [data-reveal].is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .dx-js .dd-calendar:not(.is-in) .dd-month__bar {
        transform: none;
    }

    .dx-card,
    .dx-card:hover,
    .dx-btn,
    .dx-card__more i,
    .dx-showall i,
    .dx-nav ul a::after {
        transition: none;
        transform: none;
    }
}

/* ---------- Tour page additions ---------- */

.dx-tour .dx-hero .dx-hero__title {
    max-width: 20ch;
}

.dx-tags a {
    color: #fff;
}

.dx-hero__price {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    font-weight: 500;
}

.dx-hero__price strong {
    margin: 0 6px 0 8px;
    color: #fff;
    font-size: clamp(30px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -.02em;
    vertical-align: -3px;
}

.dx-hero__price del {
    margin-right: 6px;
    opacity: .6;
}

.dx-tour .dx-tags i {
    margin-right: 6px;
    opacity: .85;
}

.dx-tour .dd-page {
    padding-top: 24px;
}

.dx-js .tp-days::before {
    transform: scaleY(0);
    transform-origin: top;
}

.dx-js .tp-days.is-in::before {
    transform: scaleY(1);
    transition: transform 1.6s var(--d-ease) .1s;
}

@media (max-width: 991px) {
    /* an odd last fact takes the full row instead of sitting alone */
    .dx-fact:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        border-top: 1px solid var(--d-line);
    }
}

@media (max-width: 767px) {
    .dx-hero__price {
        font-size: 15.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dx-js .tp-days::before,
    .dx-js .tp-days.is-in::before {
        transform: none;
        transition: none;
    }
}
