﻿/* Château du Châtelard — свои стили поверх CSS Webflow (модуль бронирования, мелкие правки). */

:root {
  --bk-ink: #111;
  --bk-muted: #6b625d;
  --bk-line: #d9d2c9;
  --bk-bg: #faf7f2;
  --bk-accent: #4d423d;      /* --primary-dark сайта */
  --bk-gold: #c3a491;        /* --primary сайта */
  --bk-light: #f0e7af;       /* --primary-light сайта */
}

/* ───────── шапка ───────── */
.nav-phone { white-space: nowrap; }
@media (max-width: 991px) { .cart-nav-wrapper .nav-phone { display: none; } }

/* ───────── первый экран ───────── */
.hero-buttons { margin-top: 28px; display: flex; justify-content: center; }

/* ───────── отзывы без аватаров ───────── */
.testimonial-credit { justify-content: center; }
.testimonials-hero-text .number-size-large { font-size: clamp(18px, 2.1vw, 26px); line-height: 1.45; }

/* ───────── карточки квартир ───────── */
.list-book { margin-left: 12px; }
.button-wrapper-main { display: flex; flex-wrap: wrap; gap: 12px; }
.button-wrapper-main .list-book { margin-left: 0; border-color: var(--bk-ink); color: var(--bk-ink); }
.button-wrapper-main .list-book:hover { color: var(--bk-ink); }
.product-collection-item.is-unavailable { opacity: .45; }
.product-collection-item.is-unavailable .list-book { display: none; }
.bs-price {
  margin: 14px 0 0; font-family: Aboreto, sans-serif; font-size: 15px; letter-spacing: .02em; color: var(--bk-accent);
}
.from-price { margin: 0; font-family: Aboreto, sans-serif; font-size: 15px; }
.from-price strong { font-weight: 400; font-size: 22px; }

/* ───────── поиск по датам ───────── */
.booking-search { scroll-margin-top: 120px; margin: 0 0 48px; }
.bs-box { position: relative; background: var(--bk-bg); border: 1px solid var(--bk-line); border-radius: 24px; padding: 28px 32px; }
.bs-title { font-family: Aboreto, sans-serif; font-size: 26px; line-height: 1.2; margin: 0 0 6px; }
.bs-lead { color: var(--bk-muted); margin: 0 0 18px; font-size: 16px; }
.bs-row { display: grid; grid-template-columns: 1fr 180px auto; gap: 12px; align-items: stretch; }
.bs-dates, .bk-guests {
  font: inherit; font-size: 16px; text-align: left; background: #fff; color: var(--bk-ink);
  border: 1px solid var(--bk-line); border-radius: 50px; padding: 12px 20px; cursor: pointer; min-height: 46px;
}
.bk-guests { appearance: auto; }
.bs-dates:focus-visible, .bk-guests:focus-visible, .cal-day:focus-visible, .cal-nav:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 2px; }
.bs-go { min-height: 46px; padding-left: 32px; padding-right: 32px; }
.bs-go:disabled { opacity: .6; }
.bs-pop {
  position: absolute; z-index: 20; left: 32px; right: 32px; top: calc(100% - 20px);
  background: #fff; border: 1px solid var(--bk-line); border-radius: 18px; padding: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
.bs-status { margin: 14px 0 0; color: var(--bk-muted); min-height: 1.4em; }
@media (max-width: 767px) {
  .bs-box { padding: 22px 18px; }
  .bs-row { grid-template-columns: 1fr; }
  .bs-pop { left: 12px; right: 12px; }
}

/* ───────── бронирование на странице квартиры ───────── */
.booking-section { scroll-margin-top: 110px; margin: 0 0 56px; }
.booking-box { background: var(--bk-bg); border: 1px solid var(--bk-line); border-radius: 24px; padding: 32px; }
.bk-title { font-family: Aboreto, sans-serif; font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
.bk-lead { color: var(--bk-muted); font-size: 16px; margin: 0 0 22px; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.bk-calendar { background: #fff; border: 1px solid var(--bk-line); border-radius: 18px; padding: 18px; }
.bk-side { display: flex; flex-direction: column; gap: 16px; }
.bk-label { display: flex; flex-direction: column; gap: 8px; font-family: Aboreto, sans-serif; font-size: 13px; text-transform: uppercase; }
.bk-summary { background: #fff; border: 1px solid var(--bk-line); border-radius: 18px; padding: 16px 18px; font-size: 16px; min-height: 72px; }
.bk-summary p { margin: 0; }
.bk-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.bk-total { border-top: 1px solid var(--bk-line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.bk-discount { color: #2f6b3a; }
.bk-muted { color: var(--bk-muted); }
.bk-warning { color: #9a3b2a; }
.bk-reserve { text-align: center; }
.bk-reserve.is-disabled { opacity: .45; cursor: not-allowed; }
.bk-small { margin: 0; color: var(--bk-muted); font-size: 14px; }
.bk-small a { color: inherit; }
@media (max-width: 991px) { .bk-layout { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .booking-box { padding: 22px 16px; } .bk-calendar { padding: 12px; } }

/* ───────── календарь ───────── */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-titles { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; text-align: center; }
.cal-title { font-family: Aboreto, sans-serif; font-size: 15px; }
.cal-nav {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bk-line); background: #fff;
  font-size: 20px; line-height: 1; cursor: pointer; color: var(--bk-ink);
}
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--bk-muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1 / 1; border: 0; background: transparent; border-radius: 50%; font: inherit; font-size: 15px;
  cursor: pointer; color: var(--bk-ink); min-height: 36px;
}
.cal-day:hover:not(:disabled) { background: var(--bk-light); }
.cal-day:disabled { cursor: default; color: #bdb5ae; }
.cal-day.is-booked { text-decoration: line-through; }
.cal-day.is-in { background: #efe6dc; border-radius: 0; }
.cal-day.can-end:not(.is-in) { box-shadow: inset 0 0 0 1px var(--bk-gold); }
.cal-day.is-start, .cal-day.is-end { background: var(--bk-accent); color: #fff; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; min-height: 24px; flex-wrap: wrap; }
.cal-hint { font-size: 15px; color: var(--bk-muted); }
.cal-hint.is-warning { color: #9a3b2a; }
.cal-clear { border: 0; background: none; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; color: var(--bk-ink); }
.is-loading .cal-months { opacity: .5; }

/* ───────── правила проживания вместо ИИ-текста ───────── */
.rich-text-style ul { padding-left: 20px; }
.rich-text-style li { margin-bottom: 6px; }

/* ───────── Location: блок про джаз ───────── */
.jazz-title { margin-top: 28px; }

/* ───────── Privacy ───────── */
.privacy-section { padding-top: 160px; padding-bottom: 80px; }
.privacy-section h1 { font-family: Aboreto, sans-serif; }

/* ───────── Events: одна кнопка под таблицей залов ───────── */
.scace-grid { grid-template-columns: 1fr 3fr !important; }
.event-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; text-align: center; }
.event-cta p { margin: 0; font-size: 16px; }
.event-cta p a { color: inherit; }
.from-price { margin-top: 18px; }

/* Первый экран на телефоне: анимация Webflow увеличивает блок в 1.125 раза — даём поля, чтобы текст не обрезался. */
@media (max-width: 767px) {
  .hero-banner-content { padding-left: 28px !important; padding-right: 28px !important; }
  .hero-banner-content .banner-paragraph { font-size: 17px; line-height: 1.45; }
}

/* Простые страницы (Privacy, 404): шапка на белом фоне — делаем её чёрной, как при прокрутке. */
.plain-page .navbar { background-color: #000 !important; }
/* Location: блок про джаз четвёртой колонкой */
.benefits .jazz-block { grid-column: 1 / -1; max-width: 760px; }

/* ───────── шапка компактнее (было 140 px: логотип 240×110 + поля 15 px) ───────── */
.navbar { padding-top: 8px; padding-bottom: 8px; }
.navbar .brand { width: 150px; height: 69px; }
.navbar .nav-link { padding-top: 12px; padding-bottom: 12px; font-size: 18px; }
@media (max-width: 991px) {
  .navbar .brand { width: 124px; height: 57px; }
  .navbar { padding-top: 5px; padding-bottom: 5px; }
  .navbar .nav-menu .nav-link { font-size: 20px; padding-top: 10px; padding-bottom: 10px; }
}

/* Contact: строка Instagram под вступлением, поля формы на всю ширину */
.follow-instagram { margin-top: 14px; }
.follow-instagram a { color: var(--bk-light); }
.form-contacts .contacts-input.w-select { height: auto; min-height: 52px; }

/* Переключатель языка в шапке */
.nav-link.lang-switch { border: 1px solid rgba(240, 231, 175, .5); border-radius: 50px; padding: 6px 12px !important; margin-left: 8px; font-size: 14px; line-height: 1; width: auto; }
@media (max-width: 991px) { .nav-menu .nav-link.lang-switch { margin: 16px 0 0; width: auto; display: inline-block; } }

/* ───────── акварельные цветы старого сайта ───────── */
.orn { display: block; height: auto; margin: 0 0 14px; pointer-events: none; }
.orn-leaf { width: 130px; }
.orn-bouquet { width: 96px; margin: 0 auto 10px; }
.orn-garland { width: 260px; }
.orn-rose { width: 54px; }
.section-two-side-title-wrapp .orn, .story-content .orn, section.plan .orn { margin-left: auto; margin-right: auto; }
form#email-form + .orn, .w-form > .orn-rose { margin: 0 auto 12px; }
@media (max-width: 767px) { .orn-garland { width: 200px; } .orn-leaf { width: 104px; } }
/* Контакты в подвале: ссылки внутри блока */
.text-content-map .row-horizontal p a { color: inherit; }

/* ───────── шапка: три колонки, логотип строго по центру экрана ─────────
   Было: элементы подряд (слева 3 пункта, справа 5), логотип съезжал к короткой стороне,
   а сама обёртка (max-width 1200) прижималась влево на широких экранах. */
@media (min-width: 992px) {
  .navbar .nav-menu-wrapper {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 24px;
    width: 100%; max-width: 1400px; margin: 0 auto; padding-right: 0;
  }
  .navbar .nav-menu-wrapper > .menu-wrap.desktop { grid-column: 1; justify-self: start; }
  .navbar .nav-menu-wrapper > .brand { grid-column: 2; justify-self: center; }
  .navbar .nav-menu-wrapper > .cart-nav-wrapper { grid-column: 3; justify-self: end; min-width: 0; }
  .navbar .nav-menu-wrapper > .cart-nav-wrapper .menu-wrap { flex-wrap: nowrap; }
  .navbar .nav-link { padding-left: 14px; padding-right: 14px; white-space: nowrap; }
}
/* На средних экранах телефон в шапке не помещается — он есть в подвале и на странице контактов. */
@media (min-width: 992px) and (max-width: 1439px) {
  .navbar .nav-phone { display: none; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar .nav-link { font-size: 16px; padding-left: 9px; padding-right: 9px; }
}
/* Меню не заходит на завитки рамки первого экрана: центральная полоса как у остального сайта. */
@media (min-width: 992px) {
  .navbar .nav-menu-wrapper { max-width: 1160px; }
}
@media (min-width: 992px) and (max-width: 1365px) {
  .navbar .nav-container { padding-left: 80px; padding-right: 80px; }
}

/* ───────── поиск по датам v2: строка «Arrivée | Départ | Voyageurs | Rechercher» ───────── */
.bs-box { overflow: visible; }
.bs-bar {
  display: grid; grid-template-columns: 1fr 1fr 1.15fr auto; align-items: stretch;
  background: #fff; border: 1px solid var(--bk-line); border-radius: 999px; padding: 6px; gap: 0;
  box-shadow: 0 6px 24px rgba(77, 66, 61, .06);
}
.bs-seg {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0;
  background: transparent; border: 0; border-radius: 999px; padding: 10px 22px; text-align: left; font: inherit; color: var(--bk-ink);
  position: relative; cursor: pointer;
}
.bs-seg + .bs-seg::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--bk-line); }
.bs-seg:hover, .bs-seg.is-active { background: var(--bk-bg); }
.bs-seg:hover::before, .bs-seg.is-active::before, .bs-seg:hover + .bs-seg::before, .bs-seg.is-active + .bs-seg::before { opacity: 0; }
.bs-guests { cursor: default; }
.bs-guests:hover { background: transparent; }
.bs-label { font-family: Aboreto, sans-serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--bk-muted); }
.bs-val { font-size: 17px; line-height: 1.3; color: var(--bk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-seg.is-set .bs-val { color: var(--bk-ink); }
.bs-bar .bs-go { align-self: center; min-height: 52px; padding: 0 30px; margin-left: 6px; border-radius: 999px; }
.bs-pop {
  position: absolute; z-index: 30; left: 32px; top: auto; margin-top: 10px; width: min(720px, calc(100% - 64px));
  background: #fff; border: 1px solid var(--bk-line); border-radius: 20px; padding: 22px 22px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .14);
}
.bs-pop-close {
  position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; border: 0; background: transparent;
  font-size: 24px; line-height: 1; color: var(--bk-muted); cursor: pointer; border-radius: 50%;
}
.bs-pop-close:hover { background: var(--bk-bg); color: var(--bk-ink); }
.bs-cal .cal-head { padding-right: 36px; }

/* Счётчик гостей */
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--bk-line); background: #fff; color: var(--bk-ink);
  font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.stepper-btn:hover:not(:disabled) { border-color: var(--bk-accent); }
.stepper-btn:disabled { opacity: .35; cursor: default; }
.stepper-val { min-width: 92px; text-align: center; font-size: 17px; color: var(--bk-ink); white-space: nowrap; }
.bk-label .stepper { background: #fff; border: 1px solid var(--bk-line); border-radius: 999px; padding: 8px 12px; justify-content: space-between; text-transform: none; font-family: inherit; }

/* Календарь компактнее: клетки фиксированной высоты вместо квадратов на всю ширину */
.cal-months { gap: 28px; }
.cal-grid { gap: 2px 0; }
.cal-day { aspect-ratio: auto; height: 40px; min-height: 0; width: 100%; border-radius: 999px; font-size: 15px; }
.cal-day.is-in { border-radius: 0; }
.cal-day.is-start { border-radius: 999px 0 0 999px; }
.cal-day.is-end { border-radius: 0 999px 999px 0; }
.cal-day.is-start.is-end { border-radius: 999px; }
.cal-day.is-past, .cal-day.is-unknown { color: #cfc8c2; }
.cal-title { text-transform: capitalize; }
.cal-nav { display: inline-flex; align-items: center; justify-content: center; padding: 0; }

@media (max-width: 991px) {
  .bs-bar { grid-template-columns: 1fr 1fr; border-radius: 22px; }
  .bs-guests { grid-column: 1 / -1; border-top: 1px solid var(--bk-line); border-radius: 0; flex-direction: row; align-items: center; justify-content: space-between; }
  .bs-guests::before { display: none; }
  .bs-bar .bs-go { grid-column: 1 / -1; margin: 6px 0 0; width: 100%; }
  .bs-pop { left: 16px; width: calc(100% - 32px); }
}
@media (max-width: 767px) {
  .bs-seg { padding: 10px 14px; }
  .bs-val { font-size: 15px; }
  .bs-pop { padding: 16px 12px 12px; }
  .cal-day { height: 42px; }
}

/* ───────── календарь: без колец вокруг дат, подсветка отрезка ───────── */
.cal-day.can-end:not(.is-in) { box-shadow: none; }
.cal-day.is-solo { border-radius: 999px; }
.cal-day.is-preview { background: #f3ecd9; border-radius: 0; }
.cal-day.is-preview-end { background: var(--bk-accent); color: #fff; border-radius: 0 999px 999px 0; }
.bk-calendar .cal-day.can-end:not(.is-in):not(.is-preview):not(.is-preview-end)::after {
  content: ""; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--bk-gold); margin: -6px auto 0;
}

/* ───────── результаты поиска прямо под строкой ───────── */
.bs-status:empty { display: none; }
.bs-results { margin-top: 22px; }
.bs-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 14px; }
.bs-results-title { margin: 0; font-family: Aboreto, sans-serif; font-size: 20px; line-height: 1.25; color: var(--bk-ink); }
.bs-results-meta { color: var(--bk-muted); font-size: 15px; }
.bs-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bs-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bk-line); border-radius: 16px; overflow: hidden;
  text-decoration: none; color: var(--bk-ink); transition: box-shadow .2s, transform .2s;
}
.bs-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .10); transform: translateY(-2px); }
.bs-card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bs-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.bs-card-name { font-family: Aboreto, sans-serif; font-size: 14px; line-height: 1.3; }
.bs-card-price { font-size: 15px; color: var(--bk-muted); }
.bs-card-price strong { color: var(--bk-ink); font-weight: 600; font-size: 17px; }
.bs-card-cta { margin-top: 6px; font-size: 14px; color: var(--bk-accent); text-decoration: underline; text-underline-offset: 3px; }
.bs-results-note { margin: 14px 0 0; color: var(--bk-muted); font-size: 15px; }
.bs-price.bs-busy { color: #9a3b2a; }
.stepper-btn { font-size: 20px; }

/* На телефоне календарь в потоке страницы, а не поверх списка. */
@media (max-width: 991px) {
  .bs-pop { position: relative; left: auto; width: 100%; margin-top: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
  .bs-results-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
  .bs-results-grid { grid-template-columns: 1fr; }
  .bs-card { flex-direction: row; }
  .bs-card-img { width: 38%; aspect-ratio: auto; min-height: 110px; }
}

/* Галерея квартиры: вертикальные и горизонтальные фото в одной сетке — одинаковые клетки 4:3 с обрезкой,
   иначе горизонтальные растягиваются по высоте соседей и выглядят сжатыми. Полный кадр — в просмотре по клику. */
.room-collection-list .room-images { display: block; overflow: hidden; }
.room-collection-list img.room-images { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.room-collection-list > * { align-self: start; }
@media (max-width: 479px) { .bs-card-img { align-self: stretch; height: auto; object-fit: cover; } }

/* ───────── страница квартиры: понятно, что именно бронируешь ───────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 15px; color: var(--bk-muted); }
.crumbs a { color: var(--bk-accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.crumbs-current { color: var(--bk-ink); }
.booking-card { background: var(--bk-bg); border: 1px solid var(--bk-line); border-radius: 24px; overflow: hidden; }
.booking-card .booking-box { background: transparent; border: 0; border-radius: 0; padding-top: 24px; }
.bk-head { display: flex; align-items: center; gap: 22px; padding: 22px 32px; background: #fff; border-bottom: 1px solid var(--bk-line); }
.bk-head-img { width: 160px; height: 120px; object-fit: cover; border-radius: 14px; flex: none; }
.bk-head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bk-back { font-size: 14px; color: var(--bk-muted); text-decoration: none; margin-bottom: 4px; }
.bk-back:hover { color: var(--bk-ink); }
.bk-kicker { font-family: Aboreto, sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bk-gold); }
.bk-head-name { margin: 0; font-family: Aboreto, sans-serif; font-size: 26px; line-height: 1.2; color: var(--bk-ink); }
.bk-head-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--bk-muted); font-size: 15px; }
.bk-fact + .bk-fact::before { content: "·"; margin-right: 14px; color: var(--bk-line); }
.booking-box .bk-title { font-size: 18px; margin: 0 0 4px; }
.bk-stay { margin: 0 0 10px !important; padding-bottom: 10px; border-bottom: 1px solid var(--bk-line); font-size: 15px; color: var(--bk-ink); }
.bk-stay-label { display: block; font-family: Aboreto, sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bk-muted); margin-bottom: 2px; }
@media (max-width: 767px) {
  .bk-head { padding: 16px; gap: 14px; align-items: flex-start; }
  .bk-head-img { width: 96px; height: 80px; border-radius: 10px; }
  .bk-head-name { font-size: 19px; }
  .bk-head-facts { font-size: 13px; gap: 2px 10px; }
  .bk-fact + .bk-fact::before { margin-right: 10px; }
}

/* Телефон: полоса с итогом и кнопкой брони внизу экрана */
.bk-sticky { display: none; }
@media (max-width: 767px) {
  .bk-sticky:not([hidden]) {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff;
    border-top: 1px solid var(--bk-line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
  }
  .bk-sticky-info { display: flex; flex-direction: column; line-height: 1.25; }
  .bk-sticky-info strong { font-size: 18px; color: var(--bk-ink); }
  .bk-sticky-info span { font-size: 13px; color: var(--bk-muted); }
  .bk-sticky-btn { padding: 14px 26px; }
  body.has-bk-sticky { padding-bottom: 76px; }
  .bk-fact + .bk-fact::before { display: none; }
  .bk-head-facts { gap: 2px 12px; }
}
