:root {
  --ink: #17312b;
  --muted: #68776f;
  --cream: #f5f3ed;
  --paper: #fcfbf8;
  --line: #dedfd7;
  --moss: #2f6b57;
  --moss-dark: #174f40;
  --lime: #dff15b;
  --orange: #f08555;
  --blue: #74cfe6;
  --shadow: 0 14px 32px rgba(24, 49, 43, 0.13);
}

* { box-sizing: border-box; }
html { background: #e2e4df; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
/* Live-pilot controls: clear labels and generous tap areas for all ages. */
.location { border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.location:hover, .location:focus-visible { color: var(--moss-dark); outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
#authForm { display: grid; gap: 15px; }
#authForm label, #createRideForm label { display: grid; gap: 7px; color: #405349; font-size: 14px; font-weight: 750; }
#authForm input, #createRideForm textarea { min-height: 48px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; outline-color: var(--moss); }
#createRideForm textarea { min-height: 92px; resize: vertical; }
.form-helper { margin: -6px 0 2px; color: #526159; font-size: 13px; line-height: 1.45; }
.form-message { min-height: 20px; margin: -3px 0 0; color: #405349; font-size: 14px; font-weight: 700; line-height: 1.4; }
.form-message.is-error { color: #a53b27; }
.city-list { display: grid; gap: 11px; margin-top: 18px; }
.city-choice { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--moss-dark); font-size: 17px; font-weight: 800; text-align: left; }
.city-choice small { color: #526159; font-size: 13px; font-weight: 700; }
.city-choice.is-selected { border-color: var(--moss-dark); box-shadow: inset 0 0 0 1px var(--moss-dark); background: #e8f1e7; }
.empty-card { grid-template-columns: 66px 1fr; }
.empty-card .card-actions { grid-template-columns: 1fr; }
button { color: inherit; cursor: pointer; }
.app-shell { max-width: 760px; min-height: 100vh; margin: 0 auto; padding: 20px 20px 145px; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.avatar { width: 39px; height: 39px; border: 0; border-radius: 50%; background: #d6b6a0; color: #fff; font-size: 12px; font-weight: 700; }
.location { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; }
.pin { color: var(--moss); font-size: 19px; line-height: 0; }
.chevron { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }.text-size { min-height: 39px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--moss-dark); font-size: 12px; font-weight: 800; }.icon-button { position: relative; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 22px; }
.notification-dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border: 1.5px solid var(--paper); border-radius: 50%; background: var(--orange); }
.hero { padding: 34px 0 21px; }.eyebrow { margin: 0 0 8px; color: var(--moss); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 11px; font-size: clamp(35px, 8vw, 46px); line-height: 1.08; letter-spacing: -0.052em; }
h1 em { color: var(--moss); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-helper { max-width: 490px; margin: 0 0 20px; color: #526159; font-size: 15px; line-height: 1.45; }.search-bar { display: flex; align-items: center; min-height: 57px; width: 100%; gap: 12px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: #3e5148; text-align: left; box-shadow: 0 4px 9px rgba(35, 56, 47, 0.04); font-size: 16px; font-weight: 650; }
.search-bar span:first-child { color: var(--moss); font-size: 25px; line-height: 12px; }
.filters { display: flex; gap: 8px; padding: 5px 0 28px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-chip { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 43px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: #344a40; font-size: 14px; font-weight: 700; }
.filter-chip.is-active { border-color: var(--moss-dark); background: var(--moss-dark); color: #fff; }
.explore-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.explore-heading h2 { margin-bottom: 4px; font-size: 22px; letter-spacing: -0.03em; }.explore-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.view-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.toggle { min-width: 48px; min-height: 37px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: #53635a; font-size: 13px; font-weight: 700; }
.toggle.is-active { background: #e6f0e7; color: var(--moss-dark); }
.map-card { position: relative; height: 255px; overflow: hidden; border-radius: 20px; background-color: #dfe6d9; background-image: linear-gradient(23deg, transparent 29%, rgba(255,255,255,.76) 30% 31%, transparent 32%), linear-gradient(118deg, transparent 42%, rgba(255,255,255,.7) 43% 44%, transparent 45%), radial-gradient(ellipse at 20% 100%, #bdd6af 0 25%, transparent 26%), radial-gradient(ellipse at 91% 17%, #c9ddba 0 24%, transparent 25%), linear-gradient(160deg, #edf1e9, #cfdccb); box-shadow: inset 0 0 0 1px rgba(37, 77, 54, .1); }
.map-card::after { position: absolute; inset: 0; content: ""; opacity: .35; background-image: repeating-linear-gradient(80deg, transparent 0 32px, rgba(52, 104, 73, .14) 33px 34px), repeating-linear-gradient(10deg, transparent 0 45px, rgba(52, 104, 73, .1) 46px 47px); }
.map-label { position: absolute; z-index: 1; color: #789076; font-family: Georgia, serif; font-size: 14px; font-style: italic; }
.lake { bottom: 29px; left: 25px; color: #6299a6; }.forest { right: 31px; top: 37px; }
.route { position: absolute; z-index: 1; height: 3px; border-radius: 100%; background: #f08253; transform: rotate(-18deg); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.route-one { top: 92px; left: 37px; width: 220px; }.route-two { top: 177px; right: 24px; width: 168px; transform: rotate(22deg); background: #6fbad0; }
.map-marker { position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 3px; width: 48px; height: 39px; border: 2px solid #fff; border-radius: 13px; background: var(--moss-dark); color: #fff; box-shadow: 0 5px 11px rgba(16, 54, 43, .24); font-size: 16px; }
.map-marker span { font-size: 11px; font-weight: 800; }.mountain-marker { top: 58px; left: 38%; }.road-marker { top: 136px; left: 19%; background: var(--orange); }.ebike-marker { top: 162px; right: 21%; background: #3d88a1; }
.my-location { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--moss-dark); box-shadow: var(--shadow); font-size: 23px; }
.ride-list { display: grid; gap: 14px; padding-top: 0; }.ride-card { display: grid; grid-template-columns: 66px 1fr; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 4px 10px rgba(40, 55, 48, .035); }.ride-art { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 14px; font-size: 30px; }.mountain { background: #d9e9d1; }.road { background: #f9ded3; }.ebike { background: #d3eaf0; }.gravel { background: #eee0b8; }.ride-info { min-width: 0; }.ride-info h3 { margin: 0 0 5px; overflow: hidden; font-size: 17px; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }.ride-info p { margin: 0; color: #526159; font-size: 13px; line-height: 1.38; }.ride-info p + p { margin-top: 4px; color: var(--moss); font-weight: 700; }.card-actions { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 10px; }.details-button, .join-button { min-height: 46px; padding: 10px 10px; border: 1px solid var(--moss); border-radius: 10px; background: #fff; color: var(--moss-dark); font-size: 14px; font-weight: 800; }.join-button { background: var(--moss-dark); color: #fff; }.join-button.is-joined { background: #fff; color: var(--moss-dark); }
.community-prompt { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding: 18px; border-radius: 17px; background: #e9f2e5; }.prompt-icon { display: grid; flex: 0 0 auto; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: var(--lime); font-size: 22px; }.community-prompt h3 { margin: 0 0 5px; font-size: 16px; }.community-prompt p { margin: 0; color: #43564b; font-size: 13px; line-height: 1.42; }.community-prompt button { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: var(--moss-dark); color: #fff; font-size: 23px; }.fab { position: fixed; z-index: 4; right: max(20px, calc((100vw - 720px) / 2)); bottom: 88px; display: flex; align-items: center; min-height: 52px; gap: 7px; padding: 13px 19px; border: 0; border-radius: 99px; background: var(--moss-dark); color: #fff; box-shadow: 0 12px 22px rgba(21, 64, 51, .24); font-size: 16px; font-weight: 800; }.bottom-nav { position: fixed; z-index: 3; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: min(7vw, 55px); padding: 10px max(14px, calc((100vw - 700px) / 2)) 13px; border-top: 1px solid var(--line); background: rgba(252, 251, 248, .96); backdrop-filter: blur(15px); }.nav-item { display: grid; place-items: center; gap: 2px; min-width: 63px; min-height: 43px; border: 0; background: transparent; color: #66746c; font-size: 12px; font-weight: 650; }.nav-item span { font-size: 21px; line-height: 21px; }.nav-item.is-active { color: var(--moss-dark); font-weight: 800; }
.dialog { width: min(540px, calc(100% - 30px)); max-height: min(720px, calc(100% - 30px)); padding: 26px; border: 0; border-radius: 23px; background: var(--paper); color: var(--ink); box-shadow: 0 25px 70px rgba(0,0,0,.27); }.dialog::backdrop { background: rgba(16, 34, 27, .45); backdrop-filter: blur(3px); }.close-dialog { position: absolute; top: 14px; right: 15px; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; }.dialog h2 { margin: 0 38px 17px 0; font-size: 28px; letter-spacing: -0.04em; }.detail-hero { display: grid; place-items: center; height: 150px; margin: 0 -26px 19px; border-radius: 20px 20px 0 0; font-size: 68px; }.ride-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 17px; }.ride-meta span { padding: 6px 9px; border-radius: 99px; background: #e8f1e7; color: var(--moss-dark); font-size: 11px; font-weight: 750; }.detail-copy { color: #506158; font-size: 14px; line-height: 1.55; }.organizer { display: flex; align-items: center; gap: 9px; margin: 19px 0; padding: 12px; border-radius: 12px; background: #f0f0ea; font-size: 12px; }.tiny-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #cfac95; color: #fff; font-size: 10px; font-weight: 800; }.primary-button { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--moss-dark); color: #fff; font-size: 14px; font-weight: 800; }.primary-button.is-joined { background: #fff; color: var(--moss-dark); box-shadow: inset 0 0 0 1px var(--moss-dark); }
#createRideForm { display: grid; gap: 15px; } #createRideForm label { display: grid; gap: 7px; color: #405349; font-size: 14px; font-weight: 750; } #createRideForm input, #createRideForm select { min-height: 48px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; outline-color: var(--moss); } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.primary-button { min-height: 52px; font-size: 16px; }
.toast { position: fixed; z-index: 10; bottom: 144px; left: 50%; max-width: calc(100vw - 40px); padding: 11px 15px; border-radius: 99px; background: #152f28; color: #fff; box-shadow: var(--shadow); font-size: 12px; font-weight: 650; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 720px) { body { padding: 28px 0; } .app-shell { min-height: calc(100vh - 56px); border-radius: 26px; box-shadow: 0 8px 40px rgba(26, 52, 43, .12); } .bottom-nav { position: absolute; max-width: 760px; right: 0; left: 50%; border-radius: 0 0 26px 26px; transform: translateX(-50%); } .fab { right: calc((100vw - min(760px, 100vw)) / 2 + 28px); bottom: 82px; } }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #255fd1; outline-offset: 3px; } body.is-large-text .hero-helper { font-size: 18px; } body.is-large-text .search-bar { font-size: 18px; } body.is-large-text .filter-chip { min-height: 49px; font-size: 16px; } body.is-large-text .explore-heading p, body.is-large-text .ride-info p { font-size: 15px; } body.is-large-text .ride-info h3 { font-size: 19px; } body.is-large-text .details-button, body.is-large-text .join-button { min-height: 52px; font-size: 16px; } body.is-large-text .community-prompt h3 { font-size: 18px; } body.is-large-text .community-prompt p { font-size: 15px; } @media (max-width: 430px) { .text-size span { display: none; } .text-size { width: 39px; padding: 0; } .header-actions { gap: 6px; } } @media (max-width: 365px) { .app-shell { padding-right: 14px; padding-left: 14px; } .fab { right: 14px; } .filters { margin-right: -14px; } .bottom-nav { gap: 1vw; }.nav-item { min-width: 55px; font-size: 11px; } }
