:root {
  color-scheme: light;
  --canvas:#f7f5ef; --paper:#fffdf8; --ink:#252b27; --muted:#526057;
  --line:#dfe4dc; --green:#1f4638; --green-2:#356952; --green-soft:#e7eee8;
  --red:#b94f3b; --red-dark:#963e2f; --red-soft:#f6e6e0; --sand:#eee7da;
  --button-h:46px; --button-radius:6px; --button-gap:8px;
  --shadow:0 10px 26px rgba(31,70,56,.08);
  --sans:"Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;
  --display:"STKaiti","KaiTi","FZKai-Z03","Microsoft YaHei",serif;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:84px; }
body { margin:0; background:var(--canvas); color:var(--ink); font:14px/1.65 var(--sans); }
main section[id] { scroll-margin-top:0; }
body.modal-open { overflow:hidden; }
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; }
button { color:inherit; cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.58; }
svg { width:18px; height:18px; flex:0 0 auto; }
:focus-visible { outline:3px solid #d6a24e; outline-offset:3px; }
[hidden] { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.container { width:min(1160px,calc(100% - 48px)); margin:0 auto; }
.button { min-height:var(--button-h); padding:0 18px; border:1px solid transparent; display:inline-flex; align-items:center; justify-content:center; gap:var(--button-gap); border-radius:7px; font-size:13px; font-weight:700; line-height:1; transition:background .16s,border-color .16s,color .16s; }
.button:hover { transform:none; }
.button:active { filter:brightness(.94); }
.button-red { background:var(--red); color:#fff; }
.button-red:hover { background:var(--red-dark); }
.button-dark { background:var(--green); color:#fff; }
.button-dark:hover { background:#16372c; }
.button-light { border-color:var(--line); background:var(--paper); color:var(--green); }
.button-light:hover { border-color:var(--green-2); background:var(--green-soft); }
.icon-button { width:40px; height:40px; padding:0; border:1px solid var(--line); border-radius:7px; display:grid; place-items:center; background:var(--paper); }
.icon-button:hover { border-color:var(--green-2); color:var(--green); background:var(--green-soft); }
.icon-button:disabled { background:var(--sand); color:var(--muted); }
.brand { display:inline-flex; align-items:center; gap:10px; min-width:max-content; }
.brand-seal { width:34px; height:34px; display:grid; place-items:center; background:var(--red); color:#fff; border-radius:7px; font-weight:800; }
.brand strong,.brand small { display:block; }
.brand strong { color:var(--green); font-family:var(--display); font-size:18px; line-height:1.15; font-weight:800; }
.brand small { margin-top:3px; color:var(--muted); font-size:10px; }

/* Public rental page */
.site-header { position:sticky; top:0; z-index:30; height:72px; background:rgba(255,253,248,.96); border-bottom:1px solid var(--line); backdrop-filter:blur(10px); }
.nav-wrap { height:72px; display:flex; align-items:center; gap:36px; }
.nav-wrap .site-nav { margin-left:auto; }
.site-nav { display:flex; align-items:center; gap:26px; }
.site-nav a { color:var(--muted); font-size:13px; }
.site-nav a:hover { color:var(--green); }
.nav-action { min-height:38px; padding:0 13px; border:1px solid var(--green); border-radius:5px; display:inline-flex; align-items:center; gap:7px; background:var(--green); color:#fff; font-size:12px; font-weight:700; }
.nav-action:hover { background:#16372c; border-color:#16372c; }
.hero { position:relative; min-height:540px; height:min(62vh,580px); background:url('/assets/rural-building.jpg') center 66%/cover no-repeat; color:#fff; }
.hero-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(17,40,31,.74),rgba(17,40,31,.42) 52%,rgba(17,40,31,.14)); }
.hero-inner { position:relative; z-index:1; height:100%; display:flex; align-items:center; padding:54px 0 112px; }
.hero-copy { max-width:560px; }
.place-line { margin:0 0 16px; color:#f2d0bf; font-size:12px; font-weight:700; }
.place-line span { width:7px; height:7px; margin-right:7px; display:inline-block; border-radius:50%; background:#e08b68; }
.hero h1 { margin:0; font-family:var(--display); font-size:72px; line-height:1.05; letter-spacing:0; font-weight:700; }
.hero-occupancy { margin:14px 0 0; font-size:14px; font-weight:700; }
.hero-lede { max-width:500px; margin:20px 0 28px; color:rgba(255,255,255,.9); font-size:15px; line-height:1.85; }
.hero-actions { display:flex; align-items:center; gap:12px; }
.hero-actions .button { min-height:46px; }
.hero-secondary { min-height:46px; padding:0 5px; display:inline-flex; align-items:center; gap:7px; color:rgba(255,255,255,.86); font-size:13px; font-weight:700; }
.hero-secondary:hover { color:#fff; }
.photo-note { position:absolute; right:0; bottom:116px; margin:0; color:rgba(255,255,255,.7); font-size:10px; }
.hero-ledger { position:absolute; z-index:2; right:0; bottom:0; left:0; min-height:92px; display:grid; grid-template-columns:repeat(3,1fr); background:rgba(31,70,56,.96); border-top:1px solid rgba(255,255,255,.15); }
.hero-ledger>div { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; border-right:1px solid rgba(255,255,255,.17); }
.hero-ledger>div:last-of-type { border-right:0; }
.hero-ledger span { color:#d4e0d7; font-size:12px; }
.hero-ledger strong { color:#fff; font-size:32px; line-height:1; font-weight:800; }
.hero-ledger b { color:#e5b26b; font-size:12px; }
.hero-price-stat { grid-template-columns:auto auto !important; }
.hero-price-stat strong { color:#fff; font-size:21px; }
.room-section { padding:72px 0 76px; background:var(--canvas); }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:25px; }
.section-kicker { margin:0 0 7px; color:var(--red); font-size:12px; font-weight:700; letter-spacing:0; }
.section-heading h2,.price-intro h2,.visit-copy h2 { margin:0; color:var(--green); font-size:29px; line-height:1.3; letter-spacing:-.02em; font-weight:700; }
.room-summary { margin:0 0 4px; color:#56635b; font-size:12px; }
.filter-bar { min-height:48px; margin-bottom:24px; padding-bottom:10px; display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--line); }
.filter-options { display:flex; gap:6px; min-width:0; overflow-x:auto; padding:4px 2px; scrollbar-width:thin; scrollbar-color:#8d9e91 transparent; }
.filter-more { display:none; color:var(--green); }
.filter-button { min-height:36px; padding:0 12px; border:1px solid var(--line); border-radius:var(--button-radius); flex:0 0 auto; background:var(--paper); color:var(--muted); font-size:12px; white-space:nowrap; }
.filter-button:hover { color:var(--green); background:var(--green-soft); }
.filter-button.active { border-color:var(--red); background:var(--red-soft); color:var(--red-dark); font-weight:700; }
.filter-button:disabled { background:var(--sand); color:#9aa39d; }
.filter-button svg { width:14px; height:14px; margin-right:4px; vertical-align:-3px; }
.refresh-button { width:36px; height:36px; margin-left:auto; flex:0 0 36px; }
.floor-list { display:grid; gap:34px; }
.floor-block { display:grid; grid-template-columns:100px minmax(0,1fr); gap:22px; padding-top:18px; border-top:1px solid #cbd8cf; }
.floor-label small,.floor-label span { color:var(--muted); font-size:10px; }
.floor-label .floor-building { display:block; }
.floor-label h3 { margin:3px 0 0; color:var(--green); font-size:25px; line-height:1; font-weight:800; }
.floor-label span { display:block; margin-top:9px; }
.floor-rooms { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.floor-rooms.single-room { grid-template-columns:minmax(420px,540px); }
.room-card { min-width:0; overflow:hidden; border:1px solid #d7dfd8; background:var(--paper); border-radius:7px; }
.room-card-button { width:100%; min-height:220px; padding:0; border:0; display:flex; flex-direction:column; align-items:stretch; background:transparent; text-align:left; }
.room-card-top { position:relative; width:100%; min-height:134px; padding:16px; display:flex; align-items:flex-end; justify-content:space-between; overflow:hidden; background:var(--sand); flex:0 0 auto; }
.room-card-top.has-photo { color:#fff; }
.room-card-top .room-cover { position:absolute; z-index:0; inset:0; width:100%; height:100%; object-fit:cover; }
.room-card-top>.room-number,.room-card-top>.availability,.room-card-top>.photo-label,.room-card-top>.photo-watermark { position:relative; z-index:1; }
.room-number { padding:3px 5px; background:rgba(24,42,32,.65); font-size:28px; line-height:1; font-weight:700; letter-spacing:0; }
.availability { padding:4px 7px; border-radius:999px; background:rgba(255,255,255,.9); color:var(--green); font-size:10px; font-weight:800; }
.is-occupied .availability { color:var(--red-dark); }
.photo-watermark { position:absolute; z-index:2; right:8px; bottom:7px; padding:1px 4px; background:rgba(18,32,25,.38); color:rgba(255,255,255,.72); font-size:8px; }
.photo-label { position:absolute; z-index:2; left:10px; top:8px; padding:2px 5px; background:rgba(18,32,25,.72); color:#fff; font-size:12px; }
.placeholder-label { left:50%; bottom:50%; transform:translate(-50%,50%); background:rgba(255,253,248,.82); color:var(--muted); }
.room-card-body { min-height:68px; padding:14px 16px 10px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.room-type { display:inline-flex; align-items:center; gap:6px; color:var(--green-2); font-size:12px; font-weight:700; }
.room-type svg { width:15px; height:15px; }
.room-rent { display:inline-flex; align-items:baseline; gap:3px; color:var(--red); white-space:nowrap; }
.room-rent b { font-size:23px; line-height:1; }
.room-rent small { color:var(--muted); font-size:10px; }
.room-card-foot { min-height:40px; margin-top:auto; padding:9px 16px; display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }
.room-card-foot span:last-child { display:inline-flex; align-items:center; gap:4px; color:var(--green); font-weight:700; }
.room-card-foot svg { width:13px; height:13px; }
.room-card:hover { border-color:#afc6b8; box-shadow:0 8px 20px rgba(31,70,56,.07); }
.amenities-section { padding:48px 0 52px; background:var(--canvas); border-top:1px solid var(--line); }
.amenities-heading { margin-bottom:20px; }
.amenities-grid { margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; list-style:none; }
.amenity-item { min-height:92px; padding:14px 16px; display:flex; align-items:center; gap:13px; border:1px solid transparent; border-radius:10px; }
.amenity-green { background:#e7eee8; border-color:#dce8df; }
.amenity-sand { background:#eee7da; border-color:#e9dfcf; }
.amenity-icon { width:46px; height:46px; flex:0 0 46px; display:grid; place-items:center; border-radius:50%; background:var(--paper); color:var(--green-2); }
.amenity-sand .amenity-icon { color:#b47b3e; }
.amenity-icon svg { width:19px; height:19px; }
.amenity-item strong,.amenity-item small { display:block; }
.amenity-item strong { color:var(--green); font-size:15px; line-height:1.35; }
.amenity-item small { margin-top:3px; color:var(--muted); font-size:12px; line-height:1.4; }
.price-section { position:relative; padding:64px 0 68px; background:var(--canvas); border-top:1px solid var(--line); }
.price-layout-single { max-width:860px; margin:0 auto; }
.agreement-details { margin-top:16px; }
.agreement-details summary { min-height:44px; padding:10px 0; color:var(--green); cursor:pointer; font-size:14px; }
.price-layout-single #rental-agreement { margin-top:20px; padding:0; color:#4a5951; }
.rental-list { margin:0; padding-left:22px; display:grid; gap:16px; }
.rental-list li { padding-left:4px; font-size:13px; line-height:1.8; }
.rental-item-title { display:block; margin-bottom:2px; color:var(--green); font-size:13px; font-weight:800; }
.rental-list li::marker { color:var(--red); font-weight:800; }
.rental-list strong { color:var(--green); font-weight:800; }
.rental-note { margin:20px 0 0; padding-top:15px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.visit-section { position:relative; padding:68px 0 72px; background:var(--canvas); border-top:1px solid var(--line); }
.visit-layout { display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; }
.address-block { margin-top:28px; padding:18px 0; display:flex; gap:13px; border-block:1px solid var(--line); }
.address-block>svg { color:var(--red); }
.address-block small { display:block; color:var(--muted); font-size:10px; }
.address-block p { margin:5px 0 0; color:var(--green); font-size:17px; line-height:1.5; font-weight:800; }
.visit-intro { margin:12px 0 0; color:var(--muted); font-size:13px; }
.copy-address { min-height:44px; margin-top:8px; padding:0 14px; border:1px solid var(--line); border-radius:5px; background:var(--paper); color:var(--green); font-size:12px; font-weight:700; }
.copy-address:hover { border-color:var(--green-2); background:var(--green-soft); }
.visit-notice { margin:15px 0 0; color:var(--muted); font-size:12px; }
.visit-actions { display:grid; grid-template-columns:1fr; gap:12px; }
#phone-link { order:-1; }
.visit-actions a { min-height:78px; padding:12px 14px; display:flex; flex-direction:row; align-items:center; gap:11px; border:1px solid var(--line); border-radius:6px; }
.visit-primary { background:var(--red); color:#fff; border-color:var(--red)!important; }
.visit-primary:hover { background:var(--red-dark); }
.visit-secondary { background:var(--paper); color:var(--green); }
.visit-actions a>svg { width:20px; height:20px; }
.visit-actions small,.visit-actions strong { display:block; }
.visit-actions small { opacity:.68; font-size:10px; }
.visit-actions strong { margin-top:2px; font-size:15px; }
.visit-actions strong { overflow-wrap:anywhere; }
.visit-actions span { min-width:0; }
.visit-secondary:hover { border-color:var(--green-2); background:var(--green-soft); }
.is-disabled { cursor:not-allowed; opacity:1; }
.visit-actions .is-disabled { background:transparent; color:var(--muted); border:1px dashed #cbd5cc!important; transform:none; }
.visit-actions .is-disabled { pointer-events:none; }
.visit-actions .is-disabled svg { color:#95a59b; }
.visit-actions .is-disabled strong { font-size:12px; font-weight:600; }
.site-footer { padding:28px 0; background:#17382e; color:#fff; }
.footer-wrap { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.footer-brand strong { color:#fff; }
.footer-brand small,.footer-wrap p { color:#b9c9bf; }
.footer-wrap p { margin:0; font-size:10px; }
.footer-wrap>a { color:#e2ece5; font-size:11px; }
.footer-record { margin-top:18px; padding-top:12px; display:flex; gap:18px; border-top:1px solid rgba(215,231,221,.18); color:#9fb5a9; font-size:10px; }
.mobile-actions { display:none; }
.loading-state { padding:34px 0; color:var(--muted); text-align:center; }
.empty-state { padding:30px 20px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); text-align:center; }
.empty-state strong,.empty-state span { display:block; }
.empty-state strong { color:var(--green); font-size:16px; }
.empty-state span { margin:5px 0 15px; font-size:12px; }
.empty-state .button { min-height:40px; font-size:12px; }

/* Room details and photo viewer */
.modal-backdrop { position:fixed; z-index:100; inset:0; padding:24px; display:grid; place-items:center; background:rgba(22,38,30,.72); }
.room-modal { position:relative; width:min(780px,100%); max-height:calc(100svh - 48px); overflow:auto; display:grid; grid-template-columns:.9fr 1.1fr; background:var(--paper); border-radius:10px; box-shadow:0 24px 70px rgba(0,0,0,.22); }
.modal-close { position:absolute; z-index:3; top:14px; right:14px; }
.modal-photo { min-height:420px; display:grid; grid-template-rows:minmax(0,1fr) auto; background:var(--sand); }
.modal-photo-main { position:relative; width:100%; min-height:0; padding:0; border:0; display:grid; place-items:center; background:var(--sand) center/cover no-repeat; color:var(--muted); overflow:hidden; }
.modal-photo-main.has-photo { cursor:zoom-in; }
.modal-photo-main:not(.has-photo) .photo-watermark { display:none; }
.modal-photo-placeholder { padding:5px 8px; background:rgba(255,255,255,.85); font-size:11px; }
.modal-photo-main.has-photo .modal-photo-placeholder { display:none; }
.photo-expand-hint { position:absolute; z-index:3; left:13px; bottom:13px; display:none; align-items:center; gap:5px; padding:6px 8px; background:rgba(20,35,28,.7); color:#fff; font-size:11px; }
.has-photo .photo-expand-hint { display:inline-flex; }
.modal-photo-thumbs { min-height:61px; padding:8px; display:flex; gap:7px; overflow-x:auto; background:var(--paper); border-top:1px solid var(--line); }
.photo-thumb { width:59px; flex:0 0 59px; padding:0; border:1px solid var(--line); background:var(--paper); color:var(--muted); font-size:8px; }
.photo-thumb.active { border-color:var(--red); box-shadow:inset 0 0 0 1px var(--red); }
.photo-thumb span { display:block; aspect-ratio:4/3; background:center/cover no-repeat; }
.photo-thumb small { display:block; padding:3px 2px; white-space:nowrap; }
.modal-content { padding:48px 40px 38px; }
.modal-status { display:inline-block; padding:4px 8px; border-radius:999px; background:var(--green-soft); color:var(--green-2); font-size:10px; font-weight:700; }
.modal-status.occupied { background:var(--red-soft); color:var(--red-dark); }
.modal-content h2 { margin:16px 0 2px; color:var(--green); font-size:32px; }
.modal-price strong { color:var(--red); font-size:36px; }
.modal-price span { color:var(--muted); font-size:11px; }
.room-facts { margin:22px 0; display:grid; grid-template-columns:repeat(2,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.room-facts div { padding:10px 12px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.room-facts dt { color:var(--muted); font-size:9px; }
.room-facts dd { margin:2px 0 0; color:var(--green); font-weight:700; }
.modal-content>p { margin:0 0 26px; color:var(--muted); font-size:12px; line-height:1.9; }
.modal-actions { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.button-home { border-color:var(--line); background:var(--green-soft); color:var(--green); }
.toast { position:fixed; z-index:200; left:50%; bottom:28px; max-width:calc(100% - 32px); padding:10px 15px; border-radius:7px; background:var(--green); color:#fff; font-size:12px; opacity:0; transform:translate(-50%,20px); pointer-events:none; transition:opacity .16s,transform .16s; }
.toast.show { opacity:1; transform:translate(-50%,0); }
dialog.map-choice,
dialog.map-choice[open],
dialog.map-choice:modal {
  position:fixed !important;
  inset:auto 0 0 0 !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:min(90dvh,100%) !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:20px 20px 0 0 !important;
  background:var(--paper) !important;
  color:var(--ink);
  overflow:auto;
  box-shadow:0 -12px 40px rgba(18,32,26,.18);
}
dialog.map-choice::backdrop { background:rgba(18,32,26,.46); }
.map-choice-panel { display:block; margin:0; padding:8px 20px calc(18px + env(safe-area-inset-bottom)); }
.map-choice-handle { display:block; width:36px; height:4px; margin:4px auto 12px; border-radius:999px; background:#c7d2cb; }
.map-choice-head { display:flex !important; align-items:flex-start; justify-content:space-between; gap:12px; }
.map-choice-kicker { margin:0 0 4px; color:var(--muted); font-size:12px; font-weight:600; }
.map-choice h2 { margin:0; color:var(--ink); font-family:var(--sans); font-size:22px; line-height:1.25; font-weight:700; }
.map-choice-close {
  appearance:none; -webkit-appearance:none;
  flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px;
  margin:0; padding:0; border:0 !important; border-radius:50%;
  background:var(--green-soft); color:var(--green);
  display:flex !important; align-items:center; justify-content:center;
}
.map-choice-close svg { width:18px; height:18px; }
.map-choice-dest { margin:14px 0 0; padding:10px 12px; border-radius:10px; background:var(--green-soft); color:var(--green); font-size:13px; font-weight:600; line-height:1.45; overflow-wrap:anywhere; }
.map-choice #map-choice-description { margin:10px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
.map-choice-actions { display:flex !important; flex-direction:column; gap:10px; margin-top:16px; }
.map-choice-option {
  appearance:none; -webkit-appearance:none;
  box-sizing:border-box;
  width:100%; min-height:64px; margin:0; padding:12px 14px;
  display:flex !important; align-items:center; gap:12px;
  border:1px solid var(--line) !important; border-radius:14px;
  background:#fff; color:inherit; text-align:left;
}
.map-choice-option:hover { background:var(--green-soft); border-color:#c5d6cc; }
.map-choice-option:disabled { opacity:.6; }
.map-choice-mark {
  flex:0 0 40px; width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:10px; background:var(--green); color:#fff; font-size:15px; font-weight:700;
}
.map-choice-mark.is-alt { background:var(--green-2, #356952); }
.map-choice-option > span:nth-of-type(2) { flex:1 1 auto; min-width:0; display:block; }
.map-choice-option strong,.map-choice-option small { display:block; }
.map-choice-option strong { font-size:15px; line-height:1.3; }
.map-choice-option small { margin-top:3px; color:var(--muted); font-size:12px; font-weight:400; }
.map-choice-option svg { flex:0 0 18px; width:18px; height:18px; color:var(--muted); }
.photo-viewer { position:fixed; inset:0; width:100%; max-width:none; height:100dvh; max-height:none; margin:0; padding:0; border:0; overflow:hidden; background:
  radial-gradient(120% 80% at 50% 18%, #24352c 0%, #15241d 48%, #0e1814 100%);
  color:#fff; }
.photo-viewer[open] { display:block; }
.photo-viewer::backdrop { background:#0e1814; }
.photo-viewer-header { position:absolute; z-index:3; top:0; left:0; right:0; padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left)); display:flex; justify-content:space-between; align-items:center; gap:12px; background:linear-gradient(180deg, rgba(0,0,0,.5), transparent); pointer-events:none; }
.photo-viewer-header p { margin:0; color:#fff; font-size:14px; font-weight:600; }
.photo-viewer-control { width:40px; height:40px; flex:0 0 40px; padding:0; border:0; border-radius:50%; display:grid; place-items:center; background:rgba(0,0,0,.45); color:#fff; pointer-events:auto; }
.photo-viewer-stage { position:absolute; inset:0; display:grid; place-items:center; touch-action:pan-y; user-select:none; -webkit-user-select:none; }
.photo-viewer-frame { position:relative; width:100%; height:100%; margin:0; }
.photo-viewer-frame img { width:100%; height:100%; display:block; object-fit:contain; transform:scale(1); transform-origin:center; transition:transform .16s ease-out; will-change:transform; }
.photo-viewer-frame img.is-zoomed { cursor: zoom-out; }
.photo-viewer-frame .photo-watermark { right:max(12px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); padding:5px 9px; font-size:14px; }
.photo-viewer-error { position:absolute; inset:0; display:grid; place-items:center; margin:0; padding:24px; background:#1a6b54; text-align:center; }
.photo-viewer-nav { position:absolute; z-index:2; top:50%; transform:translateY(-50%); width:44px; height:44px; padding:0; border:0; border-radius:50%; display:grid; place-items:center; background:rgba(0,0,0,.4); color:#fff; }
.photo-viewer-prev { left:max(8px, env(safe-area-inset-left)); }
.photo-viewer-next { right:max(8px, env(safe-area-inset-right)); }
.photo-viewer-nav[hidden] { display:none !important; }
.photo-viewer-zoom { position:absolute; z-index:3; left:50%; bottom:max(18px, env(safe-area-inset-bottom)); transform:translateX(-50%); display:flex; align-items:center; gap:2px; padding:4px; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:rgba(9,24,17,.78); box-shadow:0 8px 24px rgba(0,0,0,.18); }
.photo-viewer-zoom button { width:38px; height:36px; padding:0; border:0; border-radius:999px; display:grid; place-items:center; background:transparent; color:#fff; font:inherit; }
.photo-viewer-zoom button:hover,
.photo-viewer-zoom button:focus-visible { background:rgba(255,255,255,.14); outline:2px solid rgba(255,255,255,.7); outline-offset:1px; }
.photo-viewer-zoom button:disabled { opacity:.38; cursor:default; }
.photo-viewer-zoom button svg { width:17px; height:17px; }
.photo-viewer-zoom button:nth-child(2) { min-width:56px; color:#f4f8f2; font-size:12px; font-weight:700; }

/* Management page */
.admin-body { background:#edf1ed; }
.login-screen { min-height:100svh; display:grid; place-items:center; padding:24px; background:var(--green); }
.login-panel { width:min(390px,100%); padding:34px; border-top:5px solid var(--red); background:var(--paper); box-shadow:0 20px 60px rgba(15,24,19,.25); }
.login-panel h1 { margin:0; color:var(--green); font-size:34px; }
.login-panel>div:nth-child(2) { margin:38px 0 28px; }
.login-panel>div:nth-child(2) p { margin:6px 0 0; color:var(--muted); font-size:12px; }
.login-panel>label { display:block; margin-bottom:7px; font-size:11px; font-weight:700; }
.password-field { height:44px; display:grid; grid-template-columns:38px 1fr 40px; align-items:center; border:1px solid var(--line); background:#fff; }
.password-field>svg { justify-self:center; color:var(--muted); }
.password-field input { width:100%; height:100%; border:0; outline:0; }
.password-field button { width:40px; height:42px; border:0; display:grid; place-items:center; background:transparent; color:var(--muted); }
.login-button { width:100%; margin-top:16px; }
.form-feedback { color:var(--red); font-size:10px; }
.login-panel .form-feedback { min-height:18px; margin:8px 0; text-align:center; }
.back-home { display:flex; align-items:center; justify-content:center; gap:7px; color:var(--muted); font-size:11px; }
.admin-shell { min-height:100svh; display:grid; grid-template-columns:235px minmax(0,1fr); }
.admin-sidebar { position:sticky; top:0; height:100svh; padding:28px 18px 20px; display:flex; flex-direction:column; background:var(--green); color:#fff; }
.admin-brand { padding:0 11px 28px; border-bottom:1px solid rgba(255,255,255,.15); }
.admin-brand strong { color:#fff; } .admin-brand small { color:#a9b8b0; }
.admin-nav { margin-top:25px; display:grid; gap:6px; }
.admin-nav a,.admin-side-bottom a,.admin-side-bottom button { height:43px; padding:0 12px; border:0; border-radius:6px; display:flex; align-items:center; gap:11px; background:transparent; color:#b8c6bf; font-size:12px; text-align:left; }
.admin-nav a:hover,.admin-nav a.active,.admin-side-bottom a:hover,.admin-side-bottom button:hover { background:rgba(255,255,255,.1); color:#fff; }
.admin-nav a.active { border-left:3px solid #e2ad64; }
.admin-side-bottom { margin-top:auto; padding-top:16px; border-top:1px solid rgba(255,255,255,.15); }
.admin-side-bottom>* { width:100%; }
.admin-main { width:min(1280px,100%); margin:0 auto; padding:40px 44px 70px; overflow:hidden; border-left:1px solid var(--line); }
.admin-header { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:26px; }
.admin-header h1 { margin:0; color:var(--green); font-size:40px; }
.admin-header>div:first-child>p:last-child { margin:6px 0 0; color:var(--muted); font-size:11px; }
.header-actions,.admin-filters,.row-actions { display:flex; gap:9px; }
.admin-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:24px; border:1px solid var(--line); background:var(--paper); }
.admin-stats article { min-height:118px; padding:20px; display:grid; grid-template-columns:32px 1fr; grid-template-rows:auto 1fr auto; column-gap:11px; border-right:1px solid var(--line); }
.admin-stats article:last-child { border-right:0; }
.admin-stats article>svg { grid-row:1/4; width:25px; height:25px; padding:5px; box-sizing:content-box; border-radius:5px; background:var(--green-soft); color:var(--green-2); }
.admin-stats span,.admin-stats small { color:var(--muted); font-size:10px; } .admin-stats strong { align-self:center; color:var(--green); font-size:31px; }
.admin-panel,.property-panel { border:1px solid var(--line); background:var(--paper); }
.panel-heading { min-height:95px; padding:18px 22px; display:flex; align-items:center; justify-content:space-between; gap:25px; border-bottom:1px solid var(--line); }
.panel-heading h2,.property-heading h2 { margin:0; color:var(--green); font-size:27px; }
.panel-heading .section-kicker,.property-heading .section-kicker { margin-bottom:3px; font-size:10px; }
.search-field { width:210px; height:38px; padding:0 10px; display:flex; align-items:center; gap:7px; border:1px solid var(--line); background:#fff; }
.search-field svg { width:15px; color:var(--muted); } .search-field input { min-width:0; width:100%; border:0; outline:0; }
.admin-filters select { height:38px; padding:0 28px 0 10px; border:1px solid var(--line); background:#fff; color:var(--muted); font-size:11px; }
.admin-room-list { padding:0 22px 10px; overflow-x:auto; }
.admin-list-head,.admin-room-row { min-width:820px; display:grid; grid-template-columns:1.3fr .85fr .6fr .65fr .75fr 118px; gap:15px; align-items:center; }
.admin-list-head { height:42px; border-bottom:1px solid var(--line); color:#89948e; font-size:9px; }
.admin-list-head span:last-child { text-align:right; }
.admin-room-row { min-height:76px; border-bottom:1px solid var(--line); }
.admin-room-name { display:flex; align-items:center; gap:12px; }
.admin-room-name>span { width:40px; height:40px; display:grid; place-items:center; border-radius:6px; background:var(--green-soft); color:var(--green); font-size:19px; font-weight:700; }
.admin-room-name strong,.admin-room-name small { display:block; }
.admin-room-name small,.rent-cell small,.admin-room-row time { color:var(--muted); font-size:9px; }
.config-cell { display:flex; align-items:center; gap:6px; color:var(--green-2); font-size:10px; }
.config-cell svg { width:14px; } .rent-cell strong { color:var(--red); font-size:13px; }
.status-badge { padding:4px 7px; border-radius:999px; background:var(--green-soft); color:var(--green-2); font-size:9px; font-weight:700; }
.status-badge.occupied { background:var(--red-soft); color:var(--red-dark); }
.row-actions { justify-content:flex-end; } .row-actions button { width:32px; height:32px; padding:0; border:1px solid var(--line); border-radius:6px; display:grid; place-items:center; background:#fff; }
.property-panel { margin-top:24px; padding:24px 28px 30px; background:var(--paper); border:1px solid var(--line); border-radius:10px; }
.property-panel>#settings-form { display:block; }
.location-editor { margin:20px 0 0; padding:20px 0 0; border-top:1px solid var(--line); }
.location-editor-header { margin-bottom:16px; }
.location-editor-header h3 { margin:0 0 6px; color:var(--green); font-size:20px; font-weight:700; }
.location-editor-header>p { margin:0; color:var(--muted); font-size:12px; }
.location-editor .location-editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:16px; }
.location-editor .form-wide { grid-column:1/-1; }
.location-editor .form-wide.picker-entry { display:grid; gap:8px; }
.location-editor .snapshot-editor { padding:16px; background:#f8faf7; border:1px solid var(--line); border-radius:8px; }
.location-editor .snapshot-editor h4 { margin:0 0 8px; color:var(--ink); font-size:15px; font-weight:700; }
.location-editor .snapshot-editor p { margin:0 0 10px; color:var(--muted); font-size:12px; }
.nearby-section { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.nearby-section h4 { margin:0 0 6px; color:var(--ink); font-size:15px; font-weight:700; }
.nearby-section>p { margin:0 0 14px; color:var(--muted); font-size:12px; }
.nearby-section small { display:block; margin-top:12px; color:var(--muted); font-size:11px; }
.nearby-editor-controls { margin-top:12px; }
#agreement { display:block; padding:0 0 32px; background:transparent; border:0; }
#agreement .panel-heading { background:var(--paper); border:1px solid var(--line); border-radius:10px 10px 0 0; }
#agreement form { background:var(--paper); border:1px solid var(--line); border-top:0; border-radius:0 0 10px 10px; padding:24px 28px 30px; }
#agreement .section-desc { margin:0 0 18px; color:var(--muted); font-size:12px; line-height:1.8; }
#agreement .agreement-list { display:grid; gap:12px; margin-bottom:16px; }
#agreement .agreement-item-row { display:grid; grid-template-columns:28px 1fr auto; gap:10px; align-items:start; padding-bottom:12px; border-bottom:1px solid var(--line); }
#agreement .agreement-item-row:last-child { border-bottom:0; padding-bottom:0; }
#agreement .agreement-item-fields { display:grid; grid-template-columns:130px 1fr; gap:10px; align-items:start; }
#agreement .agreement-item-title { min-height:36px; padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); font-size:12px; font-weight:700; }
#agreement .agreement-item-title:focus { border-color:var(--green-2); outline:0; box-shadow:0 0 0 3px rgba(53,105,82,.1); }
#agreement .agreement-item-input { min-height:54px; padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); font-size:12px; line-height:1.5; resize:vertical; }
#agreement .agreement-item-input:focus { border-color:var(--green-2); outline:0; box-shadow:0 0 0 3px rgba(53,105,82,.1); }
#agreement .agreement-item-number { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--green-soft); color:var(--green); font-size:13px; font-weight:700; }
#agreement .agreement-delete { min-height:36px; padding:0 12px; color:var(--red-dark); border-color:var(--line); font-size:12px; }
#agreement .agreement-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:16px; }
#agreement .agreement-controls small { color:var(--muted); font-size:12px; }
#agreement .agreement-controls>#add-agreement-item { min-height:38px; font-size:13px; }
.property-heading>p:last-child { max-width:260px; margin:13px 0 0; color:var(--muted); font-size:11px; line-height:1.8; }
.settings-form,.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.settings-form label,.admin-modal label { color:#53615a; font-size:10px; font-weight:700; }
.settings-form input,.settings-form textarea,.admin-modal input,.admin-modal select,.admin-modal textarea { width:100%; min-height:40px; margin-top:5px; padding:9px 10px; border:1px solid var(--line); border-radius:6px; outline:0; background:#fff; color:var(--ink); font-size:11px; }
.settings-form textarea,.admin-modal textarea { resize:vertical; }
.settings-form input:focus,.settings-form textarea:focus,.admin-modal input:focus,.admin-modal select:focus,.admin-modal textarea:focus { border-color:var(--green-2); box-shadow:0 0 0 3px rgba(53,105,82,.1); }
.agreement-editor { min-width:0; margin:0; padding:0; border:0; }
.agreement-editor legend { display:block; width:100%; margin:0 0 3px; padding:0; color:var(--green); font-size:27px; line-height:1.25; font-weight:700; }
.agreement-editor>small { display:block; margin-top:10px; color:var(--muted); font-size:11px; line-height:1.7; }
.agreement-item-row { display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:8px; align-items:start; margin-top:10px; }
.agreement-item-number { display:grid; place-items:center; width:24px; height:24px; margin-top:8px; border-radius:50%; background:var(--green-soft); color:var(--green); font-size:11px; font-weight:700; }
.agreement-item-input { margin-top:0!important; min-height:58px!important; font-size:12px!important; line-height:1.6; }
.agreement-delete { min-height:40px; padding:0 10px; color:var(--red-dark); border-color:var(--line); }
.agreement-editor>#add-agreement-item { margin-top:12px; min-height:40px; font-size:12px; }
.agreement-item-fields { min-width:0; display:grid; gap:6px; }
.agreement-item-title { width:100%; min-height:40px; padding:9px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); font-size:12px; font-weight:700; }
.agreement-item-title:focus { border-color:var(--green-2); outline:0; box-shadow:0 0 0 3px rgba(53,105,82,.1); }
.rental-agreement { margin-top:24px; }
.agreement-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.agreement-card { min-height:116px; padding:22px 24px; border:1px solid var(--line); border-radius:16px; background:#f3f5f2; }
.agreement-card h3 { margin:0 0 12px; color:var(--ink); font-size:20px; line-height:1.35; font-weight:700; }
.agreement-card p { margin:0; color:var(--muted); font-size:16px; line-height:1.65; }
@media (max-width:640px) {
  .agreement-cards { grid-template-columns:1fr; gap:12px; }
  .agreement-card { min-height:0; padding:18px 16px; border-radius:12px; }
  .agreement-card h3 { margin-bottom:8px; font-size:17px; }
  .agreement-card p { font-size:14px; }
}
.form-wide { grid-column:1/-1; } .settings-actions { grid-column:1/-1; min-height:46px; display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.admin-modal { position:relative; width:min(700px,100%); max-height:calc(100svh - 48px); padding:28px; overflow:auto; border-radius:10px; background:var(--paper); box-shadow:var(--shadow); }
.modal-header { min-height:62px; margin-bottom:21px; padding-bottom:16px; display:flex; justify-content:space-between; border-bottom:1px solid var(--line); }
.modal-header h2 { margin:0; color:var(--green); font-size:28px; }
.modal-header .modal-close { position:static; }
.photo-manager { padding:13px; border:1px solid var(--line); background:#fbfcfa; }
.photo-manager-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:11px; }
.field-label { display:block; color:#53615a; font-size:10px; font-weight:700; }
.photo-manager-heading p { margin:4px 0 0; color:var(--muted); font-size:9px; }
.photo-ratio { display:inline-flex; align-items:center; gap:4px; padding:4px 6px; background:var(--green-soft); color:var(--green-2); font-size:9px; }
.photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.photo-slot { position:relative; display:block; color:var(--muted); font-size:9px; font-weight:700; cursor:pointer; }
.photo-slot>input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.photo-preview { position:relative; display:grid; aspect-ratio:4/3; place-items:center; overflow:hidden; border:1px dashed #aebbb2; background:var(--green-soft); }
.photo-preview img { width:100%; height:100%; display:block; object-fit:cover; }
.photo-preview>svg { color:var(--green-2); } .photo-preview small { font-size:9px; }
.photo-slot-label { display:block; margin-top:5px; text-align:center; }
.photo-remove { position:absolute; z-index:2; top:4px; right:4px; width:24px; height:24px; border:0; display:grid; place-items:center; background:rgba(31,41,37,.78); color:#fff; }
.form-actions { min-height:54px; margin-top:20px; display:flex; align-items:center; justify-content:flex-end; gap:9px; }
.form-actions .form-feedback { margin-right:auto; }

@media (max-width:1050px) {
  .container { width:min(100% - 40px,900px); }
  .floor-rooms { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .floor-rooms.single-room { grid-template-columns:minmax(320px,390px); }
  .admin-main { padding:32px 24px 60px; }
  .property-panel { grid-template-columns:1fr; gap:24px; }
}
@media (max-width:820px) {
  .container { width:min(100% - 34px,680px); }
  .site-nav { display:none; } .nav-action { display:none; }
  .hero { min-height:500px; height:560px; }
  .hero-inner { align-items:flex-start; padding-top:66px; }
  .hero h1 { font-size:56px; }
  .floor-block { display:block; }
  .floor-label { display:flex; align-items:baseline; gap:8px; margin-bottom:13px; }
  .floor-label .floor-building { margin:0; }
  .floor-label .floor-count { margin:0 0 0 auto; }
  .visit-layout { gap:36px; }
  .admin-shell { grid-template-columns:1fr; }
  .admin-sidebar { position:static; width:100%; height:auto; padding:14px 18px; flex-direction:row; align-items:center; gap:20px; }
  .admin-brand { padding:0 18px 0 0; border-right:1px solid rgba(255,255,255,.15); border-bottom:0; }
  .admin-nav { margin:0; display:flex; gap:4px; }
  .admin-nav a { width:43px; padding:0; justify-content:center; font-size:0; }
  .admin-nav a.active { border-left:0; border-bottom:3px solid #e2ad64; }
  .admin-side-bottom { margin:0 0 0 auto; padding:0; border:0; display:flex; }
  .admin-side-bottom a,.admin-side-bottom button { width:42px; padding:0; justify-content:center; font-size:0; }
  .admin-stats { grid-template-columns:repeat(2,1fr); }
  .admin-stats article:nth-child(2) { border-right:0; }
  .admin-stats article:nth-child(-n+2) { border-bottom:1px solid var(--line); }
}
@media (max-width:600px) {
  html { scroll-padding-top:60px; }
  body:not(.admin-body) { padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
  .container { width:calc(100% - 32px); }
  .site-header,.nav-wrap { height:60px; }
  .brand-seal { width:30px; height:30px; } .brand strong { font-size:17px; } .brand small { display:none; }
  .hero { min-height:340px; height:340px; background-size:auto 165%; background-position:50% 106%; }
  .hero-shade { background:linear-gradient(90deg,rgba(17,40,31,.62),rgba(17,40,31,.22) 72%,rgba(17,40,31,.08)),linear-gradient(180deg,rgba(17,40,31,.10),rgba(17,40,31,.38) 55%,rgba(17,40,31,.82)); }
  .hero-inner { padding-top:16px; padding-bottom:32px; }
  .hero-copy { transform:translateY(-8px); }
  .place-line { margin-bottom:7px; font-size:11px; }
  .hero h1 { font-size:38px; line-height:1.08; letter-spacing:0; font-weight:700; }
  .hero-occupancy { margin-top:8px; font-size:14px; }
  .hero-lede { max-width:320px; margin:8px 0 14px; display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:13px; line-height:1.65; }
  .hero-actions { gap:10px; } .hero-actions .button { min-height:44px; padding:0 15px; font-size:13px; }
  .photo-note { right:8px; bottom:10px; max-width:calc(100% - 16px); font-size:10px; line-height:1.4; background:rgba(24,42,32,.52); padding:2px 5px; }
  .hero-ledger { right:0; bottom:0; left:0; min-height:72px; border:0; border-radius:0; background:rgba(31,70,56,.94); box-shadow:none; }
  .hero-ledger>div { grid-template-columns:1fr; grid-template-rows:auto auto auto; gap:0; padding:8px 2px; align-content:center; text-align:center; }
  .hero-ledger>div strong { grid-row:auto; }
  .hero-ledger>div:last-of-type { border-right:0; }
  .hero-ledger span { color:#d4e0d7; font-size:11px; line-height:16px; }
  .hero-ledger strong { color:#fff; font-size:22px; line-height:25px; }
  .hero-ledger b { color:#e5b26b; font-size:12px; }
  .hero-price-stat { grid-template-columns:1fr!important; }
  .hero-price-stat strong { color:#e5b26b; font-size:17px; }
  .room-section { padding:26px 0 28px; }
  .section-heading { display:block; margin-bottom:13px; }
  .section-heading h2,.price-intro h2 { font-size:25px; line-height:1.35; letter-spacing:-.015em; }
  .room-summary { margin:6px 0 0; font-size:12px; }
  .filter-bar { min-height:44px; margin-bottom:13px; gap:4px; }
  .filter-options { flex:1; }
  .filter-more { display:flex; }
  .filter-button { min-height:44px; padding:0 10px; font-size:12px; color:#3f5146; }
  .refresh-button { width:44px; height:44px; flex-basis:44px; margin-left:4px; }
  .floor-list { gap:13px; }
  .floor-block { padding:10px 0 8px; border:0; border-top:1px solid #b9cabe; border-radius:0; background:transparent; }
  .floor-block:first-child { border-top-color:var(--green); }
  .floor-label { margin-bottom:7px; } .floor-label h3 { font-size:21px; }
  .floor-block .floor-rooms { grid-template-columns:minmax(0,1fr); gap:6px; }
  .room-card { border-radius:6px; }
  .room-card-button { min-height:0; }
  .room-card-top { height:126px; min-height:126px; padding:12px; }
  .room-number { font-size:28px; }
  .photo-watermark { font-size:10px; }
  .room-card-body { min-height:54px; padding:9px 12px; }
  .room-card-foot { font-size:11px; gap:8px; padding:7px 12px; }
  .room-card-foot span:last-child { font-size:12px; }
  .room-type { font-size:13px; }
  .room-rent b { font-size:24px; }
  .room-rent small,.availability,.floor-label span { font-size:12px; }
  .amenities-section { padding:28px 0 32px; }
  .amenities-heading { margin-bottom:13px; }
  .amenities-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .amenity-item { min-height:82px; padding:11px 9px; gap:8px; border-radius:8px; }
  .amenity-icon { width:34px; height:34px; flex-basis:34px; }
  .amenity-icon svg { width:16px; height:16px; }
  .amenity-item strong { font-size:13px; }
  .amenity-item small { margin-top:2px; font-size:11px; }
  .price-section { padding:26px 0 32px; }
  .price-layout-single #rental-agreement { margin-top:12px; padding:0; }
  .rental-list { gap:10px; padding-left:20px; } .rental-list li { padding-left:3px; font-size:13px; line-height:1.7; }
  .rental-item-title { font-size:13px; font-weight:700; }
  .rental-note { margin-top:12px; font-size:12px; line-height:1.7; }
  .visit-section { padding:26px 0 32px; }
  .visit-layout { grid-template-columns:1fr; gap:28px; }
  .address-block { margin-top:22px; } .address-block p { font-size:15px; font-weight:700; overflow-wrap:anywhere; }
  .visit-intro { font-size:13px; line-height:1.8; }
  .visit-notice { font-size:12px; line-height:1.75; }
  .visit-copy h2 { font-size:26px; line-height:1.35; }
  .address-block small { font-size:11px; }
  .visit-actions { grid-template-columns:1fr; gap:10px; }
  .visit-actions a { min-height:56px; padding:8px 12px; gap:8px; }
  .visit-actions a>svg { width:19px; height:19px; }
  .visit-actions strong { font-size:14px; }
  .visit-actions small { font-size:12px; }
  .visit-actions .is-disabled strong { font-size:12px; line-height:1.35; }
  body:not(.nav-configured) .visit-actions { grid-template-columns:1fr; }
  body:not(.nav-configured) .visit-actions .is-disabled { min-height:52px; }
  .footer-wrap { align-items:flex-start; } .footer-wrap p { display:none; }
  .site-footer { padding-bottom:28px; }
  .footer-record { margin-top:14px; padding-top:10px; gap:8px; flex-wrap:wrap; font-size:9px; }
  .mobile-actions { position:fixed; z-index:60; right:0; bottom:0; left:0; height:calc(64px + env(safe-area-inset-bottom)); padding:9px 16px calc(9px + env(safe-area-inset-bottom)); display:grid; grid-template-columns:1fr 1fr; gap:8px; background:var(--paper); border-top:1px solid var(--line); }
  .mobile-actions.is-suppressed { visibility:hidden; pointer-events:none; }
  body.modal-open .mobile-actions { visibility:hidden; }
  .mobile-actions a { min-height:44px; display:flex; align-items:center; justify-content:center; gap:7px; border-radius:6px; color:var(--green); font-size:13px; font-weight:800; }
  .mobile-actions a span { display:inline-block; }
  .mobile-actions a:first-child { border:1px solid var(--red); background:var(--red); color:#fff; }
  .mobile-actions a:first-child:hover { background:var(--red-dark); }
  .mobile-actions a:last-child { border:1px solid var(--line); background:var(--paper); color:var(--green); }
  body:not(.nav-configured) .mobile-actions { grid-template-columns:1fr; }
  body:not(.nav-configured) #mobile-navigate-link { display:none; }
  .room-modal { grid-template-columns:1fr; max-height:calc(100svh - 24px); }
  .modal-photo { min-height:220px; } .modal-content { padding:28px 20px 24px; }
  .modal-content h2 { font-size:25px; } .modal-actions { grid-template-columns:1fr; }
  .modal-price strong { font-size:31px; }
  .modal-content>p { font-size:13px; line-height:1.8; }
  .modal-content>p { font-size:14px; }
  .modal-backdrop { padding:12px; } .toast { bottom:calc(80px + env(safe-area-inset-bottom)); }
  dialog.map-choice,
  dialog.map-choice[open],
  dialog.map-choice:modal {
    inset:auto 0 0 0 !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    border:0 !important;
    border-radius:20px 20px 0 0 !important;
  }
  .map-choice-panel { padding:8px 20px calc(18px + env(safe-area-inset-bottom)); }
  .map-choice-handle { display:block; }
  .map-choice-close { width:40px; min-width:40px; height:40px; min-height:40px; }
  .icon-button { min-width:44px; min-height:44px; }
  .room-facts dt,.modal-price span { font-size:12px; }
  .admin-sidebar { gap:10px; padding:11px 12px; overflow-x:auto; }
  .admin-brand { padding-right:11px; } .admin-nav { margin-left:auto; } .admin-side-bottom { display:none; }
  .admin-main { padding:25px 14px 50px; } .admin-header { align-items:flex-start; } .admin-header h1 { font-size:31px; }
  .admin-header>div:first-child>p:last-child { display:none; }
  .header-actions .icon-button { display:none; } .header-actions .button { min-height:39px; padding:0 11px; font-size:10px; }
  .admin-stats article { min-height:93px; padding:13px; grid-template-columns:29px 1fr; }
  .panel-heading { display:block; padding:16px; } .admin-filters { margin-top:14px; display:grid; grid-template-columns:repeat(2,1fr); }
  .search-field { width:100%; grid-column:1/-1; } .admin-filters select { width:100%; }
  .admin-room-list { padding:0 14px 8px; overflow-x:hidden; }
  .admin-list-head,.admin-room-row { min-width:0; grid-template-columns:minmax(0,1fr) 55px 98px; gap:7px; }
  .admin-list-head span:nth-child(2),.admin-list-head span:nth-child(3),.admin-list-head span:nth-child(5),.admin-room-row .config-cell,.admin-room-row .rent-cell,.admin-room-row time { display:none; }
  .admin-list-head span:nth-child(4) { grid-column:2; } .admin-list-head span:nth-child(6) { grid-column:3; }
  .admin-room-row>div:nth-child(4) { grid-column:2; } .admin-room-row .row-actions { grid-column:3; }
  .admin-room-name { min-width:0; gap:8px; } .admin-room-name>span { width:34px; height:34px; font-size:17px; } .admin-room-name>div { min-width:0; }
  .admin-room-name strong,.admin-room-name small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .row-actions { gap:4px; } .row-actions button { width:30px; height:30px; }
  .property-panel { padding:21px 16px 24px; } .settings-form { grid-template-columns:1fr; }
  .settings-actions { justify-content:stretch; flex-wrap:wrap; } .settings-actions .button { width:100%; }
  .admin-modal { padding:21px 16px; } .form-grid { grid-template-columns:1fr; }
  .photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .photo-manager { padding:11px; } .photo-manager-heading { display:block; } .photo-ratio { margin-top:8px; }
  .form-actions { flex-wrap:wrap; } .form-actions .form-feedback { width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}
