/* =====================================================================
   Browse & landing pages
   =====================================================================
   Shared by private-safaris.php, destinations.php, destinations-details.php
   and experience-details.php — the pages a visitor uses to find a safari
   rather than to buy one. Loaded per page, not site-wide.

   The --kt-* tokens are scoped to .kt-group on the group safari pages, so
   everything here carries a fallback.
   ===================================================================== */

/* ══ FILTER CHIPS ═══════════════════════════════════════════════════════
   Filtering happens in the browser over the whole set. No query strings, so
   no crawlable near-duplicate of the listing for every combination. */
.ps-filters {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 1rem 2rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.8rem;
    background: var(--kt-sand, #f6efe6);
    border-radius: 16px;
}
.ps-filters__group { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; min-width: 0; }
.ps-filters__label {
    font-size: .78rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--kt-muted, #5d6570);
}
.ps-filters__count { margin: 0 0 0 auto; color: var(--kt-muted, #5d6570); font-size: .92rem; }
.ps-filters__count strong { color: var(--kt-ink, #14181d); }

.ps-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ps-chip {
    appearance: none;
    min-height: 38px; padding: .35rem .9rem;
    border: 1px solid var(--kt-line, #dfd6ca); border-radius: 999px;
    background: #fff; color: var(--kt-ink, #14181d);
    font-size: .9rem; font-weight: 600; line-height: 1.2; cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.ps-chip:hover { border-color: var(--kt-orange, #f4732b); }
.ps-chip.is-on {
    background: var(--kt-orange, #f4732b); border-color: var(--kt-orange, #f4732b); color: #fff;
}
.ps-chip:focus-visible { outline: 3px solid var(--kt-orange-glow, rgba(244,115,43,.34)); outline-offset: 2px; }

.ps-empty {
    margin: 2rem auto 0; max-width: 46ch; text-align: center;
    color: var(--kt-muted, #5d6570);
}

/* ══ SAFARI CARD ════════════════════════════════════════════════════════
   The client's note was "pictures are of different sizes". They are: the
   uploads are whatever the phone took. A fixed aspect ratio makes the grid
   line up without touching a single file. */
.ps-card__img,
.kh-dest img,
.dest-card__img {
    width: 100%; height: auto;
    aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
    background: var(--kt-sand-deep, #ece0d1);
}
.ps-card__sub {
    margin: 0 0 .6rem; font-size: .9rem; line-height: 1.45;
    color: var(--kt-muted, #5d6570);
}
.ps-card__parks {
    display: flex; gap: .5rem; margin: 0;
    font-size: .88rem; line-height: 1.45; color: var(--kt-muted, #5d6570);
}
.ps-card__parks i { color: var(--kt-orange, #f4732b); margin-top: .22rem; flex: none; }
.ps-card__price { font-size: .95rem; color: var(--kt-muted, #5d6570); }
.ps-card__price strong { font-size: 1.12rem; color: var(--kt-ink, #14181d); }
.ps-card__price span { font-size: .85rem; }

.ps-item[hidden] { display: none !important; }

@media (max-width: 575.98px) {
    .ps-filters { gap: .8rem 1rem; padding: .9rem 1rem; }
    .ps-filters__count { margin-left: 0; width: 100%; }
}

/* ══ PLACE PAGES ════════════════════════════════════════════════════════
   The destinations hub, a country, a destination and an activity all share
   this shell, so moving between them feels like one site rather than four
   templates that happen to be next to each other. */

.pl-hero { padding: 2.2rem 0 1.4rem; }
.pl-hero h1 { margin: .35rem 0 .6rem; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; }
.pl-hero__lede { max-width: 62ch; font-size: 1.08rem; line-height: 1.6; color: var(--kt-ink, #14181d); margin-bottom: .6rem; }
.pl-hero__meta { max-width: 62ch; color: var(--kt-muted, #5d6570); font-size: .95rem; margin: 0; }

.pl-crumbs { font-size: .85rem; color: var(--kt-muted, #5d6570); }
.pl-crumbs a { color: var(--kt-muted, #5d6570); text-decoration: none; }
.pl-crumbs a:hover { color: var(--kt-orange-ink, #a8460f); text-decoration: underline; }
.pl-crumbs span[aria-hidden] { margin: 0 .35rem; opacity: .5; }

/* ── Country sections on the hub ───────────────────────────────────────── */
.pl-country { padding: 1.6rem 0; }
.pl-country:nth-of-type(even) { background: var(--kt-sand, #f6efe6); }
.pl-country__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.pl-country__head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pl-country__tag { margin: .25rem 0 0; color: var(--kt-muted, #5d6570); }

/* ── The card grid ─────────────────────────────────────────────────────── */
.pl-grid {
    display: grid; gap: 1.4rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.pl-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--kt-line, #dfd6ca); border-radius: 16px;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pl-card:hover { border-color: var(--kt-orange, #f4732b); box-shadow: 0 10px 28px rgba(20,24,29,.09); transform: translateY(-2px); }
.pl-card__link { display: block; }
.pl-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pl-card__title { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.pl-card__title a { color: var(--kt-ink, #14181d); text-decoration: none; }
.pl-card__title a:hover { color: var(--kt-orange-ink, #a8460f); }
.pl-card__for {
    margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--kt-orange-ink, #a8460f);
}
.pl-card__sum {
    margin: 0; font-size: .9rem; line-height: 1.5; color: var(--kt-muted, #5d6570);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.pl-card__meta { margin: auto 0 0; padding-top: .5rem; font-size: .84rem; color: var(--kt-muted, #5d6570); }
.pl-card__meta i { color: var(--kt-orange, #f4732b); margin-right: .35rem; }

/* ── A destination page ────────────────────────────────────────────────── */
.pl-top { display: grid; gap: 1.8rem; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
@media (max-width: 860px) { .pl-top { grid-template-columns: 1fr; } }
.pl-top__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: var(--kt-sand-deep, #ece0d1); }
.pl-summary { font-size: 1.1rem; line-height: 1.65; margin-bottom: 1.2rem; }

.pl-facts { display: grid; gap: .9rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.pl-fact { display: flex; gap: .7rem; }
.pl-fact i { color: var(--kt-orange, #f4732b); margin-top: .22rem; flex: none; }
.pl-fact strong { display: block; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--kt-muted, #5d6570); }
.pl-fact span { line-height: 1.5; }

.pl-high { margin: 0 0 1.4rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
.pl-high li { display: flex; gap: .6rem; line-height: 1.5; }
.pl-high li::before { content: "\2713"; color: var(--kt-orange, #f4732b); font-weight: 700; flex: none; }

.pl-section { padding: 2rem 0; }
.pl-section--sand { background: var(--kt-sand, #f6efe6); }
.pl-section h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin-bottom: .4rem; }
.pl-section__lede { color: var(--kt-muted, #5d6570); margin-bottom: 1.3rem; max-width: 62ch; }
.pl-prose { max-width: 70ch; line-height: 1.7; }
.pl-prose p { margin-bottom: 1rem; }

/* Activities: the client asked for a maximum of four, all the same size. */
.pl-acts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pl-act { text-align: center; text-decoration: none; color: inherit; }
.pl-act img {
    width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: 14px; background: var(--kt-sand-deep, #ece0d1);
    transition: transform .2s ease;
}
.pl-act:hover img { transform: scale(1.02); }
.pl-act span { display: block; margin-top: .5rem; font-weight: 600; font-size: .94rem; }

.pl-close { padding: 2.4rem 0 3rem; text-align: center; }
.pl-close h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pl-close p { max-width: 58ch; margin: 0 auto 1.3rem; color: var(--kt-muted, #5d6570); }
.pl-close__btns { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.pl-close__alt { color: var(--kt-orange-ink, #a8460f); font-weight: 600; text-decoration: none; }
.pl-close__alt:hover { text-decoration: underline; }

/* A nested .ps-item (a whole country block) must collapse fully when filtered. */
.ps-item[hidden] { display: none !important; }

