/* DigiAdrese — zīmola krāsas no logo */
:root {
  --navy: #0C2343;
  --red: #A0211B;
  --red-soft: #F2B8B3;
  --ink: #0C2343;
  --text: #3A4A63;
  --muted: #4A5A72;
  --line: #DCE2EB;
  --tint: #F4F6FA;
  --white: #FFFFFF;
  --radius: 14px;
  --font-head: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.5; }
img { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid rgba(160, 33, 27, 0.45); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2 { font-family: var(--font-head); color: var(--navy); margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; }
h3 { margin: 0; font-size: 18px; font-weight: 600; }
p { margin: 0; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.eyebrow--light { color: var(--red-soft); }

/* Pogas */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: #861A15; color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #163563; color: var(--white); }
.btn--outline { background: var(--white); color: var(--navy); border-color: #B9C2D0; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: #E8ECF3; color: var(--navy); }

/* Galvene */
.site-header { border-bottom: 1px solid #E3E7EE; background: var(--white); position: sticky; top: 0; z-index: 1000; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 42px; width: auto; display: block; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; font-weight: 500; }
.main-nav a:not(.btn) { text-decoration: none; }

/* Hero */
.hero { background: var(--tint); border-bottom: 1px solid #E3E7EE; }
.hero-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text); max-width: 520px; }
.search { display: flex; flex-direction: column; gap: 8px; max-width: 580px; }
.search label { font-size: 14px; font-weight: 600; }
.search-row { display: flex; flex-wrap: wrap; gap: 10px; }
.search input { flex: 1 1 280px; min-width: 0; height: 56px; padding: 0 18px; font: 400 16px var(--font-body); color: var(--ink); background: var(--white); border: 1.5px solid #B9C2D0; border-radius: 10px; }
.search input:focus { outline: 3px solid rgba(160, 33, 27, 0.35); outline-offset: 1px; border-color: var(--navy); }
.search .btn { height: 56px; padding: 0 28px; }
.hint { font-size: 14px; color: var(--muted); }
.status { min-height: 1.5em; font-size: 14px; color: var(--navy); }
.status--error { color: var(--red); font-weight: 500; }

.results { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.results[hidden] { display: none; }
.results li + li { border-top: 1px solid #EEF1F6; }
.results button { width: 100%; text-align: left; background: none; border: none; padding: 10px 14px; min-height: 44px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font: 400 15px var(--font-body); color: var(--ink); cursor: pointer; }
.results button:hover { background: var(--tint); }
.r-name { font-weight: 600; }
.r-place { grid-column: 1; font-size: 13px; color: var(--muted); }
.r-code { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 800 15px var(--font-head); color: var(--navy); letter-spacing: 0.03em; }

/* Koda kartīte */
.code-card { flex: 1 1 420px; min-width: 0; max-width: 480px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(12, 35, 67, 0.06); overflow: hidden; }
.card-head { padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 4px; }
.card-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.code { font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 6vw, 52px); letter-spacing: 0.04em; color: var(--navy); line-height: 1.1; }
.code-tail { color: var(--red); }
.card-address { font-size: 15px; color: var(--text); }
.map { height: 260px; background: #EEF1F6; border-top: 1px solid #E3E7EE; border-bottom: 1px solid #E3E7EE; }
.map-fallback { padding: 24px; color: var(--muted); font-size: 14px; }
.card-body { padding: 16px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.meaning { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 14px; color: var(--text); }
.meaning strong { color: var(--navy); font-family: var(--font-head); }
.demo-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); background: var(--tint); border-radius: 8px; padding: 8px 10px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card-actions .btn { flex: 1 1 140px; min-height: 44px; font-size: 15px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-links[hidden] { display: none; }
.nav-links .btn { flex: 1 1 140px; min-height: 48px; font-size: 15px; }
.plus-line { flex: 1 1 100%; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.plus-line strong { color: var(--navy); font-family: var(--font-head); letter-spacing: 0.03em; }
.share-line { font-size: 13px; color: var(--muted); }

.pin { background: none; border: none; }

/* Sadaļas */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); border-top: 1px solid #E3E7EE; border-bottom: 1px solid #E3E7EE; }
.section-lead { font-size: 17px; line-height: 1.55; color: var(--text); margin-top: 10px; max-width: 640px; }

.anatomy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.part { display: flex; flex-direction: column; gap: 10px; }
.part p { font-size: 14px; color: var(--muted); }
.tile { height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--white); font: 800 44px var(--font-head); }
.tile--navy { background: var(--navy); }
.tile--red { background: var(--red); }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.steps li { flex: 1 1 280px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--text); }
.num { width: 40px; height: 40px; border-radius: 20px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.num--red { background: var(--red); }

.audience { display: flex; flex-wrap: wrap; gap: 24px; }
.panel { flex: 1 1 440px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.panel h2 { font-size: 30px; }
.panel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: #24344D; }
.panel--navy { background: var(--navy); border-color: var(--navy); }
.panel--navy h2, .panel--navy strong { color: var(--white); }
.panel--navy ul { color: #E4E9F2; }

.plate-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.plate { flex: 0 1 420px; aspect-ratio: 2 / 1; background: var(--navy); border-radius: 14px; padding: 22px 26px; border: 6px solid var(--white); box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 auto; }
.plate-text { display: flex; flex-direction: column; gap: 6px; }
.plate-brand { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--red-soft); }
.plate-code { font: 800 46px/1 var(--font-head); letter-spacing: 0.04em; color: var(--white); }
.plate-qr { width: 112px; height: 112px; flex: 0 0 112px; border-radius: 8px; background:
  conic-gradient(from 90deg at 30% 30%, var(--navy) 25%, transparent 0) 0 0 / 22px 22px,
  var(--white); border: 10px solid var(--white); }
.plate-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.price { font-size: 22px; font-weight: 600; }

/* Kājene */
.site-footer { background: var(--navy); color: #D5DCE8; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.footer-brand { font: 800 22px var(--font-head); color: var(--white); margin-bottom: 8px; }
.footer-brand span { color: var(--red-soft); }
.footer-note { font-size: 14px; line-height: 1.55; max-width: 600px; margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-nav a { color: var(--white); }

@media (max-width: 720px) {
  .anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a:not(.btn) { display: none; }
  .panel { padding: 26px; }
  .plate-code { font-size: 36px; }
  .plate-qr { width: 88px; height: 88px; flex-basis: 88px; }
}

/* Karte pa visu ekrānu */
.map-full-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fff; color: #0C2343; border: 2px solid rgba(0,0,0,0.2); border-radius: 8px; cursor: pointer; padding: 0; }
.map-full-btn:hover { background: #F4F6FA; }
.map--full { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; z-index: 5000 !important; margin: 0 !important; border-radius: 0 !important; }
html.map-open, html.map-open body { overflow: hidden; }

/* Informācijas lodziņš kartē (tikai pilnekrānā) */
.map-info { display: none; background: #fff; border-radius: 14px; box-shadow: 0 4px 18px rgba(12,35,67,0.25); padding: 14px 16px; max-width: min(360px, calc(100vw - 40px)); font-family: Inter, system-ui, sans-serif; color: #0C2343; }
.map--full .map-info:not([hidden]) { display: block; }
.map-info p { margin: 0; }
.mi-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #4A5A72; }
.mi-code { font: 800 30px Archivo, Inter, sans-serif; letter-spacing: 0.04em; line-height: 1.15; }
.mi-code span { color: #A0211B; }
.mi-addr { font-size: 14px; line-height: 1.4; color: #24344D; margin-top: 2px !important; }
.mi-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mi-btns a, .mi-btns button { flex: 1 1 auto; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; font: 600 14px Inter, sans-serif; text-decoration: none; cursor: pointer; border: none; }
.mi-waze { background: #A0211B; color: #fff !important; }
.mi-g { background: #0C2343; color: #fff !important; }
.mi-copy { background: #F4F6FA; color: #0C2343; border: 1.5px solid #B9C2D0 !important; }

.map-hint { background: #0C2343; color: #fff; font: 600 14px/1.35 Inter, system-ui, sans-serif; padding: 10px 14px; border-radius: 12px; box-shadow: 0 4px 14px rgba(12,35,67,.3); max-width: min(320px, calc(100vw - 90px)); }
.map-hint[hidden] { display: none; }
.map-locate-btn.busy { animation: locpulse 1s infinite; }
@keyframes locpulse { 50% { opacity: .4; } }
.map-info .mi-note { margin-top: 8px; font-size: 13px; color: #8A4B00; }
.map-info .mi-note[hidden] { display: none; }
.map-info .mi-done { margin-top: 10px; width: 100%; min-height: 44px; border: none; border-radius: 10px; background: #0C2343; color: #fff; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; }

/* Ielu skats (cilvēciņš) */
.map-peg-btn { color: #E8A317; cursor: grab; touch-action: none; }
.map-peg-btn.on { background: #E8A317; color: #fff; }
.peg-ghost { position: fixed; z-index: 5000; pointer-events: none; background: #E8A317 !important; color: #fff !important; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.peg-mode, .peg-mode .leaflet-interactive { cursor: crosshair !important; }
.btn--sv { background: #FFF6E3; color: #8A5A00; border: 1.5px solid #F0C96B; }
.map-info .mi-btns .mi-sv { background: #FFF6E3; color: #8A5A00; border: 1px solid #F0C96B; }
.mi-btns[hidden] { display: none !important; }

/* Iebrauktuve / ieeja */
.xpin { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: grab; }
.xpop { font-family: Inter, system-ui, sans-serif; color: #0C2343; }
.xpop-h { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.xpop-tip { margin: 0 0 8px; font-size: 13px; color: #4A5A72; }
.xpop label { display: block; font-size: 12.5px; font-weight: 600; margin: 8px 0 4px; }
.xpop textarea { width: 100%; box-sizing: border-box; border: 1px solid #C9D1DD; border-radius: 8px; padding: 8px; font: 14px Inter, sans-serif; resize: vertical; }
.xpop-sw { width: 100%; min-height: 38px; border: 1px solid #C9D1DD; background: #F4F6FA; border-radius: 8px; font: 600 13.5px Inter, sans-serif; color: #0C2343; cursor: pointer; }
.xpop-row { display: flex; gap: 8px; margin-top: 10px; }
.xpop-row button { flex: 1; min-height: 40px; border-radius: 8px; border: none; font: 600 14px Inter, sans-serif; cursor: pointer; }
.xpop-del { background: #fff; color: #A0211B; border: 1px solid #E6B4B0 !important; }
.xpop-ok { background: #0C2343; color: #fff; }
.extra-box { margin-top: 14px; padding: 14px; border: 1px dashed #9FB3CC; border-radius: 12px; background: #F7F9FC; }
.btn--extra { width: 100%; background: #E8F5EC; color: #1E6B3A; border: 1px solid #A8D5B5; }
.x-help { margin: 8px 0 0; font-size: 13px; color: #4A5A72; line-height: 1.45; }
.x-list { margin: 8px 0 0; display: grid; gap: 6px; }
.x-list:empty { display: none; }
.x-item { text-align: left; background: #fff; border: 1px solid #DCE2EB; border-radius: 8px; padding: 8px 10px; font: 600 14px Inter, sans-serif; color: #0C2343; cursor: pointer; }
.x-item:hover { border-color: #9FB3CC; }
.x-lab { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 600; }
.x-note { width: 100%; box-sizing: border-box; height: 42px; border: 1px solid #C9D1DD; border-radius: 8px; padding: 0 10px; font: 15px Inter, sans-serif; }
.x-clear { margin-top: 8px; background: none; border: none; color: #A0211B; font: 600 13px Inter, sans-serif; cursor: pointer; padding: 4px 0; }
.mi-x { margin: 6px 0 0; font-size: 13px; color: #1E6B3A; font-weight: 600; }

.xpin { color: #fff; }
.xpop-h { display: flex; align-items: center; gap: 8px; }
.xpop-h .xpin { width: 28px; height: 28px; font-size: 14px; border-width: 2px; cursor: default; flex: 0 0 auto; }
.xgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.xchoice { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 8px; border: 1px solid #DCE2EB; background: #fff; border-radius: 10px; cursor: pointer; font: 600 13px Inter, sans-serif; color: #0C2343; text-align: left; }
.xchoice:hover { background: #F4F6FA; border-color: #9FB3CC; }
.xchoice .xpin { width: 28px; height: 28px; font-size: 14px; border-width: 2px; cursor: pointer; flex: 0 0 auto; }
.xpop-cancel { width: 100%; margin-top: 8px; min-height: 36px; background: none; border: none; color: #4A5A72; font: 600 13px Inter, sans-serif; cursor: pointer; }
.xrot { display: flex; gap: 8px; margin: 2px 0 4px; }
.xrot button { flex: 1; min-height: 38px; border: 1px solid #C9D1DD; background: #F4F6FA; border-radius: 8px; font: 600 13.5px Inter, sans-serif; color: #0C2343; cursor: pointer; }
.xpop-sw { margin-top: 8px; }

/* Zīmju panelis kartes apakšā */
.xpanel { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(380px, calc(100% - 16px)); max-height: calc(100% - 24px); overflow-y: auto; z-index: 1200; background: #fff; border-radius: 14px; padding: 14px 14px 12px; box-shadow: 0 10px 30px rgba(12,35,67,.3); box-sizing: border-box; -webkit-overflow-scrolling: touch; }
.xpanel[hidden] { display: none; }
.map.x-editing .map-info { display: none !important; }
/* iPhone nepietuvina lapu, ja burti ir vismaz 16 px */
.xpop textarea, .x-note, #adrese { font-size: 16px !important; }
@media (max-width: 760px) {
  .xpanel { bottom: 0; width: 100%; border-radius: 16px 16px 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .xchoice { min-height: 52px; font-size: 14px; }
  .xpop-row button, .xrot button, .xpop-sw { min-height: 46px; }
}

.walk-tip { background: #6A3FB5; color: #fff; border: none; border-radius: 999px; padding: 2px 8px; font: 700 12px Inter, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.walk-tip::before { display: none; }

/* Pārvietojamā kartīte sākumlapas kartē */
.mi-bar { display: flex; align-items: center; gap: 4px; margin: -6px -8px 8px -4px; padding: 0 0 6px 4px; border-bottom: 1px solid #EEF1F6; cursor: grab; user-select: none; touch-action: none; }
.mi-grip { flex: 1; font-size: 12px; color: #8A97AB; }
.mi-pb { width: 30px; height: 30px; border: none; background: #F4F6FA; color: #0C2343; border-radius: 6px; font: 700 17px/1 Inter, sans-serif; cursor: pointer; padding: 0; }
.mi-pb:hover { background: #E3E8EF; }
.mi-reset { display: none; }
.map-info.floating { position: absolute; z-index: 1100; margin: 0; }
.map-info.floating .mi-reset { display: inline-block; }
.map-info.drag { cursor: grabbing; opacity: .93; box-shadow: 0 14px 34px rgba(12,35,67,.38); }
.askmove { font-family: Inter, system-ui, sans-serif; color: #0C2343; }
.askmove p { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.askmove .ask-tip { margin: 8px 0 0; font-weight: 400; font-size: 12px; color: #6B7A90; }
.askrow { display: flex; gap: 6px; }
.askrow button { flex: 1; min-height: 38px; border-radius: 8px; border: none; font: 600 14px Inter, sans-serif; cursor: pointer; }
.ask-yes { background: #0C2343; color: #fff; }
.ask-no { background: #F4F6FA; color: #0C2343; border: 1px solid #C9D1DD !important; }

/* Ceļa bulta */
.path-vx { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2.5px solid #111; color: #111; font: 800 11px/17px Inter, sans-serif; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: grab; }
.path-head { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.path-ico { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }
.xchoice--path { grid-column: 1 / -1; }
.path-count { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #0C2343; }
.xrot button:disabled { opacity: .45; cursor: default; }
.map-info .mi-btns .mi-send { flex-basis: 100%; background: #E8F5EC; color: #1E6B3A; border: 1px solid #A8D5B5; }
.map-info .mi-btns .mi-sms { background: #0C2343; color: #fff !important; }
.map-info .mi-btns .mi-send { flex-basis: auto; }

/* ---- Lielā karte kā kurjeru lapā ---- */
#fullview { position: fixed; inset: 0; z-index: 5000; display: flex; flex-direction: column; background: #fff; }
#fullview[hidden] { display: none; }
.fv-top { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: calc(8px + env(safe-area-inset-top)) 18px 8px; min-height: 60px; background: #0C2343; color: #fff; }
.fv-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.fv-logo img { width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 3px; }
.fv-logo b { font: 800 18px Archivo, Inter, sans-serif; } .fv-logo b span { color: #F2B8B3; }
.fv-logo small { display: block; font-size: 12px; color: #AEBBD0; font-weight: 500; }
.fv-link { margin-left: auto; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 10px; }
.fv-close { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 8px 14px; font: 600 14px Inter, sans-serif; cursor: pointer; white-space: nowrap; }
.fv-close:hover { background: rgba(255,255,255,.1); }
.fv-main { flex: 1; display: flex; min-height: 0; }
.fv-panel { width: 420px; flex: 0 0 420px; overflow-y: auto; border-right: 1px solid #E3E8EF; background: #fff; -webkit-overflow-scrolling: touch; }
.fv-panel .search { padding: 16px; margin: 0; background: #F4F6FA; border-bottom: 1px solid #E3E8EF; }
.fv-panel .search label { font-size: 13px; }
.fv-panel .search .hint { display: none; }
.fv-panel .results { max-height: 40vh; overflow-y: auto; }
.fv-panel .code-card { margin: 0; border: none; border-radius: 0; box-shadow: none; max-width: none; width: auto; }
.fv-slot { flex: 1; position: relative; min-width: 0; }
#fullview .map.map--full { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; z-index: 1 !important; border-radius: 0 !important; }
.map:not(.map--full) .maptype { display: none; }
.map .maptype { position: static; margin-top: 10px !important; display: flex; background: #fff; border-radius: 4px; box-shadow: 0 1px 6px rgba(0,0,0,.3); overflow: hidden; }
.map .maptype button { border: none; background: #fff; color: #555; font: 500 15px Inter, sans-serif; padding: 9px 14px; cursor: pointer; }
.map .maptype button.on { color: #111; font-weight: 700; }
.map .maptype button + button { border-left: 1px solid #E3E3E3; }
@media (min-width: 900px) {
  #fullview .map-info { display: none !important; } /* datorā adrese ir kreisajā panelī */
}
@media (max-width: 899px) {
  .fv-main { flex-direction: column; }
  .fv-panel { width: 100%; flex: 0 0 auto; max-height: 45vh; border-right: none; border-bottom: 1px solid #E3E8EF; }
  .fv-panel .code-card { display: none; }
  .fv-panel .search { padding: 10px 12px; }
  .fv-panel .search label { display: none; }
  .fv-link { display: none; }
  .fv-logo small { display: none; }
  .fv-close { margin-left: auto; padding: 7px 12px; }
}
.fv-panel .search-row { display: flex !important; flex-direction: row !important; gap: 8px; flex-wrap: nowrap !important; }
.fv-panel .search-row input { flex: 1 1 auto; min-width: 0; height: 48px; }
.fv-panel .search-row .btn { flex: 0 0 auto; height: 48px; padding: 0 20px; width: auto !important; }
.fv-panel .search .status:empty { display: none; }

/* datorā zīmju panelis ir kreisajā panelī, lai neaizsedz karti */
.xpanel.xpanel--side { position: static; transform: none; width: auto; max-height: none; margin: 12px; border: 2px solid #0C2343; box-shadow: 0 6px 18px rgba(12,35,67,.15); }

.fv-done { position: sticky; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0)); }
.fv-done button { width: 100%; min-height: 50px; border: none; border-radius: 12px; background: #0C2343; color: #fff; font: 700 16px Inter, sans-serif; cursor: pointer; box-shadow: 0 4px 14px rgba(12,35,67,.25); }
.fv-done button:hover { background: #16335f; }
@media (max-width: 899px) { .fv-done { display: none; } }

.ask-item { display: block; width: 100%; text-align: left; margin-top: 6px; padding: 8px 10px; border: 1px solid #DCE2EB; background: #fff; border-radius: 8px; cursor: pointer; font: 14px Inter, sans-serif; color: #0C2343; min-height: 44px; }
.ask-item:hover { background: #F4F6FA; border-color: #9FB3CC; }
.ask-item strong { display: block; font-weight: 800; letter-spacing: .02em; }
.ask-item span { font-size: 13px; color: #4A5A72; }

/* Foto no vietas */
.x-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.x-photos:empty { display: none; }
.x-ph { position: relative; }
.x-ph img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; display: block; border: 1px solid #DCE2EB; }
.x-ph button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: #A0211B; color: #fff; font: 700 12px/1 Inter, sans-serif; cursor: pointer; padding: 0; }
.btn--photo { width: 100%; margin-top: 10px; background: #fff; color: #0C2343; border: 1px solid #C9D1DD; }
.x-photo-msg { margin: 6px 0 0; font-size: 13px; color: #1E6B3A; }
.x-photo-msg:empty { display: none; }
.x-photo-msg.err { color: #A0211B; }
.x-photo-btn[hidden] { display: none !important; }

.map-info .mi-tools { display: flex; gap: 6px; margin-top: 6px; }
.map-info .mi-tools button { flex: 1; min-height: 42px; border-radius: 10px; border: 1px solid #A8D5B5; background: #E8F5EC; color: #1E6B3A; font: 700 14px Inter, sans-serif; cursor: pointer; }
.map-info .mi-tools button[hidden] { display: none; }
.map-info .mi-photos { display: flex; gap: 6px; margin-top: 6px; }
.map-info .mi-photos:empty { display: none; }
.map-info .mi-photos img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid #DCE2EB; }
.map-info .mi-minhint { display: none; }
.map-info.min .mi-minhint { display: block !important; margin: 6px 0 0; font-size: 13px; color: #1A73E8; font-weight: 600; }
.map-info.min { cursor: pointer; }
.map-info.min > :not(.mi-bar):not(.mi-code):not(.mi-addr):not(.mi-minhint):not(.mi-photos) { display: none !important; }

/* Foto skatītājs */
.lbx{position:fixed;inset:0;z-index:99999;background:rgba(5,12,24,.97);display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}
.lbx img{max-width:100%;max-height:calc(100% - 120px);object-fit:contain;border-radius:6px}
.lbx-x{position:absolute;top:calc(14px + env(safe-area-inset-top));right:14px;background:#fff;color:#0C2343;border:none;border-radius:999px;padding:12px 18px;font:700 16px Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.lbx-p,.lbx-n{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:64px;border:none;border-radius:10px;background:rgba(255,255,255,.18);color:#fff;font:400 40px/1 sans-serif;cursor:pointer}
.lbx-p{left:8px}.lbx-n{right:8px}.lbx-p[hidden],.lbx-n[hidden]{display:none}
.lbx-c{position:absolute;bottom:calc(18px + env(safe-area-inset-bottom));left:0;right:0;text-align:center;color:#fff;font:600 14px Inter,system-ui,sans-serif}

/* Foto kartē pie mājas */
.phpin { position: relative; width: 66px; height: 50px; border: 3px solid #fff; border-radius: 8px; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.4); cursor: zoom-in; box-sizing: border-box; }
.phpin img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block; }
.phpin::after { content: ""; position: absolute; right: -11px; bottom: 6px; border: 7px solid transparent; border-left: 9px solid #fff; filter: drop-shadow(2px 0 1px rgba(0,0,0,.2)); }
.phpin b { position: absolute; left: -6px; top: -8px; background: #0C2343; color: #fff; font: 700 11px/1 Inter, sans-serif; padding: 3px 5px; border-radius: 999px; border: 2px solid #fff; }
