@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/source-sans-3-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/source-sans-3-800.woff2") format("woff2");
}

:root {
  --brand: #f75940;
  --brand-dark: #de503a;
  --brand-darkest: #a64942;
  --indigo: #3f52e3;
  --gray-900: #212529;
  --gray-700: #495057;
  --gray-600: #6c757d;
  --gray-300: #dee2e6;
  --gray-200: #e9ecef;
  --gray-100: #f3f4f5;
  --white: #fff;
  --shadow: 0 24px 80px rgba(33, 37, 41, 0.12);
  --max: 1280px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

.nav {
  height: 64px;
  display: flex;
  justify-content: center;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  width: 100%;
  max-width: var(--max);
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); }
.logo-word { font-weight: 700; font-size: 26px; letter-spacing: -0.04em; line-height: 1; }
.logo-sm .logo-word { font-size: 18px; }
.logo-sm .logo-mark svg { width: 22px; height: 22px; }
.logo-mark { display: flex; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-link, .nav-user {
  color: var(--gray-700);
  font-weight: 600;
  padding: 6px 10px;
}
.nav-link.is-active { color: var(--gray-900); }
.nav-link, .nav-actions .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .nav-actions { gap: 2px; }
  .nav-user { display: none; }
}
.nav-user { color: var(--gray-600); font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  height: 40px;
  padding: 0 18px;
  background: transparent;
  color: var(--gray-700);
}
.btn-brand { background: var(--brand); color: var(--white); }
.btn-brand:hover { background: var(--brand-dark); color: var(--white); }
.btn-brand:active { background: var(--brand-darkest); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 14px; }
.btn-flat { color: var(--gray-700); }
.btn-flat:hover { color: var(--indigo); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-700);
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
}
.text-link:hover { color: var(--indigo); }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 18em;
}
.lede {
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.5;
  max-width: 640px;
  margin-top: 16px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }

.product {
  margin-top: 48px;
  width: min(1080px, 100%);
  height: 520px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  text-align: left;
  background: var(--white);
}
.product-left { width: 46%; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--gray-200); }
.product-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 8px;
}
.saved-pill { color: var(--gray-600); font-size: 14px; font-weight: 600; }
.share-pill {
  margin-left: auto;
  background: #212529;
  color: #fff;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
}
.product-titlecard { padding: 8px 20px 12px; }
.product-titlecard h2 { font-size: 28px; letter-spacing: -0.03em; font-weight: 700; }
.product-titlecard p, .dates { color: var(--gray-600); display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; }
.cal { width: 16px; height: 16px; display: inline-block; flex: none; }
.product-list { padding: 4px 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.product-day { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.product-day:hover { background: var(--gray-100); }
.product-day strong { display: block; font-size: 15px; }
.product-day em { display: block; color: var(--gray-600); font-style: normal; font-size: 13px; }
.product-map { flex: 1; min-width: 0; background: #d4e4ef; }

.caption, .band, .stats, .closing, .page { max-width: var(--max); margin: 0 auto; padding: 28px 80px 8px; text-align: center; }
.caption h2, .section-intro h2, .closing h2, .page h1, .empty h2 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.caption .lede, .section-intro .lede, .closing .lede { margin-left: auto; margin-right: auto; }
.band { padding-top: 56px; padding-bottom: 24px; }
.section-intro { margin-bottom: 28px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}
.card {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 20px;
  background: var(--white);
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--gray-600); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 48px;
  padding-bottom: 24px;
}
.stats strong { display: block; font-size: 40px; letter-spacing: -0.03em; color: var(--brand); }
.stats span { color: var(--gray-600); }

.closing {
  background: #fff4f2;
  max-width: none;
  padding: 72px 24px;
  margin-top: 24px;
}
.closing .btn { margin-top: 24px; }

.footer { background: var(--gray-100); border-top: 1px solid var(--gray-200); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 80px 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.footer p { color: var(--gray-600); font-size: 14px; max-width: 640px; }

.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px 80px; }
.auth-card {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.auth-card h1 { font-size: 36px; letter-spacing: -0.03em; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--gray-900); }
.auth-card input, .notes-form textarea, .day-note input, .adder input {
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  height: 48px;
  padding: 0 14px;
  color: var(--gray-900);
  background: #fff;
  font-weight: 600;
}
.auth-card input:focus, .notes-form textarea:focus, .day-note input:focus, .adder input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(247, 89, 64, 0.15);
}
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: var(--gray-600); font-weight: 600; font-size: 14px; }
.form-error {
  background: #fff1ef;
  color: var(--brand-darkest);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}
.auth-switch { color: var(--gray-600); }
.auth-switch a { color: var(--indigo); font-weight: 700; }
.auth-card .btn { width: 100%; margin-top: 4px; }
.btn-google { gap: 10px; background: #fff; color: var(--gray-900); border: 1px solid var(--gray-300); }
.btn-google:hover { background: var(--gray-100); color: var(--gray-900); }
.form-notice {
  background: #eef7ee;
  color: #1e5b24;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.admin-card { width: min(560px, 100%); }
.invite-heading { font-size: 22px; margin-top: 18px; }
.invite-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gray-300); }
.invite-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-300);
}
.invite-email { font-weight: 700; color: var(--gray-900); overflow-wrap: anywhere; min-width: 0; }
.invite-status { color: var(--gray-600); font-size: 14px; font-weight: 600; }
.invite-status.is-accepted { color: #1e5b24; }

.page { text-align: left; padding-top: 36px; padding-bottom: 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.page h1 { font-size: 40px; }
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.trip-card {
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 0 rgba(33, 37, 41, 0.02);
  min-height: 150px;
}
.trip-card:hover { border-color: #f0b2a8; box-shadow: 0 10px 30px rgba(33, 37, 41, 0.06); }
.trip-kicker { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.trip-card h2 { font-size: 22px; letter-spacing: -0.03em; margin: 8px 0 6px; }
.trip-card p { color: var(--gray-600); }
.trip-meta { margin-top: 14px; font-weight: 700; color: var(--gray-700) !important; }
.empty {
  border: 1px dashed var(--gray-300);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
}
.empty h2 { font-size: 28px; }
.empty p { color: var(--gray-600); margin: 8px auto 0; max-width: 460px; }
.sample-row { margin-top: 18px; }

.planner-body { background: #fff; }
.mobile-switch { display: none; }
.app {
  height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(420px, 560px) 1fr;
}
.side, .main { height: 100vh; overflow: auto; background: #fff; }
.side { border-right: 1px solid var(--gray-200); padding: 16px 12px 24px; display: flex; flex-direction: column; gap: 4px; }
.side .logo { padding: 4px 8px 12px; }
.side-link, .day-link {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--gray-700);
  font-weight: 700;
}
.side-link.is-active { background: var(--gray-900); color: #fff; }
.day-link { align-items: flex-start; font-weight: 600; }
.day-link strong { display: block; color: var(--gray-900); font-size: 14px; }
.day-link em {
  display: block;
  color: var(--gray-600);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day-link.is-selected { background: var(--gray-100); }
.side-label {
  margin: 16px 12px 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  font-weight: 700;
}
.side-back { margin-top: auto; padding: 12px; color: var(--gray-600); font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; }

.banner { height: 168px; overflow: hidden; }
.banner svg { width: 100%; height: 100%; display: block; }
.title-card {
  margin: -52px 24px 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(33, 37, 41, 0.08);
  padding: 18px 20px;
  position: relative;
}
.title-card h1 { font-size: 32px; letter-spacing: -0.03em; line-height: 1.15; }
.block { padding: 18px 24px 8px; }
.block h2 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.notes-form textarea {
  width: 100%;
  min-height: 96px;
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  font-weight: 600;
}
.notes-form label { font-weight: 700; display: block; margin-bottom: 6px; }
.save-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.save-status { color: var(--gray-600); font-size: 13px; font-weight: 700; }

.day { border-top: 1px solid var(--gray-200); padding-top: 4px; }
.day > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  font-weight: 700;
}
.day > summary::-webkit-details-marker { display: none; }
.day-title { font-size: 16px; }
.chevron {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gray-700);
  border-bottom: 2px solid var(--gray-700);
  transform: rotate(45deg);
  margin-right: 6px;
}
.day[open] > summary .chevron { transform: rotate(-135deg); margin-top: 4px; }
.day.is-selected > summary { background: var(--gray-100); border-radius: 10px; box-shadow: inset 3px 0 0 var(--day); }
.day-body { padding: 0 0 12px 8px; }
.day-note input { width: 100%; margin: 4px 0 8px; height: 40px; border-radius: 10px; }
.empty-day { color: var(--gray-600); font-size: 14px; margin: 0 0 8px; }

.places { display: flex; flex-direction: column; gap: 2px; min-height: 8px; }
.place {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
}
.place:hover, .place.drop-target { background: var(--gray-100); }
.place.dragging { opacity: 0.45; }
.drag { color: #adb5bd; cursor: grab; display: flex; padding: 4px; }
.num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.num-wish { background: var(--gray-600); }
.place-text { min-width: 0; flex: 1; }
.place-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-addr { color: var(--gray-600); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-actions { display: flex; align-items: center; gap: 2px; opacity: 0; }
.place:hover .place-actions, .place:focus-within .place-actions { opacity: 1; }
.icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--gray-700);
  cursor: pointer;
  font-weight: 700;
}
.icon-btn:hover { background: var(--white); }
.icon-btn.danger { color: var(--brand); font-size: 18px; }
.move-select {
  border: 0;
  background: transparent;
  color: var(--gray-600);
  font-weight: 700;
  font-size: 12px;
  max-width: 108px;
}
.adder { position: relative; margin-top: 6px; }
.adder input { width: 100%; border-radius: 10px; height: 42px; }
.suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(33, 37, 41, 0.12);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 30;
  max-height: 260px;
  overflow: auto;
}
.suggest button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.suggest button:hover, .suggest button.is-active { background: var(--gray-100); }
.s-name { display: block; font-weight: 700; }
.s-addr { display: block; color: var(--gray-600); font-size: 13px; }
.suggest .muted { color: var(--gray-600); padding: 8px 10px; font-weight: 600; }

.map-pane { position: relative; height: 100vh; background: #d4e4ef; }
#map { height: 100%; width: 100%; }
.map-chip {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 12px;
  background: #fff;
  border-radius: 100px;
  padding: 6px 12px 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(33, 37, 41, 0.15);
}
.leaflet-container { font-family: var(--font); background: #d4e4ef; }
.pin { background: transparent; border: 0; }
.pin svg { display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.28)); }

@media (max-width: 960px) {
  .nav-inner, .hero, .caption, .band, .stats, .footer-inner, .page { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 36px; }
  .product { flex-direction: column; height: auto; }
  .product-left { width: 100%; }
  .product-map { height: 280px; }
  .cards, .stats { grid-template-columns: 1fr; }
  .caption h2, .section-intro h2, .closing h2 { font-size: 28px; }
  .footer-inner { flex-direction: column; }
  .app { display: block; height: auto; }
  .side { display: none; }
  .main, .map-pane { height: auto; }
  .map-pane, #map { height: calc(100vh - 52px); }
  .planner-body { overflow: auto; height: auto; }
  .mobile-switch {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
  }
  .mobile-switch button {
    flex: 1;
    height: 48px;
    border: 0;
    background: #fff;
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
  }
  .mobile-switch button.on { color: var(--gray-900); box-shadow: inset 0 -3px 0 var(--brand); }
  .app.pane-plan .map-pane { display: none; }
  .app.pane-map .main { display: none; }
  .place-actions { opacity: 1; }
  .title-card { margin-left: 16px; margin-right: 16px; }
  .block { padding-left: 16px; padding-right: 16px; }
}

