/* Pilot Car 4 Hire — design system */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0f1a2e;
  --navy-mid: #1a2d4d;
  --navy-soft: #2a4066;
  --slate: #5a6b85;
  --slate-light: #8d9bb0;
  --bg: #e8eaef;
  --bg-elevated: #f6f7fa;
  --white: #ffffff;
  --border: rgba(15, 26, 46, 0.07);
  --border-strong: rgba(15, 26, 46, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 26, 46, 0.05);
  --shadow: 0 4px 24px rgba(15, 26, 46, 0.07);
  --shadow-lg: 0 16px 48px rgba(15, 26, 46, 0.1);
  --shadow-xl: 0 28px 72px rgba(15, 26, 46, 0.14);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max: 1120px;
  --header-h: 68px;
  --map-mobile-min-h: 58vh;
  --success: #0b7a4c;
  --success-light: #12a066;
  --success-bg: rgba(11, 122, 76, 0.1);
  --accent-gradient: linear-gradient(135deg, var(--navy-mid) 0%, var(--success) 100%);
  --surface-gradient: linear-gradient(180deg, var(--white) 0%, var(--bg-elevated) 100%);
  --danger: #c41e1e;
  --danger-bg: rgba(196, 30, 30, 0.06);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 0.75rem;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(26, 45, 77, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(11, 122, 76, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 100% 60%, rgba(26, 45, 77, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── Layout ── */
.main {
  flex: 1;
  padding: 2.5rem 1.5rem 4rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
  padding: 0 2rem;
  background: rgba(246, 247, 250, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 122, 76, 0.25), transparent);
}

.logo {
  transition: transform var(--transition), opacity var(--transition);
}

.logo:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.logo-img {
  height: 48px;
  width: auto;
}

.version-badge {
  display: inline;
  margin-left: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  padding: 0;
  background: none;
  border: none;
}

.version-badge::before {
  content: '·';
  margin-right: 0.375rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Typography ── */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}

.page-head {
  margin-bottom: 2rem;
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.6;
  max-width: 52ch;
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

/* ── Hero (home) ── */
.hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
  padding: 1.5rem 0 0.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.875rem;
  padding: 0.4375rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--success-bg);
}

.hero-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero--map-focus {
  max-width: 580px;
  margin-bottom: 1.25rem;
  padding: 1rem 0 0;
}

.hero--map-focus .hero-title {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.hero--map-focus .hero-lead {
  font-size: 1.0625rem;
  margin-bottom: 1rem;
  color: var(--slate);
}

.install-app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem 1rem;
  margin-top: 0.25rem;
}

.install-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.install-app-btn:hover,
.install-app-btn:focus-visible {
  border-color: var(--navy-mid);
  box-shadow: var(--shadow);
}

.install-app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  background: var(--success);
  border-radius: 6px;
}

.install-app-dismiss {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.25rem;
}

.install-ios-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.install-ios-modal[hidden] {
  display: none;
}

.install-ios-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 34, 56, 0.45);
}

.install-ios-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 1.25rem 1rem 1rem;
  margin-bottom: env(safe-area-inset-bottom, 0);
  animation: fadeUp 0.25s ease-out;
}

.install-ios-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--slate);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.install-ios-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  padding-right: 2.5rem;
}

.install-ios-lead {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 1rem;
}

.install-ios-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--navy);
}

.install-ios-steps li + li {
  margin-top: 0.625rem;
}

.install-ios-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  vertical-align: middle;
}

.install-ios-done {
  width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-actions--start {
  justify-content: flex-start;
  margin-bottom: 0;
}

.hero {
  animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-strong);
}

.hero-stat strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.hero-stat span {
  font-size: 0.8125rem;
  color: var(--slate);
}

/* Features */
.features {
  max-width: var(--max);
  margin: 0 auto 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.125rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--bg);
  border-radius: 8px;
}

.feature-title {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ── Auth ── */
.auth-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.auth-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.auth-subtitle {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.welcome {
  max-width: 480px;
  margin: 0 auto 3rem;
  text-align: center;
}

.welcome .auth-title {
  margin-bottom: 0.5rem;
}

.welcome .hero-actions {
  margin-bottom: 0;
}

/* ── Forms ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field textarea,
.field select {
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235c6b82' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--navy-mid);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 50, 84, 0.1);
}

.field input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.forgot-link {
  align-self: flex-end;
  margin-top: -0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition);
}

.forgot-link:hover {
  color: var(--navy);
}

.text-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition);
}

.text-link:hover {
  color: var(--navy);
}

/* Role cards */
.role-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.role-legend {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.625rem;
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.role-card:hover {
  background: var(--white);
  border-color: var(--border-strong);
}

.role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-card:has(input:checked) {
  background: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.role-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.role-card-desc {
  font-size: 0.75rem;
  color: var(--slate);
  line-height: 1.45;
}

/* Checkbox pills */
.checkbox-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.checkbox-fieldset .field-label {
  margin-bottom: 0.625rem;
}

.checkbox-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkbox-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.checkbox-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-pill:has(input:checked) {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.checkbox-fieldset .field-label {
  margin-bottom: 0.625rem;
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--slate);
  margin: -0.25rem 0 0.75rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.field-group > .field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.field-label-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.field-row .field:last-child select {
  min-width: 8.5rem;
}

@media (max-width: 540px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .field-row .field:last-child select {
    min-width: 0;
  }
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.75rem, 1fr));
  gap: 0.375rem;
}

.state-check {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4375rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--slate);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.state-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.state-check:has(input:checked) {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.states-section-label {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-light);
}

.states-section-label:first-of-type {
  margin-top: 0.25rem;
}

.states-select-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.375rem 0 0.5rem;
}

.states-grid--named {
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
}

.state-check--named {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.5rem 0.375rem;
  text-align: center;
  line-height: 1.2;
}

/* ── Buttons ── */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--navy) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-soft) 100%);
  box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn-secondary:hover {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-small {
  padding: 0.5625rem 1.125rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.listing-contact .btn-submit,
.listing-contact .btn-secondary {
  flex: 1;
  min-width: fit-content;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--danger);
  background: var(--white);
  border: 1px solid rgba(196, 30, 30, 0.25);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.btn-danger:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

.form-message {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-message.is-error { color: var(--danger); }
.form-message.is-success { color: var(--success); }

/* ── Panels & pages ── */
.page {
  padding-top: 0.5rem;
}

.page-inner {
  max-width: 600px;
  margin: 0 auto;
}

.page-inner-wide {
  max-width: 960px;
}

.panel {
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.listing-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.account-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-inner-listing {
  max-width: 720px;
  margin: 0 auto;
}

.dev-banner {
  margin-bottom: 1.25rem;
  padding: 0.875rem 1.25rem;
  background: rgba(30, 50, 84, 0.06);
  border-color: rgba(30, 50, 84, 0.12);
}

.dev-banner p {
  font-size: 0.875rem;
  color: var(--slate);
  margin: 0;
}

.listing-live-section {
  margin-bottom: 2.5rem;
}

.listing-live-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.listing-live-hint {
  font-size: 0.875rem;
  color: var(--slate);
  margin-top: 0.25rem;
}

.listing-live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1rem;
}

#listing-preview .listing-card {
  border-left: 3px solid var(--navy);
}

.listing-edit-section {
  scroll-margin-top: 6rem;
}

/* Preview (legacy) */
.listing-preview-section {
  margin-bottom: 2rem;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--success);
  background: var(--success-bg);
  border-radius: 999px;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

#listing-preview .listing-card {
  border-left: 3px solid var(--navy);
}

/* Home — map-first, mobile optimized */
.main--home {
  padding-top: 0.75rem;
  padding-bottom: 2rem;
}

.home-browse {
  max-width: 960px;
  margin: 0 auto 1.25rem;
  width: 100%;
}

.listings-head {
  margin-bottom: 1.25rem;
}

.listings-head .page-subtitle {
  margin-top: 0.375rem;
}

.driver-cta {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.driver-cta--premium {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 50%, #1f3558 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.driver-cta--premium::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  height: 180%;
  background: radial-gradient(ellipse, rgba(11, 122, 76, 0.2) 0%, transparent 68%);
  pointer-events: none;
}

.driver-cta--premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.driver-cta--premium .driver-cta-inner {
  position: relative;
  z-index: 1;
}

.driver-cta--premium .eyebrow {
  color: rgba(255, 255, 255, 0.45);
}

.driver-cta--premium .driver-cta-title {
  color: var(--white);
}

.driver-cta--premium .driver-cta-lead {
  color: rgba(255, 255, 255, 0.72);
}

.driver-cta--premium .driver-cta-perks li {
  color: rgba(255, 255, 255, 0.88);
}

.driver-cta--premium .driver-cta-perks li::before {
  color: var(--success-light);
}

.driver-cta--premium .btn-submit {
  background: linear-gradient(180deg, var(--success-light) 0%, var(--success) 100%);
  border-color: rgba(255, 255, 255, 0.15);
}

.driver-cta--premium .btn-submit:hover {
  background: linear-gradient(180deg, #14b374 0%, var(--success-light) 100%);
}

.driver-cta--premium .btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.driver-cta--premium .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.driver-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.driver-cta-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.driver-cta-lead {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 1.25rem;
}

.driver-cta-perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  padding: 0;
}

.driver-cta-perks li {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.driver-cta-perks li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 800;
}

.driver-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
}

.driver-cta-actions .btn-submit,
.driver-cta-actions .btn-secondary {
  width: 100%;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-mission-banner {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-bottom: 1.25rem;
}

.about-mission-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.about-mission-title {
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.about-mission-lead {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.65;
  max-width: 40rem;
  margin: 0 auto;
}

.about-features {
  margin-bottom: 1.25rem;
}

.about-body p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.8;
}

.about-cta {
  text-align: center;
}

.about-cta .page-subtitle {
  margin-bottom: 1.25rem;
}

.about-cta .hero-actions {
  justify-content: center;
}

@media (max-width: 768px) {
  .about-features.features-grid {
    grid-template-columns: 1fr;
  }
}

.seo-content {
  max-width: var(--max-wide);
  margin: 2rem auto 0;
  padding: 2rem 2.25rem;
}

.seo-content-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.seo-content p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 0.875rem;
}

.seo-content p:last-of-type {
  margin-bottom: 1.25rem;
}

.seo-content a {
  color: var(--navy-mid);
  font-weight: 600;
  text-underline-offset: 3px;
}

.seo-content a:hover {
  text-decoration: underline;
}

.seo-state-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1rem;
}

.seo-state-links a {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}

.seo-state-links a:hover {
  background: var(--white);
  border-color: var(--navy-mid);
  text-decoration: none;
}

.seo-state-links a:last-child {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
}

.signup-perks {
  list-style: none;
  display: grid;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.signup-perks li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.5;
}

.signup-perks li::before {
  content: '✓';
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--success);
}

.signup-perks strong {
  color: var(--navy);
}

.auth-switch {
  font-size: 0.875rem;
  color: var(--slate);
  text-align: center;
  margin-top: 0.25rem;
}

/* Service filters */
.service-filter-bar {
  margin-bottom: 1rem;
  padding: 1rem 1.125rem 1.125rem;
}

.service-filter-bar--inline {
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem 1rem;
}

.service-filter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.service-filter-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.service-filter-inline-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.625rem;
}

.service-filter-summary {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  text-align: right;
}

.service-filter-track {
  position: relative;
  margin: 0 -0.25rem;
}

.service-filter-track::before,
.service-filter-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.25rem;
  pointer-events: none;
  z-index: 1;
}

.service-filter-track::before {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
}

.service-filter-track::after {
  right: 0;
  background: linear-gradient(270deg, var(--white) 0%, transparent 100%);
}

.service-filter-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.125rem 0.25rem 0.25rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.service-filter-scroll::-webkit-scrollbar {
  display: none;
}

.service-filter-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5625rem 1rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-mid);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.service-filter-chip:hover,
.service-filter-chip:focus-visible {
  color: var(--navy);
  background: var(--white);
  border-color: rgba(15, 26, 46, 0.18);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.service-filter-chip:active {
  transform: scale(0.98);
}

.service-filter-chip.is-active {
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--navy) 100%);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(15, 26, 46, 0.22);
}

.service-filter-chip.is-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-light);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.service-filter-chip[data-service=""].is-active::before {
  display: none;
}

@media (min-width: 900px) {
  .service-filter-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .service-filter-track::before,
  .service-filter-track::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .service-filter-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .service-filter-summary {
    text-align: left;
  }

  .service-filter-chip {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }
}

/* Listing completion meter */
.listing-completion {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
}

.completion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.completion-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
}

.completion-pct {
  font-size: 1rem;
  color: var(--navy);
}

.completion-bar {
  height: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.completion-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--success) 0%, var(--success-light) 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.listing-completion.is-complete .completion-fill {
  background: var(--navy);
}

.completion-tips {
  margin: 0.75rem 0 0;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  color: var(--slate);
}

.completion-tips li + li {
  margin-top: 0.25rem;
}

.listing-report {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.report-listing-btn {
  font-size: 0.8125rem;
}

/* State directory & landing */
.state-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.625rem;
}

.state-directory-link {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: var(--navy);
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.state-directory-link:hover,
.state-directory-link:focus-visible {
  border-color: var(--navy-mid);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.state-directory-code {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.state-directory-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate);
  line-height: 1.3;
}

.state-directory-count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--success);
  margin-top: 0.125rem;
}

.page-state-landing .listings-view {
  margin-top: 1.5rem;
}

.page-state-landing .listings-view[hidden] {
  display: block;
}

.page-state-landing .map-view {
  margin-bottom: 0;
}

/* Browse — map */
.map-view {
  margin-bottom: 2rem;
}

.map-panel {
  position: relative;
  padding: 0.875rem;
  overflow: hidden;
}

.map-panel.panel {
  box-shadow: var(--shadow-lg), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.map-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fafbfd 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 8px rgba(15, 26, 46, 0.04);
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  min-height: var(--map-mobile-min-h);
}

.map-stage-content {
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: filter 0.35s ease;
}

.map-stage.is-loading .map-stage-content {
  filter: blur(8px);
  pointer-events: none;
  cursor: default;
}

.map-stage.is-loading {
  cursor: default;
  touch-action: auto;
}

.map-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 245, 248, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.map-loading-overlay[hidden] {
  display: none;
}

.map-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  text-align: center;
}

.map-loading-spinner {
  width: 2.75rem;
  height: 2.75rem;
  border: 3px solid rgba(21, 34, 56, 0.12);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: map-spin 0.85s linear infinite;
}

.map-loading-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

@keyframes map-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-stage-content,
  .map-loading-spinner,
  .listings-view,
  .map-pin-detail {
    animation: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.map-stage.is-dragging {
  cursor: grabbing;
}

.map-zoom-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.map-zoom-controls {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 12;
  display: flex;
  gap: 0.375rem;
}

.map-zoom-btn {
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.map-zoom-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.map-zoom-btn:hover,
.map-zoom-btn:focus-visible {
  background: var(--bg);
  border-color: var(--navy-mid);
}

.map-zoom-btn-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 0.625rem;
}

.us-map-container {
  width: 100%;
  max-width: 100%;
  min-height: var(--map-mobile-min-h);
}

.us-map {
  width: 100%;
  height: 100%;
  min-height: var(--map-mobile-min-h);
  display: block;
}

.map-fallback {
  text-align: center;
  padding: 2rem;
  color: var(--slate);
  font-size: 0.9375rem;
}

.map-error {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--danger);
}

.us-map .state {
  fill: #d8dbe3;
  stroke: var(--white);
  stroke-width: 1;
  cursor: pointer;
  transition: fill var(--transition), transform var(--transition);
}

.us-map .state:hover,
.us-map .state:focus-visible {
  fill: var(--navy-mid);
  outline: none;
}

.us-map .state.has-listings {
  fill: #a8b4c8;
}

.us-map .state.has-listings:hover,
.us-map .state.has-listings:focus-visible {
  fill: var(--navy);
}

.us-map .state.is-filtered-out {
  fill: #e8eaef;
  opacity: 0.55;
}

.us-map .state.is-filtered-out:hover,
.us-map .state.is-filtered-out:focus-visible {
  fill: #d8dbe3;
}

.us-map .state.has-filtered-listings {
  fill: #8fa3bc;
}

.map-tooltip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  transform: translate(-50%, -100%);
  padding: 0.4375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.map-hint {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--slate);
  padding: 0 0.25rem;
}

.map-hint-desktop {
  display: none;
}

.map-hint-mobile {
  display: inline;
}

@media (min-width: 769px) {
  .map-hint-desktop {
    display: inline;
  }

  .map-hint-mobile {
    display: none;
  }
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0.875rem auto 0;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(11, 122, 76, 0.15);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.map-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px var(--white);
}

.map-pins {
  pointer-events: none;
}

.us-map .map-pins {
  pointer-events: auto;
}

.map-pin {
  pointer-events: all;
  cursor: pointer;
}

.map-pin-hit {
  pointer-events: all;
}

.map-pin-dot {
  fill: var(--success);
  stroke: var(--white);
  stroke-width: 2;
  transition: transform 0.15s ease, fill 0.15s ease;
}

.map-pin-ring {
  fill: none;
  stroke: rgba(13, 122, 78, 0.35);
  stroke-width: 2;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.map-pin:hover .map-pin-dot,
.map-pin:focus-visible .map-pin-dot {
  fill: #0a6640;
}

.map-pin:hover .map-pin-ring,
.map-pin:focus-visible .map-pin-ring {
  opacity: 1;
}

.map-pin.is-approximate .map-pin-dot {
  fill: #3d9e6a;
}

.map-pin.is-selected .map-pin-dot {
  fill: var(--navy);
  stroke-width: 3;
}

.map-pin.is-selected .map-pin-ring {
  opacity: 1;
  stroke: var(--navy);
}

.map-pin-cluster .map-pin-cluster-bg {
  transition: fill 0.15s ease;
}

.map-pin-cluster:hover .map-pin-cluster-bg,
.map-pin-cluster:focus-visible .map-pin-cluster-bg {
  fill: #0a6640;
}

.map-pin-cluster-label {
  fill: var(--white);
  font-size: 11px;
  font-weight: 700;
  font-family: system-ui, -apple-system, sans-serif;
  pointer-events: none;
}

.map-pin-detail {
  position: relative;
  margin-top: 1rem;
  padding: 1.25rem 1rem 1rem;
  animation: fadeUp 0.25s ease-out;
  border: 1px solid rgba(11, 122, 76, 0.12);
  box-shadow: var(--shadow-lg);
}

.map-pin-detail-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--slate);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.map-pin-detail-close:hover,
.map-pin-detail-close:focus-visible {
  color: var(--navy);
  background: var(--bg);
}

.map-pin-detail .listing-card {
  box-shadow: none;
  border: none;
  padding: 0.25rem 2.75rem 0 0;
}

.map-pin-detail-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.map-pin-detail-link {
  display: inline-block;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-mid);
  background: none;
  border: none;
  padding: 0.5rem 0;
  min-height: 2.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.map-pin-detail-link:hover,
.map-pin-detail-link:focus-visible {
  color: var(--navy);
}

.listings-view {
  animation: fadeUp 0.4s ease-out;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.875rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.back-link:hover {
  color: var(--navy);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

/* Browse — filters & listings */
.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field-grow {
  min-width: 0;
}

.results-count {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

.listings {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .listings {
    grid-template-columns: repeat(2, 1fr);
  }
}

.listing-card {
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.listing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--success) 0%, var(--navy-mid) 100%);
}

.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.listing-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.listing-name {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.badge {
  padding: 0.3125rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-mid);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.listing-details {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.listing-details dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 0.1875rem;
}

.listing-details dd {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
  line-height: 1.5;
}

.listing-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  padding-top: 0.25rem;
}

.listing-contact .btn-submit {
  background: linear-gradient(180deg, var(--success-light) 0%, var(--success) 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.listing-contact .btn-submit:hover {
  background: linear-gradient(180deg, #14b374 0%, var(--success-light) 100%);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface-gradient);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.empty-state-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.empty-state-text {
  font-size: 0.9375rem;
  color: var(--slate);
}

.empty-state-text a {
  color: var(--navy-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, var(--navy) 0%, #0a1220 100%);
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition), opacity var(--transition);
  text-underline-offset: 3px;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-seo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  width: 100%;
  padding-top: 0.25rem;
}

.footer-seo a {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition);
}

.footer-seo a:hover {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-admin-link {
  display: inline-block;
  margin-left: 0.875rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  text-decoration: none;
  vertical-align: middle;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.footer-logout-btn {
  display: inline-block;
  margin-top: 0.875rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.footer-logout-btn:hover,
.footer-logout-btn:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Admin */
#admin-login .auth-form {
  max-width: 28rem;
}

.admin-start-btn {
  width: 100%;
  max-width: 22rem;
}

.admin-home-actions {
  display: grid;
  gap: 0.75rem;
  max-width: 22rem;
}

.admin-listings-panel {
  padding: 0;
  overflow: hidden;
}

.admin-handoffs-wrap {
  display: grid;
  gap: 1rem;
}

.admin-handoffs-list {
  display: grid;
  gap: 1rem;
}

.admin-form-back {
  margin-bottom: 1rem;
  max-width: 22rem;
}

.admin-listings-back {
  margin-top: 1rem;
  max-width: 22rem;
}

.admin-pilots-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.admin-pilots-search {
  flex: 1;
  min-width: 12rem;
  max-width: 22rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.admin-pilots-wrap {
  display: grid;
  gap: 1rem;
}

.admin-pilots-list {
  display: grid;
  gap: 1rem;
}

.admin-pilot-card {
  padding: 1.125rem 1.25rem;
}

.admin-pilot-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.admin-pilot-name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}

.admin-pilot-email {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--slate);
  word-break: break-all;
}

.admin-pilot-meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate-light);
}

.admin-pilot-status {
  display: inline-block;
  padding: 0.3125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
}

.admin-pilot-status.is-complete {
  color: #157a3a;
  background: rgba(21, 122, 58, 0.1);
}

.admin-pilot-status.is-incomplete {
  color: #9a5b00;
  background: rgba(154, 91, 0, 0.12);
}

.admin-pilot-listing {
  display: grid;
  gap: 0.375rem;
  margin: 0 0 0.75rem;
}

.admin-pilot-listing > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.admin-pilot-listing dt {
  margin: 0;
  font-weight: 600;
  color: var(--slate-light);
}

.admin-pilot-listing dd {
  margin: 0;
  color: var(--navy);
}

.admin-pilot-missing {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--slate);
}

.admin-pilot-password {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--navy);
}

.admin-pilot-password-note {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--slate-light);
}

.admin-pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-handoff-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.admin-handoff-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.admin-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-handoff-remove {
  color: var(--slate);
}

.admin-listings-status {
  padding: 1.25rem 1.5rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate);
}

#admin-listings-error {
  margin: 0 1.5rem 1.25rem;
}

.admin-table-scroll {
  overflow-x: auto;
  padding: 1rem 1.5rem 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--bg-elevated);
}

.admin-credentials {
  display: grid;
  gap: 1rem;
}

.admin-success-banner {
  margin-bottom: 1rem;
  text-align: center;
}

.admin-success-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.admin-success-text {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--slate);
}

.admin-success-back {
  margin-top: 1rem;
  max-width: 22rem;
}

#success-warning {
  margin: 0.75rem 0 0;
  text-align: left;
}

.admin-handoff-message {
  width: 100%;
  min-height: 10rem;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--navy);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
}

.admin-success-actions {
  margin-top: 0;
}

.admin-password-row,
.admin-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.admin-password-row input,
.admin-copy-row input {
  flex: 1;
  min-width: 0;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.admin-login-hint {
  font-size: 0.9375rem;
  color: var(--slate);
  margin: 0.5rem 0 1rem;
}

#admin-form-section .section-title {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

#admin-form-section .section-title:first-of-type {
  margin-top: 0;
}

@media (max-width: 640px) {
  .admin-form-actions {
    flex-direction: column;
  }

  .admin-form-actions .btn-submit,
  .admin-form-actions .btn-secondary {
    width: 100%;
  }

  .admin-password-row,
  .admin-copy-row {
    flex-direction: column;
  }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--navy-mid);
  outline-offset: 2px;
}

.btn-submit:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible {
  outline-offset: 3px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page .btn-submit,
  .page .btn-secondary,
  .page .btn-danger {
    width: 100%;
    min-height: 3rem;
  }

  .back-link {
    font-size: 1rem;
    padding: 0.5rem 0;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }

  .filters .field input,
  .filters .field select {
    font-size: 1rem;
    min-height: 2.75rem;
  }

  .main--home {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .main--home .home-browse {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    width: calc(100% + 0.5rem);
  }

  .main--home .map-panel {
    padding: 0.5rem;
    border-radius: var(--radius-lg);
  }

  .main--home .map-stage {
    border-radius: 12px;
  }

  .main--home .driver-cta {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1rem;
  }

  .main--home .driver-cta-perks {
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
  }

  .main--home .site-footer {
    margin-top: 0;
  }

  .hero--map-focus .hero-title {
    font-size: 1.625rem;
  }

  .hero--map-focus .hero-lead {
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
    height: 56px;
  }

  .logo-img {
    height: 40px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 540px) {
  .main {
    padding: 1.5rem 1.25rem 3rem;
  }

  .main--home {
    padding-top: 0.5rem;
    padding-bottom: 1.25rem;
  }

  .auth-section,
  .panel {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .listings {
    grid-template-columns: 1fr;
  }

  .map-zoom-controls {
    top: 0.5rem;
    right: 0.5rem;
  }

}

@media (min-width: 769px) {
  .driver-cta-actions {
    flex-direction: row;
    justify-content: center;
    width: auto;
    max-width: none;
  }

  .driver-cta-actions .btn-submit,
  .driver-cta-actions .btn-secondary {
    width: auto;
    min-width: 10rem;
  }

  .map-stage,
  .us-map-container,
  .us-map {
    min-height: 420px;
  }
}
