/* ==========================================================================
   Namai Tenerifėje — naujo šablono stiliai
   Vienas CSS failas, be jokių framework'ų. Dizaino kintamieji (tokens) yra
   viršuje – pakeitus juos vienoje vietoje, pasikeičia visa svetainė.
   ========================================================================== */

/* --- 1. Dizaino kintamieji ------------------------------------------------ */
:root {
  /* Firminės spalvos, paimtos iš dabartinės svetainės */
  --c-sky:        #add8e6; /* senos navigacijos šviesiai mėlyna */
  --c-blue:       #3884cf; /* seno footer'io mėlyna            */
  --c-royal:      #4169e1; /* nuorodų / kainų mėlyna           */
  --c-turquoise:  #0fd4cb; /* akcentinė turkio spalva          */

  /* Iš jų išvesta pilna, prieinama paletė */
  --ink:          #0b2239;
  --ink-soft:     #143550;
  --brand:        #2f74bd;
  --brand-dark:   #1d568f;
  --brand-light:  #6fb0e0;
  --accent:       #0fd4cb;
  --accent-dark:  #0aa8a1;

  --sky-50:       #f4fafd;
  --sky-100:      #e6f2f9;
  --sky-200:      #cce6f2;
  --sand-50:      #fcf9f4;

  --text:         #17293a;
  --muted:        #5b6e80;
  --line:         #e1e9f0;
  --white:        #ffffff;

  --gold:         #c9922f; /* "PARDUOTA" ir pan. ženkliukai */
  --success:      #1e9e6a;

  /* Tipografija */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   clamp(1.25rem, 0.9rem + 1vw,  1.5rem);
  --fs-2xl:  clamp(1.5rem,  1.1rem + 1.6vw, 2rem);
  --fs-3xl:  clamp(1.9rem,  1.3rem + 2.4vw, 2.75rem);
  --fs-4xl:  clamp(2.3rem,  1.4rem + 3.6vw, 3.75rem);

  /* Erdvė ir forma */
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 34, 57, .06), 0 2px 8px rgba(11, 34, 57, .05);
  --shadow-md: 0 2px 6px rgba(11, 34, 57, .06), 0 12px 28px rgba(11, 34, 57, .09);
  --shadow-lg: 0 8px 20px rgba(11, 34, 57, .10), 0 28px 60px rgba(11, 34, 57, .14);

  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Bazė -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 600; }

p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }

a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
  border-radius: var(--r-sm); transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- 3. Išdėstymo pagalbininkai ------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--sky-50); }
.section--sand { background: var(--sand-50); }
.section--ink  { background: var(--ink); color: #cfe0ee; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lg); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: ""; width: 1.75rem; height: 2px; background: var(--accent); border-radius: 2px;
}
.section-head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7;
     stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- 4. Mygtukai ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 var(--fs-sm)/1 var(--font-body);
  padding: .9rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn--accent { background: var(--accent); color: #04343a; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--sky-50); border-color: var(--brand-light); color: var(--brand-dark); }

.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
}
.link-more .i { transition: transform .2s var(--ease); }
.link-more:hover .i { transform: translateX(3px); }

/* --- 5. Viršutinė juosta ir navigacija ----------------------------------- */
.topbar {
  background: var(--ink);
  color: #b9cfe2;
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; min-height: 40px;
}
.topbar__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.25rem; }
.topbar a { color: #dcebf6; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: var(--accent); }
.topbar .i { width: 1em; height: 1em; opacity: .75; }

.lang { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.lang a {
  padding: .25rem .5rem; border-radius: var(--r-sm);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.lang a[aria-current="true"] { background: rgba(255,255,255,.12); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(11, 34, 57, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { background: rgba(11, 34, 57, .98); box-shadow: 0 10px 30px rgba(11,34,57,.25); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 168px; height: auto; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-sm); color: #fff; cursor: pointer;
}
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i--close { display: none; }
.nav-toggle[aria-expanded="true"] .i--open  { display: none; }
.nav-toggle[aria-expanded="true"] .i--close { display: block; }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .75rem; border-radius: var(--r-sm);
  color: #e3eef7; font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: rgba(255,255,255,.1); color: #fff; }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__item { position: relative; }
.nav__item--has-children > .nav__link .i { width: .85em; height: .85em; transition: transform .2s var(--ease); }
.nav__item--has-children[data-open="true"] > .nav__link .i { transform: rotate(180deg); }

.nav__sub {
  position: absolute; top: calc(100% + .4rem); left: 0; z-index: 5;
  min-width: 15rem; padding: .5rem; margin: 0;
  list-style: none; background: #fff; color: var(--text);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__item--has-children:hover > .nav__sub,
.nav__item--has-children:focus-within > .nav__sub,
.nav__item--has-children[data-open="true"] > .nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__sub a {
  display: block; padding: .55rem .75rem; border-radius: var(--r-sm);
  font-size: var(--fs-sm); color: var(--text); text-decoration: none;
}
.nav__sub a:hover { background: var(--sky-50); color: var(--brand-dark); }

.site-header .btn { margin-left: .5rem; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  /* backdrop-filter antraštėje padarytų ją containing block'u viduje esančiam
     position:fixed meniui – tada „top/bottom“ skaičiuojami nuo 74 px aukščio
     juostos, o ne nuo lango, ir skydelis lieka kelių dešimčių pikselių aukščio.
     Telefone to efekto vis tiek nesimato, todėl jo čia atsisakome. */
  .site-header, .site-header.is-stuck {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: var(--ink);
  }

  .nav {
    position: fixed;
    top: var(--nav-top, calc(var(--header-h) + 40px));
    right: 0; bottom: 0; left: auto;
    width: min(23rem, 88vw);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.25rem var(--gutter) 2.5rem;
    background: var(--ink);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    box-shadow: var(--shadow-lg);
  }
  .nav[data-open="true"] { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: .85rem .5rem; font-size: var(--fs-base); border-radius: var(--r-sm); }
  .nav__item--has-children > .nav__link { justify-content: space-between; width: 100%; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; background: transparent; box-shadow: none;
    padding: 0 0 .5rem .75rem; margin: 0;
  }
  .nav__item--has-children[data-open="true"] > .nav__sub { display: block; }
  .nav__sub a { color: #b9cfe2; padding: .55rem .5rem; }
  .nav__sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .site-header .btn { margin: 1rem .5rem 0; }
}

/* --- 6. Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid; align-items: end;
  min-height: min(78vh, 640px);
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 5rem);
  color: #fff;
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
/* Foninė nuotrauka: <picture> su atskiru vertikaliu kadru telefonams, nes
   platus horizontalus kadras siaurame ekrane apkerpamas iki siauros juostelės. */
.hero__bg { position: absolute; inset: 0; z-index: -2; display: block; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,34,57,.55) 0%, rgba(11,34,57,.32) 38%, rgba(11,34,57,.9) 100%);
}
.hero h1 { color: #fff; max-width: 18ch; text-shadow: 0 2px 24px rgba(5,20,35,.35); }
.hero__lead {
  max-width: 46ch; font-size: var(--fs-lg); color: #e4eef7; margin-bottom: 1.75rem;
  text-shadow: 0 1px 14px rgba(5,20,35,.35);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 640px) {
  .hero { min-height: 30rem; padding-block: 3rem 2.5rem; }
  .hero__lead { font-size: var(--fs-base); }
}

.hero--page { min-height: min(42vh, 360px); align-items: center; }
.hero--page h1 { font-size: var(--fs-3xl); max-width: none; margin-bottom: .25rem; }
.hero--page .hero__lead { margin-bottom: 0; }

/* Paieškos kortelė */
.searchbar-wrap { position: relative; z-index: 3; background: var(--sky-50); padding-block: 1.5rem; }
@media (min-width: 641px) {
  .searchbar-wrap { background: transparent; padding-block: 0; margin-top: -3.25rem; }
}
.searchbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1rem, 2vw, 1.5rem);
}
.searchbar__grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
}
.searchbar .field { margin: 0; }
.searchbar .btn { height: 48px; }

/* --- 7. Formų elementai --------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field > label, .field__label {
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink);
  letter-spacing: .02em;
}
.field__hint { font-size: var(--fs-xs); color: var(--muted); }

.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 .95rem;
  font: 400 var(--fs-sm)/1.4 var(--font-body); color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  appearance: none;
}
.textarea { height: auto; min-height: 9rem; padding: .85rem .95rem; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--brand-light); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47,116,189,.15);
}
.select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6e80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 1.05rem;
}
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--fs-xs); color: var(--muted); }
.check input { margin-top: .15rem; width: 1.05rem; height: 1.05rem; accent-color: var(--brand); flex: none; }

.form-note { font-size: var(--fs-xs); color: var(--muted); }
.form-status {
  display: none; align-items: center; gap: .6rem;
  padding: .85rem 1rem; margin-bottom: 1rem;
  background: #e8f7f0; color: #0f6b47; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500;
}
.form-status[data-visible="true"] { display: flex; }

/* --- 8. Objektų kortelės -------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }

.badge {
  position: absolute; top: .85rem; left: .85rem;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
}
.badge--new  { background: var(--accent); color: #04343a; }
.badge--sold { background: var(--ink); color: #fff; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.25rem; }
.card__loc {
  display: flex; align-items: center; gap: .35rem;
  font-size: var(--fs-xs); color: var(--muted); margin: 0 0 .4rem;
}
.card__title { font-size: var(--fs-lg); margin: 0 0 .75rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand-dark); }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* visa kortelė paspaudžiama */
.card { position: relative; }

.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
}
.price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--brand-dark); }
.price--sold { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; }
.card__cta { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--fs-sm); font-weight: 600; color: var(--brand); }

/* --- 9. Statistikos juosta ------------------------------------------------ */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--accent); line-height: 1; }
.stat__label { margin: .5rem 0 0; font-size: var(--fs-sm); color: #bed4e6; }

/* --- 10. Paslaugų / privalumų blokai ------------------------------------- */
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: 1rem;
  background: var(--sky-100); color: var(--brand-dark); border-radius: var(--r-md);
}
.tile__icon .i { width: 1.5rem; height: 1.5rem; }
.tile h3 { font-family: var(--font-body); font-size: var(--fs-lg); font-weight: 600; margin-bottom: .4rem; }
.tile p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* --- 11. Dviejų stulpelių „apie“ blokas ---------------------------------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  align-items: center;
}
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.split__media { position: relative; }
.split__badge {
  position: absolute; right: -1rem; bottom: -1.25rem;
  background: var(--accent); color: #04343a;
  padding: 1rem 1.25rem; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  font-weight: 700; line-height: 1.2; max-width: 11rem; font-size: var(--fs-sm);
}
.facts { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: 1.5rem; padding: 0; list-style: none; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-dark); }
.facts span { font-size: var(--fs-xs); color: var(--muted); }

/* --- 12. CTA juosta ------------------------------------------------------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-dark), var(--ink) 65%);
  color: #fff;
}
.cta::after {
  content: ""; position: absolute; inset: auto -10% -60% auto; z-index: -1;
  width: 34rem; height: 34rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(15,212,203,.35), transparent 65%);
}
.cta h2 { color: #fff; }
.cta p { color: #cfe0ee; }
.cta__inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.cta__card { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-lg); }
.cta__card h3 { margin-bottom: 1rem; }

/* --- 13. Footer ----------------------------------------------------------- */
.site-footer { background: var(--ink); color: #a8c2d6; font-size: var(--fs-sm); }
.site-footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer img.footer-logo { width: 190px; margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #a8c2d6; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .contact-line { display: flex; align-items: flex-start; gap: .6rem; }
.site-footer .i { color: var(--accent); margin-top: .15rem; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: var(--fs-xs); color: #7f9bb3;
}

/* --- 14. Breadcrumbs ------------------------------------------------------ */
.breadcrumbs { padding-block: 1rem; font-size: var(--fs-xs); color: var(--muted); background: var(--sky-50); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-dark); }

/* --- 15. Objekto puslapis ------------------------------------------------- */
.object-head { padding-block: clamp(1.75rem, 4vw, 2.5rem) 1.5rem; }
.object-head__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; }
.object-head h1 { font-size: var(--fs-3xl); margin-bottom: .4rem; }
.object-head .card__loc { font-size: var(--fs-sm); }
.object-head__price { text-align: right; }
.object-head__price .price { font-size: clamp(1.8rem, 3vw, 2.4rem); display: block; }
.object-head__price small { color: var(--muted); font-size: var(--fs-xs); }
.gallery { display: grid; gap: .75rem; }
.gallery__main {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden;
  background: var(--sky-100); border: 0; padding: 0; cursor: zoom-in; width: 100%;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__count {
  position: absolute; right: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border-radius: var(--r-pill);
  background: rgba(11,34,57,.78); color: #fff; font-size: var(--fs-xs); font-weight: 600;
  backdrop-filter: blur(4px);
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: .6rem; }
.gallery__thumb {
  aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm);
  overflow: hidden; cursor: pointer; background: var(--sky-100);
  transition: border-color .18s var(--ease), opacity .18s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-selected="true"] { border-color: var(--accent); }
.gallery__thumb:not([aria-selected="true"]):hover { opacity: .8; }

.object-layout {
  display: grid; gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  /* Viršutinį tarpą anksčiau laikė charakteristikų lentelė su savo paraštėmis;
     jos nebeliko, todėl atstumą nuo galerijos nustatome čia. */
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: var(--section-y);
}
@media (min-width: 980px) {
  .object-layout { grid-template-columns: minmax(0, 1fr) 22.5rem; align-items: start; }
}

.prose h2 { font-size: var(--fs-2xl); margin-top: 2.25rem; }
.prose p { color: #30465a; }
.prose > :first-child { margin-top: 0; }

/* Sąrašai aprašyme (ten gyvena objekto duomenys) – kad neatrodytų kaip
   priklijuoti prie paskutinės pastraipos. Taisyklė bendra visam turiniui. */
.prose ul, .prose ol { margin: 1.5rem 0; padding-left: 0; list-style: none; }
.prose ol { counter-reset: prose-list; }
.prose li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; color: #30465a; }
.prose ul > li::before {
  content: ""; position: absolute; left: .35rem; top: .66em;
  width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent);
}
.prose ol > li::before {
  counter-increment: prose-list; content: counter(prose-list) ".";
  position: absolute; left: 0; top: 0; font-weight: 600; color: var(--brand);
}

.feature-list { display: grid; gap: .65rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); list-style: none; padding: 0; }
.feature-list li { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); }
.feature-list .i { color: var(--success); width: 1.1em; height: 1.1em; }

.sidebar { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1.25rem); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.panel--accent { background: var(--sky-50); border-color: var(--sky-200); }
.panel h3 { font-size: var(--fs-lg); font-family: var(--font-body); font-weight: 600; }
.agent { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.agent__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
}
.agent__name { font-weight: 600; color: var(--ink); }
.agent__role { font-size: var(--fs-xs); color: var(--muted); }
.contact-rows { display: grid; gap: .6rem; margin-bottom: 1.25rem; list-style: none; padding: 0; }
.contact-rows a { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--ink); }
.contact-rows a:hover { color: var(--brand-dark); }
.contact-rows .i { color: var(--brand); }

/* Žemėlapis su sutikimu (GDPR) – iframe įkeliamas tik paspaudus */
.map-consent {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: 300px; padding: 2rem; gap: .75rem;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23cce6f2' stroke-width='1'/%3E%3C/svg%3E");
  border: 1px solid var(--sky-200); border-radius: var(--r-md);
}
.map-consent > .i { width: 2.75rem; height: 2.75rem; color: var(--brand); stroke-width: 1.3; }
.map-consent p { max-width: 36ch; color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--r-md); }

/* --- 16. Lightbox --------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: none; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(7, 20, 33, .94);
}
.lightbox[data-open="true"] { display: grid; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--r-md); object-fit: contain; }
.lightbox__counter { color: #cfe0ee; font-size: var(--fs-sm); text-align: center; margin-top: 1rem; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  transition: background-color .18s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn--prev  { left: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__btn--next  { right: clamp(.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__btn--close { right: clamp(.5rem, 2vw, 1.5rem); top: clamp(.5rem, 2vw, 1.5rem); }

/* --- 17. Kontaktų puslapis ------------------------------------------------ */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.contact-card {
  display: grid; gap: .35rem; padding: 1.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card .tile__icon { margin-bottom: .5rem; }
.contact-card strong { font-size: var(--fs-lg); color: var(--ink); }
.contact-card a { text-decoration: none; font-weight: 600; }
.contact-card span { font-size: var(--fs-xs); color: var(--muted); }

.faq { display: grid; gap: .75rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 1.25rem;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--brand); transition: transform .2s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details > p { margin: 0 0 1.1rem; color: var(--muted); font-size: var(--fs-sm); }

/* --- 18. Animacijos ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- 19. Spauda ----------------------------------------------------------- */
@media print {
  .topbar, .site-header, .site-footer, .cta, .sidebar, .lightbox, .gallery__thumbs { display: none !important; }
  body { color: #000; }
  .object-layout { display: block; }
}
