:root {
  --ink: #11110f;
  --muted: #66645d;
  --paper: #f4f2ec;
  --surface: #fff;
  --gold: #cfb87c;
  --gold-bright: #e2cd91;
  --line: #d7d2c5;
  --green: #196b47;
  --shadow: 0 16px 40px rgba(25, 22, 14, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; text-underline-offset: 3px; }
.masthead { min-height: 72px; padding: 14px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #050505; color: #fff; border-bottom: 3px solid var(--gold); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold); color: var(--gold-bright); font-family: Georgia, serif; font-weight: 700; }
.brand small { display: block; color: #b9b5aa; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.term { color: var(--gold-bright); font-size: .82rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
main { width: min(1180px, calc(100% - 40px)); margin: 32px auto 56px; }
.search-panel { background: var(--ink); color: #fff; padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.search-panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; top: -140px; border: 56px solid rgba(207,184,124,.14); border-radius: 50%; pointer-events: none; }
.search-copy { max-width: 730px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 7px; color: #8a7544; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.search-panel .eyebrow { color: var(--gold-bright); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: .98; font-weight: 500; letter-spacing: -.055em; }
.search-copy > p:last-child { max-width: 680px; color: #c8c5bd; }
.search-form { margin-top: 32px; display: grid; grid-template-columns: 1.2fr .8fr .8fr auto; gap: 12px; align-items: end; position: relative; z-index: 3; }
.field label, .building-filter legend { display: block; margin-bottom: 7px; color: #d5d1c7; font-size: .82rem; font-weight: 730; letter-spacing: .04em; }
.field input { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid #4a4944; border-radius: 3px; color: #fff; color-scheme: dark; background: #22221f; }
.field input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.time-picker { position: relative; }
.time-picker-button { width: 100%; min-height: 50px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #4a4944; border-radius: 3px; color: #fff; background: #22221f; cursor: pointer; text-align: left; }
.time-picker-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.time-picker-clock { font-size: 1.45rem; line-height: 1; }
.time-picker-popover { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; width: 310px; max-width: calc(100vw - 40px); padding: 8px; grid-template-columns: 1fr 1fr 1fr; gap: 7px; border: 1px solid #5c5a54; border-radius: 3px; background: #353535; box-shadow: 0 16px 34px rgba(0,0,0,.38); }
.time-picker-popover:not([hidden]) { display: grid; }
#end-picker .time-picker-popover { right: 0; left: auto; }
.time-picker-popover select { width: 100%; height: 214px; padding: 0; border: 0; border-radius: 2px; color: #fff; color-scheme: dark; background: #353535; overflow-y: auto; }
.time-picker-popover select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.time-picker-popover option { padding: 8px 9px; text-align: center; }
.time-picker-popover option:checked { color: #111; background: var(--gold-bright); font-weight: 800; }
.actions { display: flex; gap: 10px; }
.button { min-height: 50px; padding: 0 18px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-weight: 780; white-space: nowrap; }
.button.primary { background: var(--gold); color: #111; }
.button.primary:hover { background: var(--gold-bright); }
.button.secondary { border-color: #55534d; color: #fff; background: transparent; }
.button.secondary:hover { border-color: var(--gold); }
.pulse { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #76d4a7; box-shadow: 0 0 0 4px rgba(118,212,167,.12); }
.building-filter { margin: 22px 0 0; padding: 0; border: 0; position: relative; z-index: 1; }
.building-filter legend { margin-bottom: 9px; }
.area-tools { margin-bottom: 10px; display: grid; grid-template-columns: minmax(240px, 360px) auto minmax(180px, 1fr); align-items: end; gap: 10px; }
.area-tools label { display: block; margin-bottom: 6px; color: #d5d1c7; font-size: .82rem; font-weight: 730; }
.area-tools select { width: 100%; min-height: 44px; padding: 8px 34px 8px 12px; border: 1px solid #4c4a44; border-radius: 3px; background: #22221f; color: #fff; color-scheme: dark; }
.area-tools .button { min-height: 44px; }
.area-tools select:focus, .building-tools input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.location-status { margin: 0 0 11px; color: #c8c5bd; font-size: .82rem; }
.building-tools { display: grid; grid-template-columns: minmax(210px, 1fr) auto auto; gap: 8px; max-width: 690px; }
.building-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.building-tools input { min-height: 42px; padding: 8px 12px; border: 1px solid #4c4a44; border-radius: 3px; background: #22221f; color: #fff; }
.building-tools button { min-height: 42px; padding: 0 13px; border: 1px solid #55534d; border-radius: 3px; background: transparent; color: #fff; cursor: pointer; font-weight: 700; }
.building-options { max-height: 174px; margin-top: 10px; padding: 9px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; overflow: auto; border: 1px solid #3c3b37; background: #191917; }
.building-options label { min-width: 0; padding: 7px 9px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; border: 1px solid #42413c; border-radius: 3px; color: #e6e3dc; cursor: pointer; font-size: .82rem; }
.building-options label:hover { border-color: var(--gold); }
.building-options label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.building-options label small { color: #aaa69d; font-size: .7rem; }
.building-filter input { accent-color: var(--gold); }
.results-section { padding: 42px 0 28px; }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.results-heading h2, .method h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.035em; }
.window-summary { margin: 0; color: var(--muted); text-align: right; }
.building-results { display: grid; gap: 12px; }
.building-card { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 18px rgba(35,30,19,.04); }
.building-card > summary { min-height: 78px; padding: 17px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; list-style: none; }
.building-card > summary::-webkit-details-marker { display: none; }
.building-card > summary::after { content: "+"; grid-column: 3; grid-row: 1; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-weight: 500; }
.building-card[open] > summary::after { content: "−"; }
.building-summary-main { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.building-summary-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 1.45rem/1.15 Georgia, serif; letter-spacing: -.025em; }
.building-summary-main small { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.building-summary-meta { grid-column: 2; grid-row: 1; color: var(--green); font-size: .85rem; font-weight: 780; }
.building-card-body { padding: 0 20px 20px; border-top: 1px solid #ece8de; }
.map-link { display: inline-block; margin: 13px 0; color: #6e5b2f; font-size: .84rem; font-weight: 700; }
.room-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.room-row { min-height: 120px; padding: 16px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.room-identity { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.room-row h3 { margin: 0; font: 500 1.35rem/1 Georgia, serif; letter-spacing: -.025em; }
.badge { padding: 4px 8px; border-radius: 100px; background: #e7f2ec; color: var(--green); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.availability { margin-top: auto; padding-top: 13px; }
.availability strong { display: block; color: var(--green); font-size: 1rem; }
.availability span { color: var(--muted); font-size: .86rem; }
.message { padding: 24px; background: #fff7dd; border: 1px solid #d8c47d; }
.room-schedule { margin: 22px 0 40px; padding: clamp(24px, 4vw, 38px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.room-schedule-intro { max-width: 720px; }
.room-schedule-intro h2 { margin: 0 0 9px; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 500; letter-spacing: -.035em; }
.room-schedule-intro > p:last-child { color: var(--muted); }
.room-schedule-form { margin: 22px 0; display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(190px, .7fr) auto; align-items: end; gap: 12px; }
.light-field label { color: var(--ink); }
.light-field input { color: var(--ink); color-scheme: light; background: #f8f7f3; border-color: var(--line); }
.room-schedule-results { margin-top: 18px; }
.schedule-heading { padding: 18px 0 15px; display: flex; align-items: end; justify-content: space-between; gap: 22px; border-bottom: 2px solid var(--ink); }
.schedule-heading h3 { margin: 0; font: 500 2rem/1 Georgia, serif; letter-spacing: -.03em; }
.schedule-heading p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); }
.schedule-heading .map-link { margin: 0; text-align: right; }
.schedule-list { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.schedule-row { min-height: 76px; padding: 15px 18px; display: grid; grid-template-columns: minmax(170px, .45fr) 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.schedule-row time { color: var(--green); font-weight: 800; }
.schedule-row strong, .schedule-row span, .schedule-empty strong, .schedule-empty span { display: block; }
.schedule-row span { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.schedule-empty { padding: 24px; background: #f8f7f3; border: 1px solid var(--line); border-top: 0; }
.schedule-empty strong { color: var(--green); }
.schedule-empty span { margin-top: 3px; color: var(--muted); }
.method { margin-top: 28px; padding: 34px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.method-copy > p { color: var(--muted); font-size: 1.08rem; }
details { background: #fff; border: 1px solid var(--line); }
summary { padding: 16px 18px; cursor: pointer; font-weight: 760; }
.detail-copy { padding: 0 18px 16px; color: var(--muted); }
.detail-copy code { padding: 2px 5px; background: #efede6; color: #2e2b24; word-break: break-word; }
footer { padding: 22px clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; gap: 20px; background: #050505; color: #aaa69d; font-size: .82rem; }
@media (max-width: 900px) {
  .search-form { grid-template-columns: repeat(3, 1fr); }
  .actions { grid-column: 1 / -1; }
  .area-tools { grid-template-columns: minmax(240px, 1fr) auto; }
  .location-status { grid-column: 1 / -1; margin-bottom: 0; }
  .building-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .masthead { align-items: flex-start; }
  .term { text-align: right; font-size: .7rem; }
  main { width: min(100% - 24px, 1180px); margin-top: 12px; }
  .search-panel { padding: 25px 20px; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .time-picker-popover { width: min(310px, calc(100vw - 48px)); }
  .date-field { grid-column: 1 / -1; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .building-tools { grid-template-columns: 1fr 1fr; }
  .building-tools input { grid-column: 1 / -1; }
  .building-options { grid-template-columns: 1fr; }
  .results-heading { align-items: start; flex-direction: column; }
  .window-summary { text-align: left; }
  .area-tools { grid-template-columns: 1fr; }
  .area-tools .button { width: 100%; }
  .location-status { margin: 0; }
  .building-card > summary { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 6px; }
  .building-card > summary::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .building-summary-main { grid-column: 1; grid-row: 1; align-items: start; flex-direction: column; gap: 4px; }
  .building-summary-meta { grid-column: 1; grid-row: 2; margin-top: 1px; }
  .room-list { grid-template-columns: 1fr; }
  .room-schedule-form { grid-template-columns: 1fr; }
  .room-schedule-form .button { width: 100%; }
  .schedule-heading { align-items: start; flex-direction: column; }
  .schedule-heading .map-link { text-align: left; }
  .schedule-row { grid-template-columns: 1fr; gap: 5px; }
  .method { grid-template-columns: 1fr; gap: 18px; }
  footer { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
