/* ------------------------------------------------------------------
   Garnet Tourism — brand-aligned design tokens (v2)
   Aligned with Garnet Toolkit Final brandbook:
     - Primary  Garnet Red #A91E22
     - Secondary Ocean Blue #2271B3
     - Six-element communication system
       (boarding pass · message bubble · journey line ·
        gem pattern · tagline pill · logo)
   ------------------------------------------------------------------ */

:root {
  /* Brand colour */
  --garnet-red: #a91e22;
  --garnet-red-deep: #7a1518;
  --garnet-red-soft: #fdeceb;
  --ocean-blue: #2271b3;
  --ocean-blue-soft: #eaf2fa;

  /* Neutrals */
  --ink: #111110;
  --ink-soft: #3d3d3a;
  --muted: #6b6b66;
  --muted-2: #9a9a94;
  --line: #e6e6e2;
  --surface: #fafaf9;
  --surface-2: #f4f4f2;
  --paper: #ffffff;

  /* Shape */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(17, 17, 16, 0.08);
  --shadow-lg: 0 24px 64px rgba(17, 17, 16, 0.14);
  --shadow-card: 0 10px 40px rgba(17, 17, 16, 0.06);

  /* Type */
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Readex Pro", system-ui, sans-serif; /* heavy weight */

  /* Layout */
  --max: 1200px;
  --max-wide: 1320px;
  --header-h: 72px;
}

/* Reset + base --------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5.4vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

/* Utility --------------------------------------------------------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap--wide {
  max-width: var(--max-wide);
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--garnet-red);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.6;
}

/* Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: filter 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}

.btn--red {
  background: var(--garnet-red);
  color: #fff;
}
.btn--red:hover {
  filter: brightness(0.92);
}

.btn--blue {
  background: var(--ocean-blue);
  color: #fff;
}
.btn--blue:hover {
  filter: brightness(0.94);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

/* Signature tagline pill ---------------------------------------- */
/* The locked "Always by your side." treatment from the brandbook.
   Uses deep-red pattern strip with white text in reverse. */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  background-color: var(--garnet-red-deep);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.18) 25%, transparent 25%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.12) 25%, transparent 25%);
  background-size: 12px 12px;
  background-position: 0 0, 0 0, 6px 6px, 6px 6px;
}

.tag-pill--sm {
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
}

/* Eyebrow/section pill (text-only, red, for eyebrows) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  background: var(--garnet-red-soft);
  color: var(--garnet-red);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--garnet-red);
}

/* Boarding-pass card -------------------------------------------- */
/* The master Garnet layout: a rounded rectangle with a centred notch
   at the top and bottom, a vertical dashed perforation running between
   them, a building icon at the top and a plane icon at the bottom. */
.pass {
  --notch: 28px;
  --pad: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--pad);
  overflow: hidden;
}

.pass--no-shadow {
  box-shadow: none;
  border: 1px solid var(--line);
}

/* Top + bottom notches — use background-coloured circles masked in */
.pass::before,
.pass::after {
  content: "";
  position: absolute;
  left: 50%;
  width: var(--notch);
  height: calc(var(--notch) / 2);
  background: var(--surface);
  transform: translateX(-50%);
  z-index: 2;
}
.pass::before {
  top: 0;
  border-radius: 0 0 999px 999px;
}
.pass::after {
  bottom: 0;
  border-radius: 999px 999px 0 0;
}

/* Variants that announce what page background the pass is sitting on */
.pass[data-bg="paper"]::before,
.pass[data-bg="paper"]::after {
  background: var(--paper);
}
.pass[data-bg="surface-2"]::before,
.pass[data-bg="surface-2"]::after {
  background: var(--surface-2);
}
.pass[data-bg="red"]::before,
.pass[data-bg="red"]::after {
  background: var(--garnet-red);
}
.pass[data-bg="ink"]::before,
.pass[data-bg="ink"]::after {
  background: var(--ink);
}

/* Perforation line + building (top) + plane (bottom) ------------ */
.pass__perf {
  position: absolute;
  top: calc(var(--notch) / 2);
  bottom: calc(var(--notch) / 2);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  border-left: 2px dashed rgba(17, 17, 16, 0.18);
  z-index: 1;
  pointer-events: none;
}

.pass__mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  z-index: 3;
  color: var(--garnet-red);
}
.pass__mark--top {
  top: 8px;
}
.pass__mark--bot {
  bottom: 8px;
}

/* Layout slots inside a pass */
.pass__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: stretch;
}

@media (max-width: 760px) {
  .pass__grid {
    grid-template-columns: 1fr;
  }
}

.pass__media {
  position: relative;
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  min-height: 320px;
  background: #d7d7d1;
}

.pass__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pass__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1rem);
}

.pass__headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.pass__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
}

/* QR placeholder in the top-right of a pass */
.pass__qr {
  position: absolute;
  top: calc(var(--pad) * 0.75);
  right: calc(var(--pad) * 0.75);
  width: 56px;
  height: 56px;
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--ink) 75%),
    linear-gradient(-45deg, transparent 75%, var(--ink) 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  border-radius: 4px;
  opacity: 0.9;
  z-index: 2;
}

/* Small, lower-contrast QR for less-prominent use */
.pass__qr--sm {
  width: 40px;
  height: 40px;
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  top: calc(var(--pad) * 0.6);
  right: calc(var(--pad) * 0.6);
}

/* Message bubble device ----------------------------------------- */
/* A small rounded message bubble with a faceted gem mark and the
   concierge's voice. Always guidance, never promotion. */
.msg {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem 0.75rem 0.65rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(17, 17, 16, 0.12);
  max-width: 320px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}

.msg__mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.msg__mark svg {
  width: 14px;
  height: 14px;
}

.msg__text {
  flex: 1;
}

.msg--on-photo {
  position: absolute;
  z-index: 3;
}

.msg--right::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.04);
}

.msg--left::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

/* Journey line (horizontal + vertical) -------------------------- */
.journey {
  position: relative;
  border-left: 2px dashed rgba(17, 17, 16, 0.2);
  padding: 0 0 0 1.5rem;
}

.journey--h {
  border-left: none;
  border-top: 2px dashed rgba(17, 17, 16, 0.2);
  padding: 1.5rem 0 0;
}

/* Search banner (re-uses existing markup from search-tabs.js) --- */
.search-banner {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.search-banner--inline {
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.search-banner--flush {
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.search-banner__tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fafaf9 100%);
}

.search-banner__tab {
  flex: 1;
  padding: 0.95rem 0.75rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.search-banner__tab:hover {
  color: var(--ink);
  background: rgba(169, 30, 34, 0.04);
}

.search-banner__tab.is-active {
  color: var(--garnet-red);
  border-bottom-color: var(--garnet-red);
  background: #fff;
}

.search-banner__panel {
  display: none;
}
.search-banner__panel.is-active {
  display: block;
}

.search-banner__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.search-banner__field {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.search-banner__field:last-of-type {
  border-right: none;
}

.search-banner__field label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 0.3rem;
}

.search-banner__field input,
.search-banner__field select {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

.search-banner__field--action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: none;
  background: var(--surface);
}

.search-banner__submit {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--garnet-red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.search-banner__submit:hover {
  filter: brightness(0.92);
}

@media (max-width: 720px) {
  .search-banner__grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-banner__field--action {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
}

/* Site nav ------------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-nav.is-solid {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.site-nav__links {
  display: none;
  gap: 1.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .site-nav__links {
    display: flex;
  }
}

.site-nav__cta {
  background: var(--garnet-red);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav--on-dark .site-nav__links a {
  color: rgba(255, 255, 255, 0.92);
}

.site-nav--on-dark .logo-garnet .wordmark {
  fill: #fff;
}

.site-nav--on-dark.is-solid .logo-garnet .wordmark {
  fill: var(--ink);
}

.site-nav--on-dark.is-solid .site-nav__links a {
  color: var(--ink-soft);
}

/* Logo ---------------------------------------------------------- */
.logo-garnet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-garnet svg {
  height: 36px;
  width: auto;
}

/* Footer -------------------------------------------------------- */
.foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 3rem 1.5rem 2.5rem;
  font-size: 0.85rem;
}

.foot__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.foot h4 {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.foot a {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.85rem;
}
.foot a:hover {
  color: #fff;
}

.foot__sig {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}

/* Destination card (mini boarding pass) ------------------------ */
.dcard {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #d7d7d1;
  box-shadow: var(--shadow);
}

.dcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.dcard:hover .dcard__img {
  transform: scale(1.04);
}

.dcard__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 55%);
}

.dcard__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  color: #fff;
}

.dcard__tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.dcard__name {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Stat bar ------------------------------------------------------ */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--garnet-red);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  gap: 1rem;
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .stat-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-bar__n {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat-bar__l {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.95;
}
