/* ============================================================
   Центр Гостеприимства — дизайн-система (редизайн v2)
   Светлая, фотографичная, минималистичная эстетика
   ============================================================ */

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #E6E1D7;
  --surface: #ffffff;
  --surface-2: #f0efe9;
  --ink: #171b18;
  --ink-soft: #666e67;
  --ink-faint: #9a9f97;
  --green: #414D35;
  --green-dark: #0e2418;
  --green-soft: #e7efe9;
  --gold: #e0a83a;
  --border: #e6e4dd;
  --danger: #b0402f;
  --success: #2f7d4f;

  --shadow-sm: 0 1px 3px rgba(20, 25, 20, .06), 0 1px 2px rgba(20,25,20,.04);
  --shadow-md: 0 8px 24px rgba(20, 25, 20, .10);
  --shadow-lg: 0 20px 50px rgba(20, 25, 20, .16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --container-w: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 500; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--surface-2); }
.hero-top { padding-top: 24px; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 700; margin-bottom: 6px;
}
.heading-bracket { display: inline-block; height: 1.8em; width: auto; vertical-align: middle; margin: 0 .08em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .93rem; transition: transform .15s ease, box-shadow .15s ease, background .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow-md); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--border);
  font-size: 1.1rem;
}
.icon-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.icon-btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Шапка ---------- */
#site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
/* На главной лого и поиск уже есть на фото-баннере — в шапке дублировать не нужно */
body.page-home #site-header .logo,
body.page-home #site-header .header-search,
body.page-news #site-header .header-search,
body.page-guide #site-header .header-search,
body.page-survey #site-header .header-search,
body.page-object #site-header .header-search { visibility: hidden; }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 2px 0; }
.logo { display: flex; align-items: center; white-space: nowrap; }
.logo .logo-icon { height: 46px; width: auto; display: block; }
.header-search { justify-self: center; width: 100%; max-width: 480px; position: relative; }
.header-search input {
  width: 100%; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); font-size: .92rem;
}
.header-search input:focus { outline: none; border-color: var(--green); background: #fff; }
.header-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none;
}
.header-search input { padding-left: 40px; }
.header-actions { display: flex; align-items: center; gap: 12px; justify-self: end; }
.hamburger-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm); border: none;
  background: transparent; display: flex; align-items: center; justify-content: center; padding: 0;
}
.menu-icon {
  display: block; width: 22px; height: 16px; background-color: #414D35;
  -webkit-mask-image: url('../images/menu-icon.png');
  mask-image: url('../images/menu-icon.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Выпадающее меню-гамбургер */
.nav-panel {
  position: absolute; top: calc(100% + 8px); right: 24px; width: 300px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; display: none; z-index: 250; max-height: 80vh; overflow-y: auto;
}
.nav-panel.open { display: block; }
.nav-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: .93rem; color: var(--ink);
}
.nav-panel a:hover { background: var(--surface-2); }
.nav-panel a .chev { color: var(--ink-faint); }
.nav-panel .nav-divider { height: 1px; background: var(--border); margin: 8px 6px; }
.nav-panel .nav-sub { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

/* Оверлей поиска с автоподсказками */
.search-suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  overflow-y: auto; overflow-x: hidden; max-height: 640px; z-index: 220; display: none; text-align: left;
}
.search-suggest.open { display: block; }
.search-suggest a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 20px; color: var(--ink); font-size: .93rem; border-bottom: 1px solid var(--border);
}
.search-suggest a:last-child { border-bottom: none; }
.search-suggest a:hover { background: var(--surface-2); }
.search-suggest a .chev { color: var(--ink-faint); }
.search-suggest .empty { padding: 16px 20px; color: var(--ink-soft); font-size: .9rem; }

@media (max-width: 860px) {
  .header-search { display: none; }
}

/* ---------- Hero ---------- */
.home-hero-photo { position: relative; width: 100%; height: 600px; overflow: hidden; border-radius: var(--radius-xl); }
.home-hero-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.home-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; padding: 20px 20px 90px;
}
.home-hero-overlay .home-hero-search { margin-top: 36px; }
.home-hero-overlay .home-hero-logo { width: 150px; height: auto; }
.home-hero-overlay h1 { color: #E6E1D7; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.home-hero-search {
  position: relative; display: flex; gap: 8px; background: #E6E1D7; padding: 5px;
  border-radius: 999px; box-shadow: var(--shadow-lg); width: 100%; max-width: 540px;
}
.home-hero-search input {
  flex: 1; min-width: 0; border: none; padding: 8px 18px; border-radius: 999px; font-size: .95rem;
  background: #E6E1D7; color: var(--ink);
}
.home-hero-search input:focus { outline: none; background: #E6E1D7; }
.home-hero-search .search-suggest { left: 8px; right: 8px; text-align: left; }
.home-hero-search .btn-primary { background: #E6E1D7; color: #414D35; padding-top: 8px; padding-bottom: 8px; }
.home-hero-search .btn-primary:hover { background: #d9d3c5; }
@media (max-width: 700px) {
  .home-hero-photo { height: 400px; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-md) var(--radius-md); }
  .home-hero-overlay .home-hero-logo { width: 100px; }
  .home-hero-search .btn-primary { padding-left: 14px; padding-right: 14px; white-space: nowrap; }
}

.hero { padding: 12px 0 24px; text-align: center; }
.hero h1 { max-width: 720px; margin: 0 auto .4em; }
.hero .lead { max-width: 620px; margin: 0 auto; color: var(--ink-soft); font-size: 1.08rem; }

/* Плитки категорий (мозаика) */
.tile-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 108px; gap: 12px; margin-top: 36px; }
.tile-grid.tile-grid--big { grid-auto-rows: 160px; }
.category-tile {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 14px;
  box-shadow: var(--shadow-sm);
}
.category-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,14,0) 40%, rgba(10,20,14,.72) 100%);
}
.category-tile span.label { position: relative; z-index: 2; color: #fff; font-weight: 700; font-size: .92rem; }
.category-tile span.count {
  position: relative; z-index: 2; margin-left: auto; color: #fff; font-weight: 700; font-size: .82rem;
  background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.category-tile.soon span.count { background: rgba(255,255,255,.16); }
@media (max-width: 980px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }

.view-all-link { display: block; text-align: right; margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--green); }
.view-all-link:hover { text-decoration: underline; }

/* ---------- Feature frame (Озеро Рица) ---------- */
.feature-frame {
  background: var(--surface-2); border-radius: var(--radius-xl); padding: 20px;
  display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: stretch;
}
@media (max-width: 860px) { .feature-frame { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.feature-card h3 { font-size: 1.5rem; margin: 0; }
.feature-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-soft); }
.feature-list li .tick {
  width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0;
}
.feature-photo { border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Новости ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 22px; row-gap: 40px; max-width: 80%; margin: 0 auto; }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; max-width: 100%; } }
.news-card { position: relative; background: #fff; border-radius: 28px; box-shadow: var(--shadow-sm); }
.news-card-photo { border-radius: 28px 28px 0 0; overflow: hidden; line-height: 0; }
.news-card-photo img { width: 100%; height: auto; display: block; }
.news-card-body { padding: 16px 20px 28px; }
.news-tag {
  display: block; font-size: .78rem; text-transform: none; letter-spacing: 0; font-weight: 700;
  margin-bottom: 6px;
}
.news-tag.event { color: #E6E1D7; }
.news-tag.region { color: var(--green); }
.news-card-body h3 { font-size: 1.1rem; margin: 0; line-height: 1.3; }
.news-card-arrow {
  position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #612B2B;
}
.news-card-arrow:hover { background: #612B2B; color: #fff; border-color: #612B2B; }

/* ---------- CTA-баннер во всю ширину ---------- */
.cta-banner {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; background-size: cover; background-position: center;
}
.cta-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,16,11,.82) 10%, rgba(8,16,11,.15) 70%); }
.cta-banner-content { position: relative; z-index: 2; padding: 40px; max-width: 520px; color: #fff; }
.cta-banner-content .eyebrow { color: #d9c98a; }
.cta-banner-content h2 { color: #fff; margin-bottom: .3em; }
.cta-banner-content p { color: rgba(255,255,255,.82); margin-bottom: 20px; }

/* ---------- Highlight block (коллаж фото) ---------- */
.highlight-block { display: grid; grid-template-columns: 1fr 420px; gap: 50px; align-items: center; }
@media (max-width: 900px) { .highlight-block { grid-template-columns: 1fr; } }
.highlight-block.reverse { direction: rtl; }
.highlight-block.reverse > * { direction: ltr; }
.highlight-text p { color: var(--ink-soft); }
.highlight-collage { position: relative; height: 360px; }
.highlight-collage .main-photo { position: absolute; top: 0; right: 0; width: 78%; height: 78%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.highlight-collage .sub-photo-1 { position: absolute; bottom: 0; left: 0; width: 48%; height: 42%; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); border: 4px solid #fff; }
.highlight-collage .sub-photo-2 { position: absolute; bottom: 20%; left: 32%; width: 34%; height: 32%; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); border: 4px solid #fff; }
.highlight-collage img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Newsletter ---------- */
.newsletter-bar {
  background: linear-gradient(120deg, #b8532f, #E2704E);
  border-radius: var(--radius-xl); padding: 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.newsletter-bar h2 { color: #fff; margin-bottom: .2em; }
.newsletter-bar p { color: rgba(255,255,255,.78); margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 18px; border-radius: 999px; border: none; min-width: 240px; font-size: .92rem;
}
.newsletter-form input:focus { outline: 2px solid var(--gold); }

/* ---------- Карта + контактная форма ---------- */
.map-contact { position: relative; max-width: 900px; margin: 0 auto; }
.map-contact .map-embed-big { width: 100%; height: 380px; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); }
.map-contact .map-embed-big iframe { width: 100%; height: 100%; border: 0; }
.map-contact-form {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px;
  width: min(320px, 90%); padding-bottom: 34px;
}
.map-contact-form h3 { font-size: .95rem; margin-bottom: 10px; }
.map-contact-form .field { margin-bottom: 10px; }
.map-contact-form .field label { font-size: .78rem; margin-bottom: 4px; }
.map-contact-form .field input, .map-contact-form .field textarea { padding: 8px 10px; font-size: .85rem; }
.map-contact-form .field-row { gap: 8px; }
.map-contact-form .btn { padding: 9px 16px; font-size: .83rem; }
@media (min-width: 900px) {
  .map-contact-form { position: absolute; top: 50%; right: 40px; transform: translateY(-50%); }
}
@media (max-width: 899px) {
  .map-contact { display: flex; flex-direction: column; gap: 20px; }
  .map-contact-form { width: 100%; }
  .map-contact .map-embed-big { width: 100%; }
}

/* ---------- Формы ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--ink-faint); font-size: .78rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-msg { padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 14px; font-size: .9rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--green-soft); color: var(--success); }
.form-msg.err { background: #f6dede; color: var(--danger); }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; color: var(--ink-soft); }
.star-picker { display: flex; gap: 6px; font-size: 1.4rem; color: var(--border); cursor: pointer; }
.star-picker span.active { color: var(--gold); }

/* ---------- Каталог: страница категории ---------- */
.page-hero {
  position: relative; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background-color: var(--green-dark); background-size: cover; background-position: center; color: #fff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl); overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,13,.35), rgba(10,18,13,.65)); }
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.breadcrumbs { font-size: .85rem; color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { text-decoration: underline; }

.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 28px 0 22px; }
.results-count { color: var(--ink-soft); font-size: .9rem; }
.filter-opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: .88rem; }
.filter-opt input { accent-color: var(--green); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-weight: 600; font-size: .87rem; color: var(--ink-soft);
}
.tab-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Карточки объектов ---------- */
.obj-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.obj-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.obj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.obj-card-photo { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.obj-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.obj-card-photo .badge { position: absolute; top: 12px; left: 12px; background: rgba(10,20,14,.6); color: #fff; font-size: .7rem; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.obj-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.obj-card-body h3 { margin: 0; font-size: 1.05rem; }
.obj-card-row { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--ink-soft); }
.obj-card-row .ico { color: var(--ink-faint); flex-shrink: 0; }
.obj-card-stars { color: var(--gold); font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.obj-card-stars .score { color: var(--ink-faint); font-size: .8rem; }
.obj-card-desc { color: var(--ink-soft); font-size: .87rem; flex: 1; }
.obj-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.obj-card-price { font-weight: 700; font-size: .88rem; }

/* ---------- Пагинация ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.page-num {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem; color: var(--ink-soft); border: 1px solid transparent;
}
.page-num.active { background: var(--green); color: #fff; }
.page-num:not(.active):hover { background: var(--surface-2); }
.page-dots { color: var(--ink-faint); padding: 0 4px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); background: #fff; border-radius: var(--radius-lg); border: 1px dashed var(--border); }

/* ---------- Категории — плиточная сетка с описанием ---------- */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .categories-grid { grid-template-columns: 1fr; } }

/* ---------- Объект: детальная страница ---------- */
.obj-photo-carousel {
  position: relative; width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius-md); overflow: hidden; background: #e5e2d9;
}
.obj-photo-carousel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.obj-photo-thumbs { margin-top: 10px; }

.obj-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }

.obj-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(10, 20, 14, .45); color: #fff; font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.obj-gallery-nav:hover { background: rgba(10, 20, 14, .75); }
.obj-gallery-nav.prev { left: 14px; }
.obj-gallery-nav.next { right: 14px; }

.object-tabs-bar { border-bottom: 1px solid var(--border); }
.object-tabs-nav { display: flex; gap: 6px; }
.object-tabs-nav button {
  padding: 16px 22px; border: none; background: none; font-weight: 700; font-size: .95rem;
  color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.object-tabs-nav button.active { color: var(--green); border-color: var(--green); }
.object-tab-panel { display: none; }
.object-tab-panel.active { display: block; }

.object-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .object-layout { grid-template-columns: 1fr; } }

.object-desc p { color: var(--ink-soft); max-width: 640px; }

.room-card { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.room-card:first-of-type { border-top: none; }
.room-card-photo { width: 140px; height: 100px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.room-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.room-card-body h4 { margin: 0 0 4px; font-size: 1rem; }
.room-card-body p { margin: 0 0 8px; color: var(--ink-soft); font-size: .87rem; }
.room-specs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--ink-soft); }
.room-specs span { display: flex; align-items: center; gap: 5px; }
.room-specs .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 90px; }
.side-card .map-embed { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.side-card .map-embed iframe { width: 100%; height: 100%; border: 0; }
.side-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: .88rem; border-top: 1px solid var(--border); }
.side-row:first-of-type { border-top: none; }
.side-row .ico { color: var(--ink-faint); width: 18px; text-align: center; flex-shrink: 0; }
.side-socials { display: flex; gap: 8px; margin-top: 14px; }

.review-card { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); }
.review-card:first-of-type { border-top: none; }
.review-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-stars { color: var(--gold); font-size: .85rem; margin-bottom: 3px; }
.review-meta { font-weight: 700; font-size: .9rem; }
.review-meta .date { font-weight: 400; color: var(--ink-faint); margin-left: 6px; }
.review-text { color: var(--ink-soft); font-size: .92rem; margin: 4px 0 0; }
.review-status { display: inline-block; font-size: .68rem; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.review-status.pending { background: #f5e3c4; color: #97701c; }
.review-status.approved { background: var(--green-soft); color: var(--success); }
.rating-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.rating-big { font-size: 2.4rem; font-weight: 800; color: var(--ink); }
.rating-stars-row { color: var(--gold); font-size: 1.1rem; }
.reviews-view-all { text-align: center; padding: 18px 0; border-top: 1px solid var(--border); font-weight: 700; color: var(--green); font-size: .9rem; }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: .9rem; border: 1px solid var(--border);
}
.share-btn:hover { background: var(--green); color: #fff; }

/* ---------- Карта (страница map.html) ---------- */
.map-embed { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-page-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
@media (max-width: 900px) { .map-page-layout { grid-template-columns: 1fr; } }
.map-legend { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.legend-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.big-map-frame { width: 100%; min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.map-placeholder {
  width: 100%; height: 100%; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface-2); color: var(--ink-soft); text-align: center; padding: 20px;
}
.map-placeholder code { background: #fff; padding: 1px 6px; border-radius: 4px; font-size: .82em; }

/* ---------- Новости (список) ---------- */
.news-list-item { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; align-items: flex-start; }
.news-thumb { flex-shrink: 0; width: 110px; border-radius: var(--radius-md); overflow: hidden; line-height: 0; }
.news-thumb img { width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .news-thumb { display: none; } }
.news-date-badge { flex-shrink: 0; width: 66px; text-align: center; background: var(--green); color: #fff; border-radius: var(--radius-sm); padding: 10px 6px; }
.news-date-badge .day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.news-date-badge .mon { font-size: .7rem; text-transform: uppercase; }
.news-full { display: none; margin-top: 10px; color: var(--ink-soft); }
.news-full.open { display: block; }

/* ---------- Опрос ---------- */
.poll-option { display: block; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; cursor: pointer; }
.poll-option:hover { border-color: var(--green); }
.poll-option input { margin-right: 10px; accent-color: var(--green); }
.poll-result-bar { background: var(--surface-2); border-radius: 999px; overflow: hidden; height: 24px; margin: 6px 0 14px; }
.poll-result-fill { background: var(--green); height: 100%; display: flex; align-items: center; padding-left: 10px; color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; }

/* ---------- Модалка (переиспользуемая — админ-панель: подтверждение удаления и т.п.) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,16,12,.55); z-index: 500;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); padding: 34px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: none; font-size: 1rem; }
.modal-box .field { text-align: left; }

/* ---------- Подвал ---------- */
#site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 20px 0; margin-top: 60px; }
.footer-mini { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-mini-admin { font-size: .78rem; color: var(--ink-faint); white-space: nowrap; }
.footer-mini-admin:hover { color: var(--ink-soft); }
.footer-mini-policy { font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.footer-mini-policy:hover { color: var(--ink); }
.footer-mini-copy { font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); font-size: .72rem; color: var(--ink-soft);
}
.footer-socials a:hover { background: var(--surface); color: var(--ink); }
.to-top-btn {
  position: fixed; right: 24px; bottom: 32px; z-index: 150;
  width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  color: var(--ink-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 1.2rem; box-shadow: var(--shadow-md);
}
.to-top-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
@media (max-width: 620px) {
  .footer-mini { flex-direction: column; gap: 10px; text-align: center; }
}

/* ---------- Разное ---------- */
.badge-pill { display: inline-block; font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.load-more-wrap { text-align: center; margin-top: 30px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
