﻿/* Roamlly — Fresh & airy tour packages site */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..900,0..100,0..1;1,9..144,300..900,0..100,0..1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

:root {
  --bg: #F6F4EE;
  --bg-2: #EEEBDF;
  --ink: #1A1D1A;
  --ink-soft: #3A3D38;
  --muted: #7A7D76;
  --line: #D9D4C3;
  --sage: #3C5A47;
  --sage-soft: #D3DFD5;
  --sky: #A8C5D6;
  --sky-soft: #E1ECF2;
  --clay: #D96B3F;
  --butter: #E8C868;
  --white: #FFFDF7;
  --radius: 2px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.serif {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  letter-spacing: -0.02em;
}
.serif-tight { font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.numeral {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

input, select, textarea {
  font-family: inherit;
  color: inherit;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .15s ease, background .15s, color .15s, border-color .15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--sage); }
.btn-sage { background: var(--sage); color: var(--white); }
.btn-clay { background: var(--clay); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(26,29,26,0.06); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: all .15s;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Placeholder image treatment */
.ph {
  position: relative;
  background: var(--sage-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    rgba(255,255,255,0.35) 10px 11px
  );
}
.ph[style*="url("]::before { display: none; }
.ph-label {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  background: var(--bg);
  padding: 4px 8px;
  border: 1px solid var(--sage);
  border-radius: 2px;
  opacity: 0.8;
}
.ph-sky { background: var(--sky-soft); }
.ph-sky .ph-label { color: #3F6B82; border-color: #3F6B82; }
.ph-clay { background: #F2D9CB; }
.ph-clay .ph-label { color: var(--clay); border-color: var(--clay); }
.ph-butter { background: #F3E8C4; }
.ph-butter .ph-label { color: #8A6F1F; border-color: #8A6F1F; }
.ph-ink { background: #2A2D28; }
.ph-ink .ph-label { color: #F3E8C4; border-color: #F3E8C4; background: transparent; }

/* Ticker */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.ticker {
  display: flex;
  gap: 48px;
  padding: 10px 0;
  animation: ticker 60s linear infinite;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-dot { color: var(--clay); }

/* Scroll */
.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Utility */
.hairline { height: 1px; background: var(--line); border: 0; }
.vhairline { width: 1px; background: var(--line); }

/* Custom scrollbar hidden for overflow regions */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Hamburger hidden by default, shown in mobile media query */
.nav-hamburger { display: none; }

/* Page transitions */
.fade-in {
  opacity: 1;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slider */
.duration-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line);
  outline: none;
  border-radius: 2px;
}
.duration-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  cursor: grab;
  border: 3px solid var(--bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: transform .15s;
}
.duration-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.duration-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.2); }
.duration-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  cursor: grab;
  border: 3px solid var(--bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

/* wobble */
.wobble {
  display: inline-block;
  animation: wobble 5s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(2deg); }
}

/* Route line animation */
@keyframes dash {
  to { stroke-dashoffset: -40; }
}
.route-line {
  stroke-dasharray: 4 6;
  animation: dash 3s linear infinite;
}

/* Day timeline */
.day-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 16px;
  flex-shrink: 0;
}
.day-dot.active { background: var(--ink); color: var(--white); }

.focus-panel [data-dc-slot] { display: block; }

/* ═══════════════════════════════════════════════
   IMAGE HEIGHT CAPS
   Prevent tall 4:5 aspect-ratio cards from
   becoming massive on wide screens.
═══════════════════════════════════════════════ */

/* Featured section cards — cap height */
section button > div[style*="aspect-ratio"] {
  max-height: 400px !important;
  aspect-ratio: unset !important;
  height: 400px !important;
}

/* Tour cards in listing page */
div[style*="cursor: pointer"] > div[style*="aspect-ratio"],
div[style*="cursor:pointer"] > div[style*="aspect-ratio"] {
  max-height: 320px !important;
  aspect-ratio: unset !important;
  height: 320px !important;
}

/* Journal teaser */
a > div[style*="aspect-ratio"] {
  max-height: 260px !important;
  aspect-ratio: unset !important;
  height: 260px !important;
}

/* Detail page image grid cells */
section > div > div[style*="grid-row"] {
  max-height: 480px !important;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   !important needed to override React inline styles
═══════════════════════════════════════════════ */

/* ── Tablet — ≤1024px ───────────────────────── */
@media (max-width: 1024px) {

  /* Nav compress */
  nav { padding: 14px 24px !important; }

  /* ALL section side padding */
  section { padding-left: 24px !important; padding-right: 24px !important; }
  footer  { padding-left: 24px !important; padding-right: 24px !important; }

  /* Shrink huge headings */
  .serif[style*="font-size: 96px"]  { font-size: 64px !important; }
  .serif[style*="fontSize"]         { }

  /* Hero 2-col grid → 1-col */
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
  }
  /* 1fr / 1.3fr (HowItWorks) */
  [style*="grid-template-columns: 1fr 1.3fr"] {
    grid-template-columns: 1fr !important;
  }

  /* 3-col → 2-col */
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Remove stagger on featured middle card */
  [style*="grid-template-columns: repeat(3, 1fr)"] > * {
    transform: none !important;
  }

  /* 4-col → 2-col */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer 5-col → 2-col */
  [style*="grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }

  /* Detail 1fr 2fr → 1-col */
  [style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Mobile — ≤768px ─────────────────────────── */
@media (max-width: 768px) {

  /* Nav — mobile */
  nav { padding: 12px 16px !important; }
  nav .serif { font-size: 18px !important; }
  .nav-links-desktop { display: none !important; }
  .nav-actions > *:not(.nav-hamburger) { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* Section / footer side padding */
  section { padding-left: 16px !important; padding-right: 16px !important; }
  footer  { padding: 48px 16px 24px !important; }

  /* ALL grids → single column on mobile */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Remove all inline transforms (featured card stagger) */
  [style*="translateY(40px)"] { transform: none !important; }

  /* Heading sizes */
  h1.serif { font-size: 40px !important; line-height: 1.05 !important; }
  h2.serif { font-size: 30px !important; }
  .numeral[style*="180"] { font-size: 100px !important; }
  .numeral[style*="54"]  { font-size: 36px !important; }

  /* Duration slider max-width */
  [style*="maxWidth: 720"] { max-width: 100% !important; }

  /* Chips smaller */
  .chip { font-size: 11px !important; padding: 5px 9px !important; }

  /* Section header row → column */
  [style*="justify-content: space-between"][style*="align-items: flex-end"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  /* Booking aside — unstick */
  aside { position: static !important; top: auto !important; }

  /* Ticker */
  .ticker { font-size: 10px !important; gap: 20px !important; }

  /* Tour row list view → simpler */
  [style*="grid-template-columns: 60px 140px"] {
    grid-template-columns: 48px 100px 1fr !important;
    gap: 12px !important;
  }
}

/* ── Small mobile — ≤480px ──────────────────── */
@media (max-width: 480px) {
  nav { padding: 12px 12px !important; }
  section { padding-left: 12px !important; padding-right: 12px !important; }
  h1.serif { font-size: 34px !important; }
  h2.serif { font-size: 26px !important; }
  .btn { padding: 10px 14px !important; font-size: 13px !important; }
}
