/* ============================================================
   TellTours - Features Section
   ============================================================ */

/* ── Feature rows ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 130px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse > .feature-text { order: 2; }

.feature-text { max-width: 480px; }

.feature-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(52,161,96,0.18), rgba(52,161,96,0.04));
  border: 1px solid rgba(52,161,96,0.28);
  display: grid; place-items: center;
  color: var(--green-light);
  margin-bottom: 22px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-text:hover .feature-icon {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(52,161,96,0.1), 0 0 32px rgba(52,161,96,0.3);
}

.feature-text p { color: var(--ink-mid); font-size: 16.5px; line-height: 1.65; margin-top: 14px; }
.feature-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }

/* ── Feature visual frame ── */
.feature-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.feature-visual::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 110%, rgba(52,161,96,0.16), transparent 55%);
  pointer-events: none;
}

/* ── F1: Map visual ── */
.fv-map {
  width: 100%; height: 100%;
  border-radius: 18px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.fv-map > .map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* OSM tile layer */
.map-osm { position: absolute; inset: 0; background: var(--map-base); overflow: hidden; }

/* Map radius circle */
.map-radius {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(52,161,96,0.6);
  background: rgba(52,161,96,0.13);
}

/* User dot */
.map-udot {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--user-dot);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(45,125,246,0.2), 0 2px 6px rgba(0,0,0,0.3);
}
.map-udot::before {
  content: "";
  position: absolute; inset: -12px;
  border-radius: 50%;
  background: rgba(45,125,246,0.14);
  animation: udot-ripple 2s infinite;
}
@keyframes udot-ripple {
  0%  { transform: scale(0.5); opacity: 1; }
  100%{ transform: scale(1.8); opacity: 0; }
}

/* Green POI pins */
.map-pin {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50% 50% 50% 0;
  background: var(--green);
  transform: rotate(-45deg);
  box-shadow: 0 2px 7px rgba(0,0,0,0.35);
}
.map-pin::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(45deg);
}

/* Toolbar pills on map */
.map-toolbar {
  position: absolute; top: 10px; left: 8px; right: 8px;
  display: flex; gap: 6px; z-index: 5;
}
.map-tb {
  display: flex; align-items: center; gap: 5px;
  background: rgba(11,14,17,0.82);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Map zoom/locate controls */
.map-ctrl-col {
  position: absolute; right: 8px; top: 48px;
  display: flex; flex-direction: column; gap: 6px; z-index: 5;
}
.map-ctrl {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(20,26,22,0.84);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; display: grid; place-items: center;
  font-size: 16px; font-weight: 600; line-height: 1;
}
.map-ctrl.locate { background: var(--green); border-color: transparent; }

/* Narration bottom card on map */
.narr-card {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  background: rgba(14, 20, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 12px;
  z-index: 5;
}
.narr-card .nc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.narr-card .nc-thumb {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--grad-primary);
  display: grid; place-items: center;
}

/* Narration album-art "spires" (matches the app's gradient art tile) */
.art-spires { display: flex; align-items: flex-end; gap: 2.5px; height: 50%; }
.art-spires i { display: block; width: 3px; border-radius: 1px; background: rgba(255,255,255,0.95); }
.narr-card .nc-name { color: #fff; font-size: 13px; font-weight: 800; }
.narr-card .nc-meta { color: var(--ink-mid); font-size: 10px; margin-top: 2px; }
.narr-nearby {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(52,161,96,0.08);
  border: 1px solid rgba(52,161,96,0.4);
  color: var(--green-light);
  font-size: 10px; font-weight: 700;
  padding: 6px 10px; border-radius: var(--r-pill);
  margin-bottom: 9px;
}
.narr-ctrl { display: flex; align-items: center; gap: 10px; }
.narr-smartplay {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; color: var(--ink);
}
.narr-toggle {
  width: 28px; height: 17px; border-radius: var(--r-pill);
  background: var(--green); position: relative; flex-shrink: 0;
}
.narr-toggle::after {
  content: ""; position: absolute;
  right: 2px; top: 2px;
  width: 13px; height: 13px;
  border-radius: 50%; background: #fff;
}
.narr-play-row { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.narr-play {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
  box-shadow: 0 0 18px rgba(52,161,96,0.55);
}

/* ── F2: Narration card visual ── */
.fv-narr {
  width: 100%; max-width: 380px;
  background: rgba(14,22,18,0.7);
  border: 1px solid rgba(52,161,96,0.22);
  border-radius: 22px; padding: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.fv-narr .badge-row { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.fv-narr .nb {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-soft); border: 1px solid rgba(52,161,96,0.4);
  display: grid; place-items: center; color: var(--green-light);
}
.fv-narr .lbl { font-size: 9px; color: var(--green-light); letter-spacing: 0.14em; font-weight: 800; text-transform: uppercase; }
.fv-narr h4 { font-family: var(--serif); font-size: 22px; font-weight: 400; color: #fff; }
.fv-narr p { font-size: 12.5px; color: rgba(255,255,255,0.6); margin: 8px 0 16px; line-height: 1.5; }
.fv-narr .ctrl { display: flex; align-items: center; gap: 13px; }
.fv-narr .play {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
  box-shadow: 0 0 24px rgba(52,161,96,0.55); flex-shrink: 0;
}
.waveform { display: flex; align-items: center; gap: 4px; height: 28px; flex: 1; }
.waveform .bar {
  width: 3px; background: var(--green-light); border-radius: 2px;
  animation: wav 1.1s ease-in-out infinite;
}
.waveform .bar:nth-child(1){height:30%;animation-delay:0s}
.waveform .bar:nth-child(2){height:72%;animation-delay:.11s}
.waveform .bar:nth-child(3){height:98%;animation-delay:.22s}
.waveform .bar:nth-child(4){height:60%;animation-delay:.33s}
.waveform .bar:nth-child(5){height:88%;animation-delay:.44s}
.waveform .bar:nth-child(6){height:44%;animation-delay:.55s}
.waveform .bar:nth-child(7){height:80%;animation-delay:.66s}
.waveform .bar:nth-child(8){height:36%;animation-delay:.77s}
@keyframes wav { 0%,100%{transform:scaleY(.35);opacity:.5} 50%{transform:scaleY(1);opacity:1} }
.waveform .wtime { margin-left: auto; font-size: 10px; color: var(--ink-mid); font-variant-numeric: tabular-nums; }

/* ── F3: Transport selector ── */
/* Plan-a-tour: AI-built itinerary card */
.fv-plan {
  width: 100%; max-width: 360px;
  background: rgba(14,22,18,0.7);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px; padding: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.fp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fp-ai {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 8px 20px -8px rgba(52,161,96,0.7);
}
.fp-title { font-size: 15px; font-weight: 800; color: #fff; }
.fp-meta { font-size: 11px; color: var(--ink-mid); margin-top: 2px; }
.fp-route { display: flex; flex-direction: column; gap: 2px; }
.fp-stop {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; position: relative;
}
/* connecting line through the numbered nodes */
.fp-stop::before {
  content: ""; position: absolute; left: 13px; top: -8px; bottom: -8px;
  width: 2px; background: rgba(52,161,96,0.3);
}
.fp-stop:first-child::before { top: 50%; }
.fp-stop:last-child::before { bottom: 50%; }
.fp-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; position: relative; z-index: 1;
  font-size: 12px; font-weight: 800; color: var(--green-light);
  background: var(--surface); border: 1.5px solid rgba(52,161,96,0.5);
}
.fp-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.fp-cta {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; color: #fff;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--grad-primary);
  box-shadow: 0 10px 24px -10px rgba(52,161,96,0.7);
}

/* ── F4: Visited list ── */
.fv-visited { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 9px; }
.fv-visited .vr {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 10px;
}
.fv-visited .vthumb {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--green-soft); border: 1px solid rgba(52,161,96,0.25);
  display: grid; place-items: center; color: var(--green-light);
}
.fv-visited .vn { color: var(--ink); font-size: 13px; font-weight: 800; }
.fv-visited .vm { color: var(--ink-mid); font-size: 10px; margin: 2px 0 5px; }
.fv-visited .vb {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: var(--r-pill);
}
.fv-visited .vb.heard { background: var(--green-soft); color: var(--green-light); }
.fv-visited .vb.not   { background: rgba(255,255,255,0.06); color: var(--ink-dim); }

/* ── F5: CarPlay ── */
/* ── F5: CarPlay / Android Auto dashboard ── */
.fv-car {
  width: 100%; height: 100%;
  border-radius: 16px; overflow: hidden;
  background: #0B1014;
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
}
.car-rail {
  width: 58px; flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0; gap: 8px;
}
.car-brand {
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: 4px;
  background: var(--grad-primary); display: grid; place-items: center; color: #fff;
}
.car-nav {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; color: var(--ink-dim);
}
.car-nav.active { background: rgba(52,161,96,0.18); color: var(--green-light); }
.car-clock { margin-top: auto; font-size: 11px; font-weight: 800; color: var(--ink-mid); font-variant: tabular-nums; }

.car-screen { flex: 1; position: relative; overflow: hidden; }
.car-map { position: absolute; inset: 0; width: 100%; height: 100%; }

/* glass card base for the dashboard overlays */
.car-nextturn, .car-status, .car-narr {
  position: absolute; z-index: 2;
  background: rgba(11,16,20,0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
}
.car-nextturn {
  top: 12px; left: 12px;
  display: flex; align-items: center; gap: 11px; padding: 10px 14px 10px 10px;
}
.car-nt-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--grad-primary); display: grid; place-items: center; color: #fff;
}
.car-nt-dist { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1; }
.car-nt-dist span { font-family: var(--sans); font-size: 11px; font-weight: 800; color: var(--ink-mid); }
.car-nt-road { font-size: 11px; font-weight: 800; color: var(--ink); margin-top: 3px; }

.car-status { top: 12px; right: 12px; display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 8px; }
.car-dial {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--green) 0% 60%, rgba(52,161,96,0.18) 60% 100%);
  display: grid; place-items: center;
}
.car-dial::before { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: #0B1014; }
.car-dial span { position: relative; font-size: 9.5px; font-weight: 800; color: var(--ink); }
.car-st-eyebrow { font-size: 8px; font-weight: 800; letter-spacing: 0.12em; color: var(--green-light); }
.car-st-title { font-size: 12px; font-weight: 800; color: var(--ink); margin-top: 2px; }

.car-narr {
  left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 12px; padding: 11px;
}
.car-art {
  width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0;
  background: var(--grad-primary); position: relative; overflow: hidden;
}
.car-live {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 7px; font-weight: 800; color: #fff; letter-spacing: 0.08em;
}
.car-live i { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.car-narr-info { flex: 1; min-width: 0; }
.car-narr-eyebrow { font-size: 8px; font-weight: 800; letter-spacing: 0.12em; color: var(--green-light); }
.car-narr-title { font-size: 13px; font-weight: 800; color: var(--ink); margin: 2px 0 6px; }
.car-wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.car-wave i { flex: 1; background: var(--green); border-radius: 1px; opacity: 0.85; animation: car-eq 1s ease-in-out infinite; }
.car-wave i:nth-child(odd) { animation-delay: 0.3s; }
.car-wave i:nth-child(3n) { animation-delay: 0.6s; }
@keyframes car-eq { 0%,100% { height: 30%; } 50% { height: 100%; } }
.car-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.car-btn { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.06); display: grid; place-items: center; color: var(--ink); }
.car-play {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-primary); display: grid; place-items: center; color: #fff;
  box-shadow: 0 0 22px rgba(52,161,96,0.5);
}
@media (prefers-reduced-motion: reduce) { .car-wave i { animation: none; height: 60%; } }

/* ── F6: Offline ── */
.fv-offline { width: 100%; max-width: 300px; text-align: center; }
.fv-offline .pic {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(52,161,96,0.18), rgba(52,161,96,0.04));
  border: 1px solid rgba(52,161,96,0.28);
  display: grid; place-items: center;
  margin: 0 auto 20px; color: var(--green-light);
}
.fv-offline .ol { color: var(--ink); font-weight: 800; font-size: 13.5px; margin-bottom: 4px; }
.fv-offline .os { color: var(--ink-mid); font-size: 12px; margin-bottom: 14px; }
.fv-offline .obar {
  height: 6px; background: rgba(255,255,255,0.07);
  border-radius: var(--r-pill); overflow: hidden; margin-bottom: 8px;
}
.fv-offline .obar .fill {
  width: 72%; height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-vivid));
  border-radius: var(--r-pill);
  box-shadow: 0 0 12px rgba(52,161,96,0.55);
}
.fv-offline .op { color: var(--green-light); font-size: 12px; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; gap: 28px; margin-bottom: 76px; }
  .feature-row.reverse > .feature-text { order: 0; }
}
@media (max-width: 520px) {
  .feature-visual { padding: 18px; }
}
