/* =============================================================
   Itinerary Store · app.css
   Light, travel-editorial palette, mobile-first.
   ============================================================= */

:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #0e1d2b;
  --ink-2: #324858;
  --muted: #6b7c8c;
  --line: #e7e2d6;
  --line-2: #f1ede1;
  --brand: #0e6b6b;        /* deep teal */
  --brand-2: #115e5e;
  --brand-ink: #fff;
  --accent: #d97706;       /* warm sand */
  --accent-2: #b45309;
  --pos: #16a34a;
  --warn: #b45309;
  --neg: #b91c1c;
  --shadow-1: 0 2px 8px rgba(14, 29, 43, .06);
  --shadow-2: 0 12px 32px rgba(14, 29, 43, .10);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 68px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Source Serif Pro", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; padding: 12px 16px; background: #000; color: #fff; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink);
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand); color: #fff;
  display: inline-grid; place-items: center; font-size: 16px;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-2); font-weight: 500; }
.site-nav a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 9px 18px; border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--brand-2); color: #fff; }
.nav-cta-secondary {
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px;
}
.nav-link-muted { color: var(--muted) !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  width: 42px; height: 42px; border-radius: 12px; padding: 0;
  margin-left: auto; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }

@media (max-width: 880px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start;
    background: #fff; padding: 16px 22px; gap: 14px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%); transition: transform .25s ease;
  }
  .site-nav.is-open { transform: translateY(0); }
  .nav-toggle { display: inline-block; }
  .site-nav a { width: 100%; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-cta { display: inline-block; width: auto !important; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #f3efe2 0%, #fbfaf6 60%);
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2); font-weight: 600;
  box-shadow: var(--shadow-1);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05; margin: 18px 0 14px;
  letter-spacing: -.01em; color: var(--ink);
}
.hero-title em {
  font-style: italic; color: var(--brand); font-weight: 500;
}
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-trust div { font-size: 14px; color: var(--muted); }
.hero-trust strong { display: block; color: var(--ink); font-size: 22px; font-family: var(--font-display); }
.hero-art {
  position: relative; height: 100%;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  aspect-ratio: 5/4;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 36px 0 36px; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
  font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ----- Sections ----- */
section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); margin: 8px 0 8px; letter-spacing: -.01em; }
.section-sub { color: var(--muted); max-width: 600px; margin: 0 auto; }

/* ----- Trip Cards ----- */
.trip-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.trip-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
}
.trip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.trip-card-media { aspect-ratio: 16/10; background: #eee; position: relative; }
.trip-card-media img { width: 100%; height: 100%; object-fit: cover; }
.trip-card-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; letter-spacing: .02em;
}
.trip-card-tag.free { background: var(--pos); color: #fff; }
.trip-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.trip-card-title { font-family: var(--font-display); font-size: 19px; line-height: 1.25; color: var(--ink); }
.trip-card-route { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); }
.trip-card-route span { background: var(--line-2); padding: 3px 8px; border-radius: 999px; }
.trip-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.trip-card-price { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 600; }
.trip-card-price small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.trip-card-cta { font-size: 14px; padding: 9px 16px; }

@media (max-width: 980px) { .trip-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .trip-grid { grid-template-columns: 1fr; } }

/* ----- Empty state ----- */
.empty-state {
  text-align: center; padding: 60px 24px;
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 6px; font-size: 22px; }

/* ----- Trust strip ----- */
.partner-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 32px;
  align-items: center; opacity: .85; padding: 22px 0;
}
.partner-strip img { max-height: 28px; width: auto; margin: 0 auto; filter: grayscale(1); }
@media (max-width: 720px) {
  .partner-strip { grid-auto-flow: row; grid-template-columns: repeat(2,1fr); }
}

/* ----- Counters ----- */
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.counter-card { text-align: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.counter-card strong { display: block; font-family: var(--font-display); font-size: 32px; color: var(--ink); }
.counter-card span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .counter-grid { grid-template-columns: repeat(2,1fr); } }

/* ----- Filters bar ----- */
.filter-bar {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-1);
}
.filter-bar select, .filter-bar input { width: 100%; }
@media (max-width: 880px) { .filter-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filter-bar { grid-template-columns: 1fr; } }

input, select, textarea {
  font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,107,107,.12);
}
label { font-size: 13px; color: var(--ink-2); font-weight: 500; }

/* ----- Trip page ----- */
.trip-hero {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; padding: 28px 0;
}
.trip-hero-image { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; }
.trip-hero-image img { width:100%; height:100%; object-fit:cover; }
.trip-hero-side {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 14px; height: max-content; position: sticky; top: calc(var(--header-h) + 16px);
}
.trip-hero-side h1 { font-family: var(--font-display); font-size: 26px; line-height: 1.15; margin: 0; }
.trip-meta-row { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.trip-price { font-family: var(--font-display); font-size: 32px; }
.trip-price small { font-size: 14px; color: var(--muted); display: block; }
.trip-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.trip-tags span { background: var(--line-2); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; font-size: 12px; }
@media (max-width: 880px) {
  .trip-hero { grid-template-columns: 1fr; }
  .trip-hero-side { position: static; }
}

.day-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; margin-bottom: 14px; }
.day-card-header {
  padding: 16px 18px; display: flex; gap: 14px; align-items: center; cursor: pointer;
  border-bottom: 1px solid var(--line-2);
}
.day-num { background: var(--brand); color: #fff; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; }
.day-title { font-family: var(--font-display); font-weight: 600; }
.day-summary { color: var(--muted); font-size: 14px; }
.day-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.event-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.event-row:last-child { border-bottom: 0; }
.event-time { color: var(--brand); font-weight: 600; font-size: 14px; }
.event-title { font-weight: 600; color: var(--ink); }
.event-meta { font-size: 13px; color: var(--muted); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.event-cost { font-weight: 600; color: var(--ink); white-space: nowrap; }
.event-cat-pill {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--line-2); color: var(--ink-2);
}

.cost-table { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.cost-cell { background: var(--line-2); padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.cost-cell strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 16px; }
@media (max-width: 720px) { .cost-table { grid-template-columns: repeat(2, 1fr); } }

/* ----- Forms ----- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-1); max-width: 480px; margin: 40px auto;
}
.form-card h1 { font-family: var(--font-display); font-size: 28px; margin: 0 0 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-error {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px;
}
.form-success {
  background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px;
}

/* ----- Footer ----- */
.site-footer { background: #0e1d2b; color: #cdd5dd; padding: 56px 0 24px; margin-top: 56px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: #fff; color: #0e1d2b; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: #cdd5dd; }
.footer-col a:hover { color: #fff; }
.footer-bottom { color: #758290; font-size: 13px; padding-top: 18px; border-top: 1px solid #182a3a; margin-top: 24px; }
.muted { color: var(--muted); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Sticky CTA on conversion pages */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-top: 1px solid var(--line);
  padding: 12px 16px; box-shadow: 0 -8px 18px rgba(14,29,43,.06);
  display: none; z-index: 30;
}
@media (max-width: 880px) {
  .sticky-cta { display: flex; align-items: center; gap: 12px; }
  .sticky-cta .btn { flex: 1; }
  .sticky-cta-price { font-family: var(--font-display); font-weight: 700; }
}

/* Misc utility */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { height: 16px; }
.hr { height: 1px; background: var(--line); margin: 28px 0; border: 0; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px;
  background: var(--line-2); color: var(--ink-2);
}
.badge.ok  { background: #dcfce7; color: #15803d; }
.badge.warn { background: #fef3c7; color: #b45309; }
.badge.bad { background: #fee2e2; color: #991b1b; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #0e1d2b; color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 1000;
  box-shadow: var(--shadow-2); font-size: 14px;
}
