﻿/* PackRide www — layout inspirowany stronami produktowymi (np. calimoto.com/pl) */
:root {
  --bg: #0c0d10;
  --bg-elev: #12141a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface2: rgba(255, 255, 255, 0.07);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.1);
  --brand: #ff6a00;
  --brand2: #ff3d7a;
  --brand-glow: rgba(255, 106, 0, 0.35);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  padding-top: 84px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
body[data-page="login"],
body[data-page="register"],
body[data-page^="panel"] {
  padding-top: 0;
}

/* Panel is a full-screen app view; prevent page-level scrolling */
html:has(body[data-page^="panel"]),
body[data-page^="panel"] {
  height: 100%;
  overflow: hidden;
}

body[data-page^="panel"] main,
body[data-page^="panel"] #main,
body[data-page^="panel"] .ride-editor-page {
  height: 100vh;
  overflow: hidden;
}

/* Leaflet popups should match panel style (square corners) */
body[data-page^="panel"] .leaflet-popup-content-wrapper,
body[data-page^="panel"] .leaflet-popup-tip {
  border-radius: 0 !important;
}
body[data-page^="panel"] .leaflet-popup-content-wrapper {
  border: 1px solid rgba(28, 34, 44, 0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* Leaflet "my location" button (dot) under zoom */
body[data-page^="panel"] .leaflet-control-myloc {
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
body[data-page^="panel"] .leaflet-control-myloc:hover {
  background: #fff;
}
body[data-page^="panel"] .leaflet-control-myloc__icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* --- Leaflet toolbar (OSM-like) pinned to left edge --- */
body[data-page^="panel"] .leaflet-top.leaflet-left {
  left: 0;
}
body[data-page^="panel"] .leaflet-left .leaflet-control {
  margin-left: 0;
}
body[data-page^="panel"] .leaflet-top .leaflet-control {
  margin-top: 0;
}
body[data-page^="panel"] .leaflet-bar {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 0;
  border-radius: 0;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  background: rgba(10, 16, 34, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body[data-page^="panel"] .leaflet-bar a,
body[data-page^="panel"] .leaflet-bar a:hover {
  width: 40px;
  height: 40px;
  line-height: 40px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}
body[data-page^="panel"] .leaflet-bar a:last-child {
  border-bottom: 0;
}
body[data-page^="panel"] .leaflet-bar a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Layers control (match toolbar button + drawer) */
body[data-page^="panel"] .leaflet-control-layers {
  border-radius: 0 !important;
}
body[data-page^="panel"] .leaflet-control-layers-toggle {
  width: 40px !important;
  height: 40px !important;
  background-size: 18px 18px !important;
  filter: invert(1);
}
body[data-page^="panel"] .leaflet-control-layers-expanded {
  padding: 10px 12px;
  border-radius: 0;
  background: rgba(10, 16, 34, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
}
body[data-page^="panel"] .leaflet-control-layers-expanded label {
  color: rgba(255, 255, 255, 0.9);
}

/* POI search control (OSM-like bar) */
body[data-page^="panel"] .leaflet-control-poisearch {
  position: fixed;
  top: 8px;
  left: 48px; /* minimal gap from 40px toolbar */
  margin: 0;
  z-index: 1200;
}
body[data-page^="panel"] .leaflet-control-poisearch .poisearch {
  display: grid;
  grid-template-columns: 1fr 44px;
  width: min(340px, calc(100vw - 20px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 0;
  background: rgba(10, 16, 34, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
body[data-page^="panel"] .leaflet-control-poisearch .poisearch__input {
  border: 0;
  outline: none;
  padding: 10px 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font: 600 13px Arial, Helvetica, sans-serif;
}
body[data-page^="panel"] .leaflet-control-poisearch .poisearch__input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}
body[data-page^="panel"] .leaflet-control-poisearch .poisearch__btn {
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
}
body[data-page^="panel"] .leaflet-control-poisearch .poisearch__btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
body[data-page^="panel"] .leaflet-control-poisearch .poisearch__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}
body[data-page^="panel"] .leaflet-control-poisearch .poisearch__results {
  width: min(340px, calc(100vw - 20px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 0;
  border-top: 0;
  background: rgba(10, 16, 34, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
body[data-page^="panel"] .leaflet-control-poisearch .poisearch__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  font: 500 12px Arial, Helvetica, sans-serif;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
body[data-page^="panel"] .leaflet-control-poisearch .poisearch__item:hover {
  background: rgba(255, 255, 255, 0.08);
}
body[data-page^="panel"] .leaflet-control-poisearch .poisearch__empty {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.7);
  font: 500 12px Arial, Helvetica, sans-serif;
}

/* Top-right ride info overlay (same style as POI bar) */
body[data-page^="panel"] .ride-info-overlay {
  position: fixed;
  top: 8px; /* match search bar */
  right: calc(8px + var(--ride-side-width, 0px)); /* keep away from right panel */
  z-index: 1200;
  width: min(360px, calc(100vw - 20px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 16, 34, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-family: Arial, Helvetica, sans-serif;
}
body[data-page^="panel"] .ride-info-overlay[hidden] {
  display: none !important;
}
body[data-page^="panel"] .ride-info-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
body[data-page^="panel"] .ride-info-overlay__title {
  font: 600 13px Arial, Helvetica, sans-serif;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-page^="panel"] .ride-info-overlay__close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
body[data-page^="panel"] .ride-info-overlay__close:hover {
  background: rgba(255, 255, 255, 0.12);
}
body[data-page^="panel"] .ride-info-overlay__close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
body[data-page^="panel"] .ride-info-overlay__body {
  padding: 10px 12px 12px;
}
body[data-page^="panel"] .ride-info-overlay__cover {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  display: block;
  margin-bottom: 10px;
}
body[data-page^="panel"] .ride-info-overlay__meta {
  font: 500 12px Arial, Helvetica, sans-serif;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
  line-height: 1.25;
}
body[data-page^="panel"] .ride-info-overlay__desc {
  font: 500 12px Arial, Helvetica, sans-serif;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  max-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
}

/* Route point context menu (cursor-like) */
.packride-ctxmenu {
  min-width: 190px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 0;
  border-radius: 0;
  background: rgba(10, 16, 34, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  padding: 6px 0 0;
}
.packride-ctxmenu__item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 12px;
  font: 600 12px Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  display: block;
}
.packride-ctxmenu__item:hover,
.packride-ctxmenu__item:focus-visible {
  outline: none;
  background: #ff650d;
  color: #fff;
}
.packride-ctxmenu__item.is-disabled,
.packride-ctxmenu__item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.packride-ctxmenu__item.is-disabled:hover,
.packride-ctxmenu__item:disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
}
.packride-ctxmenu__sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 6px 0;
}
.packride-ctxmenu__item--danger {
  color: rgba(255, 255, 255, 0.9);
}

[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
strong {
  font-weight: 700;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.narrow,
.section-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
}
.skip:focus {
  left: 12px;
  z-index: 9999;
}
/* --- Top bar (fixed, always visible) --- */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483647;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 13, 16, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header * {
  position: relative;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  min-height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 980px) {
  .brand-logo {
    height: 38px;
  }
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 36px var(--brand-glow);
  flex-shrink: 0;
}
.mark--sm {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}
.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  margin-left: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav a:hover {
  color: var(--text);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-header-cta {
  flex-shrink: 0;
  padding: 4px 10px !important;
  font-size: 0.86rem !important;
  line-height: 1 !important;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 28px rgba(255, 106, 0, 0.25) !important;
  transition: filter 0.15s, transform 0.15s;
}
.btn-header-login {
  flex-shrink: 0;
  padding: 4px 10px !important;
  font-size: 0.86rem !important;
  line-height: 1 !important;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  box-shadow: 0 8px 28px rgba(255, 106, 0, 0.25) !important;
}
.header-actions > a.btn-header-cta,
.header-actions > a.btn-header-login {
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  color: #fff !important;
}
.btn-header-login:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(255, 106, 0, 0.25);
  transform: translateY(-1px);
}
.btn-header-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
@media (max-width: 980px) {
  body {
    padding-top: 74px;
  }
  .nav-toggle {
    display: inline-flex;
    order: 2;
  }
  .btn-header-cta {
    display: none;
  }
  .btn-header-login {
    display: none;
  }
  .nav {
    display: none;
    position: absolute;
    right: 20px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    min-width: 240px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18, 20, 26, 0.96);
    box-shadow: var(--shadow);
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
  .nav a:hover {
    background: var(--surface2);
  }
}

.auth-hub {
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.05), rgba(255, 255, 255, 0.02));
}
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.auth-single {
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
}
.auth-card,
.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  padding: 16px;
  box-shadow: var(--shadow);
}
.auth-title {
  margin: 0;
  font-size: 1.4rem;
}
.auth-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}
.auth-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: #fff;
}
.auth-status {
  display: none;
}
.auth-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.datetime-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.datetime-split input[type="date"],
.datetime-split input[type="time"] {
  cursor: pointer;
  padding-right: 40px;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}
.datetime-split input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.72)' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm13 6H4v12h16V8zM6 10h4v4H6v-4z'/%3E%3C/svg%3E");
}
.datetime-split input[type="time"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.72)' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 11h5v-2h-4V6h-2v7z'/%3E%3C/svg%3E");
}
.ride-editor-side .datetime-split input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(0,0,0,0.55)' d='M7 2h2v2h6V2h2v2h3v18H4V4h3V2zm13 6H4v12h16V8zM6 10h4v4H6v-4z'/%3E%3C/svg%3E");
}
.ride-editor-side .datetime-split input[type="time"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(0,0,0,0.55)' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 11h5v-2h-4V6h-2v7z'/%3E%3C/svg%3E");
}

/* Ensure the native picker icons are visible/clickable in Chromium/WebKit */
.datetime-split input[type="date"]::-webkit-calendar-picker-indicator,
.datetime-split input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
}
.ride-editor-side .datetime-split input[type="date"]::-webkit-calendar-picker-indicator,
.ride-editor-side .datetime-split input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.25);
}
.datetime-split input[type="date"]:hover,
.datetime-split input[type="time"]:hover {
  background-color: rgba(255, 255, 255, 0.06);
}
.datetime-split input[type="date"]:focus,
.datetime-split input[type="time"]:focus {
  outline: none;
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 61, 122, 0.12);
}
@media (max-width: 520px) {
  .datetime-split {
    grid-template-columns: 1fr;
  }
}
.auth-form input,
.auth-form select,
.auth-form textarea {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
}
.panel-wrap {
  margin-top: 20px;
}
.panel-top,
.panel-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}
@media (max-width: 980px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }
}
.webapp-topbar {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}
.webapp-menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 980px) {
  .webapp-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.webapp-menu-btn {
  font-size: 0.8rem;
  padding: 8px 10px;
  width: 100%;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 10px;
  transition: background 0.15s, transform 0.15s, color 0.15s;
}
.webapp-menu-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.webapp-menu-btn.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border-color: transparent;
}
.webapp-bottom-nav {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}
.webapp-tab {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 10px 6px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.webapp-tab:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
}
.webapp-tab.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: transparent;
}
.panel-subtitle {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.panel-about-grid {
  align-items: stretch;
}
.panel-about-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.panel-about-item {
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.26);
}
.panel-about-item .ride-meta:last-child {
  margin-bottom: 0;
}
.points-head {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.points-list {
  display: grid;
  gap: 10px;
}
.point-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 8px;
}
.point-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
}
@media (max-width: 980px) {
  .point-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.ride-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}
.map-modal[hidden] {
  display: none !important;
}
.map-modal-card {
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #151924, #10131c);
  padding: 14px;
  box-shadow: var(--shadow);
}
.map-picker {
  width: 100%;
  height: min(65vh, 560px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rides-list {
  display: grid;
  gap: 10px;
}
.ride-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.ride-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.ride-cover {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.ride-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.ride-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Add-ride action buttons in the right panel should be visible on white */
#panel-add-ride .ride-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
#panel-add-ride .ride-actions .btn {
  width: 100%;
}
@media (max-width: 520px) {
  #panel-add-ride .ride-actions {
    grid-template-columns: 1fr;
  }
}

/* Nearby rides: 2 cards per row with mini-map */
#panel-nearby .rides-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px) {
  #panel-nearby .rides-list {
    grid-template-columns: 1fr;
  }
}
#panel-nearby .nearby-card {
  padding: 8px;
  border-radius: 0;
  font-family: Arial, Helvetica, sans-serif;
}
#panel-nearby .nearby-card__map {
  height: 72px;
  border-radius: 0;
  border: 1px solid rgba(28, 34, 44, 0.12);
  background: #eef2f6;
  margin-bottom: 6px;
}
#panel-nearby .nearby-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
#panel-nearby .nearby-card__title {
  font-size: 0.78rem;
  font-weight: 400;
  color: #1d2530;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#panel-nearby .nearby-card__km {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ff650d;
  white-space: nowrap;
}
#panel-nearby .nearby-card__km [data-ride-distance] {
  color: inherit;
}
#panel-nearby .nearby-card__meta {
  font-size: 0.68rem;
  margin: 4px 0 0;
  line-height: 1.2;
  color: #5a6778;
}
#panel-nearby .nearby-card .ride-actions {
  margin-top: 6px;
}
#panel-nearby .nearby-card .ride-actions .btn {
  width: 100%;
  min-height: 24px;
  font-size: 0.72rem;
  padding: 6px 10px;
}

/* Make ghost button visible on white nearby cards */
#panel-nearby .nearby-card .ride-actions .btn-ghost {
  border: 1px solid rgba(28, 34, 44, 0.18) !important;
  background: rgba(0, 0, 0, 0.02) !important;
  color: #1d2530 !important;
  box-shadow: none !important;
}
#panel-nearby .nearby-card .ride-actions .btn-ghost:hover {
  background: #ff650d !important;
  border-color: #ff650d !important;
  color: #fff !important;
}

/* Nearby radius slider removed */
.ride-map-editor {
  position: relative;
  width: 100%;
  isolation: isolate;
}
/* Fullscreen ride editor page */
.ride-editor-page {
  position: relative;
  min-height: 100vh;
  --ride-drawer-width: 390px;
}
.ride-editor-map-full {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: right 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.guest-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none; /* keep map usable */
}
.ride-editor-page.is-drawer-open .guest-map-overlay {
  right: var(--ride-drawer-width);
}
.guest-map-overlay__card {
  width: min(620px, calc(100vw - 40px));
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 16, 34, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.55);
  padding: 24px 26px 22px;
  padding-left: 260px; /* space for rider */
  color: #fff;
  text-align: center;
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}
.guest-map-overlay__content {
  position: relative;
  z-index: 1;
}
.guest-map-overlay__rider {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
}
.guest-map-overlay__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  line-height: 0;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guest-map-overlay__close svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}
.guest-map-overlay__close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.guest-map-overlay__logo {
  display: block;
  height: 44px;
  width: auto;
  margin: 0 auto 10px;
  object-fit: contain;
  opacity: 0.95;
}
.guest-map-overlay__title {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.guest-map-overlay__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .guest-map-overlay__card {
    padding: 18px 18px 16px;
    padding-left: 18px;
    text-align: left;
  }
  .guest-map-overlay__rider {
    position: static;
    display: block;
    height: auto;
    width: min(260px, 70vw);
    margin: 0 auto 12px;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.55));
  }
  .guest-map-overlay__logo {
    margin: 0 auto 10px;
  }
  .guest-map-overlay__title,
  .guest-map-overlay__text {
    text-align: center;
  }
}
.ride-editor-page.is-drawer-open .ride-editor-map-full {
  right: var(--ride-drawer-width);
}
.ride-editor-side {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  width: var(--ride-drawer-width);
  max-height: none;
  overflow: hidden;
  border-left: 0;
  border-top: 0;
  border-radius: 0;
  background: #fbfbfb;
  backdrop-filter: blur(6px);
  padding: 10px;
  font-size: 0.9rem;
  font-family: Arial, Helvetica, sans-serif;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  color: #1d2530;
  display: flex;
  flex-direction: column;
}

.ride-editor-side__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 56px; /* leave space for fixed/sticky footer */
  min-height: 0;
}

/* Hide scrollbar (keep scroll behavior) */
.ride-editor-side__scroll {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}
.ride-editor-side__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.ride-editor-side,
.ride-editor-side * {
  font-family: Arial, Helvetica, sans-serif !important;
}
.ride-editor-side.is-collapsed {
  transform: translateX(100%);
}
.ride-editor-drawer-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 26px;
  height: 74px;
  border-radius: 14px 0 0 14px;
  border: 0;
  background: #fff;
  color: #1d2530;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  transition: right 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ride-editor-drawer-toggle.is-open {
  right: var(--ride-drawer-width);
}
.ride-editor-drawer-handle {
  display: none;
}
.ride-editor-side .auth-title {
  font-size: 1.08rem;
  color: #1d2530;
}
.ride-editor-side .auth-note {
  font-size: 0.7rem;
  line-height: 1.3;
  color: #536174;
}
.ride-editor-side .auth-status {
  font-size: 0.8rem;
  min-height: 1.2em;
  color: #36475d;
}
.ride-editor-side .auth-form {
  gap: 7px;
}
.ride-editor-side .auth-form label {
  font-size: 0.74rem;
  font-weight: 400;
  color: #3f4d5f;
  gap: 3px;
}
.ride-editor-side .auth-form input,
.ride-editor-side .auth-form select,
.ride-editor-side .auth-form textarea {
  font-size: 0.8rem;
  padding: 7px 8px;
  border-radius: 0;
  color: #000 !important;
  border-color: rgba(28, 34, 44, 0.12);
  background: #fff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400 !important;
  -webkit-text-fill-color: #000;
}
.ride-editor-side .auth-form input::placeholder,
.ride-editor-side .auth-form textarea::placeholder {
  color: #6d7684;
  opacity: 1;
}
.ride-editor-side .auth-form input:-webkit-autofill,
.ride-editor-side .auth-form input:-webkit-autofill:hover,
.ride-editor-side .auth-form input:-webkit-autofill:focus,
.ride-editor-side .auth-form textarea:-webkit-autofill,
.ride-editor-side .auth-form select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #000;
  caret-color: #000;
}
.ride-editor-side .btn {
  font-size: 0.78rem;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 0;
}
.ride-editor-panel-menu {
  display: flex;
  gap: 0;
  margin: -10px -10px 10px;
  width: calc(100% + 20px);
  min-height: 46px;
  border: 1px solid rgba(28, 34, 44, 0.18);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: #f1f2f4;
  box-shadow: 0 2px 8px rgba(22, 28, 38, 0.12);
  overflow: hidden;
}
.ride-editor-menu-item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 46px;
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(28, 34, 44, 0.18);
  background: #f1f2f4;
  color: #556477;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
  background: #f1f2f4;
}
.ride-editor-menu-item--icononly {
  flex: 0 0 54px;
  width: 54px;
  padding: 0;
}
.menu-btn-icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
  color: currentColor;
}
.menu-btn-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.ride-editor-menu-item:last-child {
  border-right: 0;
}
.ride-editor-menu-item.is-disabled {
  opacity: 0.45;
}
.ride-editor-menu-item.is-active {
  background: #ff650d;
  color: #fff;
}
.ride-editor-menu-item:hover:not(.is-disabled) {
  background: #ff650d;
  color: #fff;
}
.panel-auth-title {
  margin: 2px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1d2530;
}
.ride-editor-side .ride-item {
  padding: 11px;
  border-radius: 0;
  border-color: rgba(28, 34, 44, 0.1);
  background: #fff;
}
.ride-editor-side .ride-item h4 {
  font-size: 0.96rem;
  margin-bottom: 6px;
  color: #1d2530;
}
.ride-editor-side .ride-meta {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0;
  color: #42546b;
}
#panel-auth-guest {
  display: grid;
  gap: 10px;
}

.panel-mini-footer {
  margin-top: auto;
  padding: 10px 6px 8px;
  min-height: 44px;
  font-size: 0.62rem;
  line-height: 1.2;
  color: #6b7788;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  background: #fbfbfb;
  border-top: 1px solid rgba(28, 34, 44, 0.12);
  position: sticky;
  bottom: 0;
  z-index: 5;
}
.panel-packride-hero {
  width: 100%;
  display: block;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-bottom: 0;
  object-fit: cover;
}

/* Remove the top border of the first card under the banner (avoid double border) */
#panel-about-block .panel-packride-hero + .ride-item {
  border-top: 0;
}
#panel-auth-guest .auth-form {
  background: #fff;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 0;
  padding: 8px;
}
#panel-auth-user {
  background: #fff;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 0;
  padding: 9px;
}
#panel-my-rides {
  display: grid;
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
#panel-my-rides,
#panel-my-rides * {
  font-family: Arial, Helvetica, sans-serif !important;
}
#panel-my-rides .ride-media-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6px;
  margin-bottom: 6px;
}
#panel-my-rides > .ride-item h4 {
  margin-bottom: 8px;
}
#panel-my-rides .rides-list .ride-item {
  padding: 8px;
}
#panel-my-rides .ride-cover--small {
  height: 70px;
  margin: 0;
  border-radius: 0;
}
#panel-my-rides .ride-item h4 {
  font-size: 0.78rem;
  margin: 0 0 4px;
  font-weight: 700;
  color: #1d2530;
}
#panel-my-rides .ride-meta {
  font-size: 0.68rem;
  margin-bottom: 6px;
  color: #5a6778;
}
.ride-distance {
  white-space: nowrap;
}
#panel-my-rides .ride-actions .btn {
  min-height: 26px;
  font-size: 0.7rem;
  padding: 5px 8px;
  background: #ff650d !important;
  border: 1px solid #ff650d !important;
  color: #fff !important;
  box-shadow: none !important;
}
#panel-my-rides .ride-actions .btn:hover {
  filter: brightness(1.05);
}
.ride-editor-side.is-my-rides-mode {
  overflow: hidden;
}

#packride-toast {
  position: fixed;
  top: 12px;
  right: 12px;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: 99999;
  background: rgba(20, 22, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 10px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  backdrop-filter: blur(4px);
  max-width: min(360px, calc(100vw - 28px));
}
#packride-toast.is-visible {
  opacity: 1;
}

/* Smaller point summaries (less important than map) */
#ride-edit-points-summary .ride-item h4,
#add-ride-points-summary .ride-item h4 {
  font-size: 0.6rem !important;
  margin: 0 0 2px !important;
  font-weight: 700;
}
#ride-edit-points-summary .ride-meta,
#add-ride-points-summary .ride-meta {
  font-size: 0.56rem !important;
  line-height: 1.25 !important;
  margin-bottom: 0 !important;
}

/* Points list (no borders, with "+" between items) */
#ride-edit-points-summary,
#add-ride-points-summary {
  display: grid;
  gap: 10px;
  font-family: Arial, Helvetica, sans-serif !important;
}
#ride-edit-points-summary .ride-item,
#add-ride-points-summary .ride-item {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}
#ride-edit-points-summary .points-stack,
#add-ride-points-summary .points-stack {
  display: grid;
  gap: 10px;
}
#ride-edit-points-summary .point-row,
#add-ride-points-summary .point-row {
  display: grid;
  grid-template-columns: 14px 42px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: start;
  padding: 10px 6px;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: Arial, Helvetica, sans-serif;
}

#ride-edit-points-summary .point-row__actions,
#add-ride-points-summary .point-row__actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 42px;
}

#ride-edit-points-summary .point-row__body,
#add-ride-points-summary .point-row__body {
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(28, 34, 44, 0.14);
}

#ride-edit-points-summary .point-row__top,
#add-ride-points-summary .point-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
#ride-edit-points-summary .point-row__drag,
#add-ride-points-summary .point-row__drag {
  color: rgba(29, 37, 48, 0.38);
  cursor: grab;
  padding-top: 10px;
}
#ride-edit-points-summary .point-row__drag svg,
#add-ride-points-summary .point-row__drag svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}
#ride-edit-points-summary .point-row__icon,
#add-ride-points-summary .point-row__icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: transparent;
  display: grid;
  place-items: center;
  color: #1d2530;
}
#ride-edit-points-summary .point-row__icon svg,
#add-ride-points-summary .point-row__icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}
#ride-edit-points-summary .point-row__label,
#add-ride-points-summary .point-row__label {
  font-size: 0.7rem;
  color: #5a6778;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#ride-edit-points-summary .point-row__num,
#add-ride-points-summary .point-row__num {
  font-weight: 900;
  font-size: 0.72rem;
  color: rgba(29, 37, 48, 0.6);
  flex: 0 0 auto;
}

#ride-edit-points-summary .point-row__title,
#add-ride-points-summary .point-row__title {
  margin-top: 2px;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400;
  font-size: 0.9rem;
  color: #1d2530;
  line-height: 1.12;
  word-break: break-word;
}

#ride-edit-points-summary .point-row__city,
#add-ride-points-summary .point-row__city {
  margin-top: 2px;
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(29, 37, 48, 0.9);
  line-height: 1.2;
}

/* region line removed (only city + optional street) */
/* street line removed (only city) */
#ride-edit-points-summary .point-row__coords,
#add-ride-points-summary .point-row__coords {
  margin-top: 4px;
  font-size: 0.64rem;
  color: #5a6778;
}
#ride-edit-points-summary .point-row__trash,
#add-ride-points-summary .point-row__trash {
  border: 0;
  background: transparent;
  color: rgba(29, 37, 48, 0.62);
  cursor: pointer;
  padding: 6px 6px 0;
}
#ride-edit-points-summary .point-row__trash svg,
#add-ride-points-summary .point-row__trash svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}

#ride-edit-points-summary .point-row__trash:hover,
#add-ride-points-summary .point-row__trash:hover {
  color: #ff650d;
}
#ride-edit-points-summary .point-row.is-drop-target,
#add-ride-points-summary .point-row.is-drop-target {
  background: rgba(255, 101, 13, 0.08);
}
/* "+" insert removed */

/* Confirm modal (delete ride) */
.confirm-modal[hidden] {
  display: none !important;
}
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
}
.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}
.confirm-modal__dialog {
  position: relative;
  width: min(340px, calc(100vw - 32px));
  background: rgba(20, 22, 26, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 14px;
  backdrop-filter: blur(6px);
  font-family: Arial, Helvetica, sans-serif;
}
.confirm-modal__title {
  margin: 0 0 6px;
  font-size: 0.9rem;
}
.confirm-modal__text {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
}
.confirm-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.confirm-modal__actions .btn-primary {
  background: #ff650d !important;
  border: 1px solid #ff650d !important;
  box-shadow: none !important;
  color: #fff !important;
}
.confirm-modal__actions .btn {
  border-radius: 0 !important;
}
.panel-user-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-user-avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid rgba(28, 34, 44, 0.14);
  background: #fff;
}
.panel-user-name {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #5a6778;
}
.panel-user-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  color: #ff650d;
}
.panel-user-icon-svg {
  width: 0.9em;
  height: 0.9em;
  display: block;
  fill: currentColor;
}
.panel-user-stats {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}
.panel-user-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(28, 34, 44, 0.1);
  padding: 6px 8px;
  font-size: 0.72rem;
  color: #415064;
}
.panel-user-stat strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d2530;
}
#editor-tab-account .auth-form {
  background: #fff;
  border: 1px solid rgba(28, 34, 44, 0.1);
  border-radius: 0;
  padding: 8px;
}
#editor-tab-account .btn-primary {
  background: #ff650d !important;
  border: 1px solid #ff650d !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 400 !important;
}
#editor-tab-ride .btn-primary {
  background: #ff650d !important;
  border: 1px solid #ff650d !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 400 !important;
}
#editor-tab-ride .btn-primary:hover {
  background: #ff650d !important;
  border-color: #ff650d !important;
  color: #fff !important;
  filter: brightness(1.05);
  transform: none;
}
#panel-auth-guest .panel-auth-note {
  margin: 0;
  font-size: 0.68rem;
  color: #5a6778;
  line-height: 1.25;
}
#panel-auth-guest .panel-auth-link {
  display: inline;
  border: 0;
  background: transparent;
  color: #ff650d;
  font: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
}
#panel-auth-guest .panel-auth-link:hover {
  text-decoration: underline;
}
/* Route preference buttons (plan + edit) */
#panel-add-ride .route-prefs,
#editor-tab-ride .route-prefs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 0 2px;
}
#panel-add-ride .route-pref,
#editor-tab-ride .route-pref {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(28, 34, 44, 0.22);
  background: #f1f2f4;
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  color: #556477;
}
#panel-add-ride .route-pref:hover,
#editor-tab-ride .route-pref:hover {
  border-color: rgba(28, 34, 44, 0.3);
}
#panel-add-ride .route-pref.is-checked,
#editor-tab-ride .route-pref.is-checked {
  border-color: #ff650d;
  background: #ff650d;
  color: #fff;
  box-shadow: none;
}
#panel-add-ride .route-pref input,
#editor-tab-ride .route-pref input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
#panel-add-ride .route-pref-icon,
#editor-tab-ride .route-pref-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#panel-add-ride .route-pref-icon svg,
#editor-tab-ride .route-pref-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
#panel-add-ride .route-pref-text,
#editor-tab-ride .route-pref-text {
  line-height: 1.1;
}
@media (max-width: 520px) {
  #panel-add-ride .route-prefs,
  #editor-tab-ride .route-prefs {
    grid-template-columns: 1fr;
  }
}
#panel-auth-guest .auth-form .btn-primary {
  background: #ff650d !important;
  border: 1px solid #ff650d !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 400 !important;
}
@media (max-width: 980px) {
  .ride-editor-page {
    --sheet-peek: 74px; /* visible part when collapsed (menu + handle) */
  }
  .ride-editor-map-full {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
  }
  .ride-editor-page:not(.is-drawer-open) .ride-editor-map-full {
    bottom: var(--sheet-peek);
  }
  /* Override desktop rule that shifts map when drawer is open */
  .ride-editor-page.is-drawer-open .ride-editor-map-full {
    right: 0 !important;
  }
  .ride-editor-side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: min(72vh, 720px);
    margin: 0;
    padding: 10px 10px 0;
    border: 1px solid rgba(28, 34, 44, 0.18);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(calc(100% - var(--sheet-peek)));
    z-index: 6;
    overflow: visible; /* allow handle to stick out */
  }
  .ride-editor-side.is-collapsed {
    transform: translateY(calc(100% - var(--sheet-peek)));
  }
  .ride-editor-side:not(.is-collapsed) {
    transform: translateY(0);
  }
  .ride-editor-side.is-collapsed .ride-editor-side__scroll,
  .ride-editor-side.is-collapsed .panel-mini-footer {
    opacity: 0;
    pointer-events: none;
  }
  .ride-editor-side__scroll {
    transition: opacity 0.18s ease;
  }

  .ride-editor-panel-menu {
    box-shadow: none;
    margin: 18px auto 8px;
    max-width: 560px;
    width: calc(100% - 20px);
    border-radius: 0;
    border: 1px solid rgba(28, 34, 44, 0.14);
    overflow: hidden;
    flex-shrink: 0;
  }
  .ride-editor-menu-item--icononly {
    width: 54px;
    flex: 0 0 54px;
    justify-content: center;
    grid-template-columns: 1fr;
  }
  .ride-editor-menu-item--icononly .menu-btn-icon {
    margin: 0;
  }
  .ride-editor-menu-item--icononly::after {
    content: "";
  }
  .ride-editor-menu-item {
    min-height: 52px;
    font-size: 0.9rem;
    border-radius: 0;
  }

  /* On mobile we use a handle attached to the sheet */
  .ride-editor-drawer-toggle {
    display: none;
  }
  .ride-editor-drawer-handle {
    display: grid;
    position: absolute;
    left: 50%;
    top: -18px; /* stick to the panel edge */
    bottom: auto;
    right: auto;
    transform: translateX(-50%);
    width: 82px;
    height: 34px;
    border-radius: 0;
    border: 1px solid rgba(28, 34, 44, 0.18);
    background: rgba(255, 255, 255, 0.96);
    color: #1d2530;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    place-items: center;
    font-size: 1.2rem;
    z-index: 7; /* above the bottom sheet */
  }
}
.ride-map-editor-map {
  height: 440px;
  position: relative;
  z-index: 1;
}
.ride-map-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  width: min(250px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 10, 15, 0.76);
  backdrop-filter: blur(4px);
  padding: 8px;
  z-index: 1000;
  pointer-events: auto;
}
.ride-map-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.ride-map-toolbar .btn {
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.74rem;
}
.ride-map-toolbar .btn.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: transparent;
  color: #fff;
}
.ride-map-overlay .panel-subtitle {
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.ride-map-overlay .auth-note {
  font-size: 0.75rem;
  line-height: 1.35;
  margin-top: 6px;
}
.ride-map-overlay .ride-item {
  padding: 8px;
}
.ride-map-overlay .ride-item h4 {
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.ride-map-overlay .ride-meta {
  font-size: 0.66rem;
  line-height: 1.25;
  margin-bottom: 6px;
}
.ride-map-overlay .ride-actions .btn {
  min-height: 24px;
  padding: 4px 7px;
  font-size: 0.65rem;
}
@media (max-width: 980px) {
  .ride-map-editor-map {
    height: 420px;
  }
  .ride-map-overlay {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 10px;
  }
}
/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.11);
}
.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn-primary,
.btn.primary {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff !important;
  box-shadow: 0 14px 40px rgba(255, 106, 0, 0.22);
}
.btn-primary:hover,
.btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
}
.ride-editor-side .auth-divider {
  color: rgba(0, 0, 0, 0.55);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(0, 0, 0, 0.12);
}
.auth-divider span {
  padding: 0 4px;
}
.btn-light {
  background: #fff;
  color: #111 !important;
  border: none;
  font-weight: 700;
}
.btn-light:hover {
  filter: brightness(0.96);
}
/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(48px, 10vw, 120px) 0 clamp(56px, 8vw, 100px);
  overflow: hidden;
}
.hero--mega {
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.62) 0%, rgba(6, 7, 10, 0.78) 54%, rgba(6, 7, 10, 0.94) 100%),
    radial-gradient(ellipse 70% 55% at 72% 28%, rgba(255, 61, 122, 0.18), transparent 62%),
    radial-gradient(ellipse 85% 65% at 30% 12%, rgba(155, 92, 255, 0.16), transparent 60%),
    url("hero-bg.jpg") center 40% / cover no-repeat;
  pointer-events: none;
}
@media (max-width: 980px) {
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(6, 7, 10, 0.66) 0%, rgba(6, 7, 10, 0.82) 60%, rgba(6, 7, 10, 0.96) 100%),
      radial-gradient(ellipse 120% 65% at 72% 14%, rgba(255, 61, 122, 0.14), transparent 64%),
      radial-gradient(ellipse 130% 70% at 45% 8%, rgba(155, 92, 255, 0.12), transparent 66%),
      url("hero-bg.jpg") center 28% / cover no-repeat;
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eyebrow-dot,
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}
.hero-title,
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero-title-accent {
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.82) 40%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lead,
.lead {
  margin: 24px 0 0;
  max-width: 52ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: #fff;
  font-weight: 450;
}
.hero-cta,
.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-note,
.note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--faint);
  max-width: 56ch;
}
/* --- Split sections --- */
.split {
  padding: clamp(64px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.split--reverse {
  position: relative;
  overflow: hidden;
}
.split--reverse::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.72) 0%, rgba(8, 10, 15, 0.62) 45%, rgba(8, 10, 15, 0.78) 100%),
    url("section-experience-bg.jpg") center center / cover no-repeat;
  pointer-events: none;
}
.split--reverse > .container {
  position: relative;
  z-index: 1;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split-grid {
  direction: rtl;
}
.split--reverse .split-copy,
.split--reverse .split-visual {
  direction: ltr;
}
@media (max-width: 900px) {
  .split--reverse::before {
    background:
      linear-gradient(180deg, rgba(8, 10, 15, 0.76) 0%, rgba(8, 10, 15, 0.66) 45%, rgba(8, 10, 15, 0.84) 100%),
      url("section-experience-bg.jpg") 58% center / cover no-repeat;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .split--reverse .split-grid {
    direction: ltr;
  }
  .split-visual {
    order: -1;
  }
}
.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-title-soft {
  color: var(--muted);
  font-weight: 700;
}
.section-title--center {
  text-align: center;
}
.section-lead {
  margin: 20px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #fff;
  max-width: 48ch;
}
.split-copy .btn {
  margin-top: 28px;
}
/* Mock phone / UI */
.split-visual {
  display: flex;
  justify-content: center;
}
.mock-ui {
  width: min(100%, 340px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 106, 0, 0.08);
  overflow: hidden;
}
.mock-ui-top {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.mock-ui-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.mock-ui-top span:first-child {
  background: #ff5f57;
}
.mock-ui-top span:nth-child(2) {
  background: #febc2e;
}
.mock-ui-top span:nth-child(3) {
  background: #28c840;
}
.mock-ui-body {
  padding: 22px;
}
.mock-line {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
  max-width: 100%;
}
.mock-line--lg {
  height: 14px;
  max-width: 70%;
  margin-bottom: 18px;
}
.mock-pill {
  height: 36px;
  max-width: 55%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.35), rgba(255, 61, 122, 0.25));
  margin-bottom: 20px;
}
.mock-map {
  height: 160px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(255, 106, 0, 0.12) 45%),
    repeating-linear-gradient(
      -12deg,
      rgba(255, 255, 255, 0.04) 0 2px,
      transparent 2px 14px
    ),
    radial-gradient(circle at 30% 60%, rgba(255, 106, 0, 0.15), transparent 50%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.split-visual--route .mock-ui {
  transform: rotate(-1.5deg);
}
.split-visual--route .mock-ui-body {
  padding: 0;
}
.split-visual--route .mock-line,
.split-visual--route .mock-pill {
  display: none;
}
.split-visual--route .mock-map {
  height: 430px;
  border-radius: 0;
  border: none;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.12) 0%, rgba(8, 10, 15, 0.35) 100%),
    url("split-adventure.png") center center / cover no-repeat;
}
@media (max-width: 900px) {
  .split-visual--route .mock-map {
    height: 360px;
    background-position: 52% center;
  }
}
.split-visual--chat .mock-ui {
  transform: rotate(1.5deg);
}
.split-visual--chat .mock-ui-body {
  padding: 0;
  min-height: 0;
  display: block;
}
.split-visual--chat .mock-bubble {
  display: none;
}
.split-visual--chat .mock-ui-body--chat {
  min-height: 430px;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.16) 0%, rgba(8, 10, 15, 0.34) 100%),
    url("split-experience.png") center center / cover no-repeat;
}
@media (max-width: 900px) {
  .split-visual--chat .mock-ui-body--chat {
    min-height: 360px;
    background-position: 52% center;
  }
}
.mock-ui-body--chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.mock-bubble {
  max-width: 78%;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}
.mock-bubble--me {
  align-self: flex-end;
  max-width: 62%;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.35), rgba(255, 61, 122, 0.2));
}
.mock-bubble--short {
  max-width: 48%;
  height: 36px;
}
/* --- Stats --- */
.stats {
  padding: clamp(72px, 11vw, 130px) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.04), transparent 45%);
}
.stats-heading {
  margin: 0;
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.stats-sub {
  margin: 14px auto 0;
  text-align: center;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.stats-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.stat-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover {
  border-color: rgba(255, 106, 0, 0.35);
  transform: translateY(-3px);
}
.stat-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 12px;
}
.stat-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}
.stat-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}
/* --- Steps --- */
.section {
  padding: clamp(56px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}
.steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 22px 0 22px 56px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}
.steps li:last-child {
  border-bottom: none;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
}
.steps strong {
  color: var(--text);
}
/* --- Roadmap section --- */
.roadmap {
  background:
    linear-gradient(180deg, rgba(6, 7, 10, 0.72) 0%, rgba(6, 7, 10, 0.86) 70%, rgba(6, 7, 10, 0.92) 100%),
    url("roadmap-bg.jpg") center center / cover no-repeat;
}
.roadmap-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}
.roadmap-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 20px;
}
.roadmap-title {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}
.roadmap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.roadmap-list li {
  position: relative;
  padding-left: 18px;
  color: #fff;
  line-height: 1.55;
}
.roadmap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}
/* --- Download --- */
.download {
  padding: clamp(64px, 10vw, 110px) 0;
  border-top: 1px solid var(--line);
}
.download-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .download-inner {
    grid-template-columns: 1fr;
  }
}
.store-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge {
  display: inline-flex;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--muted);
}
.store-badge--soon {
  background: rgba(255, 255, 255, 0.03);
}
.download-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  padding: 8px;
}
.download-card-inner {
  padding: 32px 28px;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
}
.download-card-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}
.download-card-title {
  margin: 10px 0 22px;
  font-size: 1.35rem;
  font-weight: 800;
}
/* --- FAQ --- */
.section--faq {
  background: rgba(0, 0, 0, 0.15);
}
.faq-cali details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-cali details + details {
  margin-top: 10px;
}
.faq-cali summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}
.faq-cali summary::-webkit-details-marker {
  display: none;
}
.faq-cali summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--muted);
  transition: transform 0.2s;
}
.faq-cali details[open] summary::after {
  content: "â’";
}
.faq-cali p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.faq-cali a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* --- CTA band --- */
.cta-band {
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.22), rgba(255, 61, 122, 0.12));
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta-band-lead {
  margin: 10px 0 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}
.cta-band-lead a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* --- Footer --- */
.site-footer {
  padding: 56px 0 48px;
  border-top: 1px solid var(--line);
  background: #08090c;
  color: var(--faint);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px 28px;
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.05rem;
}
.footer-brand-logo {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
}
.footer-tagline {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 280px;
}
.footer-copy {
  margin: 18px 0 0;
}
.footer-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--text);
}
/* Legacy / 404 */
.hero .container.narrow {
  position: relative;
  z-index: 1;
}
