/* ==========================================================================
   PROJECT: SAFARU.in
   File: assets/safaru-destinations/css/destinations.css
   Purpose: Shared public design system for destination catalogue/detail pages
   Deployment: domain-root /assets (NO public/ folder)
   ========================================================================== */

:root {
    --safaru-navy: #081727;
    --safaru-navy-soft: #173047;
    --safaru-orange: #f4a340;
    --safaru-orange-deep: #c46d1c;
    --safaru-cream: #f5f1e8;
    --safaru-soft: #f7f4ee;
    --safaru-text: #081727;
    --safaru-muted: #5f6d78;
    --safaru-line: #e2e6e9;
    --page-pad: clamp(28px, 2.4vw, 42px);
    --page-max: 1580px;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--safaru-text);
    font-family: Inter, Arial, sans-serif;
}

a {
    color: inherit;
}

.page-shell {
    width: min(
        calc(100% - (var(--page-pad) * 2)),
        var(--page-max)
    );
    margin-inline: auto;
}


/* ==========================================================================
   SHARED PUBLIC HEADER
   ========================================================================== */

.public-header {
    width: 100%;
    min-height: var(--header-height);
    padding: 0 var(--page-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: var(--safaru-navy);
    color: #fff;
    position: relative;
    z-index: 20;
}

.public-header--overlay {
    position: absolute;
    inset: 0 0 auto;
    background:
        linear-gradient(
            180deg,
            rgba(8, 23, 39, .82) 0%,
            rgba(8, 23, 39, .40) 70%,
            rgba(8, 23, 39, 0) 100%
        );
}

.brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: #fff;
    line-height: 1;
    flex: 0 0 auto;
}

.brand__name {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: .18em;
}

.brand__tagline {
    margin-top: 7px;
    color: var(--safaru-orange);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .015em;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 2.2vw, 38px);
}

.public-nav a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease, opacity .2s ease;
}

.public-nav a:hover,
.public-nav a.active {
    color: #fff;
}


/* ==========================================================================
   DESTINATIONS CATALOGUE
   ========================================================================== */

.listing-hero {
    background: var(--safaru-cream);
    padding: 44px 0 46px;
}

.listing-hero .eyebrow,
.eyebrow {
    color: var(--safaru-orange-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .19em;
}

.listing-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(46px, 4.6vw, 72px);
    line-height: .98;
    letter-spacing: -.045em;
}

.listing-hero p {
    max-width: 720px;
    margin: 0;
    color: #435361;
    font-size: 17px;
    line-height: 1.6;
}

.destination-catalogue {
    padding: 42px 0 58px;
}

.destination-listing {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.destination-tile {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--safaru-line);
    border-radius: 18px;
    background: #fff;
    color: var(--safaru-text);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(8, 23, 39, .045);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.destination-tile:hover {
    transform: translateY(-4px);
    border-color: #d5dade;
    box-shadow: 0 16px 34px rgba(8, 23, 39, .10);
}

.destination-tile__image {
    aspect-ratio: 4 / 3;
    width: 100%;
    background: var(--safaru-navy-soft) center / cover no-repeat;
}

.destination-tile__body {
    padding: 17px 16px 18px;
}

.destination-tile__body > span,
.poi-card__body > span {
    display: block;
    color: var(--safaru-orange-deep);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.destination-tile h2 {
    margin: 6px 0 8px;
    font-size: clamp(18px, 1.35vw, 23px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.destination-tile p {
    display: -webkit-box;
    min-height: 40px;
    margin: 0 0 13px;
    overflow: hidden;
    color: var(--safaru-muted);
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.destination-tile b {
    color: var(--safaru-text);
    font-size: 12px;
}

.destination-listing__empty {
    grid-column: 1 / -1;
}


/* ==========================================================================
   DESTINATION DETAIL HERO
   ========================================================================== */

.destination-hero {
    min-height: 610px;
    position: relative;
    display: flex;
    align-items: flex-end;
    background: var(--safaru-navy-soft) center / cover no-repeat;
}

.destination-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8, 23, 39, .84) 0%,
            rgba(8, 23, 39, .48) 48%,
            rgba(8, 23, 39, .14) 100%
        ),
        linear-gradient(
            0deg,
            rgba(8, 23, 39, .62) 0%,
            rgba(8, 23, 39, 0) 55%
        );
}

.destination-hero__copy {
    width: min(
        calc(100% - (var(--page-pad) * 2)),
        var(--page-max)
    );
    margin-inline: auto;
    padding: 150px 0 62px;
    position: relative;
    color: #fff;
}

.destination-hero__copy > span {
    color: var(--safaru-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .20em;
}

.destination-hero h1 {
    max-width: 900px;
    margin: 10px 0 16px;
    font-size: clamp(58px, 6vw, 94px);
    line-height: .92;
    letter-spacing: -.05em;
}

.destination-hero p {
    max-width: 830px;
    margin: 0;
    color: #edf2f5;
    font-size: 19px;
    line-height: 1.65;
}

.destination-hero a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    padding: 14px 21px;
    border-radius: 999px;
    background: var(--safaru-orange);
    color: var(--safaru-navy);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}


/* ==========================================================================
   DESTINATION DETAIL CONTENT
   ========================================================================== */

.destination-page {
    overflow: hidden;
}

.intro-block,
.content-section {
    width: min(
        calc(100% - (var(--page-pad) * 2)),
        var(--page-max)
    );
    margin-inline: auto;
    padding: 64px 0;
}

.intro-block {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: clamp(48px, 6vw, 100px);
    align-items: start;
}

.intro-block h2,
.section-head h2 {
    margin: 8px 0 14px;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1;
    letter-spacing: -.04em;
}

.rich-copy {
    color: #465764;
    font-size: 17px;
    line-height: 1.85;
}

.content-section.soft {
    width: 100%;
    max-width: none;
    padding-inline: var(--page-pad);
    background: var(--safaru-soft);
}

.content-section.soft > * {
    width: min(100%, var(--page-max));
    margin-left: auto;
    margin-right: auto;
}

.section-head {
    margin-bottom: 26px;
}

.section-head p {
    max-width: 760px;
    margin: 0;
    color: var(--safaru-muted);
    font-size: 15px;
    line-height: 1.65;
}


/* Places */

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

.poi-card {
    overflow: hidden;
    border: 1px solid var(--safaru-line);
    border-radius: 18px;
    background: #fff;
}

.poi-card__image {
    aspect-ratio: 16 / 10;
    background: #d9e1e5 center / cover no-repeat;
}

.poi-card__body {
    padding: 19px;
}

.poi-card h3 {
    margin: 6px 0 8px;
    font-size: 22px;
    line-height: 1.12;
}

.poi-card p {
    margin: 0;
    color: #596773;
    font-size: 14px;
    line-height: 1.6;
}

.poi-card small {
    display: block;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #edf0f2;
    color: #7a858d;
    font-size: 12px;
    line-height: 1.5;
}


/* Activities */

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

.chips span {
    padding: 11px 16px;
    border: 1px solid #d8ddd9;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}


/* Seasons, transport and stays */

.season-grid,
.transport-grid,
.stay-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.season-grid article,
.transport-grid article,
.stay-grid a {
    padding: 22px;
    border: 1px solid var(--safaru-line);
    border-radius: 18px;
    background: #fff;
    color: var(--safaru-text);
    text-decoration: none;
}

.season-grid article > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.season-grid span,
.transport-grid span,
.stay-grid span {
    color: var(--safaru-orange-deep);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.season-grid b {
    padding: 5px 8px;
    border-radius: 999px;
    background: #e9f3e8;
    font-size: 9px;
}

.season-grid h3,
.transport-grid h3,
.stay-grid h3 {
    margin: 9px 0;
    font-size: 22px;
}

.season-grid p,
.transport-grid p,
.stay-grid p {
    color: #61707b;
    font-size: 14px;
    line-height: 1.65;
}

.transport-grid small {
    font-weight: 700;
}

.empty-state {
    padding: 32px;
    border-radius: 18px;
    background: var(--safaru-cream);
}

.empty-state h2,
.empty-state h3 {
    margin-top: 0;
}

.empty-state a {
    color: var(--safaru-text);
    font-weight: 800;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.simple-footer {
    background: var(--safaru-navy);
    color: #fff;
}

.simple-footer__inner,
.simple-footer {
    min-height: 82px;
}

.simple-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.simple-footer > strong,
.simple-footer > span,
.simple-footer > p {
    /* Compatibility for the detail page's current direct-child footer markup. */
}

.destination-page + .simple-footer {
    min-height: 82px;
    padding: 0 var(--page-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.simple-footer strong {
    letter-spacing: .16em;
}

.simple-footer span,
.simple-footer p {
    color: #a9b5bf;
    font-size: 12px;
}

.simple-footer p {
    margin: 0;
}


/* ==========================================================================
   RESPONSIVE GRID
   6 → 4 → 3 → 2 → 1
   ========================================================================== */

@media (max-width: 1380px) {
    .destination-listing {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .poi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .destination-listing {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .intro-block {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .poi-grid,
    .season-grid,
    .transport-grid,
    .stay-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --page-pad: 20px;
        --header-height: 68px;
    }

    .brand__name {
        font-size: 23px;
    }

    .brand__tagline {
        font-size: 8px;
        margin-top: 5px;
    }

    .public-nav {
        gap: 16px;
    }

    .public-nav a {
        font-size: 12px;
    }

    .listing-hero {
        padding: 34px 0 36px;
    }

    .listing-hero h1 {
        font-size: clamp(42px, 12vw, 58px);
    }

    .listing-hero p {
        font-size: 15px;
    }

    .destination-catalogue {
        padding: 28px 0 42px;
    }

    .destination-listing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .destination-tile__body {
        padding: 14px;
    }

    .destination-tile p {
        display: none;
    }

    .destination-hero {
        min-height: 570px;
    }

    .destination-hero__copy {
        padding: 125px 0 45px;
    }

    .destination-hero h1 {
        font-size: clamp(50px, 14vw, 72px);
    }

    .destination-hero p {
        font-size: 16px;
    }

    .intro-block,
    .content-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .poi-grid,
    .season-grid,
    .transport-grid,
    .stay-grid {
        grid-template-columns: 1fr;
    }

    .simple-footer__inner,
    .destination-page + .simple-footer {
        min-height: 0;
        padding-top: 28px;
        padding-bottom: 28px;
        display: block;
    }

    .simple-footer span,
    .simple-footer p {
        display: block;
        margin-top: 9px;
    }
}

@media (max-width: 480px) {
    .public-header {
        gap: 18px;
    }

    .public-nav a:first-child {
        display: none;
    }

    .destination-listing {
        grid-template-columns: 1fr;
    }
}
