*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #1E2A38;
  --sea:    #0E5A8A;
  --sand:   #dff4ff;
  --wa:     #25D366;
  --tg:     #2AABEE;
  --white:  #FFFFFF;
  --max:    760px;
  /* aliases */
  --text:   #1E2A38;
  --accent: #0E5A8A;
}

body {
  font-family: 'PT Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 80px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

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

/* ── Горна лента — full-bleed ── */
.top-strip{width:100%;background:var(--sand);padding:16px 16px 20px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.site-brand-link{font-family:'PT Sans',Arial,sans-serif;font-weight:700;font-size:14px;color:inherit;text-decoration:none}
.top-strip-loc{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;font-family:'PT Serif',Georgia,serif;font-weight:700;font-size:clamp(24px,5.5vw,34px);color:var(--ink)}
.top-strip-loc svg{flex:none;width:28px;height:28px;color:var(--sea)}

/* ── Hero — full-bleed ── */
.hero-wrap { position: relative; width: 100%; }
.hero-wrap img {
  width: 100%;
  height: clamp(260px, 42vw, 460px);
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
.hero-price {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: clamp(20px, 5vw, 28px);
  color: var(--sea);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  white-space: nowrap;
}

/* ── Info strip — full-bleed фон, вътрешен контейнер с ширина на .wrap ── */
.info-strip { width: 100%; background: var(--sand); }
.info-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 16px;
  display: grid;
  gap: 10px;
}
.info-strip-inner .owner-badge {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.info-strip-inner .desc { font-size: 16px; color: var(--ink); line-height: 1.5; }

@media (min-width: 640px) {
  .info-strip-inner { grid-template-columns: 1fr 2fr; align-items: center; gap: 24px; }
}

/* ── Masonry галерия ── */
.gallery { column-count: 2; column-gap: 10px; margin-top: 10px; }
.gallery a { display: block; break-inside: avoid; margin-bottom: 10px; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; display: block; border-radius: 6px; }

@media (min-width: 640px) {
  .gallery { column-count: 3; }
  .btns { flex-direction: row; justify-content: center; }
}

/* ── Facts ── */
.facts {
  background: var(--sand);
  border-radius: 8px;
  padding: 24px 20px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.facts h2 {
  font-family: 'PT Serif', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
}
.facts ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.facts li { padding-left: 20px; position: relative; font-size: 0.97rem; }
.facts li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--sea); font-weight: 700;
}

/* ── Owner block ── */
.owner-block {
  background: var(--sand);
  border-radius: 8px;
  padding: 24px 20px;
  margin-bottom: 32px;
}
.owner-block h2 {
  font-family: 'PT Serif', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.owner-block p { font-size: 0.97rem; line-height: 1.7; color: #2d3748; }

/* ── Contact ── */
.contact-block { text-align: center; padding: 28px 0; margin-bottom: 8px; }
.contact-note { font-size: 0.9rem; color: #4a5568; margin-bottom: 12px; }
.phone-link {
  display: block;
  font-family: 'PT Serif', serif;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 700;
  color: var(--sea);
  text-decoration: none;
  margin-bottom: 20px;
  line-height: 1.2;
}
.phone-link:hover { text-decoration: underline; }

.btns {
  display: flex; flex-direction: column; gap: 10px;
  align-items: center;
}
.btns .btn { min-width: 210px; text-align: center; }
.btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 15px 20px; border-radius: 8px;
  font-family: 'PT Sans', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  text-decoration: none; color: var(--white); line-height: 1;
}
.btn:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.btn-wa, .btn.wa { background: var(--wa); }
.btn-tg, .btn.tg { background: var(--tg); }
.btn svg { flex-shrink: 0; }

/* ── Sticky bar ── */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid rgba(30,42,56,.12);
  box-shadow: 0 -2px 10px rgba(30,42,56,.06);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  z-index: 10;
}
.stickybar .cta-text { font-size: 15px; color: var(--ink); font-weight: 700; }
.stickybar .btn { padding: 11px 18px; font-size: 16px; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 28px 0 12px;
  border-top: 1px solid #e2e8f0;
}
.site-footer a { color: var(--sea); text-decoration: none; font-size: 0.97rem; }
.site-footer a:hover { text-decoration: underline; }

/* ── Главна страница ── */
body.home-page{background:#FBF1DC}
.tile{background:#fff}
.home-header{position:relative;width:100%;height:clamp(280px,46vw,480px);overflow:hidden;display:flex;align-items:center;justify-content:center}
.home-header-bg{position:absolute;inset:0;z-index:0}
.home-header-bg img{width:100%;height:100%;object-fit:cover;display:block}
.home-header-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom, rgba(10,20,30,.25), rgba(10,20,30,.5))}
.home-header-content{position:relative;z-index:1;text-align:center;color:#fff;padding:0 20px}
.site-brand{font-family:'PT Serif',Georgia,serif;font-weight:700;font-size:clamp(30px,7.5vw,48px);letter-spacing:.01em;margin-bottom:10px;text-shadow:0 2px 14px rgba(0,0,0,.45);color:#fff;text-decoration:none;display:inline-block}
.tagline{font-family:'PT Sans',Arial,sans-serif;font-weight:700;font-size:clamp(16px,3.8vw,22px);letter-spacing:.03em;text-transform:uppercase;text-shadow:0 2px 10px rgba(0,0,0,.4)}
.home-header-below{text-align:center;padding:24px 20px 8px}
.home-sub{font-size:16px;color:#4a5866;margin-bottom:16px;max-width:520px;margin-left:auto;margin-right:auto}

.tiles-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}
.tile{display:block;border-radius:10px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 2px 10px rgba(30,42,56,.08)}
.tile img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.tile-info{padding:12px 14px 14px}
.tile-price{font-family:'PT Serif',Georgia,serif;font-weight:700;font-size:20px;color:var(--sea)}
.tile-loc{font-size:14px;color:var(--ink);margin:2px 0 8px}
.tile-badge{display:inline-block;font-size:12px;font-weight:700;padding:4px 9px;border-radius:4px}
.tile-badge.owner{background:#F5D98B;color:#5C4300}
.tile-badge.safe{background:var(--sand);color:var(--ink)}

.bottom-cta{text-align:center;padding:32px 0 40px;border-top:1px solid rgba(30,42,56,.1);margin-top:20px}
.bottom-cta p{font-size:16px;color:var(--ink);margin-bottom:12px}
.bottom-cta .phone{display:block;margin-bottom:14px}
.bottom-cta .btn{display:inline-block;max-width:280px}

@media(min-width:640px){.tiles-grid{grid-template-columns:repeat(3,1fr)}}

/* ── Share button ── */
.share-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--sand);color:var(--ink);text-decoration:none}
.share-btn:hover{background:#e5ecf5}

/* ── Hero square (single-image pages) ── */
.hero-square { width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: 8px; margin: 20px 0; }
.hero-square img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Lightbox ── */
.lb-overlay {
  position: fixed; inset: 0; background: rgba(10,14,18,.94);
  display: none; align-items: center; justify-content: center;
  z-index: 300;
}
.lb-overlay.open { display: flex; }
.lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: none; color: #fff;
  font-size: 34px; line-height: 1; cursor: pointer; padding: 10px;
}
.lb-close { top: 10px; right: 14px; font-size: 30px; }
.lb-prev  { left: 6px;  top: 50%; transform: translateY(-50%); font-size: 48px; }
.lb-next  { right: 6px; top: 50%; transform: translateY(-50%); font-size: 48px; }
.lb-close:focus-visible,
.lb-prev:focus-visible,
.lb-next:focus-visible { outline: 2px solid #fff; }
.lb-count {
  position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center; color: #fff; font-size: 14px; opacity: .85;
}
@media (min-width: 640px) {
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
}

/* badge-pill + hero-owner-ribbon */
.info-strip-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.badge-pill{display:inline-block;font-weight:700;font-size:14px;padding:5px 12px;border-radius:6px}
.badge-pill.owner{background:#F5D98B;color:#5C4300}
.badge-pill.promo{background:#FFD9B3;color:#7A3B00}
.hero-owner-ribbon{position:absolute;top:20px;left:16px;background:#F5D98B;color:#5C4300;padding:8px 14px;border-radius:8px;font-family:'PT Sans',Arial,sans-serif;font-weight:700;font-size:13px;box-shadow:0 4px 14px rgba(0,0,0,.18);white-space:nowrap;z-index:2}
