@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap");

:root {
  --bg: #eef2ee;
  --bg-2: #f7f9f6;
  --surface: #ffffff;
  --ink: #14241c;
  --muted: #5a6b61;
  --line: #d5ddd6;
  --green: #1f4d3a;
  --green-2: #2f6b50;
  --accent: #b8893d;
  --free: #1f7a4c;
  --reserved: #b8893d;
  --rented: #6b7280;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(20, 36, 28, 0.08);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 77, 58, 0.08), transparent 60%),
    linear-gradient(180deg, #f4f7f3 0%, var(--bg) 40%, #e8efe9 100%);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1140px, 92vw); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem .8rem; z-index: 100; border-radius: 8px; }

.topbar {
  background: var(--green);
  color: #d7e5dd;
  font-size: .88rem;
}
.topbar .wrap {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; flex-wrap: wrap;
}
.topbar a { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 246, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 800; }
.brand img { height: 40px; width: auto; }
.brand span { font-size: .82rem; color: var(--muted); font-weight: 600; display: block; }
.nav { display: flex; gap: 1.15rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--green); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: .45rem .7rem; font-size: 1.1rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; border: 0; border-radius: 12px;
  padding: .8rem 1.15rem; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #1a1508; }
.btn-outline {
  background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff;
}
.btn-dark-outline {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(12, 28, 20, .88) 0%, rgba(20, 50, 36, .55) 48%, rgba(184, 137, 61, .25) 100%),
    url("../images/hero.jpg") center/cover no-repeat,
    linear-gradient(135deg, #163528, #2a5a42 55%, #3d6b4f);
}
.hero .wrap { padding: 4.5rem 0 3.2rem; width: min(1140px, 92vw); }
.hero-badge {
  display: inline-block; border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: .35rem .8rem; font-size: .82rem;
  color: #dce8e0; margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05; margin: 0 0 1rem; max-width: 14ch;
  font-weight: 700;
}
.hero .lead { max-width: 48ch; color: #d7e2db; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem;
}
.hero-meta span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: .65rem .9rem; font-size: .9rem;
}

.section { padding: 3.4rem 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 .45rem;
}
.sub { color: var(--muted); margin: 0 0 1.4rem; max-width: 58ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }

.space-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.space-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.space-card:hover { transform: translateY(-3px); }
.space-visual {
  aspect-ratio: 16/10;
  background:
    linear-gradient(145deg, #dfe8e2, #c5d4cb 40%, #e8efe9),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(31,77,58,.04) 24px, rgba(31,77,58,.04) 25px);
  position: relative;
  display: grid; place-items: center;
  color: var(--green);
  font-family: var(--display);
  font-size: 1.5rem;
}
.space-visual small { display: block; font-family: var(--font); font-size: .75rem; color: var(--muted); margin-top: .25rem; text-align: center; }
.badge {
  position: absolute; top: .7rem; left: .7rem;
  border-radius: 999px; padding: .3rem .65rem;
  font-size: .75rem; font-weight: 800; color: #fff;
}
.badge-laisva { background: var(--free); }
.badge-rezervuota { background: var(--reserved); color: #1a1508; }
.badge-isnuomota { background: var(--rented); }
.space-body { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.space-body h3 { margin: 0; font-size: 1.05rem; }
.space-meta { color: var(--muted); font-size: .9rem; }
.space-price { font-weight: 800; color: var(--green); margin-top: .3rem; }
.space-body .more { margin-top: auto; padding-top: .7rem; color: var(--green); font-weight: 700; }

.filters {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem;
  align-items: end;
}
.filters label { display: grid; gap: .25rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.filters select, .filters input, .form input, .form textarea, .form select {
  border: 1px solid var(--line); border-radius: 10px;
  padding: .65rem .75rem; font: inherit; background: #fff; min-width: 140px;
}
.form { display: grid; gap: .8rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success, .form-error {
  border-radius: 12px; padding: .85rem 1rem; margin-bottom: 1rem;
}
.form-success { background: #e7f6ec; color: #14532d; border: 1px solid #b7e4c7; }
.form-error { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }

.landing { padding: 2.2rem 0 3.2rem; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.breadcrumb a { color: var(--green); font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem; align-items: start; }
.detail-visual {
  border-radius: var(--radius);
  min-height: 320px;
  background: linear-gradient(145deg, #d9e5dc, #b8c9bd 50%, #e8efe9);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 2rem; color: var(--green);
}
.specs { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.specs th, .specs td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.specs th { width: 40%; background: #f1f5f2; }

.map-embed {
  border: 0; width: 100%; height: 360px; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.cta-band {
  background: linear-gradient(135deg, #163528, #1f4d3a 60%, #2f6b50);
  color: #fff; border-radius: var(--radius); padding: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.cta-band h2 { margin: 0; font-family: var(--display); font-size: 1.45rem; color: #fff; }
.cta-band p { margin: .35rem 0 0; color: #c9d8cf; }

.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 1rem 1.1rem;
  display: none; max-width: 720px; margin: 0 auto;
}
.cookie.show { display: block; }
.cookie p { margin: 0 0 .8rem; color: var(--muted); font-size: .92rem; }
.cookie .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

footer {
  background: #0f1c16; color: #9eb0a6; padding: 2.4rem 0 1.4rem; margin-top: 2rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.2rem; }
footer h4 { color: #fff; margin: 0 0 .6rem; }
footer a:hover { color: #fff; }
.legal { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid #24362d; font-size: .88rem; }
address { font-style: normal; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1rem; gap: .75rem;
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
  .grid-3, .grid-2, .space-grid, .detail-grid, .footer-grid, .form .row, .cta-band {
    grid-template-columns: 1fr; display: grid;
  }
  .hero { min-height: 70vh; }
}
