/* ════════════════════════════════════════════════════
   PUB CRAWL — STYLESHEET
   Warm, premium pub aesthetic. Amber brand colour.
   Uses CSS custom properties (variables) throughout
   so you can easily retheme by changing the values
   at the top of this file.
════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────── */
:root {
  /* Brand colours */
  --amber:       #C8873A;
  --amber-light: #FDF3E7;
  --amber-dark:  #9A6020;

  /* Backgrounds */
  --bg:          #FFFFFF;
  --bg-2:        #F8F5F0;
  --bg-3:        #F0EBE3;

  /* Text */
  --text:        #1A1108;
  --text-2:      #6B5E4E;
  --text-3:      #9C8E80;

  /* Borders */
  --border:      #E8DDD0;
  --border-2:    #D4C4B0;

  /* Status */
  --green:       #2D7A3A;
  --green-bg:    #EAF3DE;
  --red:         #C0392B;
  --red-bg:      #FCEBEB;
  --purple:      #534AB7;

  /* Stop colours for route markers */
  --stop-1: #C8873A;
  --stop-2: #534AB7;
  --stop-3: #0F6E56;
  --stop-4: #C0392B;
  --stop-5: #2D7A3A;
  --stop-6: #185FA5;
  --stop-7: #854F0B;
  --stop-8: #993556;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(26,17,8,0.08);
  --shadow-md:   0 4px 16px rgba(26,17,8,0.10);
  --shadow-lg:   0 8px 32px rgba(26,17,8,0.14);
}

/* ── RESET & BASE ───────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-2);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input {
  font-family: var(--font-body);
}

a {
  color: var(--amber);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── HEADER ─────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--amber);
  color: white;
  border-radius: 7px;
  padding: 5px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border-2);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover {
  background: var(--bg-3);
}

.nav-btn--primary {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

.nav-btn--primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

.saved-count {
  background: white;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── SCREENS ─────────────────────────────────────── */
/* All screens are hidden by default.
   The active screen has display: block.
   JavaScript switches between them via showScreen() */
.screen {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.screen--active {
  display: block;
}

/* ── PLAN SCREEN ─────────────────────────────────── */
.hero {
  padding: 24px 0 20px;
  text-align: center;
}

@media (max-width: 480px) {
  .hero {
    padding: 16px 0 14px;
  }
}

.hero-logo {
  width: 44px;
  height: 44px;
  background: var(--amber);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.hero-logo svg {
  width: 24px;
  height: 24px;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1.1;
  color: var(--amber);
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-2);
  font-style: italic;
  font-family: var(--font-display);
  max-width: 380px;
  margin: 0 auto;
}

.plan-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 480px) {
  .plan-form {
    gap: 8px;
  }
}

/* ── FORM CARDS ─────────────────────────────────── */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.form-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-card__sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ── INPUTS ─────────────────────────────────────── */
.input-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.input-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 22px;
}

.input-dot--green  { background: #3B8A3E; }
.input-dot--amber  { background: var(--amber); }

.input-wrap {
  flex: 1;
}

.input-label {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 4px;
}

/* The main text input style */
.text-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.text-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200, 135, 58, 0.15);
}

.text-input::placeholder {
  color: var(--text-3);
}

.route-arrow {
  display: flex;
  justify-content: center;
  padding: 2px 0;
  color: var(--border-2);
}

/* ── RANGE SLIDER ───────────────────────────────── */
/* Custom styling for the range slider */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

/* The thumb (the draggable handle) */
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.1s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider--amber::-webkit-slider-thumb {
  background: var(--amber);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.range-slider--amber::-moz-range-thumb {
  background: var(--amber);
}

.slider-hints {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
}

.slider-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.rating-display {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.rating-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.rating-star {
  font-size: 16px;
  color: var(--amber);
}

/* ── VIBE PILLS ─────────────────────────────────── */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* Loop toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #CECDCA;
  border-radius: 13px;
  transition: background 0.2s;
  cursor: pointer;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--amber); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

.vibe-pill {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  background: var(--bg);
  transition: all 0.15s;
  cursor: pointer;
}

.vibe-pill:hover {
  background: var(--bg-3);
}

/* Active/selected pill */
.vibe-pill--active {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

.vibe-pill--active:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  background: var(--amber);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary--full {
  width: 100%;
}

.btn-ghost {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border-2);
  transition: all 0.15s;
}

.btn-ghost:hover {
  background: var(--bg-3);
}

/* ── ERROR MESSAGE ───────────────────────────────── */
.error-msg {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
}

/* ── RESULTS HEADER ─────────────────────────────── */
.results-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 58px;
  z-index: 50;
  padding: 0 20px;
}

/* Override padding for full-width sticky header */
#screen-results {
  padding: 0;
  max-width: 100%;
}

.results-header__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.results-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
}

.results-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

.results-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── STATS ROW ───────────────────────────────────── */
.stats-row {
  max-width: 640px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat-card {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
}

.stat-card__label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 3px;
}

.stat-card__val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.stat-card__val--amber {
  color: var(--amber);
}

/* ── VIEW TOGGLE ─────────────────────────────────── */
.view-toggle {
  max-width: 640px;
  margin: 10px auto 0;
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
}

.view-toggle__btn {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  background: var(--bg);
  transition: all 0.15s;
}

.view-toggle__btn--active {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

/* ── MAP ─────────────────────────────────────────── */
.map-container {
  position: relative;
  height: calc(100vh - 220px);
  min-height: 400px;
}

#map {
  width: 100%;
  height: 100%;
}

/* ── PUB LIST ────────────────────────────────────── */
.pub-list-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual pub card */
.pub-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 14px 14px 46px;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.15s;
  margin-bottom: 8px;
}

.pub-card:hover {
  box-shadow: var(--shadow-md);
}

/* The numbered circle on the left of each pub card */
.pub-card__stop {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.pub-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3px;
}

.pub-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.pub-card__meta {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.pub-card__tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.tag {
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-open {
  background: var(--green-bg);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-closed {
  background: var(--red-bg);
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.pub-card__rating {
  margin-left: auto;
  font-size: 12px;
  color: var(--amber);
  font-weight: 600;
  flex-shrink: 0;
}

/* Connector line between pub cards */
.connector {
  width: 2px;
  height: 8px;
  background: var(--border-2);
  margin: 0 0 8px 22px;
}

.connector--dashed {
  background: repeating-linear-gradient(
    to bottom,
    var(--amber) 0px,
    var(--amber) 3px,
    transparent 3px,
    transparent 6px
  );
}

/* Start/end labels */
.route-point {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0 5px 14px;
}

.route-point__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.route-point__label {
  font-size: 12px;
  color: var(--text-2);
}

.list-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ── PUB PEEK (tap on map pin) ───────────────────── */
.pub-peek {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--border);
  padding: 16px 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  max-width: 640px;
  margin: 0 auto;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.pub-peek__close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: var(--text-3);
  line-height: 1;
  background: var(--bg-2);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── SAVED SCREEN ────────────────────────────────── */
.saved-header {
  padding: 28px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saved-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saved-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.saved-item__info {
  flex: 1;
  min-width: 0;
}

.saved-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-item__meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 1px;
}

.saved-item__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── EMPTY STATE ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 24px;
}

/* ── SHARED ROUTE SCREEN ─────────────────────────── */
.shared-hero {
  background: var(--amber);
  margin: 0 -20px;
  padding: 40px 24px 32px;
  text-align: center;
  color: white;
}

.shared-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.shared-hero__title {
  font-family: var(--font-display);
  font-size: 28px;
  color: white;
  margin-bottom: 6px;
}

.shared-hero__meta {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.pub-list--shared {
  margin: 16px 0;
}

.shared-download {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-top: 8px;
}

.shared-download__text {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 16px;
}

.store-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: white;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.store-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.store-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-btn__sub {
  font-size: 10px;
  opacity: 0.7;
}

.store-btn__main {
  font-size: 15px;
  font-weight: 600;
}

.shared-open-app {
  font-size: 13px;
  color: var(--text-2);
}

/* ── MODAL ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 17, 8, 0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

/* On larger screens, centre the modal */
@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal {
  background: var(--bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 600px;
  padding: 20px 20px 40px;
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .modal {
    border-radius: var(--radius-xl);
  }
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
}

.modal__close {
  font-size: 24px;
  color: var(--text-3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal__route-preview {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.modal__route-preview .preview-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 3px;
}

.modal__route-preview .preview-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 10px;
}

.preview-pub-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

.preview-pub-row:last-child {
  border-bottom: none;
}

.preview-pub-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

/* ── SHARE LINK ──────────────────────────────────── */
.share-link-group {
  margin-bottom: 20px;
}

.share-link-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.share-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
}

.share-link-url {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}

.btn-copy {
  background: var(--amber);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s;
}

.btn-copy:hover {
  background: var(--amber-dark);
}

.btn-copy--copied {
  background: var(--green);
}

.share-link-note {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── SHARE VIA ───────────────────────────────────── */
.share-via {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.share-via__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.share-via__buttons {
  display: flex;
  gap: 12px;
}

.share-via__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

.share-via__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-via__icon--whatsapp { background: #25D366; }
.share-via__icon--sms      { background: #34C759; }
.share-via__icon--email    { background: #185FA5; }
.share-via__icon--more     { background: var(--bg-3); }
.share-via__icon--more svg { color: var(--text-2); }

/* ── LOADING OVERLAY ─────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 245, 240, 0.92);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.loading-content {
  text-align: center;
}

/* CSS-only spinner */
.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}

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

.loading-text {
  font-size: 15px;
  color: var(--text-2);
}

/* ── TOAST ───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.25s;
  z-index: 400;
  white-space: nowrap;
  pointer-events: none;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── GOOGLE MAPS CUSTOMISATION ───────────────────── */
/* Custom info window styling */
.gm-style .gm-style-iw-c {
  border-radius: var(--radius-lg) !important;
  padding: 12px !important;
  box-shadow: var(--shadow-md) !important;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-actions {
    gap: 4px;
  }

  .btn-ghost {
    padding: 6px 10px;
    font-size: 12px;
  }

  .share-via__buttons {
    gap: 8px;
  }

  .share-via__icon {
    width: 42px;
    height: 42px;
  }
}

/* ── UTILITIES ───────────────────────────────────── */
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-2); }
.fw-bold    { font-weight: 700; }
.mt-8       { margin-top: 8px; }
.mt-16      { margin-top: 16px; }
