/* ==========================================================================
   BrookHills — Rooms list + room detail (v2)
   ========================================================================== */

/* ---- List page ---- */
.rooms-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 24px; flex-wrap: wrap; }
.rooms-toolbar .result { font-size: 15px; color: var(--ink-2); }
.rooms-toolbar .result strong { color: var(--forest); }
.rooms-list { display: grid; gap: 22px; }
.room-row { display: grid; grid-template-columns: 380px 1fr 250px; overflow: hidden; }
.room-row .media { aspect-ratio: auto; min-height: 280px; }
.room-row-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; border-right: 1px dashed var(--line); }
.room-row-body h3 { font-size: 1.7rem; }
.room-row-side { padding: 24px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; background: linear-gradient(180deg, #fff, var(--cream)); text-align: right; }
.room-row-side .price .amount { font-size: 2.1rem; }
.room-row-side .total { font-size: 13px; color: var(--ink-2); }
.room-row-side .total strong { color: var(--forest); }
.room-row .amen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.room-row .amen-chips .chip { padding: 5px 10px; font-size: 12px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .i { font-size: 44px; color: var(--gold); margin-bottom: 12px; }
.sticky-search { position: sticky; top: var(--nav-h); z-index: 60; background: rgba(250,247,242,0.94); backdrop-filter: blur(10px); padding: 12px 0; border-bottom: 1px solid var(--line); }
.sticky-search .search-bar { box-shadow: var(--shadow-sm); padding: 6px; }
.sticky-search .search-cell { padding: 8px 14px; }
.sticky-search .btn { padding-block: 10px; }

/* ---- Detail page ---- */
.rd-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 10px; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.rd-gallery .g { position: relative; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.rd-gallery .g img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.rd-gallery .g:hover img { transform: scale(1.04); }
.rd-gallery .g:first-child { grid-row: 1 / 3; }
.rd-gallery .all-photos { position: absolute; right: 16px; bottom: 16px; z-index: 3; }
.rd-gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 520px; }
.rd-gallery.count-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 520px; }
.rd-gallery.count-2 .g:first-child { grid-row: auto; }
.rd-gallery.count-4 .g:nth-child(2) { grid-column: 2 / 4; }
.rd-gallery.count-3 { grid-template-columns: 2fr 1fr; }
.rd-gallery.count-3 .g:first-child { grid-row: 1 / 3; }

.rd-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; margin-top: 36px; }
.rd-head h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.rd-head .room-meta { margin-top: 12px; font-size: 14px; }
.rd-head .room-meta .i { font-size: 18px; }
.rd-tagline { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); line-height: 1.7; font-family: var(--serif); font-style: italic; }
.rd-section { padding: 32px 0; border-top: 1px solid var(--line); }
.rd-section h2 { font-size: 1.6rem; margin-bottom: 18px; }
.rd-section p { color: var(--ink-2); line-height: 1.8; }
.rd-section p + p { margin-top: 12px; }
.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
.hl-item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.hl-item .i { color: var(--gold-2); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.am-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.am-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.am-item .i { color: var(--gold-2); font-size: 19px; }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.policy-item strong { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.policy-item span { font-size: 15px; color: var(--ink); }
.rd-cal { margin-top: 8px; }
.rd-cal .cal-inline .cal-months { gap: 24px; }
.rd-cal .cal-inline .cal { width: auto; flex: 1; }
.rd-cal .cal-inline .cal-day { height: 52px; font-size: 14px; }
.rd-cal .cal-inline .cal-day small { font-size: 10.5px; }
.rd-cal .cal-foot { font-size: 14px; }

/* Booking widget */
.bw { position: sticky; top: calc(var(--nav-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; }
.bw-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bw-price .amount { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--forest); }
.bw-price .per { font-size: 13px; color: var(--ink-3); }
.bw-price .strike { font-size: 14px; color: var(--ink-3); text-decoration: line-through; margin-right: 6px; }
.bw-fields { border: 1.5px solid var(--line-strong); border-radius: var(--radius); position: relative; }
.bw-dates > .bw-cell:first-child { border-top-left-radius: var(--radius); }
.bw-dates > .bw-cell:last-child { border-top-right-radius: var(--radius); }
.bw-guests { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.bw .cal-pop { left: auto; right: 0; }
.bw-dates { display: grid; grid-template-columns: 1fr 1fr; }
.bw-cell { padding: 10px 14px; cursor: pointer; transition: background .15s; position: relative; }
.bw-cell:hover { background: var(--mist); }
.bw-cell + .bw-cell { border-left: 1.5px solid var(--line-strong); }
.bw-cell label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
.bw-cell .value { font-size: 15px; font-weight: 500; color: var(--forest); }
.bw-cell .value.placeholder { color: #9aa39c; font-weight: 400; }
.bw-guests { border-top: 1.5px solid var(--line-strong); }
.bw-guests .guest-pop { left: 0; right: 0; width: auto; }
.bw .btn-block { margin-top: 14px; }
.bw-note { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.bw-breakdown { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.bw-breakdown .line { display: flex; justify-content: space-between; gap: 12px; }
.bw-breakdown .line.total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-weight: 600; color: var(--forest); font-size: 16px; }
.bw-breakdown .line .u { text-decoration: underline dotted; cursor: help; }
.bw-breakdown .disc { color: var(--success); }
.bw-nights { display: grid; gap: 4px; padding: 8px 10px; background: var(--mist); border-radius: 8px; font-size: 12.5px; max-height: 150px; overflow: auto; }
.bw-nights div { display: flex; justify-content: space-between; }
.bw-avail { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--success-bg); color: var(--success); font-weight: 600; }
.bw-avail.bad { background: var(--danger-bg); color: var(--danger); }
.bw-avail.warn { background: var(--warn-bg); color: var(--warn); }
.bw-coupon { display: flex; gap: 8px; margin-top: 12px; }
.bw-coupon .input { padding: 10px 12px; font-size: 14px; text-transform: uppercase; }
.bw-coupon .btn { padding: 10px 14px; }
.bw-trust { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.bw-trust span { display: flex; align-items: center; gap: 8px; }
.bw-trust .i { color: var(--success); font-size: 16px; }
.bw-help { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-2); }
.bw-help a { color: var(--forest); font-weight: 600; }
.bw-skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--mist), #fff, var(--mist)); background-size: 200% 100%; animation: skel 1.2s infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Others */
.rd-others { margin-top: 20px; }

@media (max-width: 1080px) {
  .rd-layout { grid-template-columns: 1fr 360px; gap: 32px; }
  .room-row { grid-template-columns: 300px 1fr; }
  .room-row-side { grid-column: 1 / -1; flex-direction: row; align-items: center; text-align: left; border-top: 1px solid var(--line); }
  .room-row-body { border-right: 0; }
}
@media (max-width: 860px) {
  .rd-layout { grid-template-columns: 1fr; }
  .bw { position: static; }
  .rd-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px; }
  .rd-gallery .g:first-child { grid-column: 1 / -1; grid-row: 1; }
  .rd-gallery .g:nth-child(n+4) { display: none; }
  .rd-gallery.count-1, .rd-gallery.count-2 { grid-template-rows: 260px; }
  .am-grid, .policy-grid { grid-template-columns: repeat(2, 1fr); }
  .room-row { grid-template-columns: 1fr; }
  .room-row .media { aspect-ratio: 4 / 3; min-height: 0; }
  .room-row-side { flex-wrap: wrap; }
  .sticky-search { position: static; background: none; backdrop-filter: none; padding: 0 0 8px; border: 0; }
}
@media (max-width: 720px) {
  .hl-grid, .am-grid { grid-template-columns: 1fr; }
  .rd-cal .cal-inline .cal-day { height: 46px; }
}
