:root {
  --ink: #12181f;
  --ink-soft: #4a5561;
  --paper: #ffffff;
  --paper-soft: #f5f6f8;
  --line: #e4e7ea;
  --brand: #1c3d5a;
  --brand-light: #2f6690;
  --free: #2f9e64;
  --reserved: #e0a324;
  --sold: #b0374a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 24, 31, 0.08);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }

.section { padding: 88px 0; }
.section--gallery { background: var(--paper); }
.section--location { background: var(--paper-soft); }
.section--plans { background: var(--paper-soft); }
.section--pricing { background: var(--paper); }
.section--finish { background: var(--paper-soft); }
.section--contact { background: var(--brand); color: white; }
.section--contact .section__lede, .section--contact h2 { color: white; }
.section__lede { max-width: 640px; }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink);
}
.brand span { color: var(--brand-light); }
.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem;
}
.nav a:hover { color: var(--brand); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px; border: none; background: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; background: white; border-bottom: 1px solid var(--line);
  overflow: hidden; max-height: 0; transition: max-height .25s ease;
}
.nav-mobile.open { max-height: 400px; }
.nav-mobile a {
  text-decoration: none; color: var(--ink); font-weight: 600; padding: 14px 24px;
  border-top: 1px solid var(--line); font-size: .95rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .95rem; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand-light); color: white; }
.btn--primary:hover { background: var(--brand); }
.btn--ghost { border-color: rgba(255,255,255,0.6); color: white; }
.btn--ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }
.btn--small { padding: 9px 20px; background: var(--brand); color: white; }

/* hero */
.hero { position: relative; color: white; min-height: 92vh; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,30,.35) 0%, rgba(12,20,30,.35) 40%, rgba(10,16,24,.9) 100%);
}
.hero__content { position: relative; z-index: 1; padding-bottom: 72px; padding-top: 160px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: #cfe0ee; margin-bottom: 10px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .3em; }
.hero__points {
  list-style: none; margin: 0 0 8px; padding: 0; max-width: 560px;
  display: flex; flex-direction: column; gap: 10px;
}
.hero__points li {
  font-size: 1.05rem; font-weight: 600; color: #e6ecf1; padding-left: 26px; position: relative;
}
.hero__points li::before {
  content: "✓"; position: absolute; left: 0; color: #7fd9a8; font-weight: 800;
}
.hero__stats { display: flex; gap: 36px; margin: 28px 0 34px; flex-wrap: wrap; }
.hero__stats .stat-value { font-size: 1.6rem; font-weight: 800; display: block; }
.hero__stats .stat-label { font-size: .82rem; color: #cfe0ee; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  margin-top: 32px;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
  cursor: pointer; display: block;
  transition: transform .35s ease, filter .35s ease;
}
.gallery img:hover { transform: scale(1.02); filter: brightness(1.03); }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery figure.span-2 { grid-column: span 2; }
.gallery figure.span-2-row { grid-row: span 2; }

/* location map */
.map-embed {
  margin-top: 28px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: white;
}
.map-embed iframe { width: 100%; height: 460px; border: 0; display: block; }
@media (max-width: 900px) {
  .map-embed iframe { height: 320px; }
}

/* plans */
.plans__tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 18px; }
.tab-btn {
  padding: 10px 22px; border-radius: 999px; border: 2px solid var(--line);
  background: white; font-weight: 700; cursor: pointer; font-size: .95rem;
  color: var(--ink-soft);
}
.tab-btn.active { background: var(--brand); border-color: var(--brand); color: white; }

.plans__legend { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-soft); font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot--free { background: var(--free); }
.dot--reserved { background: var(--reserved); }
.dot--sold { background: var(--sold); }

.fullscreen-btn {
  margin-left: auto; border: 2px solid var(--line); background: white; border-radius: 999px;
  padding: 8px 18px; font-weight: 700; font-size: .85rem; color: var(--ink-soft); cursor: pointer;
}
.fullscreen-btn:hover { border-color: var(--brand-light); color: var(--brand); }

.plan-viewer {
  background: white; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; position: relative;
}
.plan-viewer__image-wrap { position: relative; width: 100%; line-height: 0; border-radius: 10px; overflow: hidden; }
.plan-viewer__image-wrap img { width: 100%; display: block; }
.plan-viewer__close { display: none; }

.plan-viewer.is-fullscreen {
  position: fixed; inset: 0; z-index: 400; border-radius: 0;
  padding: 20px; overflow: auto; -webkit-overflow-scrolling: touch;
}
.plan-viewer.is-fullscreen .plan-viewer__image-wrap { width: 240%; max-width: none; border-radius: 0; }
.plan-viewer.is-fullscreen .plan-viewer__close {
  display: flex; align-items: center; justify-content: center;
  position: fixed; top: 16px; right: 20px; z-index: 401;
  width: 40px; height: 40px; border-radius: 999px; border: none;
  background: var(--ink); color: white; font-size: 1.6rem; cursor: pointer;
}
.plan-hotspots { position: absolute; inset: 0; }
.hotspot {
  position: absolute; cursor: pointer;
  border: 2px solid transparent;
  background: rgba(47, 158, 100, 0.0);
  transition: background .15s ease, border-color .15s ease;
}
.hotspot.status-laisva { background: rgba(47, 158, 100, 0.08); }
.hotspot.status-rezervuota { background: rgba(224, 163, 36, 0.10); }
.hotspot.status-parduota { background: rgba(176, 55, 74, 0.10); }
.hotspot:hover, .hotspot.hovered {
  background: rgba(28, 61, 90, 0.35) !important;
  border-color: var(--brand);
  z-index: 5;
}

.plan-tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .85rem;
  line-height: 1.45;
  z-index: 100;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity .1s ease;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.plan-tooltip.visible { opacity: 1; }
.plan-tooltip strong { font-size: .95rem; }
.plan-tooltip .tt-status { font-weight: 700; }
.tt-free { color: #6fe3a0; }
.tt-reserved { color: #ffd27a; }
.tt-sold { color: #ff9aab; }

/* pricing */
.pricing-controls {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin: 28px 0 18px;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-soft); font-size: .92rem; }

.table-wrap {
  background: white; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: auto; max-height: 640px;
}
.pricing-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pricing-table thead th {
  position: sticky; top: 0; background: var(--paper-soft); text-align: left;
  padding: 14px 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); border-bottom: 1px solid var(--line); z-index: 2;
}
.pricing-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.pricing-table tbody tr { cursor: pointer; }
.pricing-table tbody tr:hover { background: var(--paper-soft); }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8rem;
  padding: 4px 10px; border-radius: 999px;
}
.status-pill.laisva { background: rgba(47,158,100,.12); color: #1d7a49; }
.status-pill.rezervuota { background: rgba(224,163,36,.14); color: #96700f; }
.status-pill.parduota { background: rgba(176,55,74,.12); color: #8f2c3c; }

/* finish description */
.finish-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px;
}
.finish-card {
  background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px;
}
.finish-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.finish-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.finish-card li { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.finish-note { margin-top: 20px; font-size: .8rem; color: var(--ink-soft); }

/* contact */
.contact__inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.contact-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius); padding: 32px;
}
.contact-card__name { font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; color: white; }
.contact-card__line {
  display: block; text-decoration: none; font-size: 1.05rem; font-weight: 700;
  margin-bottom: 8px; color: white;
}
.contact-card__addr { color: #cfe0ee; margin-top: 14px; margin-bottom: 0; }

.footer { padding: 28px 0; background: #0e1620; color: #8fa2b3; font-size: .85rem; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(8,12,17,.92); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lightbox__close {
  position: absolute; top: 20px; right: 28px; background: none; border: none;
  color: white; font-size: 2.4rem; cursor: pointer; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: white;
  width: 52px; height: 52px; border-radius: 999px; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 700px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}

/* inquiry modal */
.inquiry-overlay {
  position: fixed; inset: 0; background: rgba(8,12,17,.55); z-index: 300;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.inquiry-overlay.open { display: flex; }
.inquiry-modal {
  position: relative; background: white; border-radius: var(--radius);
  padding: 32px; max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.inquiry-modal h3 { margin-bottom: 6px; }
.inquiry-modal__summary { color: var(--ink-soft); font-size: .92rem; margin-bottom: 20px; }
.inquiry-modal__close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 1.8rem; cursor: pointer; color: var(--ink-soft); line-height: 1;
}
#inquiry-form { display: flex; flex-direction: column; gap: 14px; }
#inquiry-form label {
  display: flex; flex-direction: column; gap: 6px; font-size: .85rem;
  font-weight: 700; color: var(--ink-soft);
}
#inquiry-form input, #inquiry-form textarea {
  font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  color: var(--ink); resize: vertical;
}
#inquiry-form input:focus, #inquiry-form textarea:focus {
  outline: none; border-color: var(--brand-light);
}
.inquiry-modal__submit { width: 100%; margin-top: 4px; }
.inquiry-modal__hint { font-size: .78rem; color: var(--ink-soft); margin: 8px 0 0; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery figure.span-2 { grid-column: span 2; }
  .contact__inner { grid-template-columns: 1fr; }
  .finish-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
