/* ==========================================================================
   Виноград · Детям — стиль в духе Airbnb
   ========================================================================== */

:root {
  --rausch:   #ff385c;   /* фирменный коралл Airbnb */
  --rausch-d: #e00b41;
  --ink:      #222222;
  --ink-2:    #484848;
  --gray:     #717171;
  --line:     #dddddd;
  --line-2:   #ebebeb;
  --bg:       #ffffff;
  --bg-soft:  #f7f7f7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08);
  --shadow:   0 6px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 34px rgba(0,0,0,.18);
  --radius:   12px;
  --maxw:     1280px;
  --header-h: 80px;
  --cat-h:    66px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* Градиентные плейсхолдеры вместо фото (grad-1..4) */
.ph { background-size: cover; background-position: center; background-color: #eee; }
.grad-1 { background: linear-gradient(135deg, #ffb27a 0%, #ff6a88 100%); }
.grad-2 { background: linear-gradient(135deg, #8fe3d6 0%, #2ea3a0 100%); }
.grad-3 { background: linear-gradient(135deg, #ff9db4 0%, #ff385c 100%); }
.grad-4 { background: linear-gradient(135deg, #c3a5ff 0%, #8a5cf6 100%); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 900; background: var(--bg);
  border-bottom: 1px solid var(--line-2);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--header-h);
  padding: 0 40px; display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--rausch); font-weight: 800; }
.brand .logo { font-size: 30px; line-height: 1; }
.brand b { font-size: 22px; letter-spacing: -.02em; }
.brand .sub { color: var(--gray); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-left: 2px; }

/* поисковая «таблетка» */
.search-pill {
  margin: 0 auto; display: flex; align-items: center; height: 48px;
  border: 1px solid var(--line); border-radius: 40px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s; cursor: pointer; background: #fff;
}
.search-pill:hover { box-shadow: var(--shadow); }
.search-pill .seg { padding: 6px 18px; font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.search-pill .seg small { display: block; font-weight: 500; font-size: 12px; color: var(--gray); }
.search-pill .divider { width: 1px; height: 26px; background: var(--line-2); }
.search-pill .go {
  width: 34px; height: 34px; margin: 0 7px 0 4px; border-radius: 50%;
  background: var(--rausch); color: #fff; display: grid; place-items: center; font-size: 15px;
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-right .lnk { padding: 12px 14px; border-radius: 22px; font-weight: 700; font-size: 14px; color: var(--ink); }
.header-right .lnk:hover { background: var(--bg-soft); }
.avatar {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 40px;
  padding: 6px 8px 6px 14px; box-shadow: var(--shadow-sm); transition: box-shadow .18s;
}
.avatar:hover { box-shadow: var(--shadow); }
.avatar .menu-ic { font-size: 14px; color: var(--ink-2); }
.avatar .pic { width: 30px; height: 30px; border-radius: 50%; background: var(--ink-2); color: #fff; display: grid; place-items: center; font-size: 15px; }

.burger { display: none; }

/* ============================ CATEGORY BAR ============================ */
.catbar {
  position: sticky; top: var(--header-h); z-index: 850; background: var(--bg);
  border-bottom: 1px solid var(--line-2);
}
.catbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px; height: var(--cat-h);
  display: flex; align-items: center; gap: 8px;
}
.cats { display: flex; gap: 30px; overflow-x: auto; flex: 1; height: 100%; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: center;
  color: var(--gray); opacity: .8; border-bottom: 2px solid transparent; padding-top: 6px;
  white-space: nowrap; transition: opacity .15s, color .15s, border-color .15s; flex: 0 0 auto;
}
.cat .ic { font-size: 22px; filter: grayscale(.2); }
.cat .lbl { font-size: 12px; font-weight: 700; }
.cat:hover { opacity: 1; color: var(--ink); border-bottom-color: var(--line); }
.cat.active { opacity: 1; color: var(--ink); border-bottom-color: var(--ink); }

.filter-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 15px; font-weight: 700; font-size: 13px; color: var(--ink);
  background: #fff;
}
.filter-btn:hover { border-color: var(--ink); }
/* age dropdown via <details> */
.age-dd { position: relative; flex: 0 0 auto; }
.age-dd > summary { list-style: none; }
.age-dd > summary::-webkit-details-marker { display: none; }
.age-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line-2);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 200px; z-index: 950;
}
.age-menu button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px;
  font-weight: 700; font-size: 14px; color: var(--ink); text-align: left;
}
.age-menu button:hover { background: var(--bg-soft); }
.age-menu button.on { background: var(--ink); color: #fff; }

/* ============================ LAYOUT ============================ */
.page { max-width: var(--maxw); margin: 0 auto; padding: 26px 40px 80px; }
.page-wide { max-width: 1120px; }
.result-note { color: var(--gray); font-size: 14px; font-weight: 700; margin: 4px 0 20px; }

/* ============================ CARD (Airbnb) ============================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; }
.ab-card { cursor: pointer; }
.ab-media {
  position: relative; aspect-ratio: 20/19; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px;
  background: var(--bg-soft);
}
.ab-media .cover-img { position: absolute; inset: 0; transition: transform .35s ease; }
.ab-card:hover .cover-img { transform: scale(1.04); }
.ab-badge {
  position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--ink);
  padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 5px;
  box-shadow: var(--shadow-sm);
}
.heart {
  position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; display: grid; place-items: center;
  color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); font-size: 24px; line-height: 1;
}
.heart svg { width: 24px; height: 24px; }
.heart svg path { fill: rgba(0,0,0,.5); stroke: #fff; stroke-width: 2; }
.heart.saved svg path { fill: var(--rausch); stroke: #fff; }
.heart:hover svg path { fill: rgba(0,0,0,.65); }
.heart.saved:hover svg path { fill: var(--rausch-d); }

.ab-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ab-title { font-weight: 700; font-size: 15px; color: var(--ink); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-rate { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink); flex: 0 0 auto; }
.ab-rate .star { font-size: 13px; }
.ab-sub { color: var(--gray); font-size: 14px; margin-top: 2px; }
.ab-price { margin-top: 6px; font-size: 14px; color: var(--ink); }
.ab-price b { font-weight: 700; }

/* ============================ MAP SPLIT ============================ */
.split { display: grid; grid-template-columns: minmax(0,1fr) clamp(380px, 42%, 640px); gap: 0; }
.split-list { padding: 8px 24px 40px 0; }
.split-list .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 20px; }
.split-map {
  position: sticky; top: calc(var(--header-h) + var(--cat-h)); height: calc(100vh - var(--header-h) - var(--cat-h));
}
#map { width: 100%; height: 100%; }
.leaflet-container { font-family: var(--font); background: #e8eaed; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.pop { cursor: pointer; }
.pop .pop-img { height: 130px; border-radius: 14px 14px 0 0; position: relative; }
.pop .pop-img .ab-badge { left: 10px; top: 10px; }
.pop .pop-body { padding: 10px 12px 12px; }
.pop .pop-body h4 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.pop .pop-body .pop-sub { color: var(--gray); font-size: 13px; }
.pop .pop-body .pop-link { color: var(--rausch); font-weight: 800; font-size: 13px; margin-top: 6px; display: inline-block; }

/* марк­ер-пилюля */
.ab-pin {
  background: #fff; color: var(--ink); border: 1px solid rgba(0,0,0,.08); box-shadow: var(--shadow);
  border-radius: 999px; padding: 6px 11px; font-weight: 800; font-size: 13px; white-space: nowrap;
  transition: transform .12s, background .12s, color .12s; display: inline-flex; align-items: center; gap: 4px;
}
.ab-pin .star { color: #ff385c; }
.ab-pin:hover { transform: scale(1.06); }
.ab-pin.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.ab-pin.active .star { color: #fff; }

/* ============================ DETAIL ============================ */
.detail-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; margin: 8px 0 14px; font-size: 14px; }
.detail-back:hover { text-decoration: underline; }
.detail-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.detail-meta .star { color: var(--rausch); }
.detail-meta .dot { color: var(--gray); margin: 0 2px; }
.detail-meta u { color: var(--ink); }

/* фото-сетка Airbnb */
.gallery-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px;
  border-radius: 16px; overflow: hidden; aspect-ratio: 2/1; margin-bottom: 30px; position: relative;
}
.gallery-grid .g-hero { grid-row: 1 / span 2; position: relative; cursor: pointer; }
.gallery-grid .ph { position: relative; }
.gallery-grid .g-hero .play-hero { position: absolute; inset: 0; display: grid; place-items: center; }
.gallery-grid .g-hero .play-hero i {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center;
  font-style: normal; font-size: 26px; padding-left: 5px; color: var(--ink); box-shadow: var(--shadow-lg); transition: transform .15s;
}
.gallery-grid .g-hero:hover .play-hero i { transform: scale(1.07); }
.gallery-grid .g-hero .video-tag {
  position: absolute; left: 16px; bottom: 16px; background: rgba(0,0,0,.6); color: #fff; padding: 7px 13px;
  border-radius: 999px; font-size: 13px; font-weight: 700; backdrop-filter: blur(3px);
}
.gallery-grid .video-live { grid-row: 1 / span 2; position: relative; background: #000; }
.gallery-grid .video-live iframe, .gallery-grid .video-live video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.detail-grid { display: grid; grid-template-columns: 1fr 372px; gap: 60px; align-items: start; }
.detail-section { padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.detail-section:first-child { padding-top: 0; }
.detail-section h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.detail-lead { font-size: 17px; color: var(--ink-2); margin: 0; }

.parent-note {
  background: #fff5f7; border: 1px solid #ffd4de; border-radius: var(--radius); padding: 18px 20px;
}
.parent-note b { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 6px; }
.parent-note p { margin: 0; color: var(--ink-2); }

.hl-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hl-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.hl-list li .hic { font-size: 20px; }

/* sticky booking-style card */
.book-card {
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px;
  position: sticky; top: calc(var(--header-h) + var(--cat-h) + 16px);
}
.book-card .bc-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.book-card .bc-price { font-size: 20px; font-weight: 800; }
.book-card .bc-price span { font-weight: 500; color: var(--gray); font-size: 15px; }
.book-card .bc-rate { font-size: 14px; font-weight: 600; }
.book-card .bc-rate .star { color: var(--rausch); }
.book-card .row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.book-card .row .ic { font-size: 17px; width: 22px; text-align: center; flex: 0 0 auto; }
.book-card .row .k { color: var(--gray); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.book-card .row .v { color: var(--ink); font-weight: 600; }
.btn-primary {
  display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; margin-top: 16px;
  background: var(--rausch); color: #fff; font-weight: 800; font-size: 16px; padding: 14px; border-radius: 12px;
  transition: background .15s;
}
.btn-primary:hover { background: var(--rausch-d); }
.side-mini-map { height: 160px; border-radius: 12px; overflow: hidden; margin-top: 16px; }

.related { margin-top: 46px; }
.related h2 { font-size: 22px; font-weight: 800; margin: 0 0 20px; }

/* ============================ ARTICLES ============================ */
.hero-strip {
  border-radius: 16px; overflow: hidden; padding: 46px 44px; color: #fff; margin-bottom: 34px;
  background: linear-gradient(120deg, #ff385c 0%, #ff6a88 60%, #ff9db4 120%); position: relative;
}
.hero-strip h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 0 0 10px; max-width: 18ch; letter-spacing: -.02em; }
.hero-strip p { font-size: 17px; max-width: 54ch; margin: 0 0 20px; opacity: .96; }
.hero-strip .btn-white { background: #fff; color: var(--ink); font-weight: 800; padding: 12px 20px; border-radius: 999px; display: inline-block; }

.article-card { cursor: pointer; }
.article-card .cover { aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: 12px; }
.article-card .cover .tagx { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.95); color: var(--ink); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.article-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 5px; }
.article-card p { color: var(--gray); font-size: 14px; margin: 0 0 6px; }
.article-card .rt { color: var(--gray); font-size: 13px; font-weight: 600; }

/* ============================ FOOTER ============================ */
.site-footer { border-top: 1px solid var(--line-2); background: var(--bg-soft); margin-top: 50px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--gray); font-size: 14px; }
.footer-inner a { color: var(--ink-2); font-weight: 700; }

.empty { text-align: center; color: var(--gray); padding: 60px 20px; grid-column: 1 / -1; }

/* ============================ MOBILE ============================ */
@media (max-width: 950px) {
  .split { grid-template-columns: 1fr; }
  .split-map { position: relative; top: 0; height: 62vh; min-height: 360px; border-radius: 16px; overflow: hidden; order: -1; margin-bottom: 18px; }
  .split-list { padding-right: 0; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .book-card { position: static; }
  .gallery-grid { grid-template-columns: 1fr 1fr; aspect-ratio: 3/2; }
  .gallery-grid .g-hero, .gallery-grid .video-live { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16/9; }
  .hl-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner, .catbar-inner, .page { padding-left: 20px; padding-right: 20px; }
  .search-pill { display: none; }
  .header-right .lnk { display: none; }
  .brand { margin-right: auto; }
  .detail-title { font-size: 22px; }
}
