/* =========================================================================
   Ellite EV LA — editorial LA design system
   Fraunces (display) + Inter (UI). Warm ivory paper, near-black ink,
   deep-emerald accent. No emoji anywhere.
   ========================================================================= */

:root {
  --paper:      #F4F1EA;
  --paper-2:    #EEEADF;
  --card:       #FFFFFF;
  --ink:        #17150F;
  --ink-2:      #3A362C;
  --muted:      #6E6A5C;
  --line:       #E2DCCC;
  --line-2:     #D3CCB8;
  --accent:     #0F5C42;   /* deep emerald — electric, luxe */
  --accent-2:   #126E4F;
  --accent-soft:#E8F0EA;
  --danger:     #B4462F;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 34px 70px -30px rgba(23,21,15,.30);
  --shadow-sm:  0 12px 30px -16px rgba(23,21,15,.28);

  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}

::selection { background: var(--accent); color: var(--paper); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .wrap { padding: 0 20px; } }

/* ---------- Brand lockup ---------- */
.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark { width: 42px; height: 42px; flex: none; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-weight: 600; font-size: 21px;
  letter-spacing: .01em; color: var(--ink);
}
.brand-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .34em;
  text-transform: uppercase; color: var(--muted); margin-top: 5px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 24px;
}
.topbar .nav { display: flex; align-items: center; gap: 26px; }
.topbar .nav a {
  color: var(--ink-2); font-weight: 500; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.topbar .nav a:hover { color: var(--ink); text-decoration: none; }
.topbar .nav .call { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 14px; }
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .topbar { padding: 18px 0 16px; }
  .topbar .nav { gap: 16px; }
  .topbar .nav a { font-size: 11.5px; letter-spacing: .02em; }
  .brand .mark { width: 38px; height: 38px; }
  .brand-name { font-size: 19px; }
  .brand-tag { letter-spacing: .24em; }
}

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 200px; position: relative; overflow: hidden; }
@media (max-width: 940px) { .hero { padding-bottom: 30px; } }
.hero .layout { position: relative; z-index: 1; }

.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent 100%);
  mask-image: linear-gradient(to top, #000 55%, transparent 100%);
}
.skyline .far  { fill: var(--accent); opacity: .11; }
.skyline .near { fill: var(--accent); opacity: .19; }
@media (max-width: 940px) { .skyline { opacity: .8; } }

/* Real photo hero (falls back to the drawn skyline until an image is present) */
.hero-photo {
  position: absolute; left: 0; right: 0; bottom: 0; height: min(64%, 460px); z-index: 0;
  background: center 20% / cover no-repeat;
  background-image: url("/assets/skyline.jpg");
  filter: saturate(.98) contrast(1.02);
  -webkit-mask-image: linear-gradient(to top, #000 62%, transparent 100%);
  mask-image: linear-gradient(to top, #000 62%, transparent 100%);
  pointer-events: none;
  display: none;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(244,241,234,0) 46%, var(--paper) 94%);
}
body.has-photo .hero-photo { display: block; }
body.has-photo .skyline { display: none; }
@media (max-width: 940px) { .hero-photo { height: 180px; opacity: .6; } }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 22px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 8vw, 92px); line-height: 0.98; letter-spacing: -0.015em;
  margin: 0 0 24px; color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.intro {
  color: var(--ink-2); font-size: 18px; line-height: 1.62; max-width: 470px; margin: 0;
}

/* trust row */
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; max-width: 460px; }
.trust li { display: flex; gap: 15px; align-items: flex-start; }
.trust .ic {
  width: 26px; height: 26px; flex: none; color: var(--accent); margin-top: 1px;
}
.trust .ic svg { width: 100%; height: 100%; display: block; }
.trust h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.trust p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 468px;
  grid-template-areas: "copy card" "trust card";
  column-gap: 60px;
  row-gap: 40px;
  align-items: start;
  padding-bottom: 90px;
}
.hero-copy { grid-area: copy; }
.trust { grid-area: trust; }
.card { grid-area: card; }

/* On phones: headline → booking form → supporting details */
@media (max-width: 940px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "card" "trust";
    row-gap: 30px;
  }
  .hero { padding: 36px 0 190px; }
  .hero h1 { font-size: clamp(40px, 12vw, 60px); margin-bottom: 18px; }
  .hero p.intro { font-size: 16px; max-width: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 100px;
  padding: 15px 26px; font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: .01em; cursor: pointer; transition: transform .12s ease, background .2s, opacity .2s;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--muted); }
.btn.block { width: 100%; }
.btn .arrow { width: 16px; height: 16px; }

/* ---------- Booking card / wizard ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 30px 30px 28px;
}
@media (max-width: 560px) { .card { padding: 24px 20px 22px; } }

.wiz-head { margin-bottom: 26px; }
.wiz-eyebrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.wiz-eyebrow .num {
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.wiz-eyebrow .name { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); }
.wiz-track { height: 3px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.wiz-fill { height: 100%; width: 25%; background: var(--accent); border-radius: 3px; transition: width .4s cubic-bezier(.4,0,.1,1); }

.step { animation: rise .35s ease both; }
.step[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.step-title { font-family: var(--serif); font-weight: 500; font-size: 23px; margin: 0 0 4px; letter-spacing: -.01em; }
.step-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.field { margin-bottom: 17px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 8px;
}
.field .req { color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Address autocomplete ---------- */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: var(--shadow-sm); overflow: hidden; display: none;
}
.ac-list.open { display: block; }
.ac-item {
  padding: 12px 14px; font-size: 14px; cursor: pointer; color: var(--ink);
  display: flex; gap: 11px; align-items: center; border-bottom: 1px solid var(--line);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.active { background: var(--paper); }
.ac-item .pin { color: var(--accent); flex: none; width: 15px; height: 15px; }
.ac-item .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

input, select, textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line-2); color: var(--ink);
  border-radius: 11px; padding: 13px 14px; font-size: 15px; font-family: var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #A7A293; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,70,47,.12); }
textarea { resize: vertical; min-height: 84px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E6A5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}

/* segmented ride-type picker */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label {
  display: block; margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500;
  color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.seg label:hover { border-color: var(--muted); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.step-nav { display: flex; gap: 12px; margin-top: 26px; }
.step-nav .btn { flex: 1; }
.step-nav .spacer { flex: 1; }
.wiz-error { color: var(--danger); font-size: 13px; margin-top: 14px; min-height: 16px; font-weight: 500; }

/* ---------- Review ---------- */
.review { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review .r {
  display: flex; justify-content: space-between; gap: 18px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.review .r:last-child { border-bottom: none; }
.review .r .k { color: var(--muted); }
.review .r .v { text-align: right; font-weight: 500; color: var(--ink); }
.pay-note {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--accent-soft); border-radius: 12px; padding: 14px 15px; margin-top: 18px;
  color: var(--accent); font-size: 13.5px; line-height: 1.5; font-weight: 500;
}
.pay-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- Success ---------- */
.success { text-align: center; padding: 12px 4px 6px; }
.success .check {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--accent); color: var(--paper); display: grid; place-items: center;
}
.success .check svg { width: 30px; height: 30px; }
.success h2 { font-family: var(--serif); font-weight: 500; font-size: 27px; margin: 0 0 10px; }
.success p { color: var(--ink-2); line-height: 1.6; margin: 0 auto; max-width: 340px; font-size: 15px; }
.success .review { text-align: left; margin: 22px 0 0; }

.footer { border-top: 1px solid var(--line); padding: 34px 0 46px; }
.footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer small { color: var(--muted); font-size: 13px; }
.footer .credit { display: block; margin-top: 12px; font-size: 12px; color: #918C7E; }
.footer .credit a { color: #7C7768; text-decoration: underline; }

/* =========================================================================
   Admin dashboard
   ========================================================================= */
.login-screen { min-height: 66vh; display: grid; place-items: center; }
.login-box { width: 100%; max-width: 400px; }
.login-box h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 6px; }
.login-box .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 26px; }
.dash-head h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0; letter-spacing: -.01em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 30px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.stat .n { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1; color: var(--ink); }
.stat .l { color: var(--muted); font-size: 12px; margin-top: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.stat.p .n { color: #B7791F; }
.stat.c .n { color: var(--accent); }
.stat.d .n { color: #2F6B4F; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.toolbar .filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-2);
  padding: 9px 16px; border-radius: 100px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--muted); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toolbar .spacer { flex: 1; }

.booking-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; margin-bottom: 16px;
}
.booking-row .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.booking-row .who { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.booking-row .who a { color: var(--ink); }
.booking-row .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.booking-row .route { margin: 16px 0; display: grid; gap: 7px; }
.booking-row .route .leg { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.booking-row .route .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.booking-row .route .dot.a { background: var(--accent); }
.booking-row .route .dot.b { background: var(--danger); }
.booking-row .route .line { width: 1px; height: 13px; background: var(--line-2); margin-left: 3.5px; }
.booking-row .notes { color: var(--ink-2); font-size: 14px; font-style: italic; margin-top: 8px; }
.booking-row .meta .miles { color: var(--accent); font-weight: 600; }
.trip-map {
  display: block; width: 100%; max-width: 560px; height: auto;
  margin-top: 14px; border-radius: 12px; border: 1px solid var(--line);
}
.booking-row .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

.badge {
  padding: 6px 13px; border-radius: 100px; font-size: 12px; font-weight: 600; text-transform: capitalize;
  border: 1px solid transparent; white-space: nowrap;
}
.badge.pending   { background: #FBF1DC; color: #98690F; border-color: #F0DCB0; }
.badge.confirmed { background: var(--accent-soft); color: var(--accent); border-color: #CFE3D6; }
.badge.completed { background: #E9EFEA; color: #2F6B4F; border-color: #D2DFD6; }
.badge.cancelled { background: #F6E5E0; color: var(--danger); border-color: #ECCFC6; }

.empty { text-align: center; color: var(--muted); padding: 56px 20px; }
.empty svg { width: 40px; height: 40px; color: var(--line-2); margin-bottom: 14px; }

select.status-select { width: auto; padding: 9px 34px 9px 14px; font-size: 13px; font-weight: 500; border-radius: 100px; }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 500; padding: 8px; }
.link-btn:hover { color: var(--danger); }

.btn.small { padding: 10px 16px; font-size: 13px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 12px; min-height: 16px; }
