:root {
  --bg: #0f1115;
  --panel: rgba(17, 20, 28, 0.84);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f2f4f8;
  --muted: #9aa3b2;
  --accent: #4f8cff;
  --ok: #33d17a;
  --warn: #ffb020;
  --danger: #ff5c5c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
#map { position: absolute; inset: 0; z-index: 0; background: #dfe3e8; } /* z-index:0 keeps the map's own layers below the HUD */

/* ── HUD panels ─────────────────────────────────────────────────────── */
.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#topbar {
  position: fixed; top: 16px; left: 16px; right: 16px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand .logo { color: var(--accent); font-size: 18px; }

.topbar-right { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.hud-btn, .badge {
  font: inherit; cursor: pointer; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--shadow); color: var(--text);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.hud-btn:hover, .hud-btn.is-hover, .badge:hover, .badge.is-hover { transform: scale(1.06); border-color: rgba(255,255,255,.4); }
.hud-btn.is-paused { color: var(--warn); border-color: rgba(255, 176, 32, 0.45); }
.badge { color: var(--muted); }
.badge.ok { color: var(--ok); border-color: rgba(51, 209, 122, 0.35); }
.badge.warn { color: var(--warn); border-color: rgba(255, 176, 32, 0.35); }
.badge .caret { opacity: .7; margin-left: 4px; }

#filters {
  position: fixed; top: 64px; right: 16px; z-index: 36; width: 320px; padding: 14px 16px 16px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease;
}
#filters.open { opacity: 1; transform: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel-head h2 { margin: 0; font-size: 14px; }
.panel-head .icon-btn { position: static; }
.filter-group { display: grid; gap: 6px; margin-bottom: 12px; }
.filter-group .label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: inherit; cursor: pointer; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid var(--panel-border); color: var(--text);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.chip:hover, .chip.is-hover { transform: scale(1.06); border-color: rgba(255,255,255,.4); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

#legend {
  position: fixed; top: 76px; left: 16px; z-index: 30; width: 250px; padding: 12px 16px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  pointer-events: auto; cursor: default; transition: border-color .12s ease;
}
#legend h2 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
#legend h2 .g { font-size: 16px; }
#legend h2 .hint { margin-left: auto; font-size: 10px; letter-spacing: .04em; text-transform: none; opacity: .7; }
#legend ul { list-style: none; margin: 12px 0 0; padding: 0; display: none; gap: 10px; }
#legend:hover, #legend.is-hover, #legend.pinned { border-color: rgba(255,255,255,.35); }
#legend:hover ul, #legend.is-hover ul, #legend.pinned ul { display: grid; }
#legend:hover .hint, #legend.is-hover .hint, #legend.pinned .hint { display: none; }
#legend li { display: flex; align-items: center; gap: 12px; }
#legend li .g { width: 40px; text-align: center; font-size: 20px; flex: none; }
#legend b { display: block; font-size: 13px; }
#legend small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }

/* two-finger loop */
#lasso { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 39; pointer-events: none; }
#lasso polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; }
#lasso .halo { stroke: rgba(255, 255, 255, 0.95); stroke-width: 12; }
#lasso .line { stroke: var(--accent); stroke-width: 6; fill: rgba(79, 140, 255, 0.14); }
#lasso circle { fill: #fff; stroke: var(--accent); stroke-width: 4; }
#lasso.closed .line { fill: rgba(51, 209, 122, 0.3); stroke: var(--ok); animation: lasso-flash .6s ease-out; }
#lasso.closed circle { stroke: var(--ok); }
@keyframes lasso-flash { from { fill: rgba(51, 209, 122, 0.55); } to { fill: rgba(51, 209, 122, 0.15); } }

#cam-panel {
  position: fixed; left: 16px; bottom: 16px; z-index: 30; width: 250px;
  display: grid; gap: 8px; pointer-events: none;
}
.cam-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--panel-border); box-shadow: var(--shadow); background: #000;
  transform: scaleX(-1); /* mirror video and overlay together */
}
.cam-frame video, .cam-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.mode {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s ease;
}
.mode .mode-icon { font-size: 18px; width: 24px; text-align: center; }
.mode.idle { color: var(--muted); }
.mode.pan, .mode.zoom { border-color: rgba(79, 140, 255, 0.5); }
.mode.point, .mode.pinch { border-color: rgba(51, 209, 122, 0.5); }
.mode.fist { border-color: rgba(255, 176, 32, 0.5); }
.mode.error { color: var(--danger); border-color: rgba(255, 92, 92, 0.5); }
.mode.locked { color: var(--warn); border-color: rgba(255, 176, 32, 0.45); }
#arm-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
#arm-bar span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .08s linear; }

/* ── Cursor ─────────────────────────────────────────────────────────── */
#cursor {
  position: fixed; left: 0; top: 0; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  z-index: 100; pointer-events: none; will-change: transform;
}
#cursor .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
#cursor .track { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 3; }
#cursor .progress {
  fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 125.66; stroke-dashoffset: 125.66;
}
#cursor .dot {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(51, 209, 122, 0.5), 0 2px 8px rgba(0,0,0,.5);
  transition: transform .12s ease;
}
#cursor.pulse .dot { animation: cursor-pulse .4s ease-out; }
#cursor[data-variant="draw"] .dot { background: var(--accent); transform: scale(1.4); box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 2px 8px rgba(0,0,0,.5); }
#cursor[data-variant="draw"] .track { stroke: rgba(79, 140, 255, 0.7); }
@keyframes cursor-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 3px rgba(51, 209, 122, 0.8); }
  100% { transform: scale(2.2); box-shadow: 0 0 0 12px rgba(51, 209, 122, 0); }
}

/* ── Markers ────────────────────────────────────────────────────────── */
.listing-marker {
  --pin: var(--accent);
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  cursor: pointer; transform-origin: bottom center; transition: transform .12s ease;
}
.listing-marker.status-available, .listing-marker.offer-sale { --pin: #33d17a; }
.listing-marker.status-under-offer { --pin: #ffb020; }
.listing-marker.status-sold { --pin: #ff5c5c; }
.listing-marker.offer-rent { --pin: #4f8cff; }
.listing-marker.is-offmarket { --pin: #8a93a6; }
.listing-marker.is-offmarket .pin-label { color: #555; background: #e9ecf1; }
.pill.status-off { background: rgba(138, 147, 166, 0.22); color: #c3c9d4; }
.listing-marker.is-approx .pin-label { border-style: dashed; }
.listing-marker.is-approx .pin-dot { border-style: dashed; }
.pin-dot {
  display: none; width: 12px; height: 12px; border-radius: 50%; background: var(--pin);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
/* Zoomed out: dots. Mid zoom: compact labels. Close: full labels. */
body[data-zoom-band="far"] .pin-label, body[data-zoom-band="far"] .pin-tail { display: none; }
body[data-zoom-band="far"] .pin-dot { display: block; }
body[data-zoom-band="far"] .listing-marker.is-hover .pin-dot, body[data-zoom-band="far"] .listing-marker.is-active .pin-dot { transform: scale(1.4); }
body[data-zoom-band="mid"] .pin-label { font-size: 11px; padding: 5px 7px; }
.pin-label {
  background: #fff; color: #111; font-weight: 700; font-size: 13px; line-height: 1;
  padding: 7px 10px; border-radius: 999px; border: 2px solid var(--pin);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); white-space: nowrap;
}
.pin-tail {
  width: 0; height: 0; margin-top: -1px;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--pin);
}
.listing-marker.is-hover { transform: scale(1.12); }
.listing-marker.is-active { transform: scale(1.2); }
.listing-marker.is-active .pin-label { background: var(--pin); color: #fff; border-color: #fff; }

/* MapLibre: the wrapper is positioned by the library; the pin inside can scale freely. */
.marker-wrap { line-height: 0; }
.maplibregl-ctrl-attrib { font-size: 11px; }
.maplibregl-ctrl-bottom-left { left: 282px; } /* clear the camera panel */
.maplibregl-canvas:focus { outline: none; }

/* ── Listing card ───────────────────────────────────────────────────── */
#card {
  position: fixed; right: 16px; top: 76px; z-index: 35; width: 340px; max-height: calc(100vh - 92px);
  overflow: hidden auto; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateX(16px); transition: opacity .18s ease, transform .18s ease;
}
#card.open { opacity: 1; transform: none; }
#card img { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 200px; object-fit: cover; background: #222; }
.card-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 20px; font-weight: 700; }
.pill {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(255,255,255,.08); color: var(--muted);
}
.pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pill.alt { background: rgba(79, 140, 255, 0.14); color: #9cc0ff; }
.pill.offer-sale, .pill.status-available { background: rgba(51, 209, 122, 0.18); color: var(--ok); }
.pill.offer-rent { background: rgba(79, 140, 255, 0.18); color: #8fb5ff; }
.note { margin: 0; font-size: 12px; color: var(--warn); }
.pill.status-under-offer { background: rgba(255, 176, 32, 0.18); color: var(--warn); }
.pill.status-sold { background: rgba(255, 92, 92, 0.18); color: var(--danger); }
#card h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.muted { margin: 0; color: var(--muted); font-size: 13px; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 13px; }
.btn {
  margin-top: 8px; display: inline-block; text-align: center; padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
}
.card-actions { display: flex; gap: 8px; margin-top: 8px; }
.card-actions .btn { flex: 1; margin-top: 0; }
.btn.secondary { background: rgba(255,255,255,.1); }
.btn:hover, .btn.is-hover { filter: brightness(1.15); transform: scale(1.03); }
#card-qr { display: grid; justify-items: center; gap: 6px; margin-top: 10px; padding: 12px; background: #fff; border-radius: 10px; color: #111; text-align: center; }
#card-qr img { width: 160px; height: 160px; image-rendering: pixelated; }
.icon-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); background: rgba(0,0,0,.6); color: #fff; font-size: 18px; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.icon-btn:hover, .icon-btn.is-hover { background: var(--danger); border-color: #fff; transform: scale(1.12); }

/* ── Emirate jump bar ──────────────────────────────────────────────── */
#emirates {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px; max-width: calc(100vw - 540px);
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
#emirates .chip { white-space: nowrap; }
#emirates .chip .count { color: var(--muted); font-weight: 500; margin-left: 4px; }
#emirates .chip.is-hover .count { color: inherit; }

/* ── Gallery ───────────────────────────────────────────────────────── */
#gallery {
  position: fixed; inset: 0; z-index: 45; background: rgba(8, 10, 14, 0.94);
  display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center;
  opacity: 0; transition: opacity .2s ease;
}
#gallery.open { opacity: 1; }
.gallery-top { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 24px; position: relative; }
#gallery-title { flex: 1; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gallery-counter { color: var(--muted); font-size: 14px; margin-right: 56px; }
.gallery-top .icon-btn { top: 12px; right: 20px; }
#gallery-image { max-width: min(92vw, 1600px); max-height: calc(100vh - 150px); object-fit: contain; border-radius: 10px; box-shadow: var(--shadow); background: #111; }
#gallery-image { transition: transform .25s ease, opacity .25s ease; }
#gallery-image.dragging { transition: none; }
#gallery-image.slide-left { animation: slide-left .25s ease; }
#gallery-image.slide-right { animation: slide-right .25s ease; }
@keyframes slide-left { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slide-right { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); background: rgba(0,0,0,.55); color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.gallery-nav.prev { left: 24px; }
.gallery-nav.next { right: 24px; }
.gallery-nav:hover, .gallery-nav.is-hover { background: var(--accent); border-color: #fff; transform: translateY(-50%) scale(1.12); }
.gallery-hint { margin: 0; padding: 14px; color: var(--muted); font-size: 13px; }

/* ── Toast ──────────────────────────────────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  max-width: min(640px, calc(100vw - 32px)); padding: 12px 18px; font-size: 14px;
  background: rgba(255, 176, 32, 0.95); color: #1a1200; border-radius: 12px; box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  #legend { display: none; }
  #card { left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; max-height: 60vh; }
  #card img { max-height: 140px; }
  #cam-panel { width: 160px; }
  #filters { left: 16px; right: 16px; width: auto; }
  #emirates { max-width: calc(100vw - 32px); overflow-x: auto; }
}

/* ── Attract screen (kiosk) ─────────────────────────────────────────── */
#attract {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at center, rgba(15, 17, 21, 0.55), rgba(15, 17, 21, 0.9));
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
#attract.open { opacity: 1; }
.attract-inner { max-width: 640px; padding: 24px; }
.attract-hand { font-size: 96px; animation: wave 1.6s ease-in-out infinite; transform-origin: 70% 80%; }
@keyframes wave { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(14deg); } }
#attract h1 { font-size: 40px; margin: 8px 0; }
#attract p { font-size: 18px; color: var(--muted); margin: 0; }
body.kiosk, body.kiosk * { cursor: none !important; }

/* ── Tuning panel ───────────────────────────────────────────────────── */
#tuning {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 360px; max-height: calc(100vh - 100px); overflow: auto;
  padding: 14px 16px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px;
}
.tuning-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.tuning-stats { font-size: 12px; color: var(--muted); margin-bottom: 10px; min-height: 16px; }
.tuning-row { display: grid; grid-template-columns: 1fr 120px 52px; align-items: center; gap: 8px; padding: 4px 0; }
.tuning-row output { text-align: right; font-variant-numeric: tabular-nums; }
.tuning-actions { display: flex; gap: 8px; margin-top: 10px; }
.tuning-actions button { font: inherit; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--panel-border); background: rgba(255,255,255,.08); color: var(--text); cursor: pointer; }
.small { font-size: 11px; }

/* ── Clusters ───────────────────────────────────────────────────────── */
.cluster-marker {
  --size: 40px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  background: rgba(79, 140, 255, 0.92); color: #fff; font-weight: 700; font-size: 13px; border: 3px solid #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.4); cursor: pointer; transition: transform .12s ease;
}
.cluster-marker.is-hover, .cluster-marker:hover { transform: scale(1.15); background: var(--ok); }

/* ── Enquiry form ───────────────────────────────────────────────────── */
.enquiry { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--panel-border); }
.enquiry h3 { margin: 0; font-size: 15px; }
.enquiry input, .enquiry textarea {
  font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.3); color: var(--text); width: 100%;
}
.enquiry input.invalid, .enquiry textarea.invalid { border-color: var(--danger); }
/* honeypot: never shown to people, bots fill it in and the server drops the submission */
.enquiry input.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.enquiry-actions { display: flex; gap: 8px; }
.enquiry-actions .btn { flex: 1; margin-top: 0; }
.enquiry-status { margin: 0; font-size: 13px; color: var(--muted); }
.enquiry-status.ok { color: var(--ok); }
.enquiry-status.err { color: var(--danger); }
.card-actions { flex-wrap: wrap; }
.card-actions .btn { min-width: 120px; }

/* ── Type chips with icons, RTL ─────────────────────────────────────── */
.chip .icon { margin-right: 6px; }
body.rtl .chip .icon { margin-right: 0; margin-left: 6px; }
body.rtl #legend, body.rtl #cam-panel { left: auto; right: 16px; }
body.rtl #card, body.rtl #filters { right: auto; left: 16px; }
body.rtl .topbar-right { flex-direction: row-reverse; }
body.rtl #topbar { flex-direction: row-reverse; }
body.rtl .maplibregl-ctrl-bottom-left { left: 16px; }
body.rtl .maplibregl-ctrl-bottom-right { right: 282px; }

/* ── Outline icons ──────────────────────────────────────────────────── */
.ico { width: 18px; height: 18px; vertical-align: -3px; flex: none; }
.chip .icon .ico { width: 16px; height: 16px; vertical-align: -3px; }
.pill .ico { width: 14px; height: 14px; vertical-align: -2px; }
.btn .ico { margin-right: 6px; }
body.rtl .btn .ico { margin-right: 0; margin-left: 6px; }

/* ── On-screen keyboard ─────────────────────────────────────────────── */
#keyboard {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 38;
  width: min(760px, calc(100vw - 620px)); padding: 12px 14px 14px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.kb-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.kb-row { display: flex; gap: 6px; justify-content: center; margin-bottom: 6px; }
.key {
  font: inherit; font-size: 18px; font-weight: 600; width: 56px; height: 52px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid var(--panel-border); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .1s ease, background .1s ease, border-color .1s ease;
}
.key-wide { width: auto; min-width: 84px; padding: 0 14px; font-size: 15px; }
.key.is-on { background: var(--accent); border-color: var(--accent); }
.key-done { background: var(--ok); border-color: var(--ok); color: #062; }
.key:hover, .key.is-hover { transform: scale(1.1); border-color: #fff; background: rgba(255,255,255,.18); }
.key .ico { width: 20px; height: 20px; }
body.keyboard-open #emirates { display: none; }
.enquiry input.is-target, .enquiry textarea.is-target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,140,255,.3); }
.enquiry input.is-hover, .enquiry textarea.is-hover { border-color: rgba(255,255,255,.5); }
@media (max-width: 1100px) { #keyboard { width: min(760px, calc(100vw - 32px)); } }
