/* ============================================================
   MyPath — styles for navigate.html and editor.html.
   Loaded after styles.css; brand colours still come from :root there.
   ============================================================ */

/* Five tabs once "Navigate" exists */
.tabbar.tabs-5 { grid-template-columns: repeat(5, 1fr); }
.tabbar.tabs-5 a { font-size: .7rem; }

.badge-ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge-muted { background: #E5E9F1; color: #34435E; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.group-h { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 8px; }
.mini-h { font-size: .95rem; color: var(--navy); margin: 14px 0 6px; }
.card h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.grow { flex: 1; min-width: 0; }

/* Building cards */
.b-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-height: 76px; }
.b-card b { display: block; font-size: 1.1rem; color: var(--navy); }
.b-card small { display: block; color: var(--muted); font-size: .86rem; margin: 2px 0 6px; }
.b-card > span:nth-child(2) { flex: 1; }
.b-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--powder); color: var(--blue); display: grid; place-items: center; flex: none; }
.b-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chev { font-size: 1.6rem; color: var(--muted); }
.b-card:active { transform: scale(.985); }

.intro-list { padding-left: 1.3em; display: grid; gap: 8px; margin: 6px 0 4px; }
.intro-list li { padding-left: 2px; }
.place-list { display: grid; gap: 8px; }
.place-list a { display: block; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; text-decoration: none; min-height: 56px; }
.place-list b { display: block; color: var(--navy); }
.place-list small { color: var(--muted); }
.key summary, .prefs-box summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 44px; display: flex; flex-direction: column; justify-content: center; list-style-position: inside; }
.key-list { display: grid; gap: 10px; margin-top: 8px; font-size: .92rem; }
.key-list .badge { margin-right: 6px; }
.fact-list { display: grid; gap: 10px; list-style: disc; padding-left: 1.2em; }
.fact-list small { display: block; color: var(--muted); font-size: .82rem; }

/* Route form */
.nav-form .field { align-items: flex-start; }
.nav-form .dot { margin-top: 26px; }
.nav-form select, .form select, #dest-q {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 2px solid #C3CEE3; background: #fff;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); margin-top: 4px;
}
.nav-form select:focus, .form select:focus, #dest-q:focus { border-color: var(--blue); outline: 3px solid #BBD0FA; outline-offset: 0; box-shadow: none; }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.result-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; margin-top: 6px; padding: 2px; }
.result-list button { width: 100%; text-align: left; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--powder); background: var(--powder-2); cursor: pointer; }
.result-list button:hover { border-color: var(--blue); }
.result-list b { display: block; color: var(--navy); }
.result-list small, .result-list .none { color: var(--muted); font-size: .84rem; }
.swap { justify-self: start; padding: 0; }
.prefs-box details { border-top: 1px solid var(--powder); }
.prefs-box details .switch { border-top: 1px solid var(--powder); }
.prefs-box summary .fine { margin-top: 0; font-weight: 500; }
.mode-set { border: 0; border-top: 1px solid var(--powder); padding-top: 10px; margin-top: 4px; }

/* Map */
.floor-card { margin-top: 14px; }
.map-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.floor-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.floor-seg button, .zoom button { position: relative; min-width: 48px; min-height: 44px; border-radius: 12px; border: 2px solid #C3CEE3; background: #fff; font-weight: 800; font-size: 1.05rem; color: var(--navy); cursor: pointer; }
.floor-seg button::before { content: "Floor "; font-weight: 600; font-size: .8rem; color: var(--muted); }
.floor-seg button { padding: 0 12px; }
.floor-seg button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.floor-seg button[aria-pressed="true"]::before { color: #fff; }
.on-route { position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-3); border: 2px solid #fff; }
.zoom { display: flex; gap: 6px; }
.zoom button:disabled { opacity: .4; cursor: default; }
.map-scroll { overflow: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--powder); border-bottom: 1px solid var(--powder); background: #F3F7FE; }
.map-scroll:focus-visible { outline-offset: -3px; box-shadow: none; }
.map-inner { min-width: 520px; }
.map-card .floor-svg { width: 100%; height: auto; display: block; }
.floor-svg text { font-family: var(--font); }
.map-empty { padding: 24px; color: var(--muted); }
.legend { display: block; margin-top: 4px; line-height: 2; }
.lg { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 11px; background: var(--navy); color: #fff; font-size: .62rem; font-weight: 800; font-style: normal; vertical-align: middle; margin-left: 6px; }
.lg-in { background: #17803D; }
.lg-route { width: 26px; min-width: 26px; height: 6px; border-radius: 3px; background: #1454D4; }
@keyframes here-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.here-dot { animation: here-pulse 1.8s ease-in-out infinite; }

/* Route result */
.route-sum .big { font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.fact { font-size: .82rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--powder); color: var(--navy); }
.fact.ok { background: var(--ok-bg); color: var(--ok-ink); }
.fact.warn { background: var(--amber-bg); color: var(--amber-ink); }
.fact.test { background: #E5E9F1; color: #34435E; }
.sum-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.no-route { border: 2px solid var(--amber-ink); }
.no-route p { margin-top: 6px; }
#route-out:focus { outline: none; }

.steps { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.intro-list { margin-left: 0; }
.step { display: flex; align-items: flex-start; gap: 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px; border: 2px solid transparent; }
.step.current { border-color: var(--blue); background: var(--powder-2); }
.step-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--powder); color: var(--blue); display: grid; place-items: center; font-weight: 800; flex: none; }
.step.assist .step-ico { background: var(--amber-bg); color: var(--amber-ink); }
.step-body { flex: 1; min-width: 0; }
.step-body p { font-weight: 600; }
.step-body small { color: var(--muted); font-size: .82rem; }
.here-btn { min-width: 86px; font-size: .88rem; padding: 0 8px; }
.here-status { background: var(--powder); color: var(--navy); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; font-weight: 600; }

.ent-card .facts { margin-top: 8px; }
.ent-card .btn-mini { margin-top: 10px; }
.ent-photos { display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 8px; overflow-x: auto; margin: 8px 0; }
.ent-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

html.reduce-motion .here-dot { animation: none; }
@media (prefers-reduced-motion: reduce) { .here-dot { animation: none; } }
@media (min-width: 600px) { .map-inner { min-width: 0; } }

/* Link from the original Home panel into navigation */
.nav-promo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); border: 2px solid var(--blue); }
.nav-promo b { display: block; color: var(--navy); font-size: 1.05rem; }
.nav-promo small { display: block; color: var(--muted); font-size: .86rem; }
.nav-promo > span:nth-child(2) { flex: 1; }
.status-key { display: grid; gap: 8px; font-size: .9rem; }
.lg-dest { min-width: 18px; width: 18px; height: 18px; padding: 0; background: #082651; border: 5px solid #082651; box-shadow: inset 0 0 0 4px #F5CF5E; }

/* Evidence photos on unmapped buildings */
.evidence { margin: 12px 0 0; }
.evidence img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: #cfd9ea; }
.evidence figcaption p { margin: 8px 0 0; }
