/* PATTAYA HOMES — публичная часть */

:root {
  --paper: #f7f3ec;
  --card: #fffdf9;
  --ink: #101815;
  --ink-soft: #2b3a34;
  --muted: #5d6a63;
  --line: #e4dccd;
  --line-strong: #cfc4b0;
  --accent: #0f5f4e;
  --accent-dark: #0b4a3c;
  --accent-soft: #d8e8e1;
  --sand: #efe7d9;
  --terra: #b4552f;
  --radius: 4px;
  --shadow: 0 18px 50px -28px rgba(16, 24, 21, 0.45);

  --on-photo: #ffffff;
  --on-photo-soft: rgba(255, 255, 255, 0.74);
  --on-photo-line: rgba(255, 255, 255, 0.36);
  --on-photo-fill: rgba(255, 255, 255, 0.12);
  --photo-veil: rgba(9, 18, 15, 0.55);
  --chip-bg: rgba(16, 24, 21, 0.68);
  --chip-ink: #f7f3ec;
  --invert-bg: #101815;
  --invert-ink: #f7f3ec;
  --invert-muted: rgba(255, 255, 255, 0.68);
  --on-accent: #ffffff;
  --map-bg: #e9efeb;
  --head-bg: rgba(247, 243, 236, 0.88);
  --hover-tint: rgba(16, 24, 21, 0.05);
  --line-soft: rgba(16, 24, 21, 0.13);
  --backdrop: rgba(4, 8, 6, 0.46);
  --veil: rgba(6, 10, 8, 0.95);
  --shadow-pop: 0 18px 40px -22px rgba(16, 24, 21, 0.9);
  --head: "Playfair Display", "Playfair Fallback", Georgia, "Times New Roman", serif;
  --sans: Inter, "Inter Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }

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

.i { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--hover-tint); }
.btn--tg { background: var(--accent); color: var(--on-accent); }
.btn--tg:hover { background: var(--accent-dark); }
.btn--light { border-color: var(--on-photo-line); color: var(--on-photo); }
.btn--light:hover { background: var(--on-photo-fill); border-color: var(--on-photo); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: gap 0.18s ease, border-color 0.18s ease;
}
.link-arrow:hover { gap: 13px; border-color: var(--ink); }
.link-arrow .i { width: 16px; height: 16px; }

/* ---------- шапка ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--head-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.brand__name { font-size: 15px; font-weight: 600; letter-spacing: 0.16em; }
.brand__sub { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 28px; font-size: 14.5px; }
.nav a { color: var(--ink-soft); opacity: 0.82; transition: opacity 0.15s; }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a.is-active { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.langs { display: flex; gap: 2px; margin-right: 4px; }
.langs a {
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.langs a:hover { color: var(--ink); background: var(--hover-tint); }
.langs a.is-active { color: var(--ink); background: var(--hover-tint); }
.langs--mobile { display: none; }
.burger {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- герой ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 86vh;
  padding: 96px 0 0;
  color: var(--on-photo);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 18, 15, 0.55) 0%, rgba(9, 18, 15, 0.18) 34%, rgba(9, 18, 15, 0.78) 100%),
    linear-gradient(90deg, rgba(9, 18, 15, 0.6), rgba(9, 18, 15, 0.05) 60%);
}
.hero__in { position: relative; z-index: 1; padding-top: 24px; }
.hero .eyebrow { color: var(--on-photo-soft); }
.hero h1 {
  font-family: var(--head);
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 0.99;
  letter-spacing: -0.02em;
  max-width: 21ch;
  margin-bottom: 24px;
}
.lede {
  max-width: 384px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--on-photo-soft);
  margin-bottom: 28px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--ghost { border-color: var(--on-photo-line); color: var(--on-photo); }
.hero .btn--ghost:hover { background: var(--on-photo-fill); border-color: var(--on-photo); }
.hero .btn--solid { background: var(--paper); color: var(--ink); }
.hero .btn--solid:hover { background: var(--on-photo); }
.hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 46px 0 0;
  padding: 24px 0 32px;
  border-top: 1px solid var(--on-photo-line);
}
.hero__stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.hero__stats dt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.hero__stats dd { margin: 0; font-family: var(--head); font-size: clamp(22px, 2.4vw, 30px); line-height: 1; }

/* ---------- секции ---------- */

.section { padding: 72px 0; }
.section--top { padding-top: 16px; }
.section--tint { background: var(--sand); }
.section--dark { background: var(--invert-bg); color: var(--invert-ink); }
.section--dark .eyebrow { color: var(--invert-muted); }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}
.section__head h2 { font-family: var(--head); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -0.015em; max-width: 24ch; }
.section__note { max-width: 34ch; font-size: 14.5px; color: var(--muted); }

/* ---------- карта районов ---------- */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 48px;
  align-items: center;
}
.map-canvas {
  position: relative;
  padding: 0;
  border-radius: 10px;
  background: var(--map-bg);
  overflow: hidden;
}
.map-live { width: 100%; height: 520px; }
.map-live .leaflet-tile-pane { filter: grayscale(0.92) contrast(0.96) brightness(1.02); }
.map-live .leaflet-control-zoom a { color: var(--ink); }
.leaflet-container { font-family: var(--sans); font-size: 12px; background: var(--map-bg); }
.leaflet-control-attribution { background: var(--card) !important; font-size: 10px !important; }
.leaflet-tooltip.map-tip { background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 8px 20px -14px rgba(16, 24, 21, 0.6); color: var(--ink); font-size: 12px; line-height: 1.45; padding: 7px 10px; border-radius: 6px; }
.leaflet-tooltip.map-tip::before { display: none; }
.map-popup .leaflet-popup-content-wrapper {
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
  padding: 0;
}
.map-popup .leaflet-popup-content { margin: 14px 16px; min-width: 168px; }
.map-popup .leaflet-popup-tip { background: var(--ink); }
.map-pop { display: flex; flex-direction: column; gap: 4px; }
.map-pop b { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.map-pop span { font-size: 12px; opacity: 0.72; }
.leaflet-container .map-pop__btn {
  text-decoration: none;
  margin-top: 8px;
  padding: 9px 14px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.map-pop__btn:active { background: var(--sand); }
@media (max-width: 1000px) {
  .map-live { height: 420px; }
  .map-popup .leaflet-popup-content { min-width: 200px; margin: 14px 16px; }
  .leaflet-container .map-pop__btn { padding: 12px 14px; font-size: 14px; }
}
.map { width: 100%; height: auto; display: block; }
.map__shape path {
  fill: var(--card);
  stroke: var(--line-soft);
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 0.18s ease, stroke 0.18s ease;
}
.map__shape a { outline: none; }
.map__shape:hover path,
.map__shape.is-hot path { fill: var(--accent-soft); stroke: var(--accent); }
.map__shape.is-current path { fill: var(--accent-soft); stroke: var(--accent); }
.map__shape a:focus-visible path { stroke: var(--accent); stroke-width: 2.2; }
.map__label {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 500;
  fill: var(--ink-soft);
  paint-order: stroke;
  stroke: var(--card);
  stroke-width: 4px;
  stroke-linejoin: round;
  letter-spacing: 0.01em;
  text-anchor: middle;
  pointer-events: none;
  transition: fill 0.18s ease;
}
.map__label.is-hot { fill: var(--accent-dark); }
.map-credit {
  position: absolute;
  right: 14px;
  bottom: 9px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.map-credit a { border-bottom: 1px dotted currentColor; }
.map-credit a:hover { color: var(--ink); }

.map-list { list-style: none; margin: 0; padding: 0; display: grid; }
.map-list__item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 14px;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 3px;
  transition: background 0.15s ease, padding 0.18s ease;
}
.map-list__item:first-child a { border-top: 1px solid var(--line-soft); }
.map-list__item a:hover,
.map-list__item.is-hot a,
.map-list__item.is-current a { background: var(--card); padding-left: 20px; }
.map-list__name { font-family: var(--head); font-size: 19px; line-height: 1.2; }
.map-list__ru { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; margin-top: 2px; }
.map-list__name, .map-list__ru { grid-column: 1; }
.map-list__meta {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 190px;
  white-space: nowrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
}
.filter-chip b { font-weight: 600; }
.filter-chip a { border-bottom: 1px solid var(--line-strong); }
.filter-chip a:hover { border-color: var(--ink); }

/* ---------- карточки ---------- */

.grid--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px 28px; }

.card { animation: rise 0.6s ease both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
  aspect-ratio: 4 / 3;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card__media img { transform: scale(1.04); }
.card__district {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--on-photo-line);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--chip-ink);
}
.card__body { padding: 16px 2px 0; }
.card__title {
  font-family: var(--head);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.3s; }
.card:hover .card__title a { background-size: 100% 1px; }
.card__specs { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price__num { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price__per { font-size: 12.5px; color: var(--muted); }
.price__alt { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.price--big { margin-bottom: 22px; }
.price--big .price__num { font-family: var(--head); font-size: clamp(30px, 3.2vw, 40px); font-weight: 500; }
.price--big .price__per { font-size: 14px; }

/* ---------- районы ---------- */

.districts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 44px;
  border-top: 1px solid var(--line-soft);
}
.district a {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas: "num name" "num ru" "num meta";
  align-items: baseline;
  gap: 1px 12px;
  padding: 15px 0 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: padding 0.2s ease, background 0.2s ease;
}
.district a:hover { background: var(--hover-tint); padding-left: 8px; }
.district__num { grid-area: num; font-family: var(--head); font-size: 18px; color: var(--terra); line-height: 1.4; }
.district__name { grid-area: name; font-family: var(--head); font-size: 21px; line-height: 1.25; }
.district__ru { grid-area: ru; font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }
.district__meta { grid-area: meta; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- шаги ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.step__num { font-family: var(--head); font-size: 26px; color: var(--terra); line-height: 1.1; }
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { grid-column: 2; font-size: 14.5px; color: var(--muted); }

/* ---------- канал ---------- */

.channel { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.channel h2 { font-family: var(--head); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; margin-bottom: 20px; max-width: 20ch; }
.channel p { color: var(--invert-muted); max-width: 52ch; margin-bottom: 28px; font-size: 15.5px; }
.mock-post {
  background: var(--on-photo-fill);
  border: 1px solid var(--on-photo-line);
  border-radius: 10px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
  font-size: 14.5px;
  line-height: 1.7;
}
.mock-post__head { display: block; font-size: 10.5px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.45); margin-bottom: 14px; }
.mock-post__meta { color: var(--invert-muted); }
.mock-post__tag {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(79, 195, 161, 0.16);
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

/* ---------- CTA ---------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 52px;
  background: var(--sand);
  border-radius: 6px;
}
.cta-band h2 { font-family: var(--head); font-size: clamp(26px, 3vw, 38px); line-height: 1.1; margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 46ch; font-size: 15px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- служебные страницы ---------- */

.page-head { padding: 60px 0 24px; }
.page-head h1 { font-family: var(--head); font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -0.02em; }
.page-head__note { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 56ch; }
.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); }

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px;
  margin-bottom: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6a63' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; cursor: pointer; }
@media (min-width: 1180px) {
  .filters { grid-template-columns: 1fr; gap: 14px; }
}
.filters .amenity-filter {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filters .amenity-filter legend {
  float: left;
  width: 100%;
  padding: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.amenity-chip { position: relative; display: inline-flex; }
.amenity-chip input { position: absolute; opacity: 0; pointer-events: none; }
.amenity-chip span {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.amenity-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.amenity-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.empty { text-align: center; padding: 80px 0; }
.empty h2 { font-family: var(--head); font-size: 30px; margin-bottom: 10px; }
.empty p { color: var(--muted); margin-bottom: 24px; }

/* ---------- карточка объекта ---------- */

.listing { padding: 52px 0 80px; }
.gallery { margin-bottom: 24px; }
.gallery__main { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery__main img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 420px; object-fit: cover; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gallery__thumb { width: 92px; flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; opacity: 0.6; transition: opacity 0.2s, transform 0.18s; }
.gallery__thumb:hover { transform: translateY(-1px); }
.gallery__thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery__thumb:hover, .gallery__thumb.is-active { opacity: 1; }
.gallery__thumb.is-active { outline: 2px solid var(--accent); outline-offset: -2px; }

.listing__cols { display: grid; grid-template-columns: minmax(0, 1fr) 366px; gap: 64px; align-items: start; }
.listing__main h1 { font-family: var(--head); font-size: clamp(32px, 4vw, 50px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 24px; }
.spec-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 32px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-row li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.spec-row .i { color: var(--accent); width: 19px; height: 19px; }
.prose { font-size: 16px; color: var(--ink-soft); }
.prose p { margin-bottom: 14px; max-width: 68ch; }
.prose h2 { font-family: var(--head); font-size: 30px; margin: 36px 0 14px; }
.prose a { border-bottom: 1px solid var(--line-strong); }
.prose--wide p { max-width: 74ch; }
.block { margin-top: 48px; }
.block > h2, .section.block h2 { font-family: var(--head); font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 20px; }
.amenities { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; margin: 0; padding: 0; }
.amenities li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.amenities .i { color: var(--accent); width: 17px; height: 17px; }

.location { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.location p { font-size: 14.5px; color: var(--muted); margin-bottom: 8px; max-width: 62ch; }
.location p strong { color: var(--ink); font-weight: 600; }
.location .link-arrow { margin-top: 6px; font-size: 13.5px; }
.tg-source { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.tg-source:hover { color: var(--accent); border-color: var(--accent); }

.booking-card { position: sticky; top: 98px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); box-shadow: var(--shadow); }
.booking-card__rows { margin: 0 0 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.booking-card__rows div { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; }
.booking-card__rows dt { color: var(--muted); }
.booking-card__rows dd { margin: 0; font-weight: 500; }
.booking-card .btn { margin-bottom: 10px; }
.booking-card__note { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.request { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 52px; background: var(--sand); border-radius: 6px; }
.request h2 { font-family: var(--head); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin-bottom: 14px; }
.request__text > p { color: var(--muted); font-size: 15px; max-width: 44ch; }
.request__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.request__list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.request__list .i { color: var(--accent); }

.lead-form { display: grid; gap: 14px; align-content: start; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.consent a { border-bottom: 1px solid var(--line-strong); }
.lead-form__note { font-size: 11.5px; color: var(--muted); text-align: center; }

/* ---------- контакты ---------- */

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contacts__info { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color 0.18s, transform 0.18s; }
.contact-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.contact-card > .i, .contact-card__icon { width: 22px; height: 22px; color: var(--accent); display: flex; }
.contact-card div { display: flex; flex-direction: column; gap: 2px; }
.contact-card span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-weight: 500; font-size: 15.5px; }
.contact-card--static { background: transparent; }
.contact-card--static:hover { transform: none; border-color: var(--line); }
.contacts__time { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 40ch; }
.contacts__form { padding: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.contacts__form h2 { font-family: var(--head); font-size: 30px; margin-bottom: 10px; }
.contacts__form > p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 6px; }
.alert--ok { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--line-strong); }

.notfound { padding: 180px 0 140px; }
.notfound h1 { font-family: var(--head); font-size: clamp(40px, 6vw, 72px); margin-bottom: 16px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ---------- футер ---------- */

.site-foot { background: var(--invert-bg); color: var(--invert-muted); padding: 76px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 52px; }
.foot-brand .brand__name { color: var(--invert-ink); display: block; margin-bottom: 16px; }
.foot-brand p { font-size: 14px; max-width: 38ch; margin-bottom: 20px; }
.foot-tg { display: inline-flex; align-items: center; gap: 9px; color: var(--invert-ink); font-size: 14px; border-bottom: 1px solid var(--on-photo-line); padding-bottom: 2px; }
.foot-tg .i { width: 17px; height: 17px; }
.foot-col { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.foot-col h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--invert-muted); margin-bottom: 4px; font-weight: 500; }
.foot-col a:hover { color: var(--invert-ink); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--invert-muted); }
.foot-legal a:hover { color: var(--invert-ink); }
.iindev-credit { margin-left: auto; }

/* ---------- адаптив ---------- */

@media (max-width: 1080px) {
  .listing__cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .booking-card { position: static; }
  .channel { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contacts { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .request { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 36px; }
}

@media (max-width: 1000px) {
  .map-layout { grid-template-columns: 1fr; gap: 32px; }
  .map-live { height: 420px; }
}

@media (max-width: 1000px) {
  .districts { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .site-head__in { gap: 14px; }
  .site-head__in .btn--tg span { display: none; }
  .site-head__in > .langs { display: none; }
  .nav--open .langs--mobile { display: flex; gap: 6px; padding-top: 4px; border-top: 1px solid var(--line); }
  .langs--mobile a { border: 1px solid var(--line); padding: 6px 12px; }
  .site-head__in .btn--tg { padding: 10px; border-radius: 50%; }
  .hero { min-height: auto; padding-top: 110px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
  .section { padding: 44px 0; }
  .section--top { padding-top: 8px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .iindev-credit { margin-left: 0; }
  .listing { padding-top: 48px; }
  .districts { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav--open {
    display: flex;
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 18px;
    padding: 22px 28px 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .site-head { position: sticky; }
  .site-head__in { position: relative; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 12px; }
  .page-head { padding: 22px 0 14px; }
  .page-head h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .page-head__note { margin-top: 10px; font-size: 14.5px; }
  .crumbs { margin-bottom: 10px; }
  .filters { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
  .filters .field > span { font-size: 10px; letter-spacing: 0.08em; }
  .filters select { padding: 10px 12px; font-size: 14px; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .lede { font-size: 15.5px; }
  .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card__title { font-size: 16px; line-height: 1.22; }
  .card__specs { font-size: 11.5px; margin-bottom: 8px; }
  .price__num { font-size: 14.5px; }
  .price__per { font-size: 11px; }
  .price__alt { font-size: 11px; }
  .card__district { left: 8px; top: 8px; padding: 4px 8px; font-size: 9.5px; }
  .card__body { padding-top: 10px; }
  .gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
  .request { padding: 24px; }
  .lead-form__grid { grid-template-columns: 1fr; }
  .contacts__form { padding: 22px; }
  .cta-band { padding: 26px; }
  .location { flex-direction: column; }
}

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

/* ---------- тёмная тема ---------- */

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d1310;
  --card: #141c18;
  --ink: #edf2ec;
  --ink-soft: #c6d2ca;
  --muted: #8fa197;
  --line: #232f29;
  --line-strong: #33413a;
  --accent: #4fc3a1;
  --accent-dark: #3ba586;
  --accent-soft: #16332b;
  --sand: #121a16;
  --terra: #d9825a;
  --shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.85);

  --on-photo: #f7f3ec;
  --on-photo-soft: rgba(247, 243, 236, 0.72);
  --on-photo-line: rgba(247, 243, 236, 0.3);
  --on-photo-fill: rgba(247, 243, 236, 0.1);
  --chip-bg: rgba(9, 18, 15, 0.74);
  --chip-ink: #f7f3ec;
  --on-accent: #06110d;
  --map-bg: #101815;
  --head-bg: rgba(13, 19, 16, 0.92);
  --hover-tint: rgba(237, 242, 236, 0.08);
  --line-soft: rgba(237, 242, 236, 0.16);
  --backdrop: rgba(0, 0, 0, 0.55);
  --shadow-pop: 0 18px 40px -22px rgba(0, 0, 0, 0.95);
}
[data-theme="dark"] body { background: var(--paper); }
[data-theme="dark"] .site-head { background: var(--head-bg); }
[data-theme="dark"] .section--dark { background: var(--invert-bg); }
[data-theme="dark"] .map-live .leaflet-tile-pane { filter: invert(0.9) hue-rotate(180deg) saturate(0.4) brightness(0.82); }
[data-theme="dark"] .leaflet-control-attribution { background: var(--card) !important; color: var(--muted); }
[data-theme="dark"] .leaflet-bar a { background: var(--card); color: var(--ink); border-bottom-color: var(--line); }
[data-theme="dark"] .leaflet-bar a:hover { background: var(--sand); }
[data-theme="dark"] .leaflet-bar { border-color: var(--line); }
[data-theme="dark"] .card__media,
[data-theme="dark"] .gallery__main { background: var(--sand); }
[data-theme="dark"] .btn--solid { background: var(--ink); color: var(--paper); }

/* ---------- переключатель темы ---------- */

.theme-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.theme-btn:hover { background: var(--hover-tint); transform: rotate(-12deg); }
.theme-btn__icon { display: none; }
.theme-btn__icon .i { width: 17px; height: 17px; }
[data-theme="light"] .theme-btn__moon,
[data-theme="dark"] .theme-btn__sun { display: inline-flex; }

/* ---------- бургер и меню ---------- */

.burger {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.16s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.burger.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.nav--open { animation: menuIn 0.26s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-10px); }
}
.nav--open > a,
.nav--open .langs--mobile {
  animation: linkIn 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.nav--open > a:nth-child(1) { animation-delay: 0.03s; }
.nav--open > a:nth-child(2) { animation-delay: 0.06s; }
.nav--open > a:nth-child(3) { animation-delay: 0.09s; }
.nav--open > a:nth-child(4) { animation-delay: 0.12s; }
.nav--open .langs--mobile { animation-delay: 0.15s; }
@keyframes linkIn {
  from { opacity: 0; transform: translateX(-8px); }
}

body.is-locked { overflow: hidden; }

.site-head { transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.25s, background 0.25s; }
.site-head.is-scrolled { box-shadow: var(--shadow); }
.site-head.is-hidden { transform: translateY(-102%); }

/* ---------- появление при скролле ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.card { animation: none; }

/* ---------- фильтры-шторка ---------- */

.catalog-bar { display: none; }
.filters__head,
.filters__foot,
.filters-backdrop { display: none; }

@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .brand__sub { display: none; }
  .brand__name { font-size: 17px; letter-spacing: 0.16em; }
  .catalog-bar { display: flex; margin-bottom: 16px; }
  .catalog-bar__open { position: relative; gap: 8px; }
  .catalog-bar__open b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 11px;
    font-weight: 600;
  }
  .filters {
    position: fixed;
    z-index: 70;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 86vw);
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 20px 18px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    transform: translateX(-102%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: var(--shadow-pop);
  }
  .filters.is-open { transform: none; }
  .filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    margin-bottom: 2px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .filters__close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: none;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .filters__close .i { width: 15px; height: 15px; }
  .filters__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    grid-column: 1 / -1;
    padding-top: 8px;
  }
  .filters__foot .btn { flex: 1; }
  .filters__reset { font-size: 13px; color: var(--muted); text-decoration: underline; }
  .filters .amenity-filter { padding-top: 8px; }
  .filters select { padding-right: 30px; font-size: 14px; text-overflow: ellipsis; }
  .filters .field select { font-size: 14px; }
  .filters .field > span { font-size: 10.5px; }
  .filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 65;
    background: var(--backdrop);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s;
  }
  .filters-backdrop.is-open { opacity: 1; pointer-events: auto; }
}

/* ---------- фото на весь экран ---------- */

.gallery__main { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--veil);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(1180px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 3px;
  transform: scale(0.985);
  transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--on-photo-line);
  border-radius: 50%;
  background: var(--on-photo-fill);
  color: var(--on-photo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lightbox__btn:hover { background: var(--on-photo-fill); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__close { top: 20px; right: 20px; transform: none; }
.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--on-photo-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
}
@media (max-width: 600px) {
  .lightbox__btn { width: 40px; height: 40px; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox img { max-height: 78vh; }
}

/* ---------- карта на странице объявления ---------- */

.location-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--map-bg);
}
.map-live--listing { height: 360px; }
.location__note { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 62ch; }
.location__links { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 600px) {
  .map-live--listing { height: 260px; }
  .location__links { gap: 10px; }
}
.leaflet-tooltip.map-tip--pin { background: var(--accent); color: var(--on-accent); border: 0; font-size: 11.5px; letter-spacing: 0.04em; padding: 4px 9px; }
.leaflet-tooltip.map-tip--pin::before { display: none; }

/* ---------- плотная мобильная вёрстка ---------- */

@media (max-width: 860px) {
  .section { padding: 34px 0; }
  .section--top { padding-top: 4px; }
  .section__head { margin-bottom: 14px; gap: 10px; }
  .section__head h2 { font-size: clamp(24px, 6.2vw, 32px); max-width: 20ch; }
  .section__note { font-size: 13.5px; }

  .page-head { padding: 12px 0 6px; }
  .page-head h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .page-head__note { margin-top: 8px; font-size: 14px; }
  .crumbs { margin-bottom: 8px; font-size: 12px; }

  .listing { padding: 14px 0 48px; }
  .listing h1 { font-size: clamp(25px, 7vw, 33px); }
  .gallery { margin-bottom: 16px; }
  .gallery__thumbs { margin-top: 6px; gap: 6px; }
  .listing__cols { gap: 26px; }
  .spec-row { margin: 0 0 20px; padding: 14px 0; gap: 8px 18px; }
  .spec-row li { font-size: 13.5px; }
  .prose { font-size: 15.5px; }
  .prose p { margin-bottom: 10px; }
  .block { margin-top: 26px; }
  .block > h2, .section.block h2 { font-size: 22px; margin-bottom: 12px; }
  .amenities { gap: 8px 14px; }
  .amenities li { font-size: 13.5px; }
  .location { padding: 16px; }

  .booking-card { padding: 18px; margin-top: 4px; }
  .request { padding: 18px; gap: 20px; }
  .lead-form { padding: 16px; gap: 12px; }

  .grid--cards { gap: 16px 10px; }
  .card__body { padding-top: 9px; }

  .hero { padding-top: 84px; }
  .hero__in { padding-top: 12px; }
  .hero .lede { margin-top: 14px; }
  .hero__cta { margin-top: 20px; gap: 10px; }
  .hero__stats { margin-top: 26px; gap: 14px; }
  .hero__stats dd { font-size: 22px; }

  .steps { gap: 18px; }
  .step p { margin-top: 6px; }
  .cta-band { padding: 22px; gap: 18px; }
  .foot-grid { gap: 24px; }
  .site-foot { padding: 34px 0 22px; }
}

@media (max-width: 600px) {
  .filters { border-radius: 0; }
  .listing h1 { font-size: 27px; }
  .map-live { height: 340px; }
  .map-live--listing { height: 240px; }
  .spec-row { padding: 12px 0; margin-bottom: 16px; }
  .gallery__main img { max-height: 320px; }
}
.map-live .leaflet-control-attribution { display: none !important; }
.map-credit { background: var(--head-bg); padding: 3px 8px; border-radius: 4px; z-index: 500; pointer-events: auto; }
[data-theme="dark"] .map-credit { background: var(--head-bg); color: var(--muted); }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 22%, transparent); outline-offset: 1px; }
[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fa197' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
[data-theme="dark"] select option { background: var(--card); color: var(--ink); }
[data-theme="dark"] .lead-form input, [data-theme="dark"] .lead-form textarea { background: var(--sand); }

/* ---------- страницы каталога ---------- */

.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 44px; }
.pager__arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.pager__arrow:hover { background: var(--card); transform: translateX(-2px); }
.pager__arrow .i { transform: rotate(180deg); }
.pager__arrow--next .i { transform: none; }
.pager__arrow--next:hover { transform: translateX(2px); }
.pager__arrow.is-disabled { opacity: 0.32; pointer-events: none; }
.pager__info { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
@media (max-width: 600px) {
  .pager { margin-top: 26px; gap: 14px; }
  .pager__arrow { width: 42px; height: 42px; }
}
.card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.44em; }
@media (max-width: 600px) { .card__title { min-height: 2.44em; } }

/* ---------- карта не перекрывает шапку и меню ---------- */

.map-live,
.map-canvas,
.location-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.site-head { z-index: 60; }
.map-credit { z-index: 1; }

/* ---------- каталог: карта с точками ---------- */

.catalog-views {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.view-btn .i { width: 15px; height: 15px; }
.view-btn:hover { color: var(--ink); }
.view-btn.is-active { background: var(--ink); color: var(--paper); }

.catalog-map {
  height: min(72vh, 680px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--map-bg);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 0;
}
.catalog-map[hidden] { display: none; }
.pager[hidden], .grid--cards[hidden] { display: none !important; }
.grid--cards[hidden] { display: none; }

.pin-wrap { background: none; border: 0; }
.pin-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s;
}
.pin-price:hover { transform: scale(1.06); }
.pin-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 600;
  border: 3px solid var(--paper);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.65);
  transition: transform 0.15s;
}
.pin-cluster:hover { transform: scale(1.05); }
.pin-card { display: block; width: 220px; color: inherit; }
.pin-card img { width: 100%; height: auto; border-radius: 6px; margin-bottom: 8px; }
.pin-card__body { display: flex; flex-direction: column; gap: 3px; }
.pin-card__body b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pin-card__body span { font-size: 12px; color: var(--muted); }
.pin-card__body strong { font-size: 14px; }
.catalog-map .leaflet-popup-content-wrapper { border-radius: 10px; }
.catalog-map .leaflet-popup-content { margin: 10px; }
@media (max-width: 600px) {
  .catalog-map { height: 62vh; }
}

.catalog-map .leaflet-tile-pane { filter: grayscale(0.92) contrast(0.96) brightness(1.02); }
[data-theme="dark"] .catalog-map .leaflet-tile-pane { filter: invert(0.9) hue-rotate(180deg) saturate(0.4) brightness(0.82); }

/* карточка выбранной точки на карте каталога */

.pin-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 380px;
}
.pin-panel[hidden] { display: none; }
.pin-panel__link { display: flex; gap: 10px; align-items: center; flex: 1; color: inherit; }
.pin-panel__link img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; }
.pin-panel__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pin-panel__text b { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pin-panel__text small { font-size: 12px; color: var(--muted); }
.pin-panel__text strong { font-size: 14px; }
.pin-panel__close {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--hover-tint);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
@media (max-width: 600px) {
  .pin-panel { left: 8px; right: 8px; bottom: 8px; max-width: none; }
}

.leaflet-container .pin-panel__link,
.leaflet-container .pin-panel__link:visited,
.leaflet-container .pin-panel__link:hover {
  color: inherit;
  text-decoration: none;
}

/* карточка и список точек на карте каталога */

.pin-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 420px;
  max-height: 60%;
  overflow: auto;
}
.pin-panel[hidden] { display: none; }
.pin-panel__body { flex: 1; min-width: 0; }
.pin-panel__link { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.leaflet-container .pin-panel__link,
.leaflet-container .pin-panel__link:visited,
.leaflet-container .pin-panel__link:hover { color: inherit; text-decoration: none; }
.pin-panel__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pin-panel__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.pin-panel__text { display: flex; flex-direction: column; gap: 3px; }
.pin-panel__text b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pin-panel__text small { font-size: 12px; color: var(--muted); }
.pin-panel__text strong { font-size: 15px; }
.pin-panel__cta { margin-top: 2px; font-size: 12.5px; color: var(--accent); }
.pin-panel__close {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--hover-tint);
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

.pin-list { display: flex; flex-direction: column; gap: 2px; }
.pin-list__item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
}
.leaflet-container .pin-list__item { color: inherit; text-decoration: none; }
.pin-list__item:last-child { border-bottom: 0; }
.pin-list__item img { width: 56px; height: 42px; object-fit: cover; border-radius: 5px; flex: none; background: var(--sand); }
.pin-list__item span { display: flex; flex-direction: column; min-width: 0; }
.pin-list__item b { font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-list__item small { font-size: 11.5px; color: var(--muted); }
.pin-list__more { padding: 8px 4px 2px; font-size: 12px; color: var(--muted); }

@media (max-width: 600px) {
  .pin-panel { left: 8px; right: 8px; bottom: 8px; max-width: none; max-height: 52%; }
}
@media (max-width: 860px) {
  .gallery__main img { max-height: 300px; }
  .gallery__thumb { width: 76px; }
}

.leaflet-control-attribution { display: none !important; }
.filters .field select,
.filters .field input { padding-left: 12px; padding-right: 30px; }
.filters .field--suffix { position: relative; }
.filters .field--suffix input { padding-right: 48px; }
.filters .field--suffix em {
  position: absolute;
  right: 12px;
  bottom: 14px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}


.catalog-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.catalog-side { position: sticky; top: 92px; }
.catalog-side .filters { margin: 0; padding: 18px; }
.catalog-side .filters .amenity-filter { grid-column: auto; }
.catalog-side .filters__foot { display: flex; margin-top: 2px; align-items: center; gap: 10px; }
.catalog-side .filters__foot .btn { flex: 1; width: auto; }
.catalog-side .filters__reset { flex: none; }
.catalog-main { min-width: 0; }
@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 24px; }
  .catalog-side { position: static; }
}
@media (max-width: 860px) {
  .catalog-layout { display: block; }
  .catalog-side { position: static; }
  .catalog-side .filters { padding: 20px 18px 28px; }
}

.catalog-side .filters {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -48px rgba(16, 24, 21, 0.5);
}
.catalog-side .filters__head { display: none; }
@media (max-width: 860px) {
  .catalog-side .filters__head { display: flex; }
  .catalog-side .filters { box-shadow: var(--shadow-pop); border: 0; border-radius: 0; }
}

.catalog-side .amenity-chip span { padding: 6px 10px; font-size: 12.5px; }
.catalog-side .filters .amenity-filter { gap: 7px; }
@media (max-width: 860px) {
  .catalog-side .amenity-chip span { padding: 6px 11px; font-size: 12.5px; }
  .catalog-side .filters .amenity-filter { gap: 7px; }
}

.catalog-main { transition: opacity 0.18s; }
.catalog-main.is-loading { opacity: 0.45; pointer-events: none; }

.field--suffix .field__control { position: relative; display: block; }
.filters .field--suffix .field__control input { width: 100%; }
.filters .field--suffix em {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.catalog-tools .catalog-views { margin-bottom: 0; }
.catalog-sort { display: inline-flex; align-items: center; gap: 8px; }
.catalog-sort span { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.catalog-sort select {
  padding: 9px 30px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.m-bar { display: flex; align-items: center; gap: 10px; }
.m-bar .m-sort { margin-left: auto; }
.m-sort select {
  padding: 8px 28px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}
@media (max-width: 600px) {
  .catalog-tools { flex-direction: column; align-items: stretch; gap: 10px; }
  .catalog-sort { justify-content: space-between; }
}

.catalog-tools__right { display: flex; align-items: center; gap: 10px; }
.grid-cols {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.grid-col {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.grid-col .i { width: 16px; height: 16px; }
.grid-col:hover { color: var(--ink); }
.grid-col.is-active { background: var(--ink); color: var(--paper); }
.grid--cards.grid--one { grid-template-columns: 1fr; gap: 28px; }
.grid--cards.grid--one .card__media img { aspect-ratio: 16 / 8; }
@media (max-width: 600px) {
  .catalog-tools__right { justify-content: space-between; }
  .grid--cards.grid--one .card__media img { aspect-ratio: 16 / 10; }
}

.gallery__main { position: relative; cursor: zoom-in; }
.gallery__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--chip-bg, rgba(16, 24, 21, 0.72));
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery__main:hover .gallery__zoom,
.gallery__main:focus-within .gallery__zoom { opacity: 1; }
.gallery__zoom .i { width: 18px; height: 18px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(8, 11, 9, 0.975);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(1200px, 94vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(10, 14, 12, 0.4);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}
body.is-locked { overflow: hidden; }
@media (max-width: 700px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__img { max-height: 78vh; }
}
