:root {
  color-scheme: light;
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  --navy: #162c44;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --coral: #d95a4d;
  --green: #397b68;
  --lake: #337b9d;
  --amber: #d18c2e;
  --blue: #405c94;
  --muted: #69727b;
  --line: rgba(22, 44, 68, 0.12);
  --shadow: 0 16px 40px rgba(22, 44, 68, 0.12);
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; color: var(--navy); background: var(--cream); min-height: 100vh; }
button, a { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 90, 77, .18), transparent 34%),
    radial-gradient(circle at 90% 90%, rgba(51, 123, 157, .2), transparent 35%),
    var(--cream);
}
.auth-card {
  width: min(940px, 100%);
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  background: var(--paper);
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.auth-art {
  background:
    linear-gradient(180deg, transparent 40%, rgba(10, 23, 37, .7)),
    url("/images/paris.png") center/cover;
}
.auth-copy { padding: clamp(34px, 7vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 10px; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .91; letter-spacing: -.055em; }
.auth-copy > p:not(.eyebrow, .privacy-note, .message) { color: var(--muted); line-height: 1.6; margin: 24px 0; }
.primary-button, .secondary-button {
  border: 0; border-radius: 15px; padding: 14px 18px; font-weight: 750;
}
.primary-button { color: white; background: var(--navy); display: flex; align-items: center; justify-content: center; gap: 10px; }
.primary-button:hover { background: #203d5c; }
.google-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #4285f4; background: white; font-family: Arial; font-weight: 800; }
.privacy-note { text-align: center; color: var(--muted); font-size: .78rem; }
.message { min-height: 1.3em; color: var(--coral); font-size: .85rem; }

.app-shell { min-height: 100vh; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 72px; padding: 10px max(18px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.brand-button, .account-button { border: 0; background: transparent; color: var(--navy); }
.brand-button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 0; }
.brand-button strong, .brand-button small { display: block; }
.brand-button small { color: var(--muted); font-size: .68rem; }
.brand-mark, .account-button {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy); color: white; font-weight: 850; font-size: .72rem;
}
.account-button { border-radius: 50%; background-size: cover; background-position: center; }
.content { width: min(1050px, 100%); margin: 0 auto; padding: 22px 18px 42px; outline: none; }

.hero {
  position: relative; min-height: 410px; overflow: hidden; border-radius: 30px; padding: 28px;
  color: white; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(135deg, var(--navy), #2c6475);
  box-shadow: var(--shadow);
}
.hero::after { content: "◉"; position: absolute; right: 20px; top: -15px; font-size: 13rem; opacity: .06; }
.hero h1 { max-width: 650px; font-size: clamp(3rem, 10vw, 6.5rem); }
.hero p { margin: 15px 0 0; opacity: .78; font-size: 1.1rem; }
.hero-meta { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.pill { background: rgba(255,255,255,.14); padding: 8px 12px; border-radius: 999px; font-size: .82rem; backdrop-filter: blur(8px); }

.section-header { margin: 34px 2px 16px; }
.section-header p { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 800; }
.section-header h2 { margin: 4px 0 0; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.035em; }
.route-list { display: grid; gap: 12px; }
.route-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center;
  padding: 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 20px;
}
.route-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 800; }
.route-row h3, .destination-card h3, .day-card h3 { margin: 0; }
.route-row p, .destination-card p, .day-card p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.chevron { color: var(--muted); font-size: 1.25rem; }

.destination-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.destination-card {
  position: relative; min-height: 300px; overflow: hidden; border-radius: 25px; color: white;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
}
.destination-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(4,15,27,.84)); }
.destination-card > div { position: absolute; z-index: 1; inset: auto 20px 20px; }
.destination-card h3 { font-size: 1.9rem; }
.destination-card p { color: rgba(255,255,255,.78); }

.day-list { display: grid; gap: 12px; }
.day-card { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px; padding: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.date-tile { height: 60px; display: grid; place-items: center; align-content: center; border-radius: 15px; background: rgba(22,44,68,.07); }
.date-tile small { font-size: .64rem; color: var(--muted); font-weight: 800; }
.date-tile strong { font-size: 1.35rem; line-height: 1; }

.detail-hero {
  position: relative; min-height: 360px; border-radius: 28px; overflow: hidden; color: white;
  background-size: cover; background-position: center; box-shadow: var(--shadow);
}
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 24%, rgba(5,17,30,.86)); }
.detail-hero > div { position: absolute; z-index: 1; inset: auto 24px 24px; max-width: 730px; }
.detail-hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
.detail-hero p { color: rgba(255,255,255,.82); line-height: 1.5; }
.back-button { border: 0; background: transparent; color: var(--navy); font-weight: 750; padding: 8px 0 15px; }

.activity-list { display: grid; gap: 12px; }
.activity {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 17px;
  border: 1px solid var(--line); border-radius: 19px; background: var(--paper);
}
.activity-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--navy); }
.activity-time { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.activity h3 { margin: 3px 0; font-size: 1.03rem; }
.activity p { margin: 0; color: var(--muted); line-height: 1.45; font-size: .9rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.action-link { color: var(--navy); background: rgba(22,44,68,.07); padding: 7px 10px; border-radius: 9px; font-size: .76rem; font-weight: 750; text-decoration: none; }
.carrier { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.carrier-mark { background: var(--navy); color: white; border-radius: 7px; padding: 4px 7px; font-size: .65rem; }
.note { padding: 15px; margin-top: 20px; border-radius: 15px; background: rgba(22,44,68,.07); color: var(--muted); font-size: .86rem; }

.tabbar {
  position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(510px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 7px; border-radius: 20px; background: rgba(22,44,68,.94); backdrop-filter: blur(18px); box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.tabbar button { border: 0; background: transparent; color: rgba(255,255,255,.58); padding: 9px 5px; border-radius: 14px; font-size: .72rem; }
.tabbar button span { display: block; font-size: 1.2rem; margin-bottom: 2px; }
.tabbar button.active { color: white; background: rgba(255,255,255,.12); }

dialog { border: 0; border-radius: 24px; padding: 28px; width: min(360px, calc(100% - 32px)); text-align: center; color: var(--navy); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(6,17,29,.55); backdrop-filter: blur(5px); }
dialog img { width: 72px; height: 72px; border-radius: 50%; background: var(--cream); }
dialog h2 { margin: 12px 0 4px; }
dialog p { color: var(--muted); margin: 0 0 20px; }
.dialog-close { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; font-size: 1.6rem; color: var(--muted); }
.secondary-button { background: var(--cream); color: var(--navy); }

@media (max-width: 700px) {
  .auth-card { grid-template-columns: 1fr; min-height: auto; }
  .auth-art { min-height: 260px; }
  .destination-grid { grid-template-columns: 1fr; }
  .hero { min-height: 390px; }
}
