:root {
  --ink: #23201b;
  --ink-soft: #4d463c;
  --muted: #7b7264;
  --paper: #f6f1e8;
  --paper-deep: #efe7d9;
  --card: #fffdf8;
  --line: #ded3c1;
  --forest: #33483a;
  --forest-deep: #24342a;
  --clay: #b5763f;
  --clay-deep: #945c2e;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(35, 32, 27, .06), 0 4px 12px rgba(35, 32, 27, .05);
  --shadow-lg: 0 18px 48px rgba(35, 32, 27, .16);
  --wrap: 1180px;
  --serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: clip; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 600;
  margin-bottom: .7rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 232, .86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(222, 211, 193, .7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--forest);
}

.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.28rem;
  letter-spacing: -.01em;
}
.brand-text small {
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  font-size: .94rem;
  color: var(--ink-soft);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--forest); border-color: var(--clay); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(520px, 88vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 26, 22, .55) 0%, rgba(18, 26, 22, .12) 34%, rgba(18, 26, 22, .82) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #f7f3ea;
  padding-block: clamp(48px, 8vh, 88px);
  max-width: 800px;
}

.hero .eyebrow { color: #e0b98f; }

.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 4.1rem);
  color: #fdfaf3;
  text-shadow: 0 2px 24px rgba(10, 16, 12, .35);
}

.hero-lead {
  margin-top: 1.1rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.7vw, 1.13rem);
  color: rgba(247, 243, 234, .9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .96rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--clay);
  color: #fffaf0;
  box-shadow: 0 8px 20px rgba(120, 70, 30, .28);
}
.btn-primary:hover { background: var(--clay-deep); }

.btn-ghost {
  border-color: rgba(247, 243, 234, .5);
  color: #f7f3ea;
}
.btn-ghost:hover { background: rgba(247, 243, 234, .12); border-color: rgba(247, 243, 234, .8); }

.btn-outline {
  border-color: var(--line);
  background: var(--card);
  color: var(--forest);
}
.btn-outline:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: #f7f3ea;
}

.availability-btn { margin-top: 1.6rem; }
.section-alt .availability-btn { background: rgba(255, 253, 248, .9); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 52px);
  margin: 2.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(247, 243, 234, .22);
}
.hero-facts div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-facts dt {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, .62);
}
.hero-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.42rem;
  color: #fdfaf3;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 110px); }
.section-alt { background: var(--paper-deep); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 52px); }

.section-head h2,
.about h2,
.cta h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  color: var(--forest);
}

.section-lead {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.object-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}
.object-facts li {
  font-size: .82rem;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.section-alt .object-facts li { background: rgba(255, 253, 248, .62); }

/* ---------- Room cards ---------- */

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.room-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.room-card:hover,
.room-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cfc0a8;
  outline: none;
}

.room-media {
  position: relative;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  background: var(--paper-deep);
}
.room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.room-card:hover .room-media img { transform: scale(1.05); }

.room-price {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(24, 30, 26, .82);
  color: #fdfaf3;
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .82rem;
  letter-spacing: .01em;
}

.room-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}
.room-body h3 {
  font-size: 1.32rem;
  color: var(--ink);
}
.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: .82rem;
  color: var(--muted);
}
.room-meta span { display: inline-flex; align-items: center; gap: 5px; }
.room-meta svg { opacity: .6; flex: none; }
.room-tag {
  align-self: flex-start;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(51, 72, 58, .07);
  border: 1px solid rgba(51, 72, 58, .14);
  border-radius: 6px;
  padding: 3px 8px;
}
.room-desc {
  font-size: .93rem;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.room-link {
  margin-top: 4px;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.room-card:hover .room-link { gap: 12px; }
.room-link svg { transition: transform .25s; }

/* ---------- About ---------- */

.about { border-top: 1px solid var(--line); }
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-copy { display: grid; gap: 1rem; color: var(--ink-soft); }

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

.cta {
  background: var(--forest);
  color: #f2eee2;
  padding-block: clamp(52px, 7vw, 84px);
}
.cta .eyebrow { color: #d7ab7e; }
.cta h2 { color: #fdfaf3; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.cta-lead { margin-top: .8rem; color: rgba(242, 238, 226, .78); max-width: 44ch; }
.cta-contacts { display: grid; gap: 6px; }
.cta-link {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: #fdfaf3;
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 250, 243, .3);
  padding-bottom: 2px;
  justify-self: start;
  transition: border-color .2s, color .2s;
}
.cta-link:hover { border-color: #d7ab7e; color: #f2d9bd; }
.cta-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}
.cta-messenger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(253, 250, 243, .28);
  color: rgba(253, 250, 243, .88);
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.cta-messenger svg { opacity: .85; }
.cta-messenger:hover {
  background: rgba(253, 250, 243, .12);
  border-color: rgba(253, 250, 243, .6);
  color: #fff;
}
.cta-messenger:hover svg { opacity: 1; }
.cta-note { font-size: .82rem; color: rgba(242, 238, 226, .55); margin-top: 6px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: rgba(242, 238, 226, .6);
  font-size: .84rem;
  padding-block: 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Modal ---------- */

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 21, .62);
  backdrop-filter: blur(4px);
  animation: fade .25s ease both;
}

.modal-panel {
  position: relative;
  width: min(1060px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(12, 16, 13, .38);
  animation: rise .28s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.99); } }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 248, .35);
  background: rgba(26, 32, 28, .55);
  color: #fdfaf3;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: rgba(26, 32, 28, .85); transform: rotate(90deg); }

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.modal-gallery { background: var(--paper-deep); }
.modal-main { position: relative; aspect-ratio: 10 / 7; overflow: hidden; }
.modal-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 253, 248, .3);
  border-radius: 50%;
  background: rgba(26, 32, 28, .45);
  color: #fdfaf3;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, opacity .2s, transform .2s;
}
.gallery-nav:hover { background: rgba(26, 32, 28, .78); }
.gallery-nav:active { transform: translateY(-50%) scale(.94); }
.gallery-nav[hidden] { display: none; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-counter {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(24, 30, 26, .62);
  color: #fdfaf3;
  font-size: .78rem;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}
.modal-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  aspect-ratio: 10 / 7;
  opacity: .62;
  transition: opacity .2s, border-color .2s;
}
.modal-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs button:hover { opacity: .9; }
.modal-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--clay); }

.modal-info {
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#modal-title { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--forest); }
.modal-desc { color: var(--ink-soft); font-size: .97rem; }

.modal-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 4px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.modal-specs div { display: grid; gap: 2px; }
.modal-specs dt {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-specs dd { margin: 0; font-size: .95rem; color: var(--ink); }

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.amenities li {
  font-size: .8rem;
  color: var(--forest);
  background: rgba(51, 72, 58, .07);
  border: 1px solid rgba(51, 72, 58, .14);
  border-radius: 8px;
  padding: 4px 10px;
}

.modal-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.modal-price {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--ink);
}
.modal-price small {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}

.modal-foot .btn[data-action="availability"].is-pending {
  border-color: var(--clay);
  color: var(--clay-deep);
  background: #fdf3e7;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-main { aspect-ratio: 10 / 6; }
  .about-inner { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 12px 10px;
    gap: 2px 16px;
  }
  .site-nav {
    width: 100%;
    gap: 22px;
    padding-top: 8px;
    border-top: 1px solid rgba(222, 211, 193, .8);
  }
  .site-nav a { font-size: .88rem; padding-block: 4px; }
  .brand-text small { display: none; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .hero-lead { font-size: .98rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 84vh; }
  .hero-facts { gap: 18px 26px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .room-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; max-height: 100vh; height: 100%; }
  .modal-close { top: 10px; right: 10px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: clamp(1.7rem, 7.4vw, 2.1rem); }
  .site-nav { gap: 12px 18px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 18px; font-size: .9rem; }
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

body.modal-open { overflow: hidden; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 16px);
  max-width: min(92vw, 420px);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(36, 52, 42, .95);
  color: #f7f3ea;
  font-size: .9rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(20, 28, 23, .32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Price / availability calendar ---------- */

body.calendar-open { overflow: hidden; }

.calendar-overlay[hidden] { display: none; }
.calendar-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}

.calendar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 21, .62);
  backdrop-filter: blur(4px);
  animation: fade .25s ease both;
}

.calendar-panel {
  position: relative;
  width: min(505px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px);
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(12, 16, 13, .38);
  animation: rise .28s cubic-bezier(.2, .7, .3, 1) both;
}

.calendar-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--forest);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.calendar-close:hover { background: var(--forest); color: #f7f3ea; transform: rotate(90deg); }

.calendar-head { padding-right: 44px; }
.calendar-head h2 {
  font-size: clamp(1.28rem, 2.7vw, 1.62rem);
  color: var(--forest);
  line-height: 1.25;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 10px;
}

.calendar-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--forest);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.calendar-arrow:hover:not(:disabled) { background: var(--forest); color: #f7f3ea; border-color: var(--forest); }
.calendar-arrow:disabled { opacity: .32; cursor: default; }

.calendar-month-label {
  flex: 1;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink);
  text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-weekdays { margin-bottom: 6px; }
.calendar-weekdays span {
  text-align: center;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.calendar-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 49px;
  padding: 3px 2px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.calendar-cell.is-empty {
  background: none;
  border-color: transparent;
  cursor: default;
  min-height: 49px;
}
.calendar-cell:not(:disabled):hover {
  border-color: var(--clay);
  background: #fdf7ee;
}
.calendar-cell:not(:disabled):active { transform: scale(.97); }

.calendar-cell-day { font-size: .82rem; line-height: 1.1; }

.calendar-cell-price {
  font-size: .6rem;
  line-height: 1.15;
  color: var(--clay-deep);
  font-weight: 600;
  white-space: nowrap;
}
.calendar-cell-price.is-inherited { color: var(--muted); font-weight: 400; }

.calendar-cell-label {
  font-size: .6rem;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
}

.calendar-cell.is-today .calendar-cell-day {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(181, 118, 63, .18);
  font-weight: 700;
}

.calendar-cell.is-past {
  color: #b6ae9f;
  background: transparent;
  border-color: rgba(222, 211, 193, .45);
  cursor: default;
}

.calendar-cell.is-booked {
  color: #8a8172;
  background: repeating-linear-gradient(
    135deg,
    rgba(120, 112, 99, .1) 0 6px,
    rgba(120, 112, 99, .04) 6px 12px
  );
  border-color: rgba(150, 140, 124, .35);
  cursor: default;
}
.calendar-cell.is-booked .calendar-cell-label { color: #8a8172; }

.calendar-cell.is-selected {
  border-color: var(--forest);
  background: rgba(51, 72, 58, .12);
  color: var(--forest);
}
.calendar-cell.is-selected .calendar-cell-price { color: var(--forest); }

.calendar-cell.is-checkout {
  border-color: var(--clay);
  background: rgba(181, 118, 63, .08);
}
.calendar-cell.is-checkout.is-selected {
  background: rgba(51, 72, 58, .12);
}

.calendar-cell.is-noprice:not(.is-selected) {
  border-style: dashed;
}

.calendar-status {
  min-height: 1.1em;
  margin-top: 10px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

.calendar-summary {
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 56px;
}
.calendar-summary-hint {
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.calendar-summary-dates {
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--forest);
  margin-bottom: 4px;
}
.calendar-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: .88rem;
  color: var(--ink-soft);
}
.calendar-summary-row strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: .76rem;
  color: var(--muted);
}
.calendar-legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--card);
}
.legend-free { border-color: var(--line); }
.legend-booked {
  background: repeating-linear-gradient(135deg, rgba(120, 112, 99, .22) 0 3px, rgba(120, 112, 99, .06) 3px 6px);
  border-color: rgba(150, 140, 124, .5);
}
.legend-selected { background: rgba(51, 72, 58, .2); border-color: var(--forest); }

.calendar-note {
  margin-top: 12px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--muted);
}

.calendar-book {
  width: 100%;
  margin-top: 14px;
}
.calendar-book:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Booking dialog ---------- */

body.booking-open { overflow: hidden; }

.booking-overlay[hidden] { display: none; }
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}

.booking-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 21, .62);
  backdrop-filter: blur(4px);
  animation: fade .25s ease both;
}

.booking-panel {
  position: relative;
  width: min(470px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px);
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(12, 16, 13, .38);
  animation: rise .28s cubic-bezier(.2, .7, .3, 1) both;
}

.booking-panel h2 {
  font-size: clamp(1.28rem, 2.7vw, 1.62rem);
  color: var(--forest);
  padding-right: 44px;
  margin-bottom: 16px;
}

.booking-info {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.booking-info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
}
.booking-info dt { color: var(--muted); }
.booking-info dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

.booking-form { display: grid; gap: 14px; }
.booking-field { display: grid; gap: 6px; }
.booking-field span {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.booking-field input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.booking-field input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(181, 118, 63, .16);
}

.booking-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.booking-note {
  margin-top: 14px;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Studio picker ---------- */

body.picker-open { overflow: hidden; }

.picker-overlay[hidden] { display: none; }
.picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px);
}

.picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 21, .62);
  backdrop-filter: blur(4px);
  animation: fade .25s ease both;
}

.picker-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px);
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(12, 16, 13, .38);
  animation: rise .28s cubic-bezier(.2, .7, .3, 1) both;
}

.picker-panel h2 {
  font-size: clamp(1.28rem, 2.7vw, 1.62rem);
  color: var(--forest);
  padding-right: 44px;
}
.picker-lead {
  margin-top: .6rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

.picker-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}
.picker-field { display: grid; gap: 6px; }
.picker-field span {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.picker-field input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.picker-field input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(181, 118, 63, .16);
}
.picker-submit { white-space: nowrap; }

.picker-error {
  margin-top: 12px;
  font-size: .86rem;
  color: #9c3d24;
}
.picker-loading,
.picker-empty {
  margin-top: 18px;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.picker-results { margin-top: 18px; }
.picker-found {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.picker-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.picker-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.picker-field select {
  width: 100%;
  padding: 11px 38px 11px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%237b7264' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.picker-field select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(181, 118, 63, .16);
}

.picker-field select:hover {
  border-color: var(--clay);
}

.picker-field select::-ms-expand {
  display: none;
}

.picker-result-info { display: grid; gap: 2px; }
.picker-result-object {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.picker-result-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--forest);
}
.picker-result-price { font-size: .82rem; color: var(--muted); }
.picker-result-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn-sm { padding: 9px 16px; font-size: .86rem; }

/* ---------- Custom checkbox ---------- */

.picker-checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: end;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  user-select: none;
  font-size: .92rem;
  color: var(--ink-soft);
  transition: border-color .2s, box-shadow .2s, background .2s;
  height: 44px;
  box-sizing: border-box;
}

.picker-checkbox-field:hover {
  border-color: var(--clay);
}

.picker-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.picker-checkbox-box {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  transition: background .2s, border-color .2s;
}

.picker-checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .15s ease;
}

.picker-checkbox-input:checked + .picker-checkbox-box {
  background: var(--forest);
  border-color: var(--forest);
}
.picker-checkbox-input:checked + .picker-checkbox-box::after {
  transform: rotate(45deg) scale(1);
}

.picker-checkbox-input:focus-visible + .picker-checkbox-box {
  box-shadow: 0 0 0 3px rgba(181, 118, 63, .25);
}

.picker-checkbox-input:checked ~ .picker-checkbox-label {
  color: var(--ink);
}

/* Если животных нет ни в одной студии — чекбокс недоступен */
.picker-checkbox-input:disabled + .picker-checkbox-box {
  opacity: .4;
}
.picker-checkbox-input:disabled ~ .picker-checkbox-label {
  color: var(--muted);
}
.picker-checkbox-field.is-disabled {
  cursor: default;
  opacity: .7;
}

.calendar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  align-items: end;
}
.calendar-option {
  display: grid;
  gap: 6px;
  font-size: .8rem;
  color: var(--muted);
}
.calendar-option span:first-child {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.calendar-option select {
  padding: 8px 12px;
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 80px;
}
.calendar-option select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(181, 118, 63, .16);
}
.calendar-option-checkbox {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  height: 40px;
  box-sizing: border-box;
}
.calendar-option-checkbox .picker-checkbox-label {
  font-size: .9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

/* ---------- Split stay ---------- */

.picker-result-split {
  align-items: flex-start;
}

.picker-result-split .picker-result-info {
  flex: 1 1 100%;
  gap: 8px;
}

.split-segments {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.split-segment {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  gap: 8px;
  align-items: baseline;
  font-size: .84rem;
  color: var(--ink-soft);
}

.split-segment-dates {
  color: var(--muted);
  white-space: nowrap;
}

.split-segment-name {
  font-weight: 500;
  color: var(--forest);
}

.success-message {
  margin: 12px 0 20px;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.55;
}

.split-segment-meta {
  color: var(--ink-soft);
  white-space: nowrap;
}

.split-transfer {
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clay-deep);
  padding-left: 4px;
  border-left: 2px solid var(--clay);
}

@media (max-width: 640px) {
  .split-segment {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .split-segment-meta { white-space: normal; }
}

.calendar-option-checkbox[hidden] { display: none; }

.picker-checkbox-field.is-disabled {
  cursor: default;
  opacity: .7;
}

@media (max-width: 640px) {
  .picker-form { grid-template-columns: 1fr; }
  .picker-submit { width: 100%; }
  .picker-result { align-items: flex-start; }
  .picker-result-actions { width: 100%; }
  .picker-result-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .calendar-overlay { padding: 0; }
  .calendar-panel {
    width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    padding: 20px 16px 28px;
  }
  .calendar-cell { min-height: 48px; }
  .calendar-cell.is-empty { min-height: 48px; }
  .calendar-cell-price { font-size: .58rem; }
}

