:root {
  --bg: #f7f7f5;
  --fg: #1a1a1a;
  --muted: #666;
  --border: #ddd;
  --accent: #b03030;
  --accent-fg: #fff;
  --good: #2a7a3a;
  --warn: #b58700;
  --bad: #b03030;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
header a, header .brand { color: var(--fg); text-decoration: none; font-weight: 600; }
header nav a { margin-left: 0.75rem; font-weight: 400; font-size: 0.95rem; }
header nav form { display: inline; }
main { max-width: 960px; margin: 1.5rem auto; padding: 0 1rem 4rem; }
body.wide-page main { max-width: 1400px; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }
p { margin: 0.4rem 0; }
.muted { color: var(--muted); font-size: 0.9rem; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
form label { display: block; margin: 0.5rem 0 0.25rem; font-size: 0.9rem; color: var(--muted); }
input, select, textarea, button {
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  width: 100%;
  max-width: 380px;
}
/* Checkboxes and radios are not text inputs — strip the box styling
   the rule above applies to all `input`s. */
input[type="checkbox"], input[type="radio"] {
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  margin: 0 0.4rem 0 0;
  vertical-align: middle;
  cursor: pointer;
}
label {
  vertical-align: middle;
}
/* When a checkbox shares a label with text, stop the label from going
   block-level so the box and its caption stay on one line. */
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  margin-right: 0.75rem;
}
button, .btn {
  background: var(--accent);
  color: var(--accent-fg);
  cursor: pointer;
  border: 0;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  width: auto;
  text-decoration: none;
  display: inline-block;
}
button.secondary, .btn.secondary {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
}
button.danger { background: var(--bad); }
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 12px;
  background: #eef;
  color: #224;
}
.badge.good { background: #e6f4e8; color: var(--good); }
.badge.warn { background: #fff4d6; color: var(--warn); }
.badge.bad { background: #f7e3e3; color: var(--bad); }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem; }
th { background: #fafafa; font-weight: 600; }
tr:hover td { background: #fafaf2; }
.table-wrap { overflow-x: auto; }
.bookings-table { min-width: 1100px; }
.bookings-table th, .bookings-table td { white-space: nowrap; }
.bookings-table td.cell-ellipsis { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.guests-table { min-width: 1300px; }
.guests-table tr.guest-bookings-row td { background: #fafafa; padding: 0.25rem 0.5rem; border-top: 0; }
.guests-table tr.guest-bookings-row table { background: #fff; }
.error { color: var(--bad); font-size: 0.9rem; }
.success { color: var(--good); font-size: 0.95rem; }
.countdown { font-size: 1.25rem; font-weight: 600; color: var(--bad); }
.image-thumb {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 4px;
  background: #fff;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.image-thumb img { max-width: 120px; display: block; }
.flex-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.muted-small { color: var(--muted); font-size: 0.8rem; }

/* Admin tab strip */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  background: #fff;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}
.admin-tab {
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: background 0.1s, border-color 0.1s;
}
.admin-tab:hover { background: #fafafa; }
.admin-tab.active {
  border-bottom-color: var(--accent);
  background: #fafafa;
  color: var(--accent);
}
.admin-tab-home {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
}
.admin-tab-home:hover { background: #333; }

/* View toggle (table | calendar) */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-left: 0.5rem;
}
.view-toggle a {
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.88rem;
  background: #fff;
}
.view-toggle a.active { background: var(--accent); color: var(--accent-fg); }

/* Room tabs (pricing page) — one row per building */
.room-tab-card { padding: 0.75rem 1rem; }
.room-tab-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
}
.room-tab-row:last-of-type { border-bottom: 0; }
.room-tab-building {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 12rem;
  color: var(--muted);
}
.room-tabs { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.room-tab {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.88rem;
}
.room-tab:hover { background: #fafafa; }
.room-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.room-tab.active .muted-small { color: rgba(255,255,255,0.85); }

/* Booking form: force exactly 2 columns regardless of viewport so the four
   boxes lay out as a 2×2 grid (date | time on row 1, date | time on row 2).
   The default .grid.cols-2 uses auto-fit minmax(280px, 1fr) which gives 3
   columns on widescreens. Override here. */
.grid.cols-2.booking-times {
  grid-template-columns: 1fr 1fr;
}
.booking-times input,
.booking-times select {
  width: 100%;
  max-width: none;
}

/* Reports — full-width revenue trend chart wrap */
.trend-chart-wrap { width: 100%; }
.trend-chart-wrap svg { display: block; width: 100%; }

/* Reports performance matrix with freeze-pane (sticky first column + first row) */
.reports-matrix-wrap {
  overflow: auto;
  max-height: 75vh;
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
}
.reports-matrix {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
  table-layout: fixed;
  width: max-content;
}
.reports-matrix th,
.reports-matrix td {
  padding: 0.5rem 0.55rem;
  vertical-align: top;
  width: 12rem;
  height: 5.6rem;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fff;
  box-sizing: border-box;
}
.reports-matrix .sticky-col {
  position: sticky;
  left: 0;
  width: 11rem;
  min-width: 11rem;
  max-width: 11rem;
  z-index: 2;
  background: #fafafa;
  border-right: 2px solid var(--border);
}
.reports-matrix .sticky-row {
  position: sticky;
  top: 0;
  background: #fafafa;
  font-weight: 600;
  z-index: 3;
  border-bottom: 2px solid var(--border);
  height: 2.6rem;
}
.reports-matrix th.sticky-col.sticky-row {
  z-index: 4;
  background: #f1ebeb;
}
.reports-matrix .room-name { white-space: nowrap; }
.reports-matrix .totals-col { background: #fff5e6 !important; }
.reports-matrix tr.building-header td {
  background: #1a1a1a !important;
  color: #fff;
  font-weight: 600;
  height: 2.4rem;
}
.reports-matrix tr.building-header td.sticky-col { background: #1a1a1a !important; color: #fff; }
.reports-matrix tr.building-header td.sticky-col strong { color: #fff; }
.reports-matrix tr.building-total td {
  background: #fff5e6 !important;
  font-weight: 600;
}
.reports-matrix tr.grand-total td {
  background: #f1ebeb !important;
  font-weight: 700;
  border-top: 2px solid var(--border);
}
.report-cell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.25;
}
.report-cell .rc-k { color: var(--muted); display: inline-block; min-width: 2.2rem; }
.report-cell .rc-v { font-weight: 600; }
.report-cell .rc-pos { color: var(--good); }
.report-cell .rc-neg { color: var(--bad); }

/* Feature checkbox grid (Properties admin) */
.feature-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin: 0.4rem 0 0.6rem;
}
.feature-checkbox {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  margin: 0 !important;
}
.feature-checkbox:hover { background: #fafafa; }
.feature-checkbox:has(input:checked) {
  background: #fff5e6;
  border-color: var(--accent);
}
.feature-icon-tag {
  font-size: 1.3rem;
  line-height: 1;
}
.feature-checkbox input[type="checkbox"] { margin: 0 !important; }

/* Minibar inventory matrix */
.inventory-matrix { font-size: 0.86rem; }
.inventory-matrix th, .inventory-matrix td {
  padding: 0.5rem 0.55rem;
  vertical-align: top;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.inventory-matrix .sticky-col {
  position: sticky;
  left: 0;
  background: #fafafa;
  border-right: 2px solid var(--border);
  min-width: 9rem;
  z-index: 1;
}
.inv-stock { font-size: 1.2rem; font-weight: 700; }
.inv-neg { color: var(--bad); }
.inv-low { background: #fff5e6 !important; }
.inv-low .inv-stock { color: var(--accent); }

/* -------------------- Landing page -------------------- */
body.landing main {
  max-width: 1200px;
  /* No top margin so the hero starts flush against the page top and the
     transparent header overlays the red hero (not a strip of white body). */
  margin: 0 auto;
  padding: 0 1rem 4rem;
}
body.landing header {
  border-bottom: none;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
body.landing header .brand,
body.landing header nav a,
body.landing header nav .muted-small,
body.landing header nav button {
  color: #fff;
}
body.landing header nav button {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
body.landing { background: #fff; }

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 7rem 0 5rem;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 70%),
    linear-gradient(135deg, #b03030 0%, #6e1f1f 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero .subtitle {
  font-size: 1.1rem;
  opacity: 0.92;
  margin: 0 0 1.75rem;
}
.hero-cta { display: inline-flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.hero-cta .btn {
  background: #fff;
  color: #1a1a1a;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.hero-cta .btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.section {
  padding: 3rem 0 1rem;
}
.section h2 {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
}
.section .lede {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 1rem;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.room-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.room-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.08);
}
.room-card a.media-link { display: block; }
.room-card .media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1ebeb center/cover no-repeat;
}
.room-card .media .price-pill {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.96);
  color: #1a1a1a;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.room-card .body { padding: 0.85rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.room-card h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.room-card .building-line { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.5rem; }
.room-card .feature-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.25rem 0 0.75rem; }
.room-card .feature-tags .tag {
  background: #f5efef;
  color: #5b3030;
  font-size: 0.74rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.room-card .room-cta {
  margin-top: auto;
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.room-card .room-cta:hover { background: var(--accent); }

.hero-contacts {
  display: inline-flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-contacts .contact-pill {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.6rem 1.1rem;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  text-align: left;
  min-width: 11rem;
}
.hero-contacts .contact-pill:hover { background: #fff; }
.hero-contacts .contact-pill strong { font-size: 1.15rem; letter-spacing: 0.02em; color: var(--accent); }
.hero-contacts .contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6e1f1f;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.6rem 0;
}
.social-row .social-card {
  flex: 0 1 240px;
  text-align: left;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: #1a1a1a;
  transition: transform 0.1s ease, opacity 0.1s ease;
}
.social-card:hover { transform: translateY(-1px); opacity: 0.92; }
.social-card .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.25rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.social-card strong { display: block; font-size: 0.98rem; }
.social-card p { margin: 0.1rem 0 0; font-size: 0.82rem; opacity: 0.78; }
.social-card.facebook { background: #1877f2; }
.social-card.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-card.tiktok { background: linear-gradient(135deg, #25f4ee 0%, #000 50%, #fe2c55 100%); }
.social-card.phone-call.reservations { background: #2a7a3a; }
.social-card.phone-call.cs { background: #1f6f9f; }

.fb-embed-wrap {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  /* Match the FB plugin's actual rendered box: 500 wide, 600 tall.
     Centered horizontally so it sits as a single column on the page. */
  width: 500px;
  max-width: 100%;
  height: 600px;
  margin: 0 auto;
}
.fb-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* -------------------- Room detail page -------------------- */
.room-detail { padding: 0 0 2rem; }
.room-detail-header { margin-bottom: 1.25rem; }

/* Compact photo strip — small thumbnails so the room *page* (info + booking)
   gets the visual weight. Click any to open the lightbox. */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 0 0 0.4rem;
}
.photo-strip-tile {
  background: #f1ebeb center/cover no-repeat;
  border: 0;
  border-radius: 8px;
  padding: 0;
  height: 110px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.photo-strip-tile:hover { filter: brightness(0.92); transform: translateY(-1px); }

.video-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.video-tile { border-radius: 10px; overflow: hidden; }
.video-tile iframe,
.video-tile video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.link-button {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font: inherit;
}

/* Lightbox — hidden by default; .is-open turns it into a centered overlay.
   The previous default of `display: flex` overrode the `hidden` attribute,
   leaving the modal visible on page load. */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.lightbox-nav,
.lightbox-close {
  position: absolute;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
}
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Feature pills (room detail) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
}
.feature-pill-icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* Two-column page layout: room info on the left, sticky booking form on the right. */
.room-detail-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.room-detail-aside { position: sticky; top: 1rem; }
.booking-form-card { padding: 1rem 1.1rem; }
.booking-form-card h2 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.booking-form-card label { font-size: 0.82rem; }
.booking-form-card input,
.booking-form-card select,
.booking-form-card textarea { padding: 0.4rem 0.55rem; font-size: 0.92rem; }
.booking-form-card .grid.cols-2.details-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem 0.85rem; }

@media (max-width: 900px) {
  .room-detail-grid { grid-template-columns: 1fr; }
  .room-detail-aside { position: static; }
  .booking-form-card .grid.cols-2.details-grid { grid-template-columns: 1fr; }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}
.trust-item {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
}
.trust-item .icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  display: block;
}
.trust-item h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.trust-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.landing-footer {
  background: #1a1a1a;
  color: #aaa;
  padding: 2rem 0;
  margin-top: 3rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  text-align: center;
  font-size: 0.9rem;
}

/* Calendar — week view */
.calendar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: auto;
  font-size: 0.82rem;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}
.calendar-header h2 { margin: 0; font-size: 1.1rem; }

/* Each row is flex: sticky room-name + a day track that fills the rest. */
.cal-room-row {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.cal-room-row.cal-header-row { border-bottom: 2px solid var(--border); background: #fafafa; }
.cal-room-row .row-head {
  flex: 0 0 180px;
  padding: 0.55rem 0.7rem;
  border-right: 1px solid var(--border);
  background: #fafafa;
  font-weight: 500;
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cal-header-row .row-head { font-weight: 600; }

.cal-day-track {
  flex: 1;
  min-width: calc(160px * 7);
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 56px;
}
.cal-header-row .cal-day-track { min-height: 0; }

.cal-day-track .day-cell {
  border-right: 1px solid #f0f0f0;
  background: #fff;
}
.cal-day-track .day-cell:last-child { border-right: 0; }
.cal-day-track .day-cell.weekend { background: #fafaf2; }
.cal-day-track .day-cell.today { background: #eef6ff; }
.cal-day-track .day-cell.head {
  padding: 0.45rem 0.3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-weight: 600;
}
.cal-day-track .day-cell.head .dow { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.cal-day-track .day-cell.head .dnum { font-size: 1.05rem; }
.cal-day-track .day-cell.head .dmonth { font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.cal-day-track .day-cell.head.today { color: #1f5fa3; box-shadow: inset 0 -3px 0 #1f5fa3; }
.cal-day-track .day-cell.head.weekend .dow { color: #a59273; }

/* Bars overlay the day track, anchored top/bottom so the row height alone
   determines bar height. left/width come from inline % styles. */
.cal-bar {
  position: absolute;
  top: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: #777;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  transition: filter 0.1s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.cal-bar:hover { filter: brightness(1.12); }
.cal-bar.confirmed { background: #2a7a3a; }
.cal-bar.pending_payment { background: #b58700; }
.cal-bar.checked_in { background: #1f5fa3; }
.cal-bar.checked_out { background: #6b6b6b; }
.cal-bar.cleaning_assigned,
.cal-bar.cleaning_in_progress { background: #a06226; }
.cal-bar.cleaned,
.cal-bar.closed { background: #6e6e6e; }
.cal-bar.cancellation_requested,
.cal-bar.refund_pending,
.cal-bar.extra_payment_required { background: #b03030; }
.cal-bar.maintenance {
  background: repeating-linear-gradient(135deg, #ccc 0, #ccc 4px, #eee 4px, #eee 8px);
  color: #444;
  box-shadow: none;
}

.calendar-legend { padding: 0.5rem 1rem; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--border); }
.calendar-legend .swatch { display: inline-block; width: 12px; height: 12px; vertical-align: middle; margin: 0 4px 0 8px; border-radius: 3px; }
.calendar-legend .maintenance-swatch { background: repeating-linear-gradient(135deg, #ccc 0, #ccc 3px, #eee 3px, #eee 6px); }

/* Availability banner on booking forms */
.availability-banner {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  font-size: 0.92rem;
  border: 1px solid var(--border);
}
.availability-banner.empty { background: #fafafa; color: var(--muted); }
.availability-banner.checking { background: #f6f6f0; color: var(--muted); }
.availability-banner.ok { background: #e6f4e8; color: var(--good); border-color: #b6dfbe; }
.availability-banner.bad { background: #f7e3e3; color: var(--bad); border-color: #e7b9b9; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Traditional Sun-Sat month grid */
.month {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.month-dow-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
}
.month-dow {
  padding: 0.5rem 0.75rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.month-dow:last-child { border-right: 0; }
.month-dow.weekend { color: var(--muted); }

.month-week {
  border-bottom: 1px solid var(--border);
  min-height: 110px;
  font-size: 0.78rem;
  position: relative;
}
.month-week:last-child { border-bottom: 0; }

.month-cell {
  border-right: 1px solid #f0f0f0;
  padding: 4px 6px 4px;
  position: relative;
  background: #fff;
  z-index: 0;
}
.month-cell:last-child { border-right: 0; }
.month-cell.weekend { background: #fafaf2; }
.month-cell.outside { background: #f5f5f3; color: #aaa; }
.month-cell.today { background: #e8f3ff; box-shadow: inset 0 0 0 2px #1f5fa3; }
.month-cell .day-num {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--fg);
  margin-bottom: 2px;
}
.month-cell.outside .day-num { color: #aaa; }

.month-bar {
  align-self: stretch;
  margin: 1px 2px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #777;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  position: relative;
  font-size: 0.74rem;
}
.month-bar:hover { filter: brightness(1.15); }
.month-bar.confirmed { background: #2a7a3a; }
.month-bar.pending_payment { background: #b58700; }
.month-bar.checked_in { background: #1f5fa3; }
.month-bar.checked_out { background: #6b6b6b; }
.month-bar.cleaning_assigned, .month-bar.cleaning_in_progress { background: #a06226; }
.month-bar.cleaned, .month-bar.closed { background: #6e6e6e; }
.month-bar.cancellation_requested,
.month-bar.refund_pending,
.month-bar.extra_payment_required { background: #b03030; }

/* Pricing table row highlights */
table tr.weekend td { background: #fafaf2; }
table tr.special td { background: #fff5e6; }
table tr.special.weekend td { background: #fff0d8; }

/* Video embed (YouTube/Vimeo/Drive) */
.vid-embed {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #000;
  display: block;
  margin-bottom: 0.75rem;
}
