:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #e8ebe6;
  --text: #1f2b27;
  --muted: #4d5a54;
  --accent: #1f4a3a;
  --accent-hover: #163628;
  --accent-soft: #e4ede7;
  --available: #1f6b43;
  --held: #8a5a00;
  --booked: #a33a35;
  --line: #cdd4c9;
  --line-strong: #6f7b74;
  --radius: .5rem;
  --radius-sm: .375rem;
  --radius-media: .75rem;
  --shadow: none;
  --header-bg: #f5f5f7;
  --header-bg-blur: rgb(245 245 247 / 85%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 3rem;
  --space-7: 5rem;
  --container: 1200px;
  font-family: var(--font);
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
table { max-width: 100%; }
.room-grid > *, .gallery-grid > *, .form-grid > *, .location-grid > *, .header-inner > *, .footer-inner > *, .availability-result > *, .calendar-days > * { min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
a, button { touch-action: manipulation; }
button, .button { min-height: 44px; }
.button { width: 100%; }
.button--small { width: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
.site-header { position: sticky; z-index: 5; top: 0; padding-top: env(safe-area-inset-top); background: var(--header-bg); border-bottom: 2px solid var(--accent); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) { .site-header { background: var(--header-bg-blur); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); } }
.header-inner { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem 1rem; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-decoration: none; letter-spacing: -.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; width: 100%; justify-content: space-between; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; box-shadow: inset 0 -2px 0 transparent; transition: color .15s ease, box-shadow .15s ease; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
main { min-height: 65vh; }
.hero { width: min(100% - 2rem, 1200px); margin: var(--space-5) auto var(--space-6); display: grid; gap: var(--space-5); }
.hero .frame { width: 100%; }
.hero-copy { max-width: 36rem; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: .75rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; text-wrap: balance; }
h1 { margin-bottom: 1rem; font-size: clamp(2.3rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
h2 { margin-bottom: .75rem; font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
.lead { max-width: 60ch; color: var(--muted); font-size: 1.125rem; line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .7rem 1.3rem; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); color: #fff; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .12s ease, opacity .12s ease; -webkit-tap-highlight-color: transparent; }
.button:active { transform: scale(.98); }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.button--secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button--secondary:hover { background: var(--surface-2); border-color: var(--text); color: var(--text); }
.button--small { min-height: 44px; padding: .5rem 1rem; font-size: .92rem; }
.button:disabled { opacity: .55; pointer-events: none; transform: none; }
.section { padding-block: var(--space-6); }
.section-heading { max-width: 640px; margin-bottom: var(--space-5); }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.panel, .availability-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card { display: flex; flex-direction: column; background: none; border: 0; border-radius: 0; overflow: visible; }
.card .frame { aspect-ratio: 4 / 5; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-4) 0 0; border-bottom: 2px solid var(--line); padding-bottom: var(--space-5); }
.card:hover .card__body { border-bottom-color: var(--accent); }
.card__body h3 { margin-bottom: .35rem; }
.card__body p { color: var(--muted); }
.card__body .button { width: 100%; margin-top: auto; }
.card__body .button + .button { margin-top: var(--space-2); }
.back-link { margin-top: var(--space-5); }
.back-link a { font-weight: 600; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }
.room-actions { display: grid; gap: .75rem; margin-top: var(--space-5); }
section[id] { scroll-margin-top: 5rem; }
.price { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.frame { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-media); background: var(--surface-2); }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame::before { position: absolute; inset: 0; content: ""; opacity: .46; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23857f77' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 19h12l4-6h14l4 6h12a4 4 0 0 1 4 4v26a4 4 0 0 1-4 4H9a4 4 0 0 1-4-4V23a4 4 0 0 1 4-4Z'/%3E%3Ccircle cx='32' cy='35' r='10'/%3E%3C/svg%3E"); background-position: center; background-repeat: no-repeat; background-size: 64px; }
.frame img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { position: absolute; z-index: 2; inset: auto 0 0; padding: .6rem .8rem; color: white; background: linear-gradient(transparent, rgb(0 0 0 / 65%)); font-size: .86rem; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--1x1 { aspect-ratio: 1; }
.gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.gallery-grid .frame { min-width: 0; }
.split { display: grid; gap: 2rem; align-items: center; }
.location-grid { display: grid; gap: 1.5rem; }
.contact-card { padding: var(--space-5); background: var(--surface-2); border-radius: var(--radius); border-left: 4px solid var(--accent); }
.site-footer { margin-top: var(--space-6); padding-block: var(--space-5) calc(var(--space-5) + env(safe-area-inset-bottom)); background: #1f2b27; color: #dfe4dc; font-size: .95rem; }
.site-footer a { color: #f0c9a8; }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
.page-intro { padding-block: var(--space-6) var(--space-4); }
.panel { padding: clamp(1.25rem, 3vw, 2rem); margin-block: var(--space-5); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form-grid + p:not(.booking-summary) { margin-top: var(--space-4); }
.field { display: grid; gap: .35rem; }
.field label, legend { font-size: .95rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; font-size: 1rem; padding: .65rem .75rem; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.field textarea { min-height: 120px; resize: vertical; }
.hint, .muted { color: var(--muted); }
.field-error { color: #8e2924; font-size: .9rem; font-weight: 600; }
.message { min-height: 1.5em; color: var(--muted); }
.message--error { color: #8e2924; font-weight: 650; }
.availability-results { display: grid; gap: .75rem; margin-top: 1rem; }
.availability-result { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem; }
.availability-result h3, .availability-result p { margin: 0; }
.availability-result__action { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .7rem; }
.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.calendar-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .75rem; width: 100%; }
.calendar-controls .field { grid-column: 1 / -1; }
.calendar-controls .button { width: 100%; }
#previous-month { order: 3; }
#next-month { order: 4; }
.calendar-toolbar + h3 { margin-top: var(--space-5); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; margin-top: 1rem; }
.calendar-days { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.calendar-weekday, .calendar-day { display: grid; place-items: center; min-height: 42px; border-radius: .5rem; }
.calendar-weekday { color: var(--muted); font-size: .82rem; font-weight: 700; }
.calendar-day { border: 1px solid var(--line); font-weight: 650; }
.calendar-day--available { background: #e3f2e8; color: #174e34; }
.calendar-day--held { background: #fff0cc; color: #694300; }
.calendar-day--booked { background: #f8e2df; color: #702b27; }
.calendar-day--empty { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: .9rem; height: .9rem; border-radius: .2rem; }
.legend .available { background: #e3f2e8; }
.legend .held { background: #fff0cc; }
.legend .booked { background: #f8e2df; }
.checkbox-field { display: flex; align-items: flex-start; gap: .65rem; }
.checkbox-field input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--accent); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success-panel { border-left: 5px solid var(--available); }
.status-pill { display: inline-block; padding: .22rem .6rem; border-radius: 999px; background: #e3f2e8; color: #174e34; font-size: .85rem; font-weight: 700; }
.stat-number { margin: 0; font-size: 2rem; font-weight: 750; line-height: 1.1; }
.admin-list { display: grid; gap: 1rem; }
.admin-card { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.admin-card h3, .admin-card p { margin-bottom: .35rem; }
.admin-card__details { flex: 1 1 100%; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 9; transform: translateY(-160%); padding: .65rem; background: white; }
.skip-link:focus { transform: translateY(0); }

@media (min-width: 600px) {
  .button { width: auto; }
  .room-actions { grid-auto-flow: column; justify-content: start; }
  .footer-inner { flex-direction: row; justify-content: flex-start; align-items: center; gap: 1.5rem; }
  .calendar-controls { display: flex; flex-wrap: wrap; width: auto; gap: .6rem; }
  .calendar-controls .field { grid-column: auto; }
  .calendar-controls .button { width: auto; }
  #previous-month, #next-month { order: 0; }
  .site-nav { width: auto; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
  .availability-result { flex-direction: row; align-items: center; justify-content: space-between; }
  .availability-result__action { justify-content: flex-end; }
}

@media (max-width: 599px) {
  .header-inner { align-items: flex-start; padding-block: .6rem; gap: .2rem; }
  .site-nav { gap: .25rem .9rem; }
  .site-nav a { font-size: .92rem; }
  .availability-result__action { justify-content: flex-start; }
  .admin-actions .button { width: 100%; }
}

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--booked); }
.field-error:not(:empty)::before { content: "\26A0\00a0"; }
.booking-summary { position: static; margin-block: 1.25rem 0; padding: 1rem 1.2rem; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: 1.1rem; }
.calendar-day { min-width: 0; }
.calendar-day--available { border-color: var(--available); }
.calendar-day--held { border-color: var(--held); }
.calendar-day--booked { border-color: var(--booked); }
.legend i { border: 1px solid var(--line); }
.legend .available { border-color: var(--available); }
.legend .held { border-color: var(--held); }
.legend .booked { border-color: var(--booked); }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: var(--space-6); margin-block: var(--space-6) var(--space-7); }
  .hero-copy { order: -1; }
  .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .location-grid { grid-template-columns: 1.2fr .8fr; }
  .booking-summary { position: sticky; bottom: var(--space-4); max-width: 420px; margin-left: auto; }
  .calendar-day { min-height: 56px; }
}

.legend { order: 1; }
section:has(> .calendar-grid) { display: flex; flex-direction: column; }
.calendar-grid { order: 2; }

@media (max-width: 480px) {
  .calendar-grid, .calendar-days { gap: .25rem; }
  .calendar-day { min-height: 40px; font-size: .92rem; }
}

@media (min-width: 1200px) {
  .hero-copy { max-width: 640px; }
  .section { padding-block: var(--space-7); }
}

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

.whatsapp-float { position: fixed; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 1000; display: inline-flex; align-items: center; min-height: 44px; background: #128c4a; color: #fff; padding: .75rem 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgb(0 0 0 / 20%); }
.whatsapp-float:hover { background: #0f7a40; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121a17; --surface: #1b2622; --surface-2: #26332e; --text: #eef0ea; --muted: #a8b3ac;
    --accent: #8fc2a0; --accent-hover: #a6d4b5; --accent-soft: #1a2e24;
    --line: #34423c; --line-strong: #7c8a83; --available: #5bd18b; --held: #f0b840; --booked: #ff8a84;
    --header-bg: #121a17; --header-bg-blur: rgb(18 26 23 / 85%);
    --shadow: none;
  }
  .button, .button:hover { color: #14201b; }
  .site-footer { background: #0b100e; }
  .button--secondary, .button--secondary:hover { color: var(--text); }
  .frame { background: var(--surface-2); }
  .calendar-day--available, .legend .available, .status-pill { background: #12331f; color: #b8f0cf; }
  .calendar-day--held, .legend .held { background: #3a2c08; color: #ffe0a0; }
  .calendar-day--booked, .legend .booked { background: #3d1917; color: #ffc9c5; }
  .field-error, .message--error { color: #ff9b95; }
  .skip-link { background: var(--surface); color: var(--text); }
}
