/* ============================================================
   style.css — Heli Scheduler — Clean Light Theme
   ============================================================ */

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

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

:root {
  --bg:          #f0f4f8;
  --bg2:         #ffffff;
  --bg3:         #e8edf2;
  --border:      #d0d8e4;
  --border2:     #b0bccb;
  --text:        #1a2332;
  --text2:       #4a5568;
  --text3:       #8a99aa;
  --accent:      #f97316;   /* orange — for key numbers/badges */
  --accent2:     #ea6c0a;
  --blue:        #1d6fb8;   /* main action blue */
  --blue2:       #155f9e;
  --blue-light:  #dbeafe;
  --blue-mid:    #93c5fd;
  --green:       #16a34a;
  --green-light: #dcfce7;
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --orange-light:#ffedd5;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(30,60,100,.10);
  --shadow-lg:   0 8px 32px rgba(30,60,100,.16);
  --font-head:   'Barlow Condensed', sans-serif;
  --font-body:   'Barlow', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
}

html { font-size: 15px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* ======================================================
   HEADER
   ====================================================== */
.site-header {
  background: var(--blue);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(29,111,184,.25);
}
.site-header .logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-header .logo svg { width: 26px; height: 26px; color: var(--accent); }
.site-header nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: var(--radius);
  transition: all .15s;
}
.site-header nav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.site-header nav a.danger { color: #fca5a5; }
.site-header nav a.danger:hover { background: rgba(220,38,38,.2); color: #fca5a5; }

/* ======================================================
   LAYOUT
   ====================================================== */
.container { max-width: 1380px; margin: 0 auto; padding: 24px 20px; }

.page-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}
.page-title span { color: var(--blue); }
.page-subtitle { color: var(--text2); font-size: .88rem; margin-bottom: 22px; }

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-light);
}

/* ======================================================
   MONTHLY CALENDAR
   ====================================================== */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-nav-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}
.cal-nav-btn {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 700;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  line-height: 1;
  flex-shrink: 0;
}
.cal-nav-btn:hover:not(:disabled) { background: var(--blue); color: #fff; border-color: var(--blue); }
.cal-nav-btn:disabled { opacity: .3; cursor: not-allowed; }

/* DOW header — 7 equal columns */
.cal-dow-row {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 3px;
  margin-bottom: 3px;
  width: 100%;
}
.cal-dow {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  text-align: center;
  padding: 6px 2px;
  background: var(--bg3);
  border-radius: 4px;
}
.cal-dow:first-child { color: var(--red); }
.cal-dow:last-child  { color: var(--accent); }

/* Calendar day grid — 7 columns */
.cal-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 3px;
  width: 100%;
}

/* Day cell */
.cal-day {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 76px;
  padding: 5px 7px 6px;
  cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .12s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cal-day:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 2px rgba(29,111,184,.12);
}
.cal-day.active {
  border-color: var(--blue) !important;
  background: var(--blue-light) !important;
  box-shadow: 0 0 0 2px var(--blue) !important;
}
.cal-day.out-of-range {
  background: var(--bg3);
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}
.cal-day.empty {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: default;
  pointer-events: none;
}
.cal-day.is-today { border-color: var(--blue); border-width: 2px; }
.cal-day.is-today .cal-day-num { color: var(--blue); font-weight: 800; }
.cal-day.is-sunday .cal-day-num  { color: var(--red); }
.cal-day.is-saturday .cal-day-num { color: var(--accent); }

/* Day number */
.cal-day-num {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  flex-shrink: 0;
}

/* Booking count badge — top right */
.cal-count-badge {
  position: absolute;
  top: 4px;
  right: 5px;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.cal-count-badge.has-bookings {
  background: var(--orange-light);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cal-count-badge.full {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid var(--red);
}

/* Sparkline bars */
.cal-spark {
  display: flex !important;
  gap: 2px;
  align-items: flex-end;
  height: 22px;
  margin-top: auto;
  padding-top: 4px;
}
.cal-spark-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 3px;
  transition: height .2s;
}
.cal-spark-bar.used  { background: var(--blue); }
.cal-spark-bar.avail { background: var(--border); }

/* ======================================================
   SLOT GRID
   ====================================================== */
.heli-col-header {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}
.slot-cell {
  background: var(--bg2);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 10px 10px;
  font-size: .85rem;
  cursor: pointer;
  transition: all .13s;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.slot-cell.available { color: var(--text3); }
.slot-cell.available:hover {
  border-color: var(--blue);
  border-style: solid;
  color: var(--blue);
  background: var(--blue-light);
}
.slot-cell.booked {
  background: var(--green-light);
  border: 1.5px solid var(--green);
  border-style: solid;
  color: var(--green);
  cursor: default;
  font-weight: 600;
}
.slot-cell.booked.pending {
  background: var(--orange-light);
  border-color: var(--accent);
  color: var(--accent2);
}
.slot-cell.booked.completed {
  background: var(--bg3);
  border-color: var(--border2);
  color: var(--text3);
  text-decoration: line-through;
  border-style: solid;
}
.slot-time-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  border-right: 2px solid var(--border);
  white-space: nowrap;
}

/* ======================================================
   MODAL
   ====================================================== */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,60,100,.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.booking-modal-overlay.open { opacity: 1; pointer-events: all; }
.booking-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform .2s;
  box-shadow: var(--shadow-lg);
}
.booking-modal-overlay.open .booking-modal { transform: translateY(0); }
.modal-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.modal-subtitle { color: var(--text2); font-size: .85rem; margin-bottom: 18px; }

/* ======================================================
   FORMS
   ====================================================== */
.form-group { margin-bottom: 14px; }
label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 5px;
}
input[type=text], input[type=date], input[type=number], input[type=password],
select, textarea {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 9px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,111,184,.12);
}
select option { background: var(--bg2); color: var(--text); }
textarea { resize: vertical; min-height: 70px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue2); }
.btn-secondary {
  background: var(--bg3);
  color: var(--text2);
  border: 1.5px solid var(--border2);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.btn-danger  { background: var(--red-light); color: var(--red); border: 1.5px solid var(--red); }
.btn-danger:hover  { background: var(--red); color: #fff; }
.btn-success { background: var(--green-light); color: var(--green); border: 1.5px solid var(--green); }
.btn-success:hover { background: var(--green); color: #fff; }
.btn-sm { font-size: .72rem; padding: 4px 11px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ======================================================
   BOOKINGS TABLE
   ====================================================== */
.bookings-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.bookings-table th {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text2);
  text-align: left;
  padding: 9px 11px;
  border-bottom: 2px solid var(--border);
  background: var(--bg3);
}
.bookings-table td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.bookings-table tr:last-child td { border-bottom: none; }
.bookings-table tr:hover td { background: var(--blue-light); }

/* ======================================================
   BADGES
   ====================================================== */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid transparent;
}
.badge-pending   { background: var(--orange-light); color: var(--accent2); border-color: var(--accent); }
.badge-approved  { background: var(--green-light);  color: var(--green);   border-color: var(--green); }
.badge-completed { background: var(--bg3);          color: var(--text3);   border-color: var(--border2); }

/* ======================================================
   TOAST
   ====================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: .88rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn .2s ease;
  max-width: 360px;
  color: var(--text);
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }
.toast.info    { border-left: 4px solid var(--blue); }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ======================================================
   SPINNER
   ====================================================== */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  color: var(--text2);
  font-size: .9rem;
}

/* ======================================================
   ADMIN LAYOUT
   ====================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: start;
}
.admin-sidebar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: sticky;
  top: 76px;
  box-shadow: var(--shadow);
}
.admin-nav-item {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text2);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .13s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  letter-spacing: .3px;
  margin-bottom: 2px;
}
.admin-nav-item:hover { background: var(--blue-light); color: var(--blue); }
.admin-nav-item.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  border-left: 3px solid var(--blue);
}

/* ======================================================
   LIST EDITOR
   ====================================================== */
.list-editor-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 5px;
}
.list-editor-item input[type=text] { flex: 1 1 auto; min-width: 120px; padding: 5px 9px; font-size: .85rem; }
.list-editor-item select.ft-rate-type {
  width: auto;              /* override global select { width: 100% } */
  flex: 0 1 200px;
  min-width: 130px;
  max-width: 200px;
  padding: 5px 9px;
  font-size: .8rem;
}
.list-editor-item .drag-handle { color: var(--text3); cursor: grab; font-size: 1.1rem; }
.list-editor-item .toggle-active { accent-color: var(--blue); }

/* ======================================================
   STATS ROW
   ====================================================== */
.stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-card {
  flex: 1;
  min-width: 110px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: .68rem;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ======================================================
   LOGIN
   ====================================================== */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.login-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 38px;
  width: 100%;
  max-width: 370px;
  box-shadow: var(--shadow-lg);
}
.login-logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  margin-bottom: 4px;
}
.login-sub {
  text-align: center;
  color: var(--text3);
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.alert-error {
  background: var(--red-light);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: var(--radius);
  padding: 9px 13px;
  font-size: .84rem;
  margin-bottom: 14px;
}

/* ======================================================
   SCROLLBARS
   ====================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-mid); }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 960px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 12px 10px; }
  .booking-modal { padding: 18px 14px; }
  .stats-row { gap: 8px; }
  .cal-day { min-height: 56px; padding: 4px 4px 5px; }
  .cal-day-num { font-size: .9rem; }
  .cal-spark { height: 14px; }
  .cal-dow { font-size: .62rem; padding: 5px 1px; }
  .bookings-table th, .bookings-table td { padding: 7px 7px; font-size: .75rem; }
}

/* ======================================================
   LOGO IMAGE (HC white PNG)
   ====================================================== */
.site-header .logo .logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.login-logo-chip {
  background: var(--blue);
  border-radius: 12px;
  width: 84px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 14px rgba(29,111,184,.35);
}
.login-logo-chip img { height: 54px; width: auto; }

/* ======================================================
   DATE RANGES / RATES / IMPORT (admin additions)
   ====================================================== */
.range-table td, .range-table th { vertical-align: middle; }
.badge-active {
  background: var(--green-light);
  color: var(--green);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.badge-inactive {
  background: var(--bg3);
  color: var(--text3);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.rates-table input[type=number] {
  width: 120px;
  padding: 6px 8px;
}
.list-editor-item input.dest-distance {
  max-width: 110px;
  flex: 0 0 auto;
}
.dist-suffix { font-size: .72rem; color: var(--text3); margin-left: -4px; }

/* ======================================================
   DRAG & DROP REORDERING
   ====================================================== */
.list-editor-item .drag-handle {
  cursor: grab;
  user-select: none;
  color: var(--text3);
  padding: 4px 6px;
  border-radius: 4px;
  transition: background .12s, color .12s;
}
.list-editor-item .drag-handle:hover {
  background: var(--bg3);
  color: var(--blue);
}
.list-editor-item .drag-handle:active { cursor: grabbing; }
.list-editor-item.dragging {
  opacity: .45;
  background: var(--blue-light);
  outline: 2px dashed var(--blue-mid);
  outline-offset: -2px;
}

/* ======================================================
   SEGMENTED SELECTORS + COST ROW (booking modal)
   ====================================================== */
.seg-row {
  display: flex;
  gap: 8px;
}
.seg-row .seg-btn,
.seg-row .seg-select {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text);
  font-family: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color .12s, background .12s, color .12s;
}
.seg-row .seg-btn:hover { border-color: var(--blue-mid); }
.seg-row .seg-btn.selected,
.seg-row .seg-select.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}
.seg-row .seg-select { appearance: auto; }

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 4px;
}
.cost-row .cost-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text2);
}
.cost-row .cost-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono, monospace);
  min-height: 1.2em;
}

/* ======================================================
   MIN DISTANCE BAR + COST BREAKDOWN (v2.3)
   ====================================================== */
.min-dist-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.min-dist-bar input[type=number] { width: 100px; padding: 7px 9px; }
.cost-row .cost-breakdown {
  font-size: .78rem;
  color: var(--text2);
  margin-top: 3px;
  font-family: var(--font-mono, monospace);
}

/* ======================================================
   MULTI-LOCATION (v2.4)
   ====================================================== */
.loc-badge {
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 26px;
  padding: 2px 18px;
  font-size: 1.25rem;       /* almost the same size as the Heli Scheduler title (1.5rem) */
  font-weight: 700;
  letter-spacing: 2px;
  margin-left: 12px;
  vertical-align: middle;
  line-height: 1.5;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .loc-badge { font-size: .95rem; padding: 2px 12px; letter-spacing: 1px; }
}
.loc-chooser { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.loc-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.loc-choice:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29,111,184,.15);
}
.loc-choice-name { font-size: 1.15rem; font-weight: 700; }
.loc-choice-go   { color: var(--blue); font-weight: 600; font-size: .85rem; }

/* Admin location switcher */
.loc-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 16px;
}
.loc-switcher button {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  padding: 9px 16px;
  border-radius: calc(var(--radius) - 3px);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.loc-switcher button:hover { background: var(--bg3); }
.loc-switcher button.active { background: var(--blue); color: #fff; }
.loc-scope-note {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.loc-scope-note.scoped { background: var(--blue-light); color: var(--blue); }
.loc-scope-note.shared { background: var(--bg3); color: var(--text3); }
.list-editor-item input.loc-slug   { max-width: 130px; flex: 0 0 auto; }
.list-editor-item input.loc-prefix { max-width: 70px;  flex: 0 0 auto; text-transform: uppercase; }

/* ======================================================
   LOCATION THEME (v2.5)
   ====================================================== */
.loc-switcher .loc-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: baseline;
  border: 1.5px solid rgba(255,255,255,.6);
}
.list-editor-item input.loc-color {
  flex: 0 0 44px;
  width: 44px;
  height: 32px;
  padding: 2px;
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  background: var(--bg2);
  cursor: pointer;
}
