/* ENSŌ room rental — quiet operational warmth, shared across the rental journey. */
:root {
  --rental-jade: #5F8575;
  --rental-jade-deep: #456657;
  --rental-sage: #CBD5C0;
  --rental-room: #FFFFF8;
  --rental-beige: #E3DAD5;
  --rental-ink: #202522;
  --rental-muted: #646d67;
  --rental-line: #e6e6dc;
  --rental-soft: #f5f6ef;
  --rental-font-heading: 'Inter', sans-serif;
  --rental-font-body: 'Noto Sans', sans-serif;
}

.rental-photo-empty {
  grid-column: 1 / -1; width: 100%; min-height: 240px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2rem; text-align: center; color: var(--rental-ink);
  background: var(--rental-soft);
}
.rental-photo-empty__detail { margin-top: .5rem; color: var(--rental-muted); font-size: .875rem; }

.booking-page, .access-page, body:has(.room-hero) { background: var(--rental-room); color: var(--rental-ink); }
.booking-page, .access-page, .booking-receipt, .room-owner-review, .so-room-bookings { font-family: var(--rental-font-body); }
.booking-page h1, .booking-page h2, .booking-page h3, .booking-page h4,
.access-page h1, .booking-receipt h1, .room-owner-review h1, .so-room-bookings h1 {
  font-family: var(--rental-font-heading);
  color: var(--rental-ink);
  letter-spacing: -.025em;
}
.booking-page { min-height: 100dvh; padding-bottom: 3rem; }
.booking-page > .container { max-width: 1160px; }
.room-header { border-color: var(--rental-line); padding: 2rem 0 1.35rem; margin-bottom: 1.6rem; }
.room-header h1 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
.room-header .location-link, .location-block a, .drawer-detail .value a { color: var(--rental-jade-deep); }
.meta-row { color: var(--rental-muted); gap: .7rem 1.35rem; }
.meta-row i { color: var(--rental-jade); }
.header-actions .btn-icon { width: 44px; height: 44px; background: var(--rental-room); border-color: var(--rental-line); }
.hero-section { margin-bottom: 2.25rem; }
.photo-gallery { border-radius: 4px; height: clamp(250px, 38vw, 440px); gap: 10px; }
.photo-gallery .main-photo, .photo-gallery .side-photos img { object-fit: cover; }
.about-section, .availability-section, .hosted-section {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rental-line);
  border-radius: 0;
  padding: 1.6rem 0;
  margin-bottom: 1rem;
}
.availability-section { padding: 1.75rem 0; }
.about-section h3, .availability-section h3, .hosted-section h3 { font-size: 1.25rem; }
.about-section p, .location-block p, .host-details p { color: var(--rental-muted); line-height: 1.75; }
.availability-section .helper-text { color: var(--rental-muted); }
.date-search-bar input, .date-search-bar .today-btn, .date-navigation .nav-btn,
.filter-pill, .slot-card, .day-card { border-radius: 3px; }
.date-search-bar input, .date-search-bar .today-btn, .date-navigation .nav-btn { min-height: 44px; }
.date-search-bar input { background: var(--rental-room); border-color: #d8ddd5; }
.date-search-bar .today-btn { display: inline-flex; align-items: center; justify-content: center; }
.filter-pill { min-height: 42px; padding-inline: 14px; background: transparent; border-color: var(--rental-line); }
.filter-pill.active, .day-card.selected, .slot-card.selected { background: var(--rental-jade-deep); border-color: var(--rental-jade-deep); color: #fff; }
.day-grid { gap: 7px; }
.day-card { background: var(--rental-soft); border: 1px solid transparent; min-height: 94px; padding: 12px 6px; }
.day-card.available { background: var(--rental-room); border-color: var(--rental-line); }
.day-card.unavailable { background: #f1f1ed; color: #858b86; }
.day-card:focus-visible, .slot-card:focus-visible, .block-card:focus-visible, .filter-pill:focus-visible,
.booking-page a:focus-visible, .booking-page button:focus-visible, .booking-page input:focus-visible,
.booking-page select:focus-visible, .room-public a:focus-visible, .room-public button:focus-visible,
.room-public [role="button"]:focus-visible,
.room-rental-surface a:focus-visible, .room-rental-surface button:focus-visible,
.room-rental-surface input:focus-visible, .room-rental-surface select:focus-visible {
  outline: 3px solid rgba(95,133,117,.55);
  outline-offset: 3px;
}
.slot-card { min-height: 64px; border-color: var(--rental-line); }
.block-card { border-radius: 3px !important; min-height: 44px; }
.block-card:hover { box-shadow: none !important; transform: none !important; }
.block-card.selected { background: #eef2eb !important; box-shadow: none !important; }
.booking-drawer {
  right: 0;
  transform: translateX(105%);
  transition: transform .24s ease;
  width: min(440px, 100%);
  height: 100dvh;
  background: var(--rental-room);
  box-shadow: -18px 0 45px rgba(32,37,34,.12);
}
.booking-drawer.open { right: 0; transform: translateX(0); }
.drawer-overlay { transition: opacity .24s ease, visibility .24s ease; }
.drawer-header { padding: 1.2rem 1.4rem; border-color: var(--rental-line); }
.drawer-header h3 { font-size: 1.2rem; }
.drawer-close { width: 44px; height: 44px; background: var(--rental-soft); }
.drawer-body { padding: 1.2rem 1.4rem; }
.drawer-detail { gap: 1rem; border-color: var(--rental-line); }
.drawer-detail .label { color: var(--rental-muted); }
.drawer-detail .value { text-align: right; overflow-wrap: anywhere; }
.drawer-body select { min-height: 44px; font: inherit; background: var(--rental-room); }
.drawer-footer { padding: 1.2rem 1.4rem; background: var(--rental-room); border-color: var(--rental-line); }
.drawer-footer .btn-primary { min-height: 48px; border-radius: 3px; background: var(--rental-jade-deep); }
.drawer-footer .btn-primary:disabled { opacity: .66; cursor: wait; }
.drawer-footer .btn-secondary { min-height: 44px; }
.drawer-footer .microcopy { color: var(--rental-muted); }
.booking-page .lightbox-close, .booking-page .lightbox-nav { width: 48px; height: 48px; }

/* Public room discovery */
.room-public { background: var(--rental-room); color: var(--rental-ink); }
.room-hero { height: clamp(270px, 43vw, 520px); background: var(--rental-beige); }
.room-hero { cursor: pointer; }
.room-name, .price-highlight, .card-section h3, .cta-bar h3 { font-family: var(--rental-font-heading); }
.room-name { color: var(--rental-ink); font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.04em; }
.price-highlight, .meta-item i { color: var(--rental-jade-deep); }
.room-price-note { display: block; max-width: 270px; margin-top: .35rem; white-space: normal; font-family: var(--rental-font-body); font-size: .72rem !important; line-height: 1.45; font-weight: 400; color: var(--rental-muted) !important; }
.room-body { max-width: 980px; padding: 2rem 1.25rem 4.5rem; }
.meta-bar { border-color: var(--rental-line); gap: .8rem 1.5rem; }
.meta-item { color: var(--rental-muted); }
.card-section { background: transparent; border: 0; border-top: 1px solid var(--rental-line); border-radius: 0; padding: 1.5rem 0; margin-top: 1rem; }
.card-section h3 { font-size: 1.25rem; }
.card-section p { color: var(--rental-muted); }
.pill-tag { background: #edf1e9; border: 0; color: #3f6253; border-radius: 2px; padding: 7px 11px; }
.avail-day { border-radius: 2px; background: var(--rental-soft); }
.avail-day.has-slots { background: #eef2eb; border-color: #c9d5ca; }
.cta-bar { text-align: left; background: #f2f4ec; border: 0; border-radius: 3px; padding: clamp(1.25rem, 4vw, 2.25rem); }
.cta-bar p { color: var(--rental-muted); }
.btn-book { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px; background: var(--rental-jade-deep); border-radius: 3px; box-shadow: none; font-family: var(--rental-font-body); }
.btn-book:hover { background: var(--rental-jade-deep); box-shadow: none; transform: none; }
.powered-by { color: var(--rental-muted); }
.rp-timetable-row { border-radius: 3px; }
.thumb-strip img { width: 86px; height: 62px; border-radius: 2px; }

/* Access, receipt and owner operations */
.access-page { min-height: 78dvh; padding: 3rem 1rem; }
.access-card { max-width: 560px; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--rental-line); border-radius: 4px; box-shadow: 0 12px 36px rgba(45,56,48,.06); }
.access-icon { width: 56px; height: 56px; border-radius: 3px; background: #edf1e9; margin-bottom: 1.4rem; }
.access-icon i { color: var(--rental-jade-deep); font-size: 1.25rem; }
.access-card h1 { font-size: 1.7rem; }
.access-card p { color: var(--rental-muted); }
.room-info { border-radius: 3px; background: #f2f3ec; }
.btn-primary-brown, .btn-secondary-outline { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; padding-inline: 1.5rem; }
.btn-primary-brown { background: var(--rental-jade-deep); }
.btn-primary-brown:hover { background: var(--rental-jade-deep); transform: none; }
.btn-secondary-outline { border-color: #cdd5cc; }
.booking-receipt { max-width: 760px; padding-top: clamp(1.5rem, 5vw, 3.25rem) !important; }
.booking-receipt__panel { padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--rental-room); border: 1px solid var(--rental-line); border-radius: 4px; }
.booking-receipt__panel h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.booking-receipt__eyebrow { color: var(--rental-jade-deep); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.booking-receipt dl { row-gap: .35rem; }
.booking-receipt dt { color: var(--rental-muted); font-weight: 500; }
.booking-receipt dd { overflow-wrap: anywhere; }
.booking-receipt .btn { min-height: 46px; border-radius: 3px; }
.room-owner-review { background: var(--rental-room); }
.room-owner-review .enso-container { max-width: 920px !important; padding-block: 2rem; }
.room-owner-review article { background: transparent !important; backdrop-filter: none !important; border: 0 !important; border-top: 1px solid var(--rental-line) !important; border-radius: 0 !important; padding: 1.4rem 0 !important; }
.room-owner-review .enso-body-xs { color: var(--rental-muted) !important; }
.room-owner-review .row.g-3 > div { min-width: 0; overflow-wrap: anywhere; }
.room-owner-review .room-review-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.room-owner-review .room-review-actions form { flex: 1 1 220px !important; min-width: 0 !important; }
.room-owner-review .room-review-actions button { border-radius: 3px !important; min-height: 48px; }
.so-room-bookings .section { background: var(--rental-room); }
.so-room-bookings .container { max-width: 1400px; }
.so-room-bookings .table-responsive { border-radius: 3px; }
.so-room-bookings table { min-width: 880px; }
.so-room-bookings .table > :not(caption) > * > * { padding: .9rem .8rem; }
.so-room-bookings .filter-toolbar label { color: var(--rental-muted); }
.so-room-bookings .card { border-color: var(--rental-line); border-radius: 4px; box-shadow: 0 8px 24px rgba(45,56,48,.04); }
.so-room-bookings .btn { min-height: 42px; }
.so-room-bookings .btn-primary { background-color: var(--rental-jade-deep); border-color: var(--rental-jade-deep); }
.so-room-bookings td [style*="#5F8575"] { color: var(--rental-jade-deep) !important; }
.rental-action-label { display: none; }
.rental-cancellation-link { margin: -.4rem 0 1.25rem; color: var(--rental-muted); font-size: .86rem; }
.rental-cancellation-link i { margin-right: .35rem; color: var(--rental-jade-deep); }
.rental-cancellation-link a { color: var(--rental-jade-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rental-status-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.15rem; }
.rental-status-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .95rem;
  border: 1px solid var(--rental-line);
  border-radius: 3px;
  color: var(--rental-jade-deep);
  background: var(--rental-room);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}
.rental-status-nav a:hover { border-color: var(--rental-jade-deep); }
.rental-status-nav a.active { background: var(--rental-jade-deep); border-color: var(--rental-jade-deep); color: #fff; }

@media (max-width: 767.98px) {
  .booking-page > .container { padding-inline: 1rem; }
  .room-header { padding-top: 1.25rem; }
  .photo-gallery { height: auto; min-height: 230px; }
  .photo-gallery .main-photo { height: 250px; }
  .day-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .day-card { min-height: 78px; padding: 9px 2px; }
  .day-card .day-name, .day-card .slot-info { font-size: .62rem; }
  .date-navigation { gap: .4rem; }
  .date-navigation .nav-btn { padding: 8px 10px; }
  .date-navigation .current-week { font-size: .78rem; text-align: center; }
  .booking-drawer { width: 100%; }
  .drawer-body { padding-bottom: 2rem; }
  .room-body { padding-inline: 1rem; }
  .room-owner-review .enso-container { padding-inline: 1rem; }
  .so-room-bookings .table-responsive { overflow: visible !important; }
  .so-room-bookings table { display: block; width: 100%; min-width: 0; }
  .so-room-bookings table thead { display: none; }
  .so-room-bookings table tbody { display: grid; gap: .85rem; }
  .so-room-bookings table tbody tr {
    display: block;
    margin: 0;
    padding: .45rem .9rem;
    border: 1px solid var(--rental-line);
    border-radius: 4px;
    background: var(--rental-room);
    box-shadow: 0 5px 16px rgba(45,56,48,.045);
  }
  .so-room-bookings table tbody td {
    display: grid !important;
    grid-template-columns: minmax(6.1rem, .42fr) minmax(0, 1fr);
    align-items: start;
    gap: .55rem;
    padding: .68rem 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rental-line) !important;
    overflow-wrap: anywhere;
  }
  .so-room-bookings table tbody td::before {
    content: attr(data-label);
    color: var(--rental-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.45;
    text-transform: uppercase;
  }
  .so-room-bookings table tbody td:last-child { border-bottom: 0 !important; }
  .so-room-bookings .btn-group { display: flex; flex-wrap: wrap; gap: .35rem; }
  .so-room-bookings .btn-group > .btn,
  .so-room-bookings .btn-group > .dropdown,
  .so-room-bookings .btn-group > form { margin: 0; }
  .so-room-bookings .btn-group > .btn,
  .so-room-bookings .btn-group > .dropdown > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: .4rem;
    padding-inline: .65rem;
  }
  .so-room-bookings .rental-action-label { display: inline; font-size: .73rem; }
  .rental-status-nav { gap: .4rem; }
  .rental-status-nav a { flex: 1 1 auto; justify-content: center; padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-drawer, .drawer-overlay, .btn-book, .day-card, .slot-card, .filter-pill { transition: none !important; }
}
