/* Trip Ideas pages (generated by scripts/trip-ideas/build.py).
   Tokens, nav, buttons, sections and footer mirror index.html; keep the two in step. */

:root {
  --espresso: #3b2f2a;
  --espresso-deep: #322722;
  --linen: #f4f1eb;
  --warm-white: #fdfcfa;
  --brass: #a8915e;
  --brass-bright: #c0a874;
  --brass-text: #8a7444; /* brass darkened for small text on light backgrounds (contrast) */
  --taupe: #8c7b6b;
  --ink-soft: #5b4d45;
  --hairline: #e4ddd0;
  --font-primary: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Lora", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--espresso);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

/* A <picture> only offers WebP copies; its box is left out so every img rule and layout applies as before. */
picture {
  display: contents;
}

/* Cards and buttons set their own display, which would otherwise beat the hidden attribute. */
[hidden] {
  display: none !important;
}

button.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.nav.scrolled {
  background: var(--espresso);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

/* Logo PNG is square (logo.png 2000x2000, the pages' logo-296.png copy 296x296) with content at 38.75% to 64.55%
   of its height; negative margins crop the padding. */
.logo-crop {
  --w: 148px;
  width: var(--w);
  height: auto;
  display: block;
  margin-top: calc(var(--w) * -0.3875);
  margin-bottom: calc(var(--w) * -0.3545);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--linen);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 160ms ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  opacity: 1;
}

.btn {
  display: inline-block;
  background: var(--brass);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  transition: background-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--brass-bright);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(244, 241, 235, 0.55);
  color: var(--linen);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(244, 241, 235, 0.1);
  border-color: var(--linen);
}

.nav-links .btn {
  padding: 10px 20px;
  font-size: 13px;
}

/* Trip Ideas menu in the nav (markup generated by build.py). */
.nav-drop {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -22px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  background: var(--espresso);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.nav-links .nav-menu a {
  padding: 11px 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.nav-links .nav-menu a:hover,
.nav-links .nav-menu a:focus-visible {
  background: rgba(244, 241, 235, 0.08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--linen);
  background: var(--espresso-deep);
}

.hero-short {
  min-height: 62vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: rgba(21, 17, 14, 0.5);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 150px 0 80px;
  max-width: 780px;
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 20px;
}

.hero .kicker,
.on-dark .kicker {
  color: var(--brass-bright);
}

.kicker a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}

.hero .sub {
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(244, 241, 235, 0.92);
  max-width: 640px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 15px;
  color: rgba(244, 241, 235, 0.85);
  max-width: 640px;
  margin-bottom: 18px;
}

.hero-note a {
  color: var(--linen);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}

.hero-note a:hover,
.hero-note a:focus-visible {
  border-bottom-color: var(--linen);
}

.hero-meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(244, 241, 235, 0.78);
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}

.on-linen {
  background: var(--linen);
}

.on-dark {
  background: var(--espresso);
  color: var(--linen);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--brass);
  margin-bottom: 18px;
}

.lede {
  font-size: 17.5px;
  color: var(--ink-soft);
}

.lede + .lede {
  margin-top: 16px;
}

.on-dark .lede {
  color: rgba(244, 241, 235, 0.85);
}

.callout {
  background: var(--linen);
  border-left: 3px solid var(--brass);
  padding: 24px 32px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  color: var(--espresso);
}

.on-dark .callout {
  background: rgba(244, 241, 235, 0.06);
  color: var(--linen);
  margin-top: 44px;
}

/* ---------- Overview + facts ---------- */
.overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}

.overview-text p {
  font-size: 16.5px;
  color: var(--ink-soft);
}

.overview-text p + p {
  margin-top: 18px;
}

.overview-text .lede {
  font-size: 17.5px;
}

.sub-h {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 34px 0 10px;
}

.facts {
  background: var(--linen);
  border-top: 3px solid var(--brass);
  padding: 30px 30px 26px;
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 14px;
}

.label-gap {
  margin-top: 26px;
}

.facts dl div {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.facts dl div:last-child {
  border-bottom: 0;
}

.facts dt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 2px;
}

.facts dd {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.affil {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- Day by day ---------- */
.days {
  border-top: 1px solid var(--hairline);
}

.day {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
}

.day.has-img {
  grid-template-columns: 130px minmax(0, 1fr) 340px;
}

.day-label {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--brass-text);
  line-height: 1.3;
}

.day-text h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.day-text p {
  font-size: 15.5px;
  color: var(--ink-soft);
}

.day-text p + p {
  margin-top: 12px;
}

.day-text .overnight {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
}

.overnight a {
  color: var(--espresso);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}

.day-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 36px;
}

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

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

.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-img {
  overflow: hidden;
  margin-bottom: 18px;
}

.card-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 400ms ease;
}

.card:hover .card-img img,
.card:focus-visible .card-img img {
  transform: scale(1.03);
}

.card-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--ink-soft);
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--espresso);
  border-bottom: 1px solid var(--brass);
}

.region {
  margin: 0 0 28px;
}

/* ---------- Collections: the collection page, its single-resort trips, the index card ---------- */
.collection-intro {
  margin-bottom: 80px;
}

.group-lede {
  max-width: 720px;
  margin: -12px 0 28px;
}

.planning-note {
  font-size: 14.5px;
  color: var(--ink-soft);
  border-left: 3px solid var(--brass);
  padding: 4px 0 4px 18px;
}

.collection-intro .planning-note {
  background: var(--linen);
  border-left: 0;
  border-top: 3px solid var(--brass);
  padding: 26px 28px;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.details + .planning-note {
  margin-top: 40px;
}

.detail {
  background: var(--warm-white);
  border-top: 3px solid var(--brass);
  padding: 28px 28px 26px;
}

.detail h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 14px;
}

.detail p {
  font-size: 15px;
  color: var(--ink-soft);
}

.detail p + p {
  margin-top: 12px;
}

.hotels-one .hotel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.hotels-one .card-img {
  margin-bottom: 0;
}

.hotels-one .hotel.no-img {
  grid-template-columns: minmax(0, 720px);
}

.hotel .card-img img {
  aspect-ratio: 3 / 2;
}

.hotel h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hotel-text p:not(.card-kicker) {
  font-size: 15px;
  color: var(--ink-soft);
}

.hotel-text p:not(.card-kicker) + p {
  margin-top: 12px;
}

.faq,
.areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
}

.faq-item h3,
.area h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}

.faq-item p,
.area p {
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* When the page's content last changed (updated.json). */
.updated {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.nav-menu hr {
  border: 0;
  border-top: 1px solid rgba(244, 241, 235, 0.16);
  margin: 8px 22px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Trip list + filters (index; behaviour in trip-ideas.js) ---------- */
.browse.has-filters {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

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

.has-filters .cards-trips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.region-group:not([hidden]) ~ .region-group:not([hidden]) {
  margin-top: 64px;
}

.filter-toggle,
.filters-done {
  display: none;
}

.filters {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding-right: 6px;
}

.filters-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.filters-head .label {
  margin-bottom: 0;
}

.filters-clear:not(.btn) {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--brass);
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--espresso);
  cursor: pointer;
}

.filter-group {
  border: 0;
  border-top: 1px solid var(--hairline);
  padding: 16px 0 12px;
}

/* Floated so the legend sits inside the group, under the rule, like any other heading. */
.filter-group legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--espresso);
}

.filter-opt {
  clear: both;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  cursor: pointer;
}

.filter-opt input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brass);
  cursor: pointer;
}

.filter-name {
  flex: 1;
}

.filter-n {
  font-size: 12.5px;
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
}

.filter-opt:has(input:checked) .filter-name {
  color: var(--espresso);
  font-weight: 600;
}

.filter-opt.is-off {
  opacity: 0.42;
  cursor: default;
}

.filter-opt.is-off input {
  cursor: default;
}

.results-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 28px;
}

.no-results {
  background: var(--linen);
  padding: 40px;
}

.no-results h2 {
  font-size: 26px;
}

.no-results-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}

.more-note {
  max-width: 720px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.more-note h2 {
  font-size: clamp(24px, 2.6vw, 30px);
}

.more-note .text-link {
  display: inline-block;
  margin-top: 18px;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--espresso);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}

/* ---------- Route map (trip pages; SVG drawn by geo.py) ---------- */
.route {
  margin-top: 72px;
}

.route-map {
  border: 1px solid var(--hairline);
}

.map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-narrow {
  display: none;
}

.map-sea {
  fill: #d7e0dd;
}

.map-land path {
  fill: #f7f3ea;
  stroke: #b3a58c;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.map-border path {
  fill: none;
  stroke: #c3b49b;
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.map-grid path {
  fill: none;
  stroke: var(--taupe);
  stroke-opacity: 0.1;
  stroke-width: 1;
}

.map-leg path {
  fill: none;
  stroke: #8f7a4e;
  stroke-width: 2.4;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
}

.map-arrow {
  fill: #8f7a4e;
}

.map-halo {
  fill: var(--brass);
  fill-opacity: 0.22;
}

.map-dot {
  fill: var(--brass);
  stroke: var(--espresso);
  stroke-width: 2;
}

.map-stop-num {
  font-family: var(--font-primary);
  font-size: 11.5px;
  font-weight: 700;
  fill: #fff;
}

.map-label,
.map-sub {
  font-family: var(--font-primary);
  paint-order: stroke;
  stroke: rgba(247, 243, 234, 0.92);
  stroke-linejoin: round;
}

.map-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  fill: var(--espresso);
  stroke-width: 4px;
}

.map-sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  fill: var(--ink-soft);
  stroke-width: 3.5px;
}

/* ---------- Arrange (marks) ---------- */
.marks {
  list-style: none;
  max-width: 820px;
}

.marks li {
  font-size: 16px;
  padding: 0 0 0 24px;
  margin-bottom: 18px;
  position: relative;
}

.marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--brass);
}

.marks-on-dark li {
  color: rgba(244, 241, 235, 0.85);
}

.marks-on-dark strong {
  color: var(--linen);
  font-weight: 600;
}

/* ---------- CTA ---------- */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section .lede {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .section-head {
  margin-bottom: 36px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--espresso-deep);
  color: var(--taupe);
  padding: 52px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-meta {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  line-height: 2;
  text-align: right;
}

.footer-meta a {
  color: var(--brass-bright);
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 640ms ease-out, transform 640ms ease-out;
  }

  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
/* The full nav needs about 1,140px. From 941 to 1180px the nav's Start a Conversation button drops (each
   page carries its own), so The Service and Membership stay (Rashaad, 2026-11-16). */
@media (min-width: 941px) and (max-width: 1180px) {
  .nav-links .nav-cta {
    display: none;
  }
}

@media (max-width: 940px) {
  .overview {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .day,
  .day.has-img {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .day-img {
    order: -1;
  }

  .cards-2,
  .cards-3,
  .cards-trips,
  .has-filters .cards-trips {
    grid-template-columns: 1fr;
  }

  .details,
  .faq,
  .areas,
  .hotels-one .hotel {
    grid-template-columns: 1fr;
  }

  .hotels-one .hotel {
    gap: 22px;
  }

  /* Filters fold into a button above the list. */
  .browse.has-filters {
    display: block;
  }

  .browse .filter-toggle {
    display: inline-block;
    margin-bottom: 24px;
    background: transparent;
    color: var(--espresso);
    border: 1px solid var(--espresso);
  }

  .browse .filter-toggle:hover,
  .browse .filter-toggle:focus-visible {
    background: var(--linen);
  }

  .filters {
    display: none;
    position: static;
    max-height: none;
    overflow: visible;
    padding: 20px 22px 22px;
    margin-bottom: 36px;
    background: var(--linen);
  }

  .filters.open {
    display: block;
  }

  .filters-done {
    display: block;
    width: 100%;
    margin-top: 12px;
  }

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

  .nav-links a:not(.btn),
  .nav-drop {
    display: none;
  }

  /* Same as index.html: on phones the hero carries the primary CTA, Client Login stays in the nav. */
  .nav-links .nav-cta {
    display: none;
  }

  .nav-links .btn {
    padding: 10px 18px;
    font-size: 12px;
    white-space: nowrap;
  }

  section {
    padding: 72px 0;
  }

  .footer-meta {
    text-align: left;
  }
}

/* The narrow map keeps place names readable on a phone. */
@media (max-width: 700px) {
  .map-wide {
    display: none;
  }

  .map-narrow {
    display: block;
  }

  .route {
    margin-top: 56px;
  }

  .no-results {
    padding: 28px 24px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .callout {
    padding: 20px 22px;
  }
}

/* ---------- Index front door (blueprint "Trip Ideas front door", Rashaad 2026-11-16) ----------
   Hero with the finder, then where to go, kinds of trip and three to start with, all .landing-only. A view that
   arrives filtered gets html.ti-filtered from the head script: no front door, a shorter hero naming the place. */
.hero-index .hero-inner {
  max-width: 980px;
  padding: 150px 0 64px;
}

.hero-index .sub {
  max-width: 640px;
}

.hero-index .hero-bg {
  transition: opacity 300ms ease;
}

html.ti-swap .hero-index .hero-bg {
  opacity: 0;
}

.finder {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr auto;
  margin: 30px 0 22px;
  background: var(--warm-white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.finder-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 20px 12px;
  border-right: 1px solid var(--hairline);
}

.finder-field span {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-text);
}

.finder select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 2px 22px 2px 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  color: var(--espresso);
  cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238c7b6b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center;
}

.finder select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.finder .btn {
  padding: 0 34px;
  font-size: 15px;
}

.hero-back {
  display: none;
  font-size: 15px;
}

.hero-back a {
  color: var(--linen);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}

.hero-back a:hover,
.hero-back a:focus-visible {
  border-bottom-color: var(--linen);
}

html.ti-filtered .landing-only {
  display: none;
}

html.ti-filtered .hero-index {
  min-height: 0;
}

html.ti-filtered .hero-index .hero-inner {
  padding: 140px 0 48px;
}

html.ti-filtered .hero-index .hero-veil {
  background: rgba(21, 17, 14, 0.6);
}

html.ti-filtered .hero-index .sub,
html.ti-filtered .hero-index .hero-note {
  display: none;
}

html.ti-filtered .hero-back {
  display: block;
}

.where-section {
  padding: 88px 0 72px;
}

/* One row of tiles, however many parts of the world there are (five with Antarctica). */
.where {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--linen);
  text-decoration: none;
  background: var(--espresso-deep);
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 400ms ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 17, 14, 0.78), rgba(21, 17, 14, 0) 58%);
}

.tile:hover img,
.tile:focus-visible img {
  transform: scale(1.03);
}

.tile-text {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile-name {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
}

.tile-meta {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.where-countries {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 2;
}

.where-countries a {
  margin-right: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--hairline);
}

.where-countries a:hover,
.where-countries a:focus-visible {
  color: var(--espresso);
  border-bottom-color: var(--brass);
}

.kinds-section {
  padding: 80px 0 88px;
}

.carousel-head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.carousel-head h2 {
  margin-bottom: 0;
}

.carousel-btns {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--taupe);
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.carousel-btn::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.carousel-prev::before {
  margin: 0 0 0 4px;
  transform: rotate(135deg);
}

.carousel-btn:hover:not(:disabled),
.carousel-btn:focus-visible {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--linen);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* About five and a half tiles in view, so the row reads as one you can scroll. */
.kinds {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 16px) / 5.5);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.kinds::-webkit-scrollbar {
  display: none;
}

.tile-kind {
  scroll-snap-align: start;
}

.tile-kind img {
  aspect-ratio: 3 / 4;
}

.tile-kind .tile-text {
  left: 14px;
  right: 14px;
  bottom: 14px;
}

.tile-kind .tile-name {
  font-size: 17px;
}

.featured-section {
  padding: 88px 0 0;
}

.browse-head {
  margin-bottom: 40px;
}

@media (max-width: 940px) {
  .where {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }

  /* An odd last tile takes the full width, as a wider photo. */
  .where-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .where-item:last-child:nth-child(odd) .tile img {
    aspect-ratio: 16 / 9;
  }

  .kinds {
    grid-auto-columns: calc((100% - 2 * 14px) / 3.3);
    gap: 14px;
  }

  .finder {
    grid-template-columns: 1fr 1fr;
  }

  .finder-field:nth-child(2) {
    border-right: 0;
  }

  .finder-field:nth-child(3) {
    border-top: 1px solid var(--hairline);
  }

  .finder .btn {
    padding: 16px;
  }
}

@media (max-width: 700px) {
  .carousel-btns {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-index .hero-inner {
    padding: 120px 0 40px;
  }

  html.ti-filtered .hero-index .hero-inner {
    padding: 112px 0 32px;
  }

  .finder {
    grid-template-columns: 1fr;
  }

  .finder-field {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .finder-field:nth-child(3) {
    border-top: 0;
  }

  .where-section,
  .kinds-section {
    padding: 64px 0 56px;
  }

  .featured-section {
    padding-top: 64px;
  }

  .carousel-head {
    margin-bottom: 28px;
  }

  .tile img {
    aspect-ratio: 1 / 1;
  }

  .tile-name {
    font-size: 19px;
  }

  .tile-text {
    left: 14px;
    right: 14px;
    bottom: 12px;
  }

  .where-countries {
    font-size: 13.5px;
    line-height: 1.85;
  }

  .where-countries a {
    margin-right: 8px;
  }

  .kinds {
    grid-auto-columns: 44%;
    gap: 12px;
  }

  .tile-kind img {
    aspect-ratio: 3 / 4;
  }
}
