/*
 * Destinations page styles.
 *
 * The index uses page-scoped dest-* classes so legacy card rules from
 * luxury.css cannot leak into the listing. The page containers also restore
 * their centering and gutters because luxury.css has an unlayered universal
 * reset that overrides the layered .container-page rule in app.css.
 */

.dest-hero .container-page,
.dest-filter-bar .container-page,
.dest-results .container-page,
.dest-cta .container-page {
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 768px) {
    .dest-hero .container-page,
    .dest-filter-bar .container-page,
    .dest-results .container-page,
    .dest-cta .container-page {
        padding-inline: 2rem;
    }
}

@media (min-width: 1024px) {
    .dest-hero .container-page,
    .dest-filter-bar .container-page,
    .dest-results .container-page,
    .dest-cta .container-page {
        padding-inline: 3rem;
    }
}

/* ─── Index: hero ───────────────────────────────────────────────────────── */

.dest-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 480px;
    overflow: hidden;
    background: var(--bs-primary-dark, #002e1b);
    color: #ffffff;
}

.dest-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.dest-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

.dest-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(0, 18, 13, 0.58) 0%,
        rgba(0, 18, 13, 0.62) 55%,
        rgba(0, 18, 13, 0.76) 100%
    );
}

.dest-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: 5rem 4rem;
    text-align: center;
}

.dest-hero-title {
    max-width: 100%;
    margin: 0 auto;
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 3.4vw, 3rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.dest-hero-subtitle {
    max-width: 48rem;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-sans);
    font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
    font-weight: 400;
    line-height: 1.7;
}

.dest-hero-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 760px;
    min-height: 64px;
    margin: 2rem auto 0;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.28);
    text-align: left;
    transition: box-shadow 0.2s ease;
}

.dest-hero-search:focus-within {
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.6), 0 16px 36px -8px rgba(0, 0, 0, 0.28);
}

.dest-hero-search-icon {
    flex-shrink: 0;
    color: var(--bs-primary, #17452f);
    font-size: 15px;
}

.dest-hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
    color: var(--bs-on-surface, #1b1c1c);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    outline: none;
}

.dest-hero-search input:focus-visible {
    outline: none;
}

.dest-hero-search input::placeholder {
    color: var(--bs-charcoal-muted, #5a625c);
    opacity: 1;
}

.dest-hero-search-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--bs-primary, #17452f);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.dest-hero-search-btn:hover {
    background: var(--bs-primary-dark, #002e1b);
}

.dest-hero .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 768px) {
    .dest-hero {
        min-height: 520px;
    }

    .dest-hero-inner {
        padding-block: 6rem 4.5rem;
    }
}

@media (min-width: 1024px) {
    .dest-hero {
        min-height: 560px;
    }
}

@media (max-width: 640px) {
    .dest-hero {
        min-height: 460px;
    }

    .dest-hero-inner {
        padding-block: 4rem 3.5rem;
    }

    .dest-hero-search {
        min-height: 58px;
        margin-top: 1.5rem;
        padding: 0.375rem 0.375rem 0.375rem 1rem;
    }

    .dest-hero-search-btn {
        min-height: 46px;
        padding: 0 1rem;
    }
}

@media (max-width: 400px) {
    .dest-hero-search {
        gap: 0.5rem;
    }

    .dest-hero-search-btn {
        padding: 0 0.875rem;
        font-size: 12px;
    }

    .dest-hero-search-btn i {
        display: none;
    }

    .dest-hero-search input {
        font-size: 14px;
    }
}

/* ─── Index: filter bar ─────────────────────────────────────────────────── */

.dest-filter-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(48, 48, 48, 0.1);
}

.dest-filter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 0.75rem;
}

.dest-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dest-filter-chips .chip {
    min-height: 44px;
    padding: 0.625rem 1.125rem;
    border: 1px solid rgba(48, 48, 48, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: var(--bs-charcoal, #303030);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dest-filter-chips .chip:hover {
    border-color: var(--bs-outline-strong, #c1c9c1);
    background: var(--bs-surface-low, #f6f3f2);
}

.dest-filter-chips .chip-active,
.dest-filter-chips .chip-active:hover {
    border-color: var(--bs-primary, #17452f);
    background: var(--bs-primary, #17452f);
    color: #ffffff;
}

.dest-filter-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.dest-result-count {
    color: var(--bs-charcoal-muted, #5a625c);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.dest-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    border: 1px solid rgba(48, 48, 48, 0.16);
    border-radius: 999px;
    background: transparent;
    color: var(--bs-charcoal, #303030);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.dest-reset:hover {
    border-color: var(--bs-primary, #17452f);
    color: var(--bs-primary, #17452f);
}

@media (max-width: 767px) {
    .dest-filter-inner {
        align-items: flex-start;
    }

    .dest-filter-chips {
        width: 100%;
    }

    .dest-filter-meta {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .dest-filter-chips .chip {
        min-height: 42px;
        padding: 0.5rem 0.875rem;
        font-size: 12px;
    }
}

/* ─── Index: editorial heading ──────────────────────────────────────────── */

.dest-results {
    scroll-margin-top: 96px;
    background: var(--bs-surface, #fbf9f8);
}

.dest-results-inner {
    padding-block: 4.5rem 4rem;
}

.dest-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.dest-section-eyebrow {
    display: block;
    color: var(--bs-gold-dark, #735700);
}

.dest-section-title {
    max-width: 100%;
    margin: 0.75rem 0 0;
    color: var(--bs-primary, #17452f);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.1vw, 2.5rem);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.dest-section-desc {
    justify-self: end;
    max-width: 34rem;
    margin: 0 0 0.35rem;
    color: var(--bs-on-surface-var, #414943);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .dest-section-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .dest-section-desc {
        justify-self: start;
        max-width: 42rem;
        margin-top: 0.25rem;
    }
}

@media (max-width: 640px) {
    .dest-results-inner {
        padding-block: 3rem 2.75rem;
    }

    .dest-section-head {
        margin-bottom: 1.75rem;
    }

    .dest-section-title {
        max-width: 100%;
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .dest-section-desc {
        font-size: 0.9375rem;
        line-height: 1.65;
    }
}

/* ─── Index: destination cards ──────────────────────────────────────────── */

.dest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.dest-grid > * {
    min-width: 0;
}

@media (min-width: 640px) {
    .dest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .dest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

.dest-listing-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(48, 48, 48, 0.08);
    border-radius: var(--radius-card, 16px);
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 280ms cubic-bezier(.2, .65, .3, 1), box-shadow 280ms cubic-bezier(.2, .65, .3, 1);
}

.dest-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -8px rgba(23, 69, 47, 0.14);
}

.dest-listing-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bs-surface-container, #f0eded);
}

.dest-listing-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.dest-listing-card:hover .dest-listing-media img {
    transform: scale(1.02);
}

.dest-listing-badge {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--bs-primary, #17452f);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dest-listing-badge i {
    color: var(--bs-gold-dark, #735700);
    font-size: 11px;
}

.dest-listing-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .dest-listing-body {
        padding: 1.5rem;
    }
}

.dest-listing-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    color: var(--bs-on-surface-var, #414943);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.5;
}

.dest-listing-location i {
    flex-shrink: 0;
    color: var(--bs-gold-dark, #735700);
    font-size: 11px;
}

.dest-listing-title {
    display: -webkit-box;
    margin: 0.5rem 0 1.5rem;
    overflow: hidden;
    color: var(--bs-primary, #17452f);
    font-family: var(--font-serif);
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dest-listing-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(48, 48, 48, 0.12);
}

.dest-listing-price-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--bs-on-surface-var, #414943);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.dest-listing-price-value {
    display: block;
    color: var(--bs-primary, #17452f);
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.dest-listing-price-unit {
    color: var(--bs-on-surface-var, #414943);
    font-size: 11px;
    font-weight: 400;
}

.dest-listing-arrow {
    display: grid;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 999px;
    background: var(--bs-surface-container, #f0eded);
    color: var(--bs-primary, #17452f);
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dest-listing-card:hover .dest-listing-arrow {
    transform: translateX(2px);
    background: var(--bs-primary, #17452f);
    color: #ffffff;
}

@media (max-width: 400px) {
    .dest-listing-body {
        padding: 1.125rem;
    }

    .dest-listing-title {
        font-size: 1.5rem;
    }

    .dest-listing-price-value {
        font-size: 1.125rem;
    }

    .dest-listing-arrow {
        width: 40px;
        height: 40px;
    }
}

/* ─── Index: empty state and pagination ─────────────────────────────────── */

.dest-empty-state {
    padding: 5rem 1rem;
    border: 1px solid rgba(48, 48, 48, 0.08);
    border-radius: var(--radius-card, 16px);
    background: #ffffff;
    text-align: center;
}

.dest-empty-state i {
    color: var(--bs-outline-strong, #c1c9c1);
    font-size: 2.5rem;
}

.dest-empty-state p {
    margin: 1rem 0 0;
    color: var(--bs-on-surface-var, #414943);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
}

.dest-empty-state a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 1rem;
    color: var(--bs-primary, #17452f);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.dest-empty-state a:hover {
    color: var(--bs-primary-dark, #002e1b);
}

.dest-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ─── Index: closing CTA ────────────────────────────────────────────────── */

.dest-cta {
    padding-block: 2rem 4rem;
    background: var(--bs-surface, #fbf9f8);
}

.dest-cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: 3rem 3.5rem;
    border-radius: 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    background-image: url('../images/destinations/jatiluwih.webp');
    background-size: cover;
    background-position: center;
}

/* Dark gradient overlay — above image, below content */
.dest-cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 42, 29, 0.90) 0%, rgba(16, 42, 29, 0.60) 100%);
    border-radius: inherit;
    z-index: 0;
}

/* Keep all direct children above the overlay */
.dest-cta-copy,
.dest-cta-actions {
    position: relative;
    z-index: 1;
}

.dest-cta-copy {
    max-width: 44rem;
}

.dest-cta-eyebrow {
    color: #eec14b;
}

.dest-cta h2 {
    margin: 0.75rem 0 0;
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dest-cta p {
    max-width: 40rem;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
}

.dest-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 220px;
}

.dest-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dest-cta-btn--light {
    background: #ffffff;
    color: var(--bs-primary, #17452f);
}

.dest-cta-btn--light:hover {
    background: var(--bs-surface-low, #f6f3f2);
}

.dest-cta-btn--ghost {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.40);
    color: #ffffff;
}

.dest-cta-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 900px) {
    .dest-cta-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .dest-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .dest-cta {
        padding-block: 1.5rem 3rem;
    }

    .dest-cta-panel {
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .dest-cta-actions {
        flex-direction: column;
    }

    .dest-cta-btn {
        width: 100%;
    }
}

/* ─── Show: hero overlay ────────────────────────────────────────────────── */

.dest-show-hero h1 {
    color: #ffffff;
    font-weight: 600;
}

.dest-show-hero .dest-location {
    color: rgba(255, 255, 255, 0.86);
}

/* ─── Show: content section headings ────────────────────────────────────── */

.dest-show-content h2 {
    color: var(--bs-primary, #17452f);
    font-weight: 600;
}

.dest-show-content h3 {
    color: var(--bs-primary, #17452f);
    font-weight: 700;
}

.dest-show-content strong {
    color: var(--bs-charcoal, #303030);
}

/* ─── Show: booking sidebar ─────────────────────────────────────────────── */

.dest-sidebar .dest-btn-cta {
    color: #ffffff;
}

.dest-sidebar .dest-btn-cta:hover {
    color: #ffffff;
}

.dest-sidebar .dest-register-link {
    color: var(--bs-primary, #17452f);
}

.dest-sidebar .dest-register-link:hover {
    color: var(--bs-primary-dark, #002e1b);
}

.dest-sidebar .dest-related-link {
    color: var(--bs-charcoal, #303030);
}

.dest-sidebar .dest-related-link:hover {
    color: var(--bs-primary, #17452f);
}

.dest-sidebar .dest-related-price {
    color: var(--bs-primary, #17452f);
}

/* Destination detail: photography leads, practical information stays easy to find. */
.page-destination-detail .dest-show-hero {
    min-height: min(760px, 78svh);
    background: var(--bs-primary-dark, #002e1b);
}

.page-destination-detail .dest-show-hero__image {
    object-position: center 48%;
}

.page-destination-detail .dest-show-hero__scrim {
    background: linear-gradient(90deg, rgba(13, 30, 22, 0.54) 0%, rgba(13, 30, 22, 0.14) 72%),
        linear-gradient(0deg, rgba(13, 30, 22, 0.78) 0%, rgba(13, 30, 22, 0.1) 66%, transparent 100%);
}

.page-destination-detail .dest-show-hero__content {
    max-width: 1280px;
    padding-bottom: clamp(3rem, 8vw, 6.5rem);
}

.page-destination-detail .dest-show-hero__category {
    margin-bottom: 1rem;
    padding: 0.35rem 0;
    color: #f4d99a;
    font: 600 0.75rem/1.25 "Plus Jakarta Sans", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-destination-detail .dest-show-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.75rem, 6.3vw, 5.75rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.page-destination-detail .dest-show-hero .dest-location {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.94);
}

.page-destination-detail .dest-show-hero__content > p:last-child {
    max-width: 42rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
}

.page-destination-detail .dest-show-layout {
    padding-top: clamp(2rem, 5vw, 4.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.page-destination-detail .dest-show-content {
    min-width: 0;
}

.page-destination-detail .dest-show-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(7rem, 14vw, 12rem);
    gap: clamp(0.65rem, 1.5vw, 1.25rem);
    margin-bottom: clamp(3rem, 7vw, 6rem);
}

.page-destination-detail .dest-show-gallery__item {
    min-width: 0;
    overflow: hidden;
    background: var(--bs-surface-low, #f2eee5);
}

.page-destination-detail .dest-show-gallery__item:nth-child(3n + 1) {
    grid-column: span 7;
    grid-row: span 2;
}

.page-destination-detail .dest-show-gallery__item:nth-child(3n + 2) {
    grid-column: span 5;
}

.page-destination-detail .dest-show-gallery__item:nth-child(3n) {
    grid-column: span 5;
}

.page-destination-detail .dest-show-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-destination-detail .dest-show-story {
    max-width: 52rem;
    margin: 0 auto clamp(3rem, 7vw, 6rem);
}

.page-destination-detail .dest-show-story__section {
    padding: clamp(1.25rem, 3vw, 2.25rem) 0;
}

.page-destination-detail .dest-show-story__section + .dest-show-story__section {
    border-top: 1px solid rgba(32, 67, 49, 0.18);
}

.page-destination-detail .dest-show-story__section h2,
.page-destination-detail .dest-show-reviews h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.25;
}

.page-destination-detail .dest-show-story__section p {
    max-width: 44rem;
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    line-height: 1.9;
}

.page-destination-detail .dest-show-reviews {
    max-width: 52rem;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(32, 67, 49, 0.22);
}

.page-destination-detail .dest-booking-panel {
    padding: 1.75rem;
    border-top: 3px solid var(--bs-primary, #17452f);
    background: var(--bs-surface-lowest, #fffdf8);
    box-shadow: 0 14px 36px rgba(30, 45, 35, 0.08);
}

.page-destination-detail .dest-booking-panel > div:first-child {
    padding-bottom: 1.25rem;
    text-align: left;
}

.page-destination-detail .dest-booking-panel > div:first-child > span:nth-child(2) {
    display: block;
    margin-top: 0.2rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.9rem, 2.5vw, 2.3rem);
    font-weight: 600;
    line-height: 1.2;
}

.page-destination-detail .dest-booking-panel .dest-btn-cta {
    min-height: 52px;
    border-radius: 0.5rem;
}

.page-destination-detail .dest-sidebar .dest-related-link {
    min-height: 56px;
}

.page-destination-detail .dest-sidebar a:focus-visible {
    outline: 3px solid #b98a35;
    outline-offset: 3px;
}

@media (max-width: 1023px) {
    .page-destination-detail .dest-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .page-destination-detail .dest-show-hero {
        min-height: min(680px, 76svh);
    }

    .page-destination-detail .dest-show-hero__image {
        object-position: center;
    }

    .page-destination-detail .dest-show-hero__scrim {
        background: linear-gradient(0deg, rgba(13, 30, 22, 0.82) 0%, rgba(13, 30, 22, 0.24) 76%, rgba(13, 30, 22, 0.12) 100%);
    }

    .page-destination-detail .dest-show-hero__content {
        padding-bottom: 2.5rem;
    }

    .page-destination-detail .dest-show-hero h1 {
        font-size: clamp(2.35rem, 10vw, 3.5rem);
    }

    .page-destination-detail .dest-show-layout {
        padding-top: 1.25rem;
    }

    .page-destination-detail .dest-show-layout > .grid {
        gap: 2.5rem;
    }

    .page-destination-detail .dest-sidebar {
        width: 100%;
    }

    .page-destination-detail .dest-booking-panel {
        padding: 1.25rem;
    }

    .page-destination-detail .dest-show-gallery {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: clamp(6rem, 28vw, 9rem);
        gap: 0.625rem;
        margin-bottom: 2.5rem;
    }

    .page-destination-detail .dest-show-gallery__item:nth-child(3n + 1) {
        grid-column: span 4;
    }

    .page-destination-detail .dest-show-gallery__item:nth-child(3n + 2),
    .page-destination-detail .dest-show-gallery__item:nth-child(3n) {
        grid-column: span 2;
    }

    .page-destination-detail .dest-show-story {
        margin-bottom: 2.5rem;
    }

    .page-destination-detail .dest-show-story__section {
        padding: 1.25rem 0;
    }

    .page-destination-detail .dest-show-story__section p {
        line-height: 1.75;
    }

    .page-destination-detail .dest-show-reviews {
        padding-top: 1.5rem;
    }
}

@media (max-width: 380px) {
    .page-destination-detail .dest-show-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 7rem;
    }

    .page-destination-detail .dest-show-gallery__item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .page-destination-detail .dest-show-gallery__item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   DESTINATIONS INDEX — single authority block.
   All .dest-explore-* rules live here. No other .dest-explore-* rules exist
   in this file. Detail-page rules above are scoped to .page-destination-detail.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page tokens ─────────────────────────────────────────────────────────── */
body.page-destinations {
    --dest-forest:      var(--bs-primary, #17452f);
    --dest-forest-deep: var(--bs-primary-dark, #002e1b);
    --dest-ivory:       var(--bs-surface-ivory, #fbf9f6);
    --dest-beige:       #e9e1d3;
    --dest-ink:         var(--bs-charcoal, #303030);
    --dest-muted:       var(--bs-on-surface-var, #414943);
}

/* ── Containers: flush-edge, no inline padding ──────────────────────────── */
.dest-explore-hero    .container-page,
.dest-explore-controls .container-page,
.dest-explore-results  .container-page {
    width: min(100% - 3rem, 1280px);
    margin-inline: auto;
    padding-inline: 0;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.dest-explore-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: clamp(620px, 84svh, 900px);
    align-items: flex-end;
    padding-top: 5rem;
    overflow: hidden;
    background: #002e1b;
    color: #fbf9f6;
}

.dest-explore-hero__image,
.dest-explore-hero__scrim {
    position: absolute;
    z-index: -1;
    inset: 0;
}

.dest-explore-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
}

.dest-explore-hero__scrim {
    z-index: 0;
    background: rgba(0, 25, 15, .68);
}

.dest-explore-hero__content {
    position: relative;
    z-index: 1;
    padding-block: 10rem clamp(4rem, 9vh, 7rem);
}

.dest-explore-hero__title {
    max-width: 850px;
    margin: 0;
    color: #fbf9f6;
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(3rem, 5.4vw, 5.25rem);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.dest-explore-hero__intro {
    max-width: 580px;
    margin: 1.25rem 0 0;
    color: #fff;
    font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.7;
}

/* Search bar — shared by hero and discovery section */
.dest-explore-search {
    display: flex;
    width: min(100%, 680px);
    min-height: 60px;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 0;
    padding: .35rem .4rem .35rem 1rem;
    border: 1px solid var(--bs-outline-strong, #c1c9c1);
    background: #fbf9f6;
    color: #303030;
}

.dest-explore-search > i {
    flex: 0 0 auto;
    color: var(--dest-forest);
}

.dest-explore-search input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #303030;
    font: 400 15px/1.5 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.dest-explore-search input::placeholder {
    color: #414943;
    opacity: 1;
}

.dest-explore-search:focus-within {
    outline: 3px solid var(--dest-forest);
    outline-offset: 3px;
}

/* In discovery section the search has no top margin (placed after heading) */
.dest-explore-discovery .dest-explore-search {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.dest-explore-hero__scroll {
    position: absolute;
    z-index: 1;
    right: max(3rem, calc((100vw - 1280px) / 2));
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    font: 700 10px/1.2 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    letter-spacing: .16em;
    text-decoration: none;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.dest-explore-hero__scroll span:last-child {
    width: 1px;
    height: 54px;
    background: #eec14b;
}

/* ── Discovery (section heading + filter controls) ───────────────────────── */
.dest-explore-discovery {
    background: var(--dest-ivory);
}

.dest-explore-discovery__inner {
    padding-block: clamp(3.5rem, 7vw, 6.25rem) 2.25rem;
}

.dest-explore-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
    align-items: end;
    gap: clamp(2rem, 8vw, 8rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.dest-explore-intro__heading {
    max-width: 760px;
}

.dest-explore-eyebrow {
    color: var(--dest-forest);
    font: 700 12px/1.5 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dest-explore-intro h2 {
    margin: .7rem 0 0;
    color: var(--dest-ink);
    font: 600 clamp(2.7rem, 5.2vw, 5rem)/1.02 var(--font-serif, 'Playfair Display', Georgia, serif);
    letter-spacing: -.035em;
    text-wrap: balance;
}

.dest-explore-intro__copy {
    max-width: 450px;
    justify-self: end;
    margin: 0 0 .35rem;
    color: var(--dest-muted);
    font: 400 15px/1.8 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.dest-explore-controls {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--bs-outline-strong, #c1c9c1);
    background: transparent;
}

.dest-explore-controls__inner {
    display: block;
    padding: 1.5rem 0 0;
}

.dest-explore-filter-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.dest-explore-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 1.1rem;
}

.dest-explore-filter,
.dest-explore-reset {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .55rem .2rem;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--dest-muted);
    cursor: pointer;
    font: 600 14px/1.3 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease;
}

.dest-explore-filter:hover,
.dest-explore-reset:hover {
    border-color: var(--dest-forest);
    color: var(--dest-forest-deep);
}

.dest-explore-filter.is-active {
    border-color: var(--dest-forest);
    background: transparent;
    color: var(--dest-forest);
    font-weight: 700;
}

.dest-explore-reset {
    gap: .4rem;
}

.dest-explore-controls__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.dest-explore-count {
    margin: 0;
    color: var(--dest-ink);
    font: 500 14px/1.4 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    white-space: nowrap;
}

/* ── Results ─────────────────────────────────────────────────────────────── */
.dest-explore-results {
    background: var(--dest-ivory);
    scroll-margin-top: 2rem;
}

.dest-explore-results__inner {
    padding-block: 1rem clamp(4rem, 8vw, 7rem);
}

/* ── Card grid ───────────────────────────────────────────────────────────── */
/* Two equal columns. align-items: start prevents shorter cards from
   stretching to match a taller neighbour in the same row. */
.dest-explore-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: clamp(1.5rem, 4vw, 4rem);
    row-gap: clamp(3rem, 6vw, 5rem);
}

/* ── Individual card ─────────────────────────────────────────────────────── */
/* flex-column keeps image and copy the same width — their left and right
   edges are identical. All cards, including the first one, use the same
   two-column grid placement and 4:3 image ratio. */
.dest-explore-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ── Image ───────────────────────────────────────────────────────────────── */
.dest-explore-media {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: var(--dest-beige);
    aspect-ratio: 4 / 3;
}

.dest-explore-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms cubic-bezier(.16, 1, .3, 1);
}

.dest-explore-media:hover img,
.dest-explore-media:focus-visible img {
    transform: scale(1.02);
}

/* Category badge overlaid on image */
.dest-explore-category {
    position: absolute;
    z-index: 1;
    top: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
    padding: .5rem .75rem;
    background: #fbf9f6;
    color: var(--dest-forest);
    font: 700 11px/1.3 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

/* ── Copy ────────────────────────────────────────────────────────────────── */
/* Same width as the image above: 100% of the flex parent, zero inline padding.
   Top padding only separates copy from the image edge. */
.dest-explore-copy {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 1.25rem 0 0;
}

/* Location / category line */
.dest-explore-context {
    margin: 0 0 .75rem;
    color: var(--dest-muted);
    font: 600 13px/1.5 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

/* Title row: name left, wishlist button right */
.dest-explore-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dest-explore-title-row h3 {
    min-width: 0;
    margin: 0;
    color: var(--dest-ink);
    font: 600 clamp(1.6rem, 2.4vw, 2.4rem)/1.08 var(--font-serif, 'Playfair Display', Georgia, serif);
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.dest-explore-title-row h3 a {
    color: inherit;
    text-decoration: none;
}

.dest-explore-title-row h3 a:hover {
    color: var(--dest-forest);
    text-decoration: underline;
    text-underline-offset: .12em;
}

/* Optional description paragraph */
.dest-explore-description {
    max-width: 58ch;
    margin: .75rem 0 0;
    color: var(--dest-muted);
    font: 400 14px/1.65 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

/* Price / action row: divider full copy width, price left, action right */
.dest-explore-details {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bs-outline-strong, #c1c9c1);
}

.dest-explore-price {
    display: grid;
    gap: .2rem;
    margin: 0;
    color: var(--dest-muted);
    font: 500 13px/1.45 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.dest-explore-price strong {
    color: var(--dest-forest);
    font: 700 18px/1.3 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

/* Availability + link, right-aligned */
.dest-explore-action {
    display: grid;
    justify-items: end;
    gap: .5rem;
}

.dest-explore-availability {
    color: var(--dest-forest);
    font: 700 12px/1.4 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    text-align: right;
}

.dest-explore-availability.is-closed {
    color: #704700;
}

.dest-explore-details-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--dest-forest);
    font: 700 13px/1.4 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    text-decoration: underline;
    text-underline-offset: .25em;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.dest-explore-empty {
    display: grid;
    min-height: 240px;
    justify-items: start;
    align-content: center;
    gap: 1rem;
    padding: 2rem 0;
    border-block: 1px solid var(--bs-outline-strong, #c1c9c1);
    text-align: left;
}

.dest-explore-empty p {
    margin: 0;
    color: var(--dest-ink);
    font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.dest-explore-empty a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--dest-forest);
    font: 700 13px/1.4 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    text-decoration: underline;
    text-underline-offset: .25em;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.dest-explore-pagination {
    display: flex;
    justify-content: center;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.dest-explore-pagination nav,
.dest-explore-pagination > div {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.dest-explore-pagination a,
.dest-explore-pagination span[aria-current="page"] span,
.dest-explore-pagination span[aria-disabled="true"] span {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .5rem .75rem;
    border: 1px solid #c1c9c1;
    background: #fbf9f6;
    color: #303030;
    font: 600 13px/1.2 var(--font-sans, 'Plus Jakarta Sans', sans-serif);
    text-decoration: none;
}

.dest-explore-pagination span[aria-current="page"] span {
    border-color: var(--dest-forest);
    background: var(--dest-forest);
    color: #fff;
}

.dest-explore-pagination span[aria-disabled="true"] span {
    color: #414943;
}

/* ── Focus styles ────────────────────────────────────────────────────────── */
.dest-explore-filter:focus-visible,
.dest-explore-reset:focus-visible,
.dest-explore-details-link:focus-visible,
.dest-explore-media:focus-visible,
.dest-explore-title-row h3 a:focus-visible,
.dest-explore-empty a:focus-visible,
.dest-explore-pagination a:focus-visible,
.dest-explore-pagination button:focus-visible {
    outline: 3px solid var(--dest-forest);
    outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* 900px: intro collapses to narrower two-column, containers slightly smaller */
@media (max-width: 900px) {
    .dest-explore-hero .container-page,
    .dest-explore-controls .container-page,
    .dest-explore-results  .container-page {
        width: min(100% - 2.5rem, 1280px);
    }

    .dest-explore-hero {
        min-height: min(760px, 78svh);
    }

    .dest-explore-intro {
        grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
        gap: 2rem;
    }
}

/* 720px: single-column list, lead loses its full-span */
@media (max-width: 720px) {
    .dest-explore-hero .container-page,
    .dest-explore-controls .container-page,
    .dest-explore-results  .container-page {
        width: min(100% - 2rem, 1280px);
    }

    .dest-explore-hero {
        min-height: min(760px, 88svh);
        padding-top: 4rem;
    }

    .dest-explore-hero__image img {
        object-position: 58% center;
    }

    .dest-explore-hero__scrim {
        background: rgba(0, 25, 15, .72);
    }

    .dest-explore-hero__content {
        padding-block: 8rem 4rem;
    }

    .dest-explore-hero__title {
        font-size: clamp(2.5rem, 10vw, 3.75rem);
    }

    .dest-explore-hero__intro {
        max-width: 38ch;
        margin-top: 1rem;
        font-size: 15px;
        line-height: 1.65;
    }

    .dest-explore-discovery__inner {
        padding-block: 3.5rem 1.5rem;
    }

    .dest-explore-intro {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .dest-explore-intro h2 {
        max-width: 14ch;
        font-size: clamp(2.5rem, 10.5vw, 3.5rem);
    }

    .dest-explore-intro__copy {
        max-width: 50ch;
        justify-self: start;
        font-size: 14px;
    }

    .dest-explore-controls__inner {
        padding-top: 1.25rem;
    }

    .dest-explore-filter-area {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
    }

    .dest-explore-filters {
        width: 100%;
        gap: .25rem .9rem;
    }

    .dest-explore-filter {
        padding-inline: .1rem;
        font-size: 13px;
    }

    .dest-explore-controls__meta {
        width: 100%;
        justify-content: space-between;
    }

    .dest-explore-results__inner {
        padding-block: 1.5rem 4rem;
    }

    /* Single-column on mobile */
    .dest-explore-list {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 2.5rem;
    }

    /* Copy top-padding matches the visual gap from the image on mobile */
    .dest-explore-copy {
        padding-top: 1rem;
    }

    /* Title font size on mobile */
    .dest-explore-title-row h3 {
        font-size: clamp(1.6rem, 7vw, 2.25rem);
    }

    /* Price row: price top-left, availability top-right, link full-width below */
    .dest-explore-details {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: start;
        gap: .5rem 1rem;
        margin-top: 1.25rem;
        padding-top: 1rem;
    }

    .dest-explore-price {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .dest-explore-action {
        grid-column: 2;
        grid-row: 1;
        justify-items: end;
    }

    .dest-explore-availability {
        text-align: right;
    }

    .dest-explore-details-link {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        min-height: 44px;
    }
}

/* 480px: hero search full-width */
@media (max-width: 480px) {
    .dest-explore-search {
        width: 100%;
        min-height: 56px;
        gap: .55rem;
        padding-left: .75rem;
    }

    .dest-explore-search input {
        font-size: 14px;
    }
}

/* 360px: very small screens */
@media (max-width: 360px) {
    .dest-explore-hero__title {
        font-size: 2.5rem;
    }

    .dest-explore-search {
        gap: .4rem;
        padding-left: .6rem;
    }
}

/* ── Motion ───────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .dest-explore-filter,
    .dest-explore-reset,
    .dest-explore-media img {
        transition-duration: .01ms !important;
    }

    .dest-explore-media:hover img,
    .dest-explore-media:focus-visible img {
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .dest-explore-item {
        transition: opacity 180ms ease-out;
    }

    .dest-explore-item.is-entering {
        opacity: 0;
    }
}
