/* Йовковата Къща — общ стил (landing + блог) */
:root {
  --bg: #faf6ef;
  --bg-alt: #f1e9db;
  --text: #2b2620;
  --muted: #6b6156;
  --wood: #8b5e34;
  --terra: #a34a22;
  --green: #4a6741;
  --line: #e0d5c3;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }
h2 { font-size: 1.7rem; margin: 0 0 .75rem; }
h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--terra); margin-top: .5rem; border-radius: 2px; }
a { color: var(--terra); }
img { max-width: 100%; display: block; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

/* Навигация */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 246, 239, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; color: var(--wood); text-decoration: none; white-space: nowrap; }
nav.main { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .95rem; }
nav.main a { color: var(--text); text-decoration: none; padding: .25rem 0; }
nav.main a:hover { color: var(--terra); }
.nav-tel { font-weight: 700; color: var(--green) !important; white-space: nowrap; }

/* Hero */
.hero { position: relative; min-height: 68vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,10,.05) 35%, rgba(20,15,10,.72)); }
.hero .content { position: relative; color: #fff; padding: 2.5rem 0 2.75rem; width: 100%; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0 0 .4rem; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero p.tag { font-size: clamp(1.05rem, 2.6vw, 1.35rem); margin: 0 0 1.2rem; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero .facts { font-size: .95rem; opacity: .92; margin-top: .9rem; }

.btn {
  display: inline-block; background: var(--terra); color: #fff; text-decoration: none;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
}
.btn:hover { background: #8d3f1c; }
.btn.ghost { background: transparent; border: 2px solid #fff; margin-left: .6rem; }

/* Секции */
section.block { padding: 3rem 0; }
section.block.alt { background: var(--bg-alt); }
.lead { font-size: 1.1rem; max-width: 62ch; }
.cols { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 780px) { .cols.two { grid-template-columns: 1.1fr .9fr; } }
.cols img { border-radius: var(--radius); box-shadow: 0 4px 18px rgba(43,38,32,.18); }

ul.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
ul.checks li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; }
ul.checks li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Галерия */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* Google карта в контактите */
.map-card iframe { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--radius); display: block; }
.map-note { margin: .8rem 0 0; font-size: .9rem; color: var(--muted); }

/* Placeholder за липсваща снимка */
.ph {
  aspect-ratio: 4/3; border: 2px dashed var(--wood); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-size: .9rem; padding: 1rem; background: rgba(139,94,52,.05);
}

/* Видео (портретни клипове: не се разпъват над естествения си размер) */
video { display: block; width: auto; max-width: 100%; max-height: 62vh; margin: 0 auto; border-radius: var(--radius); box-shadow: 0 4px 18px rgba(43,38,32,.18); background: #000; }
.cols video { justify-self: center; }
.room-detail video { margin-top: 1rem; }

/* Интерактивни стаи */
.floors { display: grid; gap: 1rem; margin-top: 1.5rem; }
.floor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.floor h3 { margin: 0 0 .7rem; font-size: 1rem; color: var(--muted); font-family: inherit; text-transform: uppercase; letter-spacing: .06em; }
.rooms-row { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.room-tile { border: 2px solid transparent; border-radius: var(--radius); padding: .9rem .85rem; cursor: pointer; text-align: left; font: inherit; color: var(--text); transition: transform .15s, box-shadow .15s; }
.room-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(43,38,32,.15); }
.room-tile.active { border-color: var(--text); box-shadow: 0 4px 14px rgba(43,38,32,.2); }
.room-tile strong { display: block; margin-bottom: .15rem; }
.room-tile span { font-size: .82rem; color: rgba(43,38,32,.72); }
.room-lilava { background: #e6ddf2; }
.room-chervena { background: #f3d0c4; }
.room-zelena { background: #ddeccb; }
.room-zhalta { background: #f6e8c2; }
.room-mansarda { background: #ead9c2; }
.room-detail { margin-top: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: none; }
.room-detail.open { display: block; }
.room-detail h3 { margin: 0 0 .3rem; }
.room-detail .meta { color: var(--muted); font-size: .92rem; margin: 0 0 .6rem; }
.room-detail .gallery { margin-top: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .room-detail .gallery { grid-template-columns: repeat(3, 1fr); } }

/* Ревюта */
.stars { color: #d99a1b; letter-spacing: 2px; font-size: 1.2rem; }
blockquote.review {
  border-left: 4px solid var(--wood); margin: 1.2rem 0; padding: .4rem 0 .4rem 1.1rem;
  font-style: italic; color: var(--muted);
}
blockquote.review cite {
  display: block; margin-top: .45rem; font-style: normal;
  font-size: .85rem; color: var(--muted); opacity: .85;
}
.rating-sub { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }

/* Контакт */
.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 780px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-card p { margin: .4rem 0; }
.big-tel { font-size: 1.5rem; font-weight: 800; color: var(--green); text-decoration: none; }

/* Блог */
.post-list { display: grid; gap: 1.5rem; }
@media (min-width: 780px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .pad { padding: 1.1rem 1.3rem 1.3rem; }
.post-card h3 { margin: 0 0 .4rem; }
.post-card a.title { color: var(--text); text-decoration: none; }
.post-card a.title:hover { color: var(--terra); }
.post-meta { font-size: .85rem; color: var(--muted); }
article.post { max-width: 72ch; }
article.post img { border-radius: var(--radius); margin: 1.4rem 0; }
article.post h2::after { display: none; }
article.post h2 { font-size: 1.35rem; margin-top: 2rem; }

/* Промоции */
.promo-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.5rem; }
.promo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.promo-card h3 { margin: .3rem 0 .2rem; }
.promo-when { color: var(--muted); font-size: .85rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .05em; }
.promo-card.featured { border: 2px solid var(--terra); }
.promo-badge { display: inline-block; background: var(--terra); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; letter-spacing: .04em; }

/* Футър */
footer.site { background: #2b2620; color: #cfc5b8; padding: 2rem 0; font-size: .9rem; }
footer.site a { color: #e8ddcd; }

/* Лайтбокс */
dialog.lightbox { border: none; background: rgba(15,12,9,.92); max-width: 100vw; max-height: 100vh; padding: 1rem; }
dialog.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; margin: 0 auto; border-radius: 6px; }
dialog.lightbox::backdrop { background: rgba(15,12,9,.8); }
