:root {
  color-scheme: light;
  --bg: #f4f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #dbe6f3;
  --line-strong: #bdd3ec;
  --ink: #0b2147;
  --muted: #64748b;
  --blue: #075ee8;
  --blue-strong: #004ed0;
  --blue-soft: #e8f1ff;
  --teal: #08a7a3;
  --teal-soft: #e5fbf8;
  --amber: #ffb020;
  --coral: #ff553d;
  --green: #1faf68;
  --shadow: 0 14px 36px rgba(18, 50, 88, 0.12);
  --shadow-soft: 0 8px 22px rgba(18, 50, 88, 0.08);
  --radius: 8px;
  --header-height: 74px;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  word-break: keep-all;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 230px minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(18, 50, 88, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7, 94, 232, 0.28);
  border-radius: 8px;
  background: linear-gradient(160deg, #f6fbff, #dff4ff 54%, #eafff6);
  color: var(--blue);
  box-shadow: var(--shadow-soft);
}

.brand-mark svg {
  width: 29px;
  height: 29px;
}

.brand-name {
  display: block;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.main-nav,
.tabs {
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar,
.tabs::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  position: relative;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-btn.active {
  color: var(--blue);
}

.nav-btn.active::after {
  position: absolute;
  right: 16px;
  bottom: 2px;
  left: 16px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
  content: "";
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-box {
  position: relative;
  width: min(430px, 34vw);
}

.search-box input {
  width: 100%;
  height: 43px;
  padding: 0 54px 0 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(7, 94, 232, 0.12);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #7690b1;
  transform: translateY(-50%);
}

.search-submit {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
}

.icon-btn,
.avatar-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.icon-btn:hover,
.avatar-btn:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}

.badge-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--coral);
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.avatar-btn {
  width: auto;
  min-width: 150px;
  grid-template-columns: 34px auto 16px;
  gap: 8px;
  padding: 4px 10px 4px 4px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--blue), var(--teal));
  color: #fff;
  font-weight: 900;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-label {
  max-width: 110px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page {
  width: min(1800px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 14px 0 18px;
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 350px;
  gap: 14px;
  align-items: start;
}

.layout-wide {
  grid-template-columns: 300px minmax(0, 1fr);
}

.layout > *,
.layout-wide > * {
  min-width: 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.panel.pad {
  padding: 16px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.tiny {
  color: var(--muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric {
  display: grid;
  place-items: center;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.metric span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.side-list {
  display: grid;
  gap: 9px;
}

.city-row,
.marina-row,
.boat-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.city-row:hover,
.marina-row:hover,
.boat-row:hover,
.city-row.active,
.marina-row.active,
.boat-row.active {
  border-color: var(--blue);
  background: #f8fbff;
  box-shadow: 0 0 0 2px rgba(7, 94, 232, 0.08);
}

.row-img {
  width: 74px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--blue-soft);
}

.row-img img,
.image-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-name {
  display: block;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.quick-nav {
  display: grid;
  gap: 10px;
}

.quick-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
}

.map-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(6, 35, 77, 0.3), rgba(5, 75, 147, 0.05)),
    var(--map-img) center / cover;
  box-shadow: var(--shadow);
}

.amap-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(216, 234, 248, 0.76);
}

.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(6, 35, 77, 0.42), rgba(5, 75, 147, 0.05)),
    var(--map-img) center / cover;
  color: #fff;
  text-align: center;
}

.map-fallback.show {
  z-index: 2;
}

.map-fallback strong {
  font-size: 22px;
  font-weight: 900;
}

.map-fallback span {
  max-width: 380px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.map-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

.seg-btn {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.seg-btn.active {
  background: var(--blue);
  color: #fff;
}

.map-hint {
  position: absolute;
  top: 82px;
  left: 22px;
  z-index: 3;
  max-width: 250px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(12, 31, 61, 0.38);
  color: #fff;
  backdrop-filter: blur(12px);
}

.map-overlay-label {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 32px;
  backdrop-filter: blur(12px);
}

.map-hint strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.map-hint span {
  font-size: 12px;
  line-height: 1.55;
}

.city-marker {
  position: absolute;
  z-index: 5;
  display: grid;
  grid-template-columns: 24px auto;
  gap: 7px;
  align-items: center;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(8, 79, 173, 0.86);
  color: #fff;
  box-shadow: 0 10px 28px rgba(4, 50, 110, 0.25);
  transform: translate(-50%, -50%);
}

.amap-city-pin,
.amap-marina-pin {
  display: inline-grid;
  align-items: center;
  color: #fff;
  filter: drop-shadow(0 10px 18px rgba(0, 36, 84, 0.25));
  user-select: none;
}

.amap-city-pin {
  grid-template-columns: 24px auto;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(7, 94, 232, 0.9);
}

.amap-city-pin.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.2);
}

.amap-city-pin span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: currentColor;
}

.amap-city-pin span svg {
  color: #fff;
}

.amap-city-pin.active span svg {
  color: var(--blue);
}

.amap-city-pin strong,
.amap-marina-pin strong {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.amap-marina-pin {
  grid-template-columns: 12px auto;
  gap: 7px 8px;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(10, 31, 68, 0.82);
  backdrop-filter: blur(10px);
}

.amap-marina-pin.active {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 0 0 5px rgba(7, 94, 232, 0.16);
}

.amap-marina-pin .dot {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(8, 167, 163, 0.16);
}

.amap-marina-pin small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.amap-marina-pin.active small {
  color: var(--muted);
}

.amap-info-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  width: 290px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.amap-info-card img {
  width: 92px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
}

.amap-info-card strong,
.amap-info-card span,
.amap-info-card small {
  display: block;
}

.amap-info-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.amap-info-card span,
.amap-info-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.city-marker:hover,
.city-marker.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 0 0 5px rgba(4, 151, 226, 0.2), 0 12px 30px rgba(4, 50, 110, 0.22);
}

.marker-pin {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: currentColor;
}

.marker-pin svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.city-marker.active .marker-pin svg,
.city-marker:hover .marker-pin svg {
  color: var(--blue);
}

.marker-label {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.map-controls {
  position: absolute;
  right: 16px;
  bottom: 20px;
  z-index: 6;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.map-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 42px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.map-controls button:last-child {
  border-bottom: 0;
}

.city-card {
  overflow: hidden;
}

.city-card-image {
  height: 190px;
  margin: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-soft);
}

.city-card-body {
  padding: 0 16px 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pill.green {
  background: #e8f8ef;
  color: var(--green);
}

.pill.amber {
  background: #fff5dd;
  color: #9b6500;
}

.pill.coral {
  background: #fff0ed;
  color: var(--coral);
}

.city-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 12px;
}

.city-title-row h1,
.city-title-row h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.weather-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.weather-sun {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff6de;
  color: var(--amber);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.stat-strip .stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.service-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.service-chip {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.service-chip svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
}

.section-row h2,
.section-row h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--blue);
  color: #fff;
}

.boat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.boat-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.boat-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.boat-media {
  position: relative;
  height: 145px;
  overflow: hidden;
  background: var(--blue-soft);
}

.boat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.boat-card:hover .boat-media img {
  transform: scale(1.045);
}

.favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  color: #fff;
  backdrop-filter: blur(10px);
}

.favorite-toggle.active {
  background: var(--coral);
  color: #fff;
}

.boat-body {
  padding: 12px;
}

.boat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.boat-title h3 {
  margin: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.price {
  color: var(--coral);
  font-size: 20px;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.primary-btn {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 22px rgba(7, 94, 232, 0.22);
}

.primary-btn:hover {
  background: var(--blue-strong);
}

.secondary-btn {
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.danger-btn {
  background: #fff1ee;
  color: var(--coral);
}

.hero-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #09366d;
  box-shadow: var(--shadow);
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 26, 55, 0.88), rgba(4, 26, 55, 0.38) 42%, rgba(4, 26, 55, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  min-height: 420px;
  max-width: 620px;
  padding: 28px;
  color: #fff;
}

.hero-content h1 {
  margin: 16px 0 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.hero-content p {
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.75;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.hero-kpi {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-kpi strong {
  display: block;
  font-size: 18px;
}

.hero-kpi span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.detail-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.detail-tabs button {
  position: relative;
  min-height: 46px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.detail-tabs button.active {
  color: var(--blue);
}

.detail-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
  content: "";
}

.info-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.spec-item {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  text-align: center;
}

.spec-item svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.spec-item strong {
  font-size: 15px;
}

.booking-card {
  position: sticky;
  top: calc(var(--header-height) + 14px);
  padding: 18px;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(7, 94, 232, 0.1);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-btn {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.choice-btn.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.qty {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.qty button {
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.qty input {
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
}

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

.route-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.route-img {
  height: 170px;
  overflow: hidden;
}

.route-body {
  padding: 14px;
}

.route-steps {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.route-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.member-grid,
.admin-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
}

.lead-table th,
.lead-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.lead-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-table td {
  font-size: 13px;
  font-weight: 750;
}

.status-select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  text-align: center;
}

.drawer,
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
}

.drawer.open,
.modal.open {
  display: block;
}

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 43, 0.44);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  box-shadow: -18px 0 42px rgba(7, 31, 67, 0.2);
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(440px, calc(100vw - 28px));
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
}

.close-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: none;
  max-width: 380px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #09204a;
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast.show {
  display: block;
}

.data-mode {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf8ff;
  color: #0b5fb3;
  font-size: 12px;
  font-weight: 900;
}

.loading {
  opacity: 0.65;
  pointer-events: none;
}

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

@media (max-width: 1320px) {
  .topbar {
    grid-template-columns: 210px 1fr;
  }

  .top-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-bottom: 10px;
  }

  .search-box {
    width: min(560px, 54vw);
  }

  .layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .layout > .right-col {
    grid-column: 1 / -1;
  }

  .boat-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px;
    overflow: hidden;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .top-actions {
    grid-column: auto;
    flex-wrap: wrap;
    overflow: hidden;
  }

  .search-box {
    order: 3;
    width: 100%;
  }

  .layout,
  .layout-wide,
  .member-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .layout > section,
  .layout-wide > section {
    order: 1;
  }

  .layout > .left-col,
  .layout-wide > .left-col {
    order: 2;
  }

  .layout > .right-col {
    order: 3;
  }

  .map-stage {
    min-height: 520px;
  }

  .boat-grid,
  .boat-grid.compact,
  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-grid,
  .hero-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page {
    width: calc(100vw - 16px);
  }

  .brand-name {
    font-size: 19px;
  }

  .avatar-btn {
    min-width: 42px;
    grid-template-columns: 34px;
    padding: 4px;
  }

  .avatar-btn .user-label,
  .avatar-btn svg:last-child {
    display: none;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(4, 42px);
    justify-content: start;
  }

  .top-actions .search-box {
    grid-column: 1 / -1;
    order: 2;
    width: 100%;
  }

  .data-mode {
    display: none;
  }

  .metric-grid,
  .stat-strip,
  .service-icons,
  .boat-grid,
  .boat-grid.compact,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .map-stage {
    min-height: 460px;
  }

  .map-toolbar {
    left: 12px;
    max-width: calc(100% - 24px);
  }

  .map-overlay-label {
    display: none;
  }

  .map-hint {
    display: none;
  }

  .city-marker {
    padding-right: 7px;
  }

  .marker-label {
    display: none;
  }

  .hero-content {
    min-height: 470px;
    padding: 20px;
  }

  .hero-kpis,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .lead-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
