:root {
  --ink: #16211b;
  --muted: #657168;
  --paper: #f5f4ed;
  --card: #fffefa;
  --lime: #c9f36a;
  --green: #235b43;
  --orange: #ff7657;
  --line: #dcded5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
.room-route body { visibility: hidden; }
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; max-width: 1160px; padding: 0 28px; margin: auto; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.page-tabs { display: flex; gap: 4px; padding: 4px; background: #e9ebe3; border-radius: 12px; }
.tab-button { background: transparent; color: var(--muted); padding: 8px 13px; border-radius: 9px; }
.tab-button:hover, .tab-button.active { background: white; color: var(--ink); }
.auth-button, .secondary-button { background: white; color: var(--ink); border: 1px solid var(--line); padding: 9px 13px; }
.auth-button:hover, .secondary-button:hover { background: #eef0e8; }
.brand { color: var(--ink); text-decoration: none; font-family: Manrope; font-size: 22px; font-weight: 800; }
.brand span { color: var(--orange); font-size: 29px; vertical-align: -2px; }
.badge { border: 1px solid var(--line); border-radius: 30px; padding: 8px 13px; color: var(--muted); font-size: 12px; }
main { max-width: 1060px; margin: auto; padding: 54px 28px 80px; }
.profile-panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin-bottom: 42px; box-shadow: 0 18px 60px rgba(30,50,40,.08); }
.profile-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.profile-intro { color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.timeline-box { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border-top: 1px solid var(--line); margin-top: 25px; padding-top: 22px; }
.timeline-box p { color: var(--muted); margin: 5px 0 0; font-size: 13px; }
.file-button { background: #eaf4ed; color: var(--green); border-radius: 10px; padding: 11px 14px; font-weight: 700; cursor: pointer; }
.file-button input { display: none; }
.timeline-status { grid-column: 1 / -1; }
.timeline-places { grid-column: 1 / -1; background: #f3f5ee; border-radius: 14px; padding: 16px; }
.place-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.place-chips span { background: white; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: 12px; }
.room-members { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.room-members p { margin: 7px 0; color: var(--muted); }
.hero { max-width: 770px; margin-bottom: 42px; }
.compact-hero { margin-bottom: 24px; }
.compact-hero h2 { font-size: clamp(34px, 5vw, 54px); }
.group-controls { grid-template-columns: 1.25fr 1fr 1fr 1.15fr; }
.eyebrow { color: var(--green); font-weight: 700; font-size: 12px; letter-spacing: .14em; margin: 0 0 13px; }
h1 { font-family: Manrope; font-size: clamp(48px, 7vw, 82px); line-height: .98; letter-spacing: -.055em; margin: 0; }
h1 em { color: var(--green); font-style: normal; }
.intro { max-width: 630px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.planner { background: var(--card); padding: 28px; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 60px rgba(30,50,40,.08); }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.person { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; margin-right: 6px; }
.person.a { background: var(--lime); }.person.b { background: #ffd19c; }
input, select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 15px; font: inherit; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(35,91,67,.1); }
.request { display: block; margin: 20px 0; }
.request input { font-size: 17px; padding: 18px; }
.controls { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.15fr; gap: 14px; align-items: end; }
button { border: 0; border-radius: 12px; padding: 16px 20px; font: inherit; font-weight: 700; background: var(--ink); color: white; display: flex; justify-content: space-between; cursor: pointer; }
button:hover { background: var(--green); }
.location-button { display: block; background: transparent; color: var(--green); padding: 7px 2px 0; font-size: 12px; }
.location-button:hover { background: transparent; text-decoration: underline; }
.invite-row { display: grid; grid-template-columns: 1fr 180px auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.invite-row strong, .invite-row span { display: block; }
.invite-row span { color: var(--muted); font-size: 13px; margin-top: 3px; }
.invite-link { background: #eaf4ed; border: 1px solid #cfe1d4; border-radius: 12px; margin-top: 16px; padding: 14px; word-break: break-all; }
.invite-link a { color: var(--green); font-weight: 700; }
.invite-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.invite-actions button { width: auto; padding: 12px 16px; }
.invite-actions .open-room { display: inline-flex; align-items: center; min-height: 45px; padding: 10px 16px; border: 1px solid var(--green); border-radius: 12px; text-decoration: none; }
.join-panel { max-width: 680px; margin: 20px auto; }
.join-panel > button { width: 100%; margin-top: 18px; }
.status { margin: 28px 0; padding: 20px; border-radius: 14px; text-align: center; background: white; border: 1px solid var(--line); }
.status.loading::before { content: ""; display: inline-block; width: 13px; height: 13px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; margin-right: 10px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none; }
.results { margin-top: 60px; }
.ai-choice { background: var(--ink); color: white; border-radius: 20px; padding: 26px; margin-bottom: 18px; }
.ai-choice .ai-kicker { color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .13em; margin-bottom: 10px; }
.ai-choice h2 { color: white; margin-bottom: 8px; }
.ai-choice p { color: #dfe7e1; margin: 8px 0; line-height: 1.55; }
.ai-choice small { color: #aebdb3; }
.weather { display: flex; align-items: center; gap: 16px; background: #eaf4ed; border: 1px solid #cfe1d4; border-radius: 16px; padding: 15px 18px; margin-bottom: 22px; }
.weather img { width: 42px; height: 42px; }
.weather strong, .weather span { display: block; }
.weather span { color: var(--muted); font-size: 13px; margin-top: 3px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
h2 { font-family: Manrope; font-size: 34px; margin: 0; letter-spacing: -.03em; }
.results-heading > p { color: var(--muted); max-width: 420px; text-align: right; }
.cards { display: grid; gap: 14px; margin-top: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; grid-template-columns: 46px 1fr auto; gap: 18px; align-items: center; }
.rank { width: 44px; height: 44px; background: var(--lime); border-radius: 50%; display: grid; place-items: center; font-family: Manrope; font-weight: 800; }
.card h3 { margin: 0 0 5px; font-family: Manrope; font-size: 20px; }
.address, .why { margin: 4px 0; color: var(--muted); font-size: 14px; }
.why { color: var(--green); font-weight: 600; }
.rating { font-size: 13px; margin-left: 8px; color: #8b6500; }
.journeys { display: flex; gap: 8px; margin-top: 12px; }
.journey { background: #f0f1ea; border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.maps-link { text-decoration: none; color: var(--ink); border: 1px solid var(--line); padding: 10px 13px; border-radius: 9px; font-weight: 700; white-space: nowrap; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 30px; }
@media (max-width: 700px) {
  main { padding-top: 32px; }
  .people-grid, .controls { grid-template-columns: 1fr; }
  .card { grid-template-columns: 38px 1fr; }
  .maps-link { grid-column: 2; width: fit-content; }
  .results-heading { display: block; }
  .results-heading > p { text-align: left; }
  .badge { display: none; }
  .nav { flex-wrap: wrap; height: auto; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .page-tabs { order: 3; width: 100%; }
  .tab-button { flex: 1; justify-content: center; }
  .invite-row { grid-template-columns: 1fr; }
  .profile-grid, .timeline-box { grid-template-columns: 1fr; }
}
