:root {
  --sage: #5f8a7c;
  --sage-dark: #46695e;
  --sage-light: #e7f0ec;
  --ink: #1d2422;
  --muted: #6b7672;
  --line: #e4e8e6;
  --bg: #fafaf8;
  --white: #fff;
  --amber: #d9922e;
  --red: #c4483e;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 40, 34, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { font-weight: 800; letter-spacing: .02em; text-decoration: none; color: var(--ink); font-size: 18px; }
.brand span { color: var(--sage); }
.nav-links { display: flex; gap: 18px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .1s, background .2s, opacity .2s; font-family: inherit; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--sage-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }

/* hero */
.hero { padding-top: 56px; padding-bottom: 28px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; margin: 0 0 14px; letter-spacing: -.02em; font-weight: 900; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; color: var(--sage); margin-bottom: 10px; }

/* property cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; padding: 16px 0 56px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.price-tag { position: absolute; top: 14px; right: 14px; background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; box-shadow: var(--shadow); }
.price-tag small { color: var(--muted); font-weight: 600; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin: 0 0 4px; font-size: 21px; }
.card-meta { color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: var(--sage-light); color: var(--sage-dark); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 700; }

/* property page */
.prop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 34px 0 18px; }
.prop-head h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.02em; line-height: 1.05; }
.prop-head .price { font-size: 30px; font-weight: 900; color: var(--sage); }
.prop-head .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.gallery-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 420px; }
.gallery-hero img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; border-radius: var(--radius); transition: transform .2s; }
.gallery-hero img:hover { transform: scale(1.015); }
.layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; padding: 36px 0 60px; align-items: start; }
.section { margin-bottom: 40px; }
.section h2 { font-size: 24px; margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 12px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.fact b { display: block; font-size: 20px; }
.fact span { color: var(--muted); font-size: 13px; }
.room { display: grid; grid-template-columns: 220px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 14px; }
.room-photos { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 10px; }
.room-photos img { width: 220px; height: 165px; object-fit: cover; flex: 0 0 auto; scroll-snap-align: start; border-radius: 10px; cursor: zoom-in; }
.room h3 { margin: 6px 0 4px; }
.room p { margin: 0; color: var(--muted); }
.room .count { font-size: 12px; color: var(--muted); margin-top: 8px; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 42px; position: relative; }
.rules li::before { content: "✓"; position: absolute; left: 15px; top: 11px; color: var(--sage); font-weight: 900; }
.times { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.times div { flex: 1; min-width: 140px; background: var(--sage-light); border-radius: 12px; padding: 12px 14px; }
.times b { display: block; font-size: 20px; }

/* booking panel */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 80px; }
.panel h2 { margin: 0 0 4px; font-size: 22px; }
.panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head b { font-size: 16px; }
.cal-nav { background: var(--bg); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; user-select: none; }
.cal-grid .dow { font-size: 11px; color: var(--muted); font-weight: 700; padding: 4px 0; }
.day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; position: relative; border: 0; background: none; font-family: inherit; color: var(--ink); }
.day:hover:not(:disabled) { background: var(--sage-light); }
.day:disabled { color: #c3c9c6; cursor: not-allowed; }
.day.booked { color: #c3c9c6; text-decoration: line-through; background: repeating-linear-gradient(135deg, #f4f5f4 0 4px, #fff 4px 8px); }
.day.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--sage); }
.day.in-range { background: var(--sage-light); border-radius: 0; }
.day.start, .day.end { background: var(--sage) !important; color: #fff; }
.day.start { border-radius: 10px 0 0 10px; }
.day.end { border-radius: 0 10px 10px 0; }
.day.start.end { border-radius: 10px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin: 10px 0 4px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.sel-summary { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; overflow: hidden; }
.sel-summary div { padding: 10px 12px; }
.sel-summary div + div { border-left: 1px solid var(--line); }
.sel-summary small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form { display: grid; gap: 10px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label.f { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage); outline-offset: -1px; border-color: transparent; }
.total { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px dashed var(--line); margin-top: 4px; font-size: 15px; }
.total b { font-size: 20px; }
.error { background: #fdecea; color: var(--red); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); text-align: center; }

/* confirmation */
.confirm { max-width: 640px; margin: 40px auto 60px; }
.confirm .box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.status.pending { background: #fdf3e3; color: var(--amber); }
.status.confirmed { background: var(--sage-light); color: var(--sage-dark); }
.status.cancelled, .status.rejected { background: #fdecea; color: var(--red); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 18px 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,14,13,.92); display: none; align-items: center; justify-content: center; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; background: #fff; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; background: var(--wa); color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .panel { position: static; }
  .gallery-hero { display: flex; height: 340px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px; }
  .gallery-hero img { width: 72%; flex: 0 0 auto; scroll-snap-align: center; }
  .room { grid-template-columns: 1fr; }
  .room-photos img { width: 78%; height: 210px; }
  .nav-links { display: none; }
}
[hidden] { display: none !important; }
@media (max-width: 500px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .fact { padding: 10px; }
  .fact b { font-size: 16px; overflow-wrap: anywhere; }
}

/* payment box */
.paybox { border: 2px solid #f0d3a5; background: #fffcf6; border-radius: 14px; padding: 18px; margin: 20px 0 8px; }
.paybox h3 { margin: 0; font-size: 18px; }
.paybox .kv { margin: 10px 0; grid-template-columns: 1fr auto; }
.paybox .kv dd { text-align: right; }
.paybox .bank { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; grid-template-columns: 110px 1fr; }
.paybox .bank dd { text-align: left; }
.paybox .qr { text-align: center; margin: 14px 0; display: grid; justify-items: center; gap: 8px; }
.paybox .qr img { width: 240px; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.paybox .note { font-size: 14px; color: var(--muted); margin: 10px 0; }
.paybox .msg { white-space: pre-wrap; font-size: 15px; background: #fff; border-radius: 10px; padding: 12px; margin-top: 10px; border: 1px solid var(--line); }
