/* Keyhost website, dark preview: the kiosk theme from the Keyhost design system */
[data-theme="dark"] {
  --surface-0: #182029; --surface-1: #212b36; --surface-2: #2c3745;
  --ink: #f3f4f2; --ink-muted: #aeb8c2; --line: #3a4654;
  --brass: #c9a24a; --brass-deep: #e0bf6a; --on-brass: #182029;
  --free: #5cc98a; --fault: #f0806f; --focus: #7fb3e6; --info: #7fb3e6;
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
[data-theme="dark"] .top { background: rgba(24, 32, 41, .92); }

/* Primary buttons are brass on dark grounds, with ink text */
[data-theme="dark"] .btn { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
[data-theme="dark"] .btn:hover { background: #d6b25e; border-color: #d6b25e; }
[data-theme="dark"] .btn.secondary { background: var(--surface-1); color: var(--ink); border-color: var(--ink-muted); }
[data-theme="dark"] .btn.secondary:hover { background: var(--surface-2); }

/* Hero bank: steel slab with box doors in the ground colour, one in brass */
[data-theme="dark"] #tiles rect:not([fill="#c9a24a"]) { fill: #182029; }
[data-theme="dark"] .kiosk-card { background: #0f151c; }
[data-theme="dark"] .kc-drop { background: var(--surface-1); }

[data-theme="dark"] .steps .num { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
[data-theme="dark"] .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23f3f4f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }

[data-theme="dark"] .phone { background: #0f151c; border: 1px solid var(--line); }
[data-theme="dark"] .plan.best { border-color: var(--brass); }
[data-theme="dark"] .form-error { background: rgba(240, 128, 111, .12); }
[data-theme="dark"] .choices label:has(input:checked) { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
[data-theme="dark"] .choices input { accent-color: var(--brass); }
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: #7d8894; }
[data-theme="dark"] .nc-top img { box-shadow: 0 0 0 1px var(--ink-muted); }

/* Recommended: lift the grid with depth (steel bank, recessed doors, lit edges) */
[data-theme="dark"] .bank { background: linear-gradient(160deg, #46546a 0%, #2f3b4b 55%, #263140 100%); border-radius: 8.1%; box-shadow: 0 0 0 1px rgba(243,244,242,.14), 0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.18); }
[data-theme="dark"] .bank > rect { fill: transparent; }
[data-theme="dark"] #tiles rect:not([fill="#c9a24a"]) { fill: #121920; stroke: rgba(243,244,242,.22); stroke-width: 1.2; }
[data-theme="dark"] #tiles rect[fill="#c9a24a"] { stroke: #f0d58a; stroke-width: 1.2; }

/* Earlier prompts to the enquiry form */
.next { margin-top: 32px; font-size: 18px; font-weight: 600; }
.next::after { content: " \2193"; color: var(--brass-deep); }
.mbar { display: none; }
@media (max-width: 640px) {
  .mbar { display: flex; align-items: center; justify-content: center; position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 52px; border-radius: var(--r-lg); background: var(--brass); color: var(--on-brass); font-weight: 600; font-size: 17px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index: 30; transform: translateY(140%); transition: transform .2s ease; }
  .mbar.show { transform: none; }
  body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .mbar { transition: none; } }

/* Locations map */
.locmap { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 24px; margin-top: 40px; align-items: start; }
.area-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; }
.area-tabs button { flex: 1; border: 0; background: transparent; color: var(--ink-muted); font: 600 15px/20px var(--sans); padding: 10px 8px; border-radius: var(--r-sm); cursor: pointer; }
.area-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.loc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 470px; overflow-y: auto; padding-right: 4px; }
.loc-list button { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-1); color: var(--ink); font-family: var(--sans); cursor: pointer; }
.loc-list button:hover { border-color: var(--ink-muted); }
.loc-list button[aria-pressed="true"] { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.loc-side { display: grid; gap: 16px; }
.loc-more h3 { font-size: 18px; }
.loc-list .ln { font-weight: 600; font-size: 15px; line-height: 20px; }
.loc-list .la { grid-column: 1; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.badge-s { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-sm); white-space: nowrap; }
.badge-s.open { color: var(--free); background: rgba(92, 201, 138, .12); }
.badge-s.soon { color: var(--brass-deep); background: rgba(201, 162, 74, .12); }
.map-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-1); }
.map-wrap iframe { display: block; width: 100%; height: 440px; border: 0; }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.map-foot b { display: block; font-size: 17px; }
.map-foot span { color: var(--ink-muted); font-size: 14px; }
.map-foot .row { gap: 8px; }
select { width: 100%; padding: 11px 12px; border: 1px solid var(--ink-muted); border-radius: var(--r-sm); background: var(--surface-1); color: var(--ink); font: 16px/22px var(--sans); }
select:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 960px) {
  .locmap { grid-template-columns: 1fr; }
  .map-wrap { order: -1; }
  .map-wrap iframe { height: 280px; }
  .loc-list { max-height: none; }
}
[hidden] { display: none !important; }
