:root { --ink: #1F2120; --muted: #5F605C; --ochre: #D99A2B; --paper: #F6F3EE; --sans: 'Schibsted Grotesk', system-ui, sans-serif; --serif: 'Gambetta', Georgia, serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }

.top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px max(24px, calc((100% - 1440px) / 2 + 24px)); color: #fff;
  background: linear-gradient(rgba(31, 33, 32, .72), rgba(31, 33, 32, 0)); pointer-events: none; }
.brand__name { display: block; margin: 0; font: 400 26px/1.15 var(--serif); letter-spacing: -.01em; }
.brand__sub { display: block; font-size: 14px; opacity: .85; }
.stats { display: flex; gap: 28px; }
.stats div { display: flex; flex-direction: column; align-items: flex-end; }
.stats b { font: 400 30px/1 var(--serif); }
.stats span { font-size: 12px; opacity: .85; }

.stage-wrap { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.canvas { position: absolute; inset: 0; overflow: hidden; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .95s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
.zones { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.world.is-zoomed .zones { opacity: 1; transition-delay: .55s; }
.canvas .zones img { position: absolute; width: 40%; height: 40%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect; }
.canvas img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.back { position: absolute; z-index: 6; left: max(24px, calc((100% - 1440px) / 2 + 24px)); top: 92px; padding: 10px 16px; border: 0; border-radius: 4px;
  background: var(--paper); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.back[hidden] { display: none; }
.back:hover { background: #fff; }
@media (hover: none) { .back:hover { background: var(--paper); } }

.plot { fill: transparent; stroke: transparent; stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .18s, stroke .18s; }
.plot--free { fill: rgba(217, 154, 43, .16); stroke: rgba(246, 205, 120, .95); stroke-width: 1.5; }
/* Parduoti sklypai nereaguoja į pelę ir nepasirenkami (Martynas 11-28) */
.plot--sold { pointer-events: none; cursor: default; }
.plot--free.is-active { fill: rgba(217, 154, 43, .48); stroke: #fff; stroke-width: 2.4; }
@media (hover: hover) { .plot--free:hover { fill: rgba(217, 154, 43, .48); stroke: #fff; stroke-width: 2.4; } }
.plot.is-active { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .85)); }
.plot--free.is-active { fill: rgba(217, 154, 43, .7); }
.plot:focus { outline: none; }
.plot:focus-visible { outline: none; stroke: #fff; stroke-width: 3; }

.legend { position: absolute; left: max(24px, calc((100% - 1440px) / 2 + 24px)); bottom: 24px; display: flex; gap: 18px; padding: 10px 16px;
  border-radius: 4px; background: rgba(31, 33, 32, .7); color: #fff; font-size: 14px; backdrop-filter: blur(8px); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.dot--free { background: var(--ochre); border: 1px solid #F0BE60; }
.dot--sold { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .85); }

.card { position: absolute; z-index: 6; width: 250px; padding: 20px 20px 18px; border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28); pointer-events: auto; }
.card[hidden] { display: none; }
.card__status { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 13px; font-weight: 500; }
.card__status.is-free { background: var(--ochre); color: var(--ink); }
.card__status.is-sold { background: #E4DFD6; color: var(--muted); }
.card__addr { margin-top: 12px; font: 400 26px/1.15 var(--serif); letter-spacing: -.01em; }
.card__area { margin-top: 4px; font-size: 15px; color: var(--muted); }
.card__btn { display: block; margin-top: 16px; padding: 13px 14px; border-radius: 4px; background: var(--ochre); color: var(--ink); text-align: center;
  text-decoration: none; font-weight: 500; font-size: 15px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -2px 0 rgb(0 0 0 / .2); transition: background-color .2s ease; }
.card__btn[hidden] { display: none; }
.card__btn:hover { background: #E2A63C; }
.card__btn:focus-visible, .chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.card__close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; display: none; }

.free { max-width: 1440px; margin: 0 auto; padding: 80px 48px 120px; }
.free h2 { margin: 0; font: 400 clamp(32px, 3.3vw, 48px)/1.1 var(--sans); letter-spacing: -.03em; }
.free p { margin: 16px 0 32px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border: 1px solid rgb(31 33 32 / .18); border-radius: 4px; background: none;
  font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.chip b { font-weight: 500; }
.chip span { color: var(--muted); font-size: 14px; }
.chip:hover, .chip.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

@media (max-width: 767px) {
  .top { padding: 14px 16px; }
  .brand__name { font-size: 18px; }
  .brand__sub { display: none; }
  .stats { gap: 16px; }
  .stats b { font-size: 20px; }
  .stage { height: 78svh; }
  .legend { left: 16px; bottom: 12px; font-size: 13px; }
  .back { top: 64px; left: 16px; }
  .card { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
  .card__close { display: block; }
  .free { padding: 48px 20px 72px; }
}

.stage { touch-action: pan-y; cursor: grab; }
.stage.is-zoomed { touch-action: none; }
.stage.is-dragging { cursor: grabbing; }
.stage.is-dragging .plot { pointer-events: none; }

/* įžanginis drono skrydis: video kadras = bendro vaizdo centrinė iškarpa (4,94–95,02 % aukščio) */
.intro { position: absolute; left: 0; top: 4.94%; width: 100%; height: 90.08%; object-fit: fill; z-index: 2; pointer-events: none;
  transform: scale(1.111); transform-origin: 50% 50%; transition: opacity .7s ease; }
.intro.is-landing { transform: scale(1); transition: transform 2.6s cubic-bezier(.2, .7, .2, 1), opacity .7s ease; }
.intro.is-done { opacity: 0; }
.stage.is-intro .world { visibility: hidden; }
.stage.is-intro #plots, .stage.is-intro .legend, .stage.is-intro .stats { opacity: 0; }
#plots, .legend, .stats { transition: opacity .8s ease .2s; }
.skip { position: absolute; z-index: 7; right: max(24px, calc((100% - 1440px) / 2 + 24px)); bottom: 24px; padding: 10px 18px; border: 0; border-radius: 4px;
  background: rgba(31, 33, 32, .7); color: #fff; font: 500 14px var(--sans); cursor: pointer; backdrop-filter: blur(8px); }
.skip[hidden] { display: none; }
.stage.is-intro #plots { pointer-events: none; }
.canvas .depth { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.legend, .back { transition: opacity .25s ease; }
body.past-stage .legend, body.past-stage .back { opacity: 0; pointer-events: none; }

/* įdėjimas į svetainę (iframe): be antraštės, sąrašo ir su rėmo aukščiu */
html.embed .top, html.embed .free { display: none; }
html.embed body { background: transparent; }
html.embed .stage { height: 100vh; }
@media (max-width: 767px) { html.embed .stage { height: 100vh; } }

.card__parts{margin-top:8px;font-size:13px;color:var(--muted);display:grid;gap:2px}
html.embed .top, html.embed .free { display: none; }

/* Mobile QA 11-28: kortelės „×“ – didesnis paspaudimo plotas; priartinus vaizdą puslapį vis tiek galima slinkti pirštu */
@media (max-width: 767px) {
  .card__close { top: 4px; right: 4px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; }
}
@media (hover: none) {
  .stage.is-zoomed { touch-action: pan-y; }
}

/* Telefone 11-28: kompaktiška kortelė apačioje, „Visas kvartalas“ viršuje – neuždengia sklypo */
@media (max-width: 767px) {
  html.embed .back { top: 10px !important; left: 10px; padding: 8px 12px; font-size: 13px; }
  .card { bottom: 8px; left: 8px !important; right: 8px; padding: 10px 44px 10px 14px; border-radius: 12px;
    display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
  .card[hidden] { display: none; }
  .card__status { grid-column: 1; justify-self: start; font-size: 11px; padding: 2px 8px; }
  .card__addr { grid-column: 1; margin-top: 4px; font-size: 18px; }
  .card__area { grid-column: 1; margin-top: 0; font-size: 13px; }
  .card__parts { grid-column: 1 / -1; }
  .card__btn { grid-column: 2; grid-row: 1 / 4; margin-top: 0; padding: 10px 12px; font-size: 13px; line-height: 1.2; max-width: 120px; }
  .card__close { top: 2px; right: 2px; }
}
