:root {
  --app-w: 100vw;
  --app-h: 100dvh;
  --green-950: #102416;
  --green-900: #18351f;
  --green-800: #24492d;
  --green-700: #315c35;
  --green-100: #e8f1e4;
  --green-50: #f4f8f1;
  --lime: #a8cf45;
  --orange: #f29a18;
  --berry: #c84b7e;
  --blue: #2f8cff;
  --teal: #2c9ab7;
  --white: #fff;
  --text: #172018;
  --muted: #667066;
  --line: rgba(23, 32, 24, 0.11);
  --shadow-lg: 0 18px 46px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.16);
  --radius-phone: 0px;
  --nav-h: 72px;
  --sheet-collapsed: 74px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2,.8,.2,1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #eff1ec;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

body {
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app {
  width: var(--app-w);
  height: var(--app-h);
  min-height: 100dvh;
  max-height: none;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-phone);
  background: var(--green-950);
  box-shadow: none;
  isolation: isolate;
}

.hero {
  position: absolute;
  inset: 0 0 calc(var(--nav-h) + var(--safe-bottom)) 0;
  padding: max(16px, env(safe-area-inset-top, 0px)) 18px 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(4, 18, 10, .58), rgba(20, 52, 25, .08) 42%, rgba(16, 36, 22, .88) 100%),
    url("/sepp.png") 72% center/cover;
}

.hero::after {
  content: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 56%, rgba(168, 207, 69, .20), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.topbar,
.headline,
.gps-panel,
.radar-wrap {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  place-items: center;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(14px);
}

.menu-lines {
  width: 22px;
  display: grid;
  gap: 5px;
}

.menu-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.top-actions {
  display: flex;
  gap: 10px;
}

.beta-banner {
  position: absolute;
  left: 50%;
  top: max(10px, env(safe-area-inset-top, 0px));
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 22px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--green-950);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 850;
}

.beta-banner strong {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--lime);
}

.beta-banner span {
  white-space: nowrap;
}

.beta-banner button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-900);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .94);
  color: var(--green-900);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .13);
  font-size: 19px;
  transition: transform .18s var(--ease), background .18s var(--ease);
}

.icon-btn:active,
.chip:active,
.place:active,
.nav-item:active {
  transform: scale(.96);
}

.headline {
  margin-top: clamp(14px, 3.4dvh, 32px);
  max-width: 340px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 750;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 10vw, 52px);
  line-height: .96;
  letter-spacing: -.8px;
  text-wrap: balance;
}

.mountain-mark {
  color: var(--lime);
  font-size: .68em;
  vertical-align: middle;
  margin-left: 4px;
}

.subtitle {
  margin: 10px 0 0;
  max-width: 300px;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
}

.gps-panel {
  width: min(100%, 360px);
  margin-top: 10px;
}

.sensor-hint {
  display: none;
  max-width: 310px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 760;
  backdrop-filter: blur(12px);
}

.manual-location {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  width: min(100%, 360px);
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
  backdrop-filter: blur(16px);
}

.manual-location input {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, .94);
  color: var(--green-950);
  font-size: 13px;
}

.manual-location button {
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--green-950);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.manual-location .secondary {
  min-width: 40px;
  background: rgba(255, 255, 255, .92);
}

.place-cloud {
  display: flex;
  gap: 8px;
  width: min(calc(100vw - 32px), 390px);
  margin-top: 8px;
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(22, 50, 34, .34));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

.place-cloud::-webkit-scrollbar {
  display: none;
}

.place-cloud button {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--green-950);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  white-space: normal;
  box-shadow: 0 7px 16px rgba(0, 0, 0, .12);
  transition: transform .18s var(--ease), background .18s var(--ease);
}

.place-cloud button:active {
  transform: scale(.97);
}

.place-cloud .cloud-xl,
.place-cloud .cloud-lg,
.place-cloud .cloud-md,
.place-cloud .cloud-sm {
  font-size: 12px;
}

.app-internals {
  display: none;
}

.radar-wrap {
  position: absolute;
  left: 50%;
  top: clamp(340px, 44dvh, 380px);
  width: min(88vw, 400px, calc(100dvh - 382px));
  min-width: min(80vw, 285px);
  transform: translateX(-50%);
}

.radar-meta {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 8;
  width: calc(100% - 52px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

#radarNorth,
.heading-card,
.radar-controls {
  min-height: 36px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--green-900);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

#radarNorth {
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.heading-card {
  display: none;
}

.heading-card strong,
.heading-card span {
  display: block;
  white-space: nowrap;
}

.heading-card strong {
  font-size: 14px;
  font-weight: 900;
}

.heading-card span {
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  color: var(--muted);
  font-weight: 760;
}

.radar-controls {
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
}

.radar-controls span {
  font-size: 12px;
  font-weight: 900;
}

.radar-controls input {
  width: min(78px, 19vw);
  accent-color: var(--green-700);
}

.radar {
  --heading-rotation: 0deg;
  --map-rotation: 0deg;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(225, 247, 188, .74);
  border-radius: 50%;
  overflow: hidden;
  background: rgba(8, 17, 10, .25);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
}

.radar-map {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132%;
  height: 132%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--map-rotation));
  transform-origin: center;
  z-index: 0;
  pointer-events: auto;
}

.radar .leaflet-container {
  width: 100%;
  height: 100%;
  background: #dfe8da;
}

.radar .leaflet-control-container {
  display: none;
}

.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(14, 28, 17, .02), rgba(8, 18, 10, .34));
  z-index: 1;
  pointer-events: none;
}

.radar::after {
  content: "";
  position: absolute;
  inset: 36%;
  border: 1px solid rgba(225, 247, 188, .48);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.radar-ring {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(225, 247, 188, .48);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.cross,
.cross::after {
  position: absolute;
  content: "";
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(225, 247, 188, .27);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.cross::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.north-line {
  position: absolute;
  left: 50%;
  top: 7%;
  width: 4px;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(168, 207, 69, 1), rgba(168, 207, 69, .05));
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.user-marker {
  filter: drop-shadow(0 0 13px rgba(47, 140, 255, .58));
}

.map-poi-icon {
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.map-poi-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--poi-color);
  color: white;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  pointer-events: auto;
  transform: translateZ(0);
}

.route-group-marker {
  width: 38px;
  height: 38px;
  background: var(--green-700);
  font-size: 13px;
}

.route-group-icon.grouped .route-group-marker {
  background: var(--lime);
  color: var(--green-950);
  border-color: white;
  box-shadow: 0 0 0 6px rgba(168, 207, 69, .24), 0 10px 22px rgba(0, 0, 0, .36);
}

.route-group-icon.expanded .route-group-marker {
  width: 34px;
  height: 34px;
  background: var(--green-800);
}

.distance {
  position: absolute;
  right: -2px;
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .42);
  pointer-events: none;
  z-index: 3;
}

.d1 { top: 16%; }
.d2 { top: 36%; }
.d3 { top: 56%; }

.pin {
  display: none;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--nav-h) + var(--safe-bottom));
  height: clamp(320px, 46dvh, 430px);
  min-height: 0;
  z-index: 20;
  padding: 12px 14px 12px;
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .14);
  transition: transform .32s var(--ease);
  touch-action: pan-y;
  overscroll-behavior: contain;
  overflow-y: auto;
  scrollbar-width: none;
}

.sheet.dragging {
  transition: none;
}

.sheet::-webkit-scrollbar {
  display: none;
}

.sheet.collapsed {
  transform: translateY(calc(100% - var(--sheet-collapsed)));
}

.sheet-toggle {
  position: absolute;
  left: 50%;
  top: -18px;
  width: 66px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .98);
  color: var(--green-700);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .13);
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 900;
}

.grabber {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(23, 32, 24, .18);
  margin: 0 auto 10px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 10px;
  margin: 0 -2px;
  border-bottom: 1px solid var(--line);
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

.chip.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

.sheet-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 2px 8px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -.25px;
}

.sheet-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.places {
  display: grid;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding-right: 2px;
  scrollbar-width: none;
}

.routes-block {
  margin-top: 12px;
}

.sheet-head.compact {
  margin-top: 8px;
}

.routes {
  display: grid;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding-right: 2px;
  scrollbar-width: none;
}

.places::-webkit-scrollbar,
.routes::-webkit-scrollbar {
  display: none;
}

.place {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  width: 100%;
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.thumb {
  position: relative;
  height: 54px;
  border-radius: 13px;
  background: var(--green-100) center/cover;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .12));
}

.thumb-badge {
  position: absolute;
  right: -7px;
  bottom: -7px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 2px solid var(--white);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.thumb-badge.route {
  background: var(--green-700);
}

.place-copy {
  min-width: 0;
}

.place strong {
  display: block;
  margin: 0 0 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
}

.place small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #344035;
  font-size: 12px;
  line-height: 1.32;
}

.route-card {
  align-items: start;
  min-height: 132px;
  padding-block: 9px 11px;
}

.route-card .thumb {
  height: 76px;
}

.route-card .place-copy em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  color: #4c594d;
  font-size: 11px;
  font-style: normal;
  line-height: 1.32;
}

.route-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.route-stats span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef5e9;
  color: var(--green-800);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
}

.route-ratings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  margin-top: 8px;
}

.sepp-rating {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #4a594c;
  font-size: 10.5px;
  font-weight: 850;
}

.sepp-rating > span:first-child {
  flex: 0 0 auto;
}

.sepp-heads {
  display: flex;
  min-width: 0;
  gap: 1px;
}

.sepp-heads span {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 999px;
  background: url("/sepp-rating-head.png") center/cover no-repeat;
  opacity: .22;
  filter: grayscale(1);
}

.sepp-heads span.filled {
  opacity: 1;
  filter: none;
}

.meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.pill {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
}

.place .arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.empty {
  padding: 26px 18px;
  border-radius: 20px;
  background: var(--green-50);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
}

.nav-item {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  background: transparent;
  color: #778077;
  font-size: 10px;
  font-weight: 760;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active {
  color: var(--green-700);
}

.nav-item.active .nav-icon {
  background: var(--green-100);
}

.modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(6, 18, 10, .46);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.location-modal {
  position: absolute;
  inset: 0;
  z-index: 58;
  display: grid;
  place-items: end center;
  padding: 16px 16px calc(var(--nav-h) + var(--safe-bottom) + 16px);
  background: rgba(6, 18, 10, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.location-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.feedback-modal {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: end center;
  padding: 16px 16px calc(var(--nav-h) + var(--safe-bottom) + 16px);
  background: rgba(6, 18, 10, .52);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.feedback-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.safety-disclaimer {
  position: absolute;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: end center;
  padding: 16px 16px calc(var(--nav-h) + var(--safe-bottom) + 16px);
  background: rgba(6, 18, 10, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.safety-disclaimer.show {
  opacity: 1;
  pointer-events: auto;
}

.location-card {
  position: relative;
  width: min(100%, 430px);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
}

.feedback-card {
  position: relative;
  width: min(100%, 430px);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
}

.safety-card {
  position: relative;
  width: min(100%, 430px);
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
}

.location-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 18px;
  font-weight: 900;
}

.location-card h2 {
  margin: 10px 46px 8px 0;
  font-size: 25px;
  line-height: 1.05;
}

.feedback-card h2 {
  margin: 10px 46px 8px 0;
  font-size: 25px;
  line-height: 1.05;
}

.safety-card h2 {
  margin: 10px 46px 8px 0;
  font-size: 25px;
  line-height: 1.05;
}

.location-card p {
  margin: 0 0 14px;
  color: #344035;
  font-size: 14px;
  line-height: 1.4;
}

.feedback-card p {
  margin: 0 0 14px;
  color: #344035;
  font-size: 14px;
  line-height: 1.4;
}

.feedback-form {
  display: grid;
  gap: 10px;
}

.feedback-form textarea {
  min-height: 130px;
  width: 100%;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: var(--green-950);
  font: inherit;
}

.feedback-status {
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
}

.safety-card p {
  margin: 0 0 14px;
  color: #344035;
  font-size: 14px;
  line-height: 1.45;
}

.safety-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.safety-actions .modal-link {
  width: 100%;
}

.location-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--green-50);
}

.location-form input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: white;
  color: var(--green-950);
  font-size: 15px;
}

.location-form button,
.location-gps {
  min-height: 44px;
  border-radius: 11px;
  background: var(--green-700);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.location-form button {
  padding: 0 14px;
}

.location-gps {
  width: 100%;
  margin-top: 10px;
  background: var(--green-100);
  color: var(--green-700);
}

.placeholder-panel {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: end center;
  padding: 18px 16px calc(var(--nav-h) + var(--safe-bottom) + 16px);
  background: linear-gradient(180deg, rgba(6, 18, 10, .16), rgba(6, 18, 10, .58));
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}

.placeholder-panel.show {
  opacity: 1;
  pointer-events: auto;
}

.placeholder-panel.chat-mode {
  z-index: 25;
  place-items: stretch;
  padding: max(10px, env(safe-area-inset-top, 0px)) 10px calc(var(--nav-h) + var(--safe-bottom) + 10px);
  background:
    linear-gradient(180deg, rgba(245, 247, 243, .88), rgba(232, 239, 226, .92)),
    url("/sepp.png") 72% center/cover;
}

.gpx-viewer {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: stretch;
  padding: max(8px, env(safe-area-inset-top, 0px)) 8px calc(var(--safe-bottom) + 8px);
  background: rgba(6, 18, 10, .72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}

.gpx-viewer.show {
  opacity: 1;
  pointer-events: auto;
}

.gpx-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  gap: 8px;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
}

.gpx-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.gpx-head h2 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 19px;
  line-height: 1.12;
}

.gpx-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.gpx-map {
  min-height: 180px;
  height: clamp(180px, 48vh, 520px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--green-100);
}

.gpx-map .leaflet-container {
  width: 100%;
  height: 100%;
}

.gpx-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gpx-actions #gpxNavigate {
  grid-column: 1 / -1;
}

.gpx-nav-panel {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(49, 92, 53, .14);
  border-radius: 14px;
  background: #f4f8f1;
}

.gpx-nav-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.gpx-nav-stats span {
  min-width: 0;
}

.gpx-nav-stats strong,
.gpx-nav-stats em {
  display: block;
}

.gpx-nav-stats strong {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.gpx-nav-stats em {
  margin-top: 2px;
  color: var(--green-950);
  overflow-wrap: anywhere;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.gpx-turn {
  min-width: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(49, 92, 53, .12);
}

.gpx-turn strong,
.gpx-turn em {
  display: block;
}

.gpx-turn strong {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.gpx-turn em {
  margin-top: 2px;
  color: var(--green-950);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

.gpx-nav-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.gpx-nav-panel.off-route {
  border-color: rgba(199, 75, 75, .35);
  background: #fff4ed;
}

@media (max-height: 720px) {
  .gpx-card {
    grid-template-rows: auto minmax(150px, 44vh) auto auto;
  }

  .gpx-map {
    height: min(44vh, 300px);
    min-height: 150px;
  }

  .gpx-head .placeholder-kicker {
    display: none;
  }

  .gpx-nav-panel p {
    display: none;
  }
}

@media (min-width: 760px) {
  .gpx-viewer {
    padding: 18px;
  }

  .gpx-card {
    width: min(100%, 860px);
    justify-self: center;
  }

  .gpx-map {
    height: min(58vh, 560px);
  }
}

.placeholder-card {
  position: relative;
  width: min(100%, 560px);
  max-height: min(72dvh, 620px);
  overflow: auto;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-lg);
}

.chat-mode .placeholder-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 16px 12px 10px;
  border-radius: 28px;
  background: #f7f8f4;
  box-shadow: none;
}

.placeholder-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 18px;
  font-weight: 900;
}

.chat-mode .placeholder-close {
  right: 12px;
  top: 12px;
  background: rgba(23, 32, 24, .08);
}

.placeholder-kicker {
  display: inline-flex;
  margin: 0 46px 10px 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.placeholder-card h2 {
  margin: 0;
  font-size: clamp(24px, 7vw, 36px);
  line-height: 1;
  letter-spacing: -.8px;
}

.placeholder-card p {
  margin: 10px 0 0;
  color: #344035;
  line-height: 1.45;
}

.chat-mode .placeholder-kicker {
  width: fit-content;
  margin-bottom: 8px;
  background: #e8eee2;
}

.chat-mode .placeholder-card h2 {
  padding-right: 46px;
  font-size: 28px;
  letter-spacing: 0;
}

.chat-clear {
  display: none;
}

.chat-mode .chat-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 32, 24, .08);
  color: var(--green-900);
  font-size: 12px;
  font-weight: 850;
}

.chat-mode .placeholder-card > p {
  display: none;
}

.chat-mode .placeholder-grid {
  display: none;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.placeholder-tile {
  min-height: 76px;
  padding: 12px;
  border-radius: 16px;
  background: var(--green-50);
  border: 1px solid var(--line);
  text-align: left;
}

.placeholder-tile strong {
  display: block;
  font-size: 15px;
}

.placeholder-tile span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.placeholder-tile.static {
  display: block;
}

.chat-placeholder {
  display: none;
  min-height: 0;
  margin-top: 14px;
  color: var(--text);
}

.chat-placeholder.show {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.chat-mode .chat-placeholder {
  flex: 1 1 auto;
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
}

.chat-placeholder label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, .86);
}

.chat-thread {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 4px 18px;
  scrollbar-width: none;
}

.chat-thread::-webkit-scrollbar {
  display: none;
}

.chat-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: end;
  margin: 0 0 14px;
}

.chat-message.user {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-900);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.chat-message.user .chat-avatar {
  grid-column: 2;
  grid-row: 1;
  background: var(--lime);
  color: var(--green-950);
}

.chat-bubble {
  width: fit-content;
  max-width: min(78%, 560px);
  padding: 12px 14px;
  border-radius: 20px 20px 20px 6px;
  background: white;
  border: 1px solid rgba(23, 32, 24, .08);
  color: #1d261e;
  box-shadow: 0 8px 22px rgba(17, 31, 20, .08);
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 14px;
}

.disclaimer-message .chat-bubble {
  max-width: min(100%, 620px);
}

.concierge-disclaimer {
  display: grid;
  gap: 10px;
}

.concierge-disclaimer strong {
  font-size: 15px;
}

.concierge-disclaimer span {
  color: var(--muted);
}

.chat-placeholder .disclaimer-accept {
  width: 100%;
  height: auto;
  min-height: 40px;
  border-radius: 12px;
  padding: 10px 12px;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.chat-message.user .chat-bubble {
  justify-self: end;
  grid-column: 1;
  grid-row: 1;
  border-radius: 20px 20px 6px 20px;
  background: var(--green-800);
  color: white;
  border-color: transparent;
}

.chat-message.loading .chat-bubble {
  color: var(--muted);
}

.chat-message.error .chat-bubble {
  background: #fff4ed;
  border-color: rgba(242, 154, 24, .28);
}

.chat-inline-link {
  display: inline;
  color: var(--green-800);
  font: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  vertical-align: baseline;
}

.chat-inline-link:hover {
  color: var(--green-900);
}

.language-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.language-option {
  display: block;
  min-width: 0;
  padding: 6px 0;
  color: var(--green-900);
  text-decoration: none;
  text-align: left;
}

.language-option strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
}

.language-option span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.language-option:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chat-route-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.chat-placeholder .route-action-card {
  width: 100%;
  height: auto;
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(49, 92, 53, .16);
  border-radius: 16px;
  background: linear-gradient(180deg, #f4f8f1, #e8f1e4);
  color: var(--green-900);
  text-decoration: none;
  text-align: left;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.route-action-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-700);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.route-action-copy {
  min-width: 0;
  display: block;
}

.route-action-copy small,
.route-action-copy strong {
  display: block;
}

.route-action-copy small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.route-action-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--green-950);
  font-size: 13px;
  line-height: 1.18;
}

.chat-placeholder .route-action-card:active {
  transform: scale(.985);
  background: #dfead8;
}

.chat-status {
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  opacity: 0;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 22px;
  background: white;
  border: 1px solid rgba(23, 32, 24, .1);
  box-shadow: 0 12px 32px rgba(17, 31, 20, .1);
}

.chat-placeholder input {
  min-width: 0;
  height: 44px;
  border: 0;
  border-radius: 16px;
  padding: 0 12px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.chat-placeholder button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  padding: 0;
  background: var(--green-900);
  color: white;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.chat-placeholder .voice-btn {
  background: var(--green-100);
  color: var(--green-900);
  font-size: 11px;
  letter-spacing: 0;
}

.chat-placeholder .voice-btn.listening {
  background: #f29a18;
  color: var(--green-950);
  box-shadow: 0 0 0 6px rgba(242, 154, 24, .18);
}

.chat-placeholder button:disabled,
.chat-placeholder input:disabled {
  opacity: .56;
}

.a11y-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-placeholder p {
  margin-top: 0;
}

.modal-card {
  width: min(100%, 430px);
  max-height: 82%;
  overflow: auto;
  border-radius: 28px;
  background: white;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.modal-image {
  height: 170px;
  position: relative;
  background: var(--green-100) center/cover;
  border-radius: 28px 28px 0 0;
}

.modal-image.no-photo {
  height: 64px;
  background: var(--green-100);
}

#closeModal {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--green-950);
  font-size: 24px;
  line-height: 1;
}

.modal-body {
  padding: 17px;
}

.tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 900;
}

.modal h3 {
  margin: 10px 0 7px;
  font-size: 25px;
  line-height: 1.05;
}

.modal p {
  margin: 0 0 14px;
  color: #344035;
  line-height: 1.45;
}

.route-detail-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4f8f1, #eef5e9);
  border: 1px solid rgba(49, 92, 53, .12);
}

.room-list {
  display: grid;
  gap: 10px;
}

.room-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}

.room-card-image {
  min-height: 92px;
  border-radius: 12px;
  background: var(--green-100) center/cover;
}

.room-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.room-card strong {
  font-size: 14px;
}

.room-card span {
  color: var(--green-900);
  font-size: 13px;
  font-weight: 850;
}

.room-card small,
.room-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.room-call,
.info-grid a {
  color: var(--green-900);
  font-weight: 900;
  text-decoration: none;
}

.route-modal-ratings {
  display: grid;
  gap: 7px;
}

.route-detail-panel .sepp-heads span {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

.route-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.route-fact-grid span {
  min-width: 0;
  padding: 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
  color: var(--green-800);
  font-size: 12px;
  font-weight: 850;
}

.route-fact-grid strong,
.route-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.route-note {
  margin: 0;
  font-size: 12.5px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}

.modal-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--green-700);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.secondary-link {
  background: var(--green-100);
  color: var(--green-700);
}

.info-grid {
  display: grid;
  gap: 9px;
}

.info-grid div {
  padding: 11px;
  border-radius: 16px;
  background: var(--green-50);
}

.info-grid strong {
  display: block;
  font-size: 12px;
}

.info-grid span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 380px) {
  .app {
    min-height: 100dvh;
  }

  .headline {
    margin-top: 14px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 46px);
  }

  .sensor-hint {
    display: none;
  }

  .radar-wrap {
    top: clamp(288px, 46dvh, 326px);
    width: min(86vw, 330px, calc(100dvh - 338px));
  }

  .sheet {
    height: clamp(300px, 45dvh, 400px);
  }

  .place {
    grid-template-columns: 58px minmax(0, 1fr) 32px;
  }

  .thumb {
    height: 50px;
  }

  .nav-item {
    font-size: 9.5px;
  }
}

@media (min-height: 880px) {
  .sheet {
    height: 430px;
  }

  .radar-wrap {
    top: 330px;
  }
}

@media (max-height: 740px) {
  .hero {
    padding-top: max(14px, env(safe-area-inset-top, 0px));
  }

  .headline {
    margin-top: 12px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .subtitle,
  .sensor-hint {
    display: none;
  }

  .radar-wrap {
    top: clamp(306px, 48dvh, 336px);
    width: min(54dvh, 84vw, 326px);
  }

  .sheet {
    height: clamp(280px, 44dvh, 360px);
  }
}

body.desktop-location .gps-panel {
  width: min(40vw, 390px);
  margin-top: 18px;
}

body.desktop-location .sensor-hint {
  display: block;
  max-width: none;
  margin-bottom: 10px;
  border-radius: 12px;
}

body.desktop-location .manual-location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .15);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
  backdrop-filter: blur(16px);
}

body.desktop-location .manual-location input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--green-950);
  font-size: 14px;
}

body.desktop-location .manual-location button {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--green-950);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

body.desktop-location .manual-location .secondary {
  display: none;
}

body.desktop-location .place-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
  backdrop-filter: blur(16px);
}

body.desktop-location .place-cloud button {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--green-950);
  font-weight: 900;
  line-height: 1.05;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .1);
  transition: transform .18s var(--ease), background .18s var(--ease);
}

body.desktop-location .place-cloud button:hover {
  background: var(--lime);
  transform: translateY(-1px);
}

body.desktop-location .place-cloud button:active {
  transform: scale(.97);
}

body.desktop-location .place-cloud .cloud-xl {
  font-size: 18px;
}

body.desktop-location .place-cloud .cloud-lg {
  font-size: 15px;
}

body.desktop-location .place-cloud .cloud-md {
  font-size: 13px;
}

body.desktop-location .place-cloud .cloud-sm {
  font-size: 11px;
}

@media (min-width: 760px) {
  .gps-panel {
    width: min(40vw, 390px);
    margin-top: 18px;
  }

}

@media (min-width: 760px) and (min-height: 680px) {
  :root {
    --app-w: 100vw;
    --app-h: 100dvh;
    --radius-phone: 0px;
  }

  .hero {
    padding: 28px 28px 0;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(4, 18, 10, .58), rgba(20, 52, 25, .08) 42%, rgba(16, 36, 22, .88) 100%),
      url("/sepp.png") center center/cover no-repeat;
  }

  .headline {
    margin-top: clamp(34px, 8vh, 76px);
    max-width: 360px;
  }

  .radar-wrap {
    left: auto;
    right: clamp(28px, 7vw, 90px);
    top: 50%;
    width: min(43vw, 460px, 76dvh);
    transform: translateY(-54%);
  }

  .sheet {
    display: grid;
    grid-template-rows: auto minmax(210px, .95fr) auto minmax(180px, 1fr);
    gap: 0;
    left: clamp(22px, 4vw, 60px);
    right: auto;
    bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
    width: min(46vw, 640px);
    height: calc(100dvh - var(--nav-h) - var(--safe-bottom) - 46px);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
    overflow: visible;
  }

  .sheet-toggle {
    left: auto;
    right: -96px;
    top: 26px;
    width: 118px;
    height: 42px;
    border-radius: 0 999px 999px 0;
    transform: none;
    background: var(--lime);
    color: var(--green-950);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
    font-size: 12px;
    letter-spacing: 0;
    z-index: 2;
    writing-mode: horizontal-tb;
  }

  .sheet.collapsed {
    transform: translateX(calc(-100% - 82px));
    pointer-events: none;
  }

  .sheet.collapsed .sheet-toggle {
    right: -214px;
    pointer-events: auto;
  }

  .grabber {
    display: none;
  }

  .chips {
    min-width: 0;
    gap: 6px;
    padding-bottom: 8px;
    margin: 0;
  }

  .chip {
    padding: 7px 10px;
    font-size: 11px;
  }

  .routes-block {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    margin-top: 0;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--line);
  }

  .sheet-head {
    margin: 10px 0 8px;
  }

  .sheet-head.compact {
    margin: 0 0 8px;
  }

  .sheet-head h2 {
    font-size: 16px;
    letter-spacing: 0;
  }

  .sheet-head p {
    font-size: 11px;
  }

  .routes,
  .places {
    gap: 6px;
  }

  .routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    overflow-y: auto;
    padding: 2px 3px 2px 0;
    scrollbar-width: thin;
  }

  .places {
    min-height: 0;
    overflow-y: auto;
    padding: 2px 3px 2px 0;
    scrollbar-width: thin;
  }

  .place {
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    min-height: 56px;
    gap: 9px;
    padding: 6px 0;
  }

  .routes .place {
    border-bottom: 0;
  }

  .thumb {
    height: 44px;
    border-radius: 10px;
  }

  .thumb-badge {
    right: -5px;
    bottom: -5px;
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .place strong {
    font-size: 13px;
  }

  .place small {
    -webkit-line-clamp: 1;
    font-size: 11px;
  }

  .route-card {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    min-height: 112px;
    padding: 8px;
    border: 1px solid rgba(49, 92, 53, .12);
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdf8, #f0f6ec);
    box-shadow: 0 8px 18px rgba(17, 31, 20, .06);
  }

  .route-card .thumb {
    height: 66px;
  }

  .route-card .place-copy em {
    -webkit-line-clamp: 2;
    margin-top: 4px;
  }

  .route-stats {
    gap: 4px;
    margin-top: 5px;
  }

  .route-stats span {
    padding: 3px 6px;
    font-size: 9.5px;
  }

  .route-ratings {
    display: none;
  }

  .route-card .arrow {
    display: none;
  }

  .meta {
    margin-top: 3px;
    font-size: 10px;
  }

  .place .arrow {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(100%, 360px);
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
  }

  .placeholder-panel {
    padding-inline: 28px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  :root {
    --app-w: 100vw;
    --app-h: 100dvh;
    --radius-phone: 0px;
  }

  body {
    padding: 0;
  }

  .hero {
    padding-inline: 18px;
  }

  .headline {
    max-width: 280px;
  }

  .radar-wrap {
    left: auto;
    right: 18px;
    top: 48%;
    width: min(58dvh, 42vw, 310px);
    transform: translateY(-52%);
  }

  .sheet {
    display: block;
    width: min(42vw, 350px);
    height: calc(100dvh - var(--nav-h) - 18px);
    right: auto;
    left: 18px;
    bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
    border-radius: 24px;
    overflow-y: auto;
  }

  .routes,
  .places {
    grid-template-columns: 1fr;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 380px) {
  .room-card {
    grid-template-columns: 1fr;
  }
}
