/* An adventure type's own page: /birding/, /safari/, /herping/ (founder, 18 Nov 2026).
   Top: the home card's photo and the heading with Ari's intro, on the forest night. Phones: the photo under the
   header (4:3), the words below. Computers: words left, photo right (half the width, so the 1290 px copy stays sharp).
   Then, on cream: one photo card per destination, 1 / 2 / 3 a row. */
.cat-top{ display:grid; background:var(--night); color:var(--cream); }
.cat-photo{ margin:0; position:relative; overflow:hidden; background:var(--deep); aspect-ratio:4/3; margin-top:56px; }
.cat-photo img{ display:block; width:100%; height:100%; object-fit:cover; }
.cat-top[data-type="birding"] .cat-photo img{ object-position:45% 40%; }
.cat-top[data-type="safari"] .cat-photo img{ object-position:40% 30%; }
.cat-top[data-type="herping"] .cat-photo img{ object-position:40% 50%; }
.cat-text{ padding:28px var(--gutter) 40px; }
.cat-kicker{ margin:0 0 14px; font-size:14px; }
.cat-kicker a{ color:var(--mist); text-decoration:none; border-bottom:1px solid rgba(185,205,176,.4); padding-bottom:2px; }
.cat-kicker a::before{ content:"\2190\00a0"; }
.cat-kicker a:hover{ color:var(--cream); border-bottom-color:var(--cream); }
.cat-top h1{ display:flex; align-items:center; gap:12px; margin:0; font:500 clamp(30px, 24px + 2vw, 46px)/1.1 var(--serif);
  letter-spacing:-.015em; color:var(--cream); }
.cat-top h1 .type-mark{ flex:none; width:30px; height:30px; color:var(--accent); }
.cat-top h1::after{ content:none; }
.cat-intro{ margin:18px 0 0; max-width:34em; font-size:clamp(16px, 15px + .3vw, 18px); line-height:1.65; color:rgba(251,248,236,.88); }
.cat-count{ margin:22px 0 0; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); }
@media (min-width:768px){ .cat-photo{ margin-top:64px; } }
@media (min-width:900px){
  .cat-top{ grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); align-items:stretch; min-height:min(78vh, 620px); }
  .cat-photo{ order:2; aspect-ratio:auto; margin-top:0; }
  .cat-text{ order:1; display:flex; flex-direction:column; justify-content:center;
    padding:calc(88px + 32px) clamp(32px, 5vw, 80px) 56px max(var(--gutter), calc((100vw - 1200px) / 2)); }
}

/* the destinations */
.cat-body{ padding-top:clamp(32px, 5vw, 56px); }
.cat-wrap{ width:100%; max-width:calc(1200px + 2 * var(--gutter)); margin:0 auto; padding:0 var(--gutter); }
.cat-grid{ list-style:none; margin:0; padding:0; display:grid; gap:20px; }
@media (min-width:700px){ .cat-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (min-width:1100px){ .cat-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:28px; } }
.cat-card{ border-radius:6px; overflow:hidden; background:#fff; border:1px solid rgba(27,61,34,.10);
  box-shadow:0 1px 2px rgba(14,36,20,.06), 0 8px 18px -8px rgba(14,36,20,.18); transition:box-shadow .25s, transform .25s; }
.cat-card-link{ display:flex; flex-direction:column; height:100%; color:inherit; text-decoration:none; }
/* the vlog's thumbnail: YouTube's 4:3 copy with black bars, cropped to 16:9 so the bars fall away */
.cat-card-photo{ position:relative; display:block; aspect-ratio:16/9; overflow:hidden; background:var(--deep); }
.cat-card-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:scale .6s ease-out; }
.cat-card-text{ display:flex; flex-direction:column; flex:1; padding:16px 18px 16px; }
.cat-card-name{ font:500 20px/1.25 var(--serif); color:var(--deep); }
.cat-card-region{ margin-top:4px; font-size:14px; color:var(--under); }
.cat-card-price{ margin-top:12px; font-size:14px; color:var(--under); }
.cat-card-price b{ font-weight:600; color:var(--amber); }
.cat-card-go{ display:inline-flex; align-items:center; gap:6px; margin-top:auto; padding-top:16px; font-size:13px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color:var(--under); }
.cat-card-go .chev{ width:14px; height:14px; transform:rotate(-90deg); transition:translate .25s; }
@media (hover:hover){
  .cat-card:hover{ transform:translateY(-3px); box-shadow:0 1px 2px rgba(14,36,20,.06), 0 16px 30px -12px rgba(14,36,20,.30); }
  .cat-card:hover .cat-card-photo img{ scale:1.05; }
  .cat-card:hover .cat-card-go{ color:var(--amber); }
  .cat-card:hover .cat-card-go .chev{ translate:4px 0; }
}
.cat-card-link:focus-visible{ outline:2px solid var(--deep); outline-offset:3px; border-radius:6px; }
@media (prefers-reduced-motion:reduce){ .cat-card, .cat-card-photo img{ transition:none; } .cat-card:hover{ transform:none; } .cat-card:hover .cat-card-photo img{ scale:1; } }

/* the vlog in the card (founder, 18 Nov 2026): it plays in place of the picture; a small play button at the lower left
   with "Watch vlog" beside it, so the thumbnail itself stays in view */
.cat-card{ display:flex; flex-direction:column; }
.cat-card-link{ flex:1; }
.cat-video{ border-radius:0; box-shadow:none; flex:none; }
.cat-video.playing{ border-radius:0; }
.cat-video::after{ background:linear-gradient(180deg, rgba(14,36,20,0) 55%, rgba(14,36,20,.55)); }
.cat-play{ position:absolute; z-index:3; left:12px; bottom:12px; display:flex; align-items:center; gap:9px;
  font:500 13px/1 var(--sans); letter-spacing:.04em; color:#fff; text-shadow:0 1px 4px rgba(0,0,0,.6); }
.cat-play .play{ position:static; width:38px; height:38px; margin:0; flex:none; box-shadow:0 4px 12px -4px rgba(14,36,20,.7); }
.cat-play .play svg{ width:15px; height:15px; margin-left:3px; }
@media (hover:hover){
  .cat-video:hover .play{ transform:scale(1.1); }
  .cat-card:hover .cat-card-photo img{ scale:1.05; }
}
/* readable over any thumbnail, including YouTube's own lettering: the button and words share a dark see-through capsule */
.cat-play{ left:10px; bottom:10px; padding:4px 14px 4px 4px; border-radius:999px; background:rgba(14,36,20,.62);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); text-shadow:none; }
.cat-play .play{ width:32px; height:32px; box-shadow:none; }
.cat-play .play svg{ width:13px; height:13px; }

/* ===== The home page's look (founder, 18 Nov 2026): Cormorant Garamond headings and names, Jost small capitals, and a
   square-bordered "See this tour" button so the tour stands out from its vlog. Prices stay in Figtree (it has the ₹). */
.cat-top h1{ font:500 clamp(36px, 28px + 2.4vw, 56px)/1.05 'Cormorant Garamond', Georgia, serif; letter-spacing:0; }
.cat-kicker{ font:400 12px/1.2 'Jost', 'Futura', system-ui, sans-serif; letter-spacing:.18em; text-transform:uppercase; }
.cat-count{ font-family:'Jost', 'Futura', system-ui, sans-serif; letter-spacing:.2em; }

.cat-card{ border-radius:4px; }
.cat-card-text{ padding:20px 20px 20px; gap:0; }
.cat-card-region{ order:-1; margin:0 0 6px; font:400 11.5px/1.3 'Jost', 'Futura', system-ui, sans-serif; letter-spacing:.18em;
  text-transform:uppercase; color:#6F612E; }
.cat-card-name{ font:500 26px/1.12 'Cormorant Garamond', Georgia, serif; color:var(--deep); }
.cat-card-price{ display:block; margin-top:16px; padding-top:14px; border-top:1px solid rgba(27,61,34,.12); font-size:14px; color:var(--under); }
.cat-price-label{ display:block; margin-bottom:4px; font:400 11px/1.2 'Jost', 'Futura', system-ui, sans-serif; letter-spacing:.18em;
  text-transform:uppercase; color:var(--under); opacity:.8; }
.cat-card-price b{ font-size:20px; font-weight:600; color:var(--amber); }
.cat-card-price b.cat-enq{ font-size:17px; }
.cat-fx{ white-space:nowrap; }
/* the button: square, fine olive-gold border, Jost capitals; on hover it fills with the forest green */
.cat-card-go{ align-self:stretch; justify-content:center; gap:10px; margin-top:auto; padding:0; }
.cat-card-price + .cat-card-go, .cat-card-name + .cat-card-go{ margin-top:18px; }
.cat-card-go{ min-height:46px; border:1px solid #6F612E; border-radius:0; color:#6F612E;
  font:400 12.5px/1 'Jost', 'Futura', system-ui, sans-serif; letter-spacing:.22em;
  transition:background-color .3s, color .3s, border-color .3s; }
.cat-card-text{ flex:1; }
.cat-card-go .chev{ width:13px; height:13px; }
@media (hover:hover){
  .cat-card:hover .cat-card-go, .cat-card-link:hover .cat-card-go{ background:var(--deep); border-color:var(--deep); color:var(--cream); }
}
.cat-card-link:active .cat-card-go{ background:var(--deep); border-color:var(--deep); color:var(--cream); }
/* every card's button on the same line across a row (founder, 18 Nov 2026): the button always sits at the card's foot;
   any spare room goes above it */
.cat-card-price + .cat-card-go, .cat-card-name + .cat-card-go, .cat-card-go{ margin-top:auto; }
.cat-card-price, .cat-card-name{ margin-bottom:18px; }
.cat-card-name + .cat-card-price{ margin-top:-2px; }

/* ===== The gallery strip (founder, 19 Nov 2026, option C; Birding first) =====
   The title and intro alone at the top, then photos and short clips side by side under them, the next one peeking in.
   Phones: each item ~86% of the screen, all in a 3:2 frame, swiped. Computers: every item the same height at its own
   shape, the strip starting in line with the page's text; arrows bottom right. The browser's own snap scrolling does the
   swiping (no library). */
.cat-top.has-gallery{ display:block; min-height:0; --gal-pad:var(--gutter); }
.cat-top.has-gallery .cat-text{ padding:calc(56px + 32px) var(--gal-pad) 28px; max-width:calc(40em + 2 * var(--gal-pad)); }
@media (min-width:768px){ .cat-top.has-gallery .cat-text{ padding-top:calc(64px + 40px); } }
@media (min-width:900px){
  .cat-top.has-gallery{ --gal-pad:max(var(--gutter), calc((100% - 1200px) / 2)); }
  .cat-top.has-gallery .cat-text{ display:block; padding:calc(88px + 48px) var(--gal-pad) 36px; max-width:none; }
  .cat-top.has-gallery .cat-intro{ max-width:40em; }
}
.gal{ position:relative; padding-bottom:40px; }
.gal-track{ display:flex; gap:14px; margin:0; padding:0 var(--gal-pad); list-style:none; overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; scroll-padding-inline:var(--gal-pad); scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.gal-track::-webkit-scrollbar{ display:none; }
.gal-track:focus-visible{ outline:2px solid var(--yellow); outline-offset:4px; }
.gal-item{ flex:none; width:86vw; scroll-snap-align:start; }
.gal-item figure{ margin:0; }
.gal-media{ position:relative; aspect-ratio:3 / 2; overflow:hidden; border-radius:3px; background:var(--deep); }
.gal-media img, .gal-media video{ position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; }
.gal-item figcaption{ margin-top:10px; font:400 11.5px/1.3 'Jost', 'Futura', system-ui, sans-serif; letter-spacing:.16em;
  text-transform:uppercase; color:var(--mist); }
@media (min-width:900px){
  .gal-track{ gap:18px; }
  .gal-item{ width:auto; }
  .gal-media{ height:min(540px, 40vw); aspect-ratio:var(--ratio); }
}
/* the count and, on computers, the arrows */
.gal-nav{ display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:14px; padding:0 var(--gal-pad); }
.gal-count{ margin-right:auto; font:400 12px/1 'Jost', 'Futura', system-ui, sans-serif; letter-spacing:.16em; color:var(--mist); }
.gal-count b{ font-weight:400; color:var(--cream); }
.gal-btn{ display:none; width:44px; height:44px; padding:0; border:1px solid rgba(251,248,236,.35); border-radius:0; background:none;
  color:var(--cream); cursor:pointer; place-items:center; transition:border-color .25s, background-color .25s, opacity .25s; }
.gal-btn .chev{ width:16px; height:16px; }
.gal-prev .chev{ transform:rotate(90deg); }
.gal-next .chev{ transform:rotate(-90deg); }
.gal-btn:disabled{ opacity:.3; cursor:default; }
.gal-btn:focus-visible{ outline:2px solid var(--yellow); outline-offset:2px; }
@media (hover:hover) and (min-width:900px){
  .gal-btn{ display:grid; }
  .gal-btn:not(:disabled):hover{ border-color:#F0C35E; background:rgba(240,195,94,.08); }
}
/* computers: the title, intro and the whole strip (with its caption) fit in the first screen */
@media (min-width:900px){
  .cat-top.has-gallery .cat-text{ padding-top:calc(88px + 24px); padding-bottom:28px; }
  .gal-media{ height:clamp(280px, calc(100vh - 470px), 520px); max-height:40vw; }
}

/* ===== Option A (founder, 19 Nov 2026; replaces the strip above): one item at a time =====
   Computers: the words on the left half, the gallery filling the right half from the top of the page (as the single
   photo did), its caption, count and arrows over the photo's foot. Phones: the words first, then the gallery full
   width in a 3:2 frame, swiped one item at a time, the caption and count under it. */
.gal-track{ gap:0; padding:0; scroll-padding-inline:0; }
.gal-item{ width:100%; }
.gal-media{ border-radius:0; }
.gal-item figcaption{ padding:0 var(--gutter); }
.gal-nav{ padding:0 var(--gutter); }
@media (min-width:900px){
  .cat-top.has-gallery{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); min-height:min(78vh, 640px); }
  .cat-top.has-gallery .cat-text{ order:1; display:flex; flex-direction:column; justify-content:center; max-width:none;
    padding:calc(88px + 32px) clamp(32px, 5vw, 80px) 56px max(var(--gutter), calc((100vw - 1200px) / 2)); }
  .cat-top.has-gallery .gal{ order:2; position:relative; padding:0; min-height:0; }
  .gal-track{ height:100%; }
  .gal-item, .gal-item figure{ height:100%; }
  .gal-item figure{ position:relative; }
  .gal-media{ height:100%; max-height:none; aspect-ratio:auto; }
  .gal-media::after{ content:""; position:absolute; inset:auto 0 0 0; height:120px; z-index:1; pointer-events:none;
    background:linear-gradient(180deg, rgba(14,36,20,0), rgba(14,36,20,.6)); }      /* the words over the photo's foot stay readable */
  .gal-media::before{ content:""; position:absolute; inset:0 0 auto 0; height:110px; z-index:1; pointer-events:none;
    background:linear-gradient(180deg, rgba(14,36,20,.5), rgba(14,36,20,0)); }       /* the menu over the photo's top */
  .gal-item figcaption{ position:absolute; z-index:2; left:28px; bottom:26px; margin:0; padding:0; color:var(--cream);
    text-shadow:0 1px 6px rgba(0,0,0,.5); }
  .gal-nav{ position:absolute; z-index:3; right:24px; bottom:16px; margin:0; padding:0; }
  .gal-count{ margin-right:8px; color:var(--cream); text-shadow:0 1px 6px rgba(0,0,0,.5); }
  .gal-btn{ background:rgba(14,36,20,.35); border-color:rgba(251,248,236,.55); }
}

/* swipe dots, phones only (founder, 19 Nov 2026): centred on the count's line; the one showing is longer and cream.
   Each is a 24 px tap target around a small dot. */
@media (max-width:899px){ .gal-nav{ position:relative; } }   /* phones only: computers pin it over the photo (fixed 19 Nov 2026) */
.gal-dots{ position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); display:flex; }
.gal-dot{ width:24px; height:24px; padding:0; border:0; background:none; cursor:pointer; display:grid; place-items:center; }
.gal-dot::before{ content:""; width:6px; height:6px; border-radius:3px; background:rgba(251,248,236,.38); transition:width .3s, background-color .3s; }
.gal-dot.on::before{ width:16px; background:var(--cream); }
.gal-dot:focus-visible{ outline:2px solid var(--yellow); outline-offset:-2px; }
@media (min-width:900px){ .gal-dots{ display:none; } }

/* the bird's name sits a little higher on computers, so a line can meet it from the words column (20 Nov 2026) */
@media (min-width:900px){
  .gal-item figcaption{ bottom:52px; }
  .gal-media::after{ height:150px; }
}

/* ===== The words beside the gallery (founder, 20 Nov 2026) =====
   Plain forest green. A short heading in Cormorant Garamond and a few lines in Jost, right-aligned towards the gallery;
   the page's name is a hidden heading (search engines, screen readers). Below them, "See some of the Himalayan
   specialities and rarities" with a chevron, in sand gold #D8C08A (the lighter partner of the tour cards' olive gold):
   on computers on exactly the same line as the bird's name across the gallery (both 11.5 px Jost, 52 px above the
   foot), pointing at it; on phones under the words, right before the gallery.
   (Tried and dropped the same day: a clip or photo behind or above the words, a circle photo, a card with a photo.) */
.visually-hidden{ position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.cat-lines{ text-align:right; }
.cat-line-1{ margin:0; font:500 22px/1.25 'Cormorant Garamond', Georgia, serif; color:var(--cream); text-wrap:balance; }
.cat-line-2{ max-width:34em; margin:8px 0 0 auto; font:400 14px/1.7 'Jost', 'Futura', system-ui, sans-serif; letter-spacing:.04em;
  color:var(--mist); text-wrap:balance; }
@media (max-width:899px){ .cat-top.has-gallery .cat-text{ padding-top:calc(56px + 28px); padding-bottom:24px; } }
@media (min-width:900px){
  .cat-top.has-gallery .cat-text{ position:relative; flex-direction:column; justify-content:center; align-items:flex-end;
    padding:calc(88px + 24px) 48px 96px max(var(--gutter), calc((100vw - 1200px) / 2)); }
  .cat-top.has-gallery .cat-lines{ max-width:30em; text-shadow:0 1px 10px rgba(8,20,12,.6); }
  .cat-line-1{ font-size:26px; }
}
/* (founder, 20 Nov 2026) the heading and paragraph left-aligned, a calm block in the left half */
.cat-lines{ text-align:left; }
.cat-line-2{ margin-left:0; }
@media (min-width:900px){ .cat-top.has-gallery .cat-text{ align-items:flex-start; padding-left:clamp(48px, 7vw, 120px); } }

/* a clip's first frame as a still on top while it starts; it fades once frames are flowing (21 Nov 2026) */
.gal-media .gal-cover{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; pointer-events:none;
  opacity:1; transition:opacity .35s ease; }
.gal-media .gal-cover.off{ opacity:0; }
@media (prefers-reduced-motion:reduce){ .gal-media .gal-cover{ transition:none; } }
/* (21 Nov 2026, a flicker at the header on clips) the still over a starting clip sits UNDER the photo's top and bottom
   shades (they are z-index 1), so the top darkening stays the same when the still fades: clip 0, still 0 (after it) */
.gal-media video{ z-index:0; }
.gal-media .gal-cover{ z-index:0; }

/* one set of type on every trail page (founder, 21 Nov 2026: "the fonts differ, use them consistently"):
   the title (icon + name) in Cormorant Garamond, as before; a heading line in Cormorant; the paragraph in Jost 14 px,
   soft mist; every line of small capitals in Jost 12 px */
.cat-top .cat-intro, .cat-line-2{ font:400 14px/1.75 'Jost', 'Futura', system-ui, sans-serif; letter-spacing:.04em; color:var(--mist); }
.cat-top .cat-intro{ max-width:34em; margin:16px 0 0; }
.cat-top .cat-kicker, .cat-top .cat-count{ font:400 12px/1.3 'Jost', 'Futura', system-ui, sans-serif; letter-spacing:.18em; text-transform:uppercase; }
.cat-top .cat-count{ margin-top:24px; }
.cat-lines .cat-line-1{ margin-top:18px; }

/* ===== Large screens (1280 px and wider): gallery 2/3, words 1/3 (founder, 21 Nov 2026) =====
   The gallery's frame is then close to 3:2, the shape of the photos, so they show almost whole (half and half cut
   them to a near square). The words column is narrower: titles a little smaller, less padding, and the gallery's
   title may wrap, its last line still level with the bird's name. Smaller laptops and phones keep their layout. */
@media (min-width:1280px){
  .cat-top.has-gallery{ grid-template-columns:minmax(0, 1fr) minmax(0, 2fr); min-height:min(80vh, 45vw); }
  .cat-top.has-gallery .cat-text{ padding-left:clamp(40px, 3.6vw, 72px); padding-right:40px; }
  .cat-top.has-gallery h1{ font-size:clamp(40px, 2.4vw + 10px, 52px); }
  .cat-top.has-gallery .cat-line-1{ font-size:22px; }
  .cat-top.has-gallery .cat-lines, .cat-top.has-gallery .cat-intro{ max-width:none; }
}
/* (21 Nov 2026) the words column starts where the logo starts (the header's centred 1296 px frame, 48 px inside) and is
   ~400 px of text wide on every large screen; the gallery takes all the rest (about 2/3 at 1440 px, more on wider
   screens). (The gallery's title was removed on 22 Nov 2026, founder.) */
@media (min-width:1280px){
  .cat-top.has-gallery{ grid-template-columns:calc(max(0px, (100vw - 1296px) / 2) + 48px + 440px) minmax(0, 1fr); }
  .cat-top.has-gallery .cat-text{ padding-left:calc(max(0px, (100vw - 1296px) / 2) + 48px); padding-right:40px; }
}
/* measured from the page's own width, not the screen's (which counts the scrollbar on Windows): the words start exactly
   under the logo */
@media (min-width:1280px){
  .cat-top.has-gallery{ container-type:inline-size; grid-template-columns:calc(max(0px, (100% - 1296px) / 2) + 488px) minmax(0, 1fr); }
  .cat-top.has-gallery .cat-text{ padding-left:calc(max(0px, (100cqw - 1296px) / 2) + 48px); }
}

/* ===== Phones and small tablets (founder, 22 Nov 2026): the gallery first, just below the header =====
   "Show, then tell": the photo the visitor sees first; under it the caption and dots, then "Choose your trail", the
   title, the text and the number of destinations, then the tour cards. Only the visual order changes: in the page's
   code the title still comes first (search engines, screen readers). Computers are unchanged. */
@media (max-width:899px){
  .cat-top.has-gallery{ display:flex; flex-direction:column; }
  .cat-top.has-gallery .gal{ order:-1; margin-top:56px; }
  .cat-top.has-gallery .cat-text{ padding-top:26px; }
}
@media (min-width:768px) and (max-width:899px){ .cat-top.has-gallery .gal{ margin-top:88px; } }
@media (max-width:899px){ .cat-top.has-gallery .gal{ padding-bottom:4px; } .cat-top.has-gallery .cat-text{ padding-top:24px; } }
/* bug (founder, 23 Nov 2026: "why can't I see forward and backward arrows in the gallery on desktop"): the arrows showed
   only when the browser reports a hovering mouse, so a computer whose browser says "no hover" (the founder's Chrome,
   some touchscreen laptops) had neither arrows nor the phones' dots. Now every screen 900 px and wider shows them;
   only the hover glow above still needs a mouse. */
@media (min-width:900px){ .gal-btn{ display:grid; } }
