:root {
  --paper: #faf8f3;
  --pine: #243e35;
  --orange: #bf6336;
  --orange-hover: #a84e27;
  --muted: #63715f;
  --line: #dce0d4;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--pine);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
a, button, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.035em; }
h2 { font-size: 27px; line-height: 1.3; margin-bottom: 15px; }
p { line-height: 1.75; }
img { display: block; max-width: 100%; object-fit: cover; }
svg { flex: 0 0 auto; }
[hidden], dialog:not([open]) { display: none !important; }
::selection { background: var(--pine); color: #fff; }
.rental-shell { min-height: 100dvh; font-size: 16px; line-height: 1.65; }
.rental-header, .browse-layout, .rental-footer, .empty-listings { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 100; padding: 10px 16px; background: var(--pine); color: #fff; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.rental-header { min-height: 64px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'brand streets owner'; align-items: center; gap: clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { flex: 0 0 auto; }
.brand-name { font-family: Georgia, 'Times New Roman', serif; font-size: 27px; letter-spacing: -.055em; line-height: 1.15; }
.owner-entry { grid-area: owner; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #bac4b2; border-radius: 6px; padding: 9px 16px; background: transparent; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.owner-entry:hover { background: #eff1e6; }
.property-tabs { grid-area: streets; display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px 34px; align-self: end; }
.property-tab { display: flex; align-items: center; justify-content: center; min-height: 52px; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 11px 2px 14px; color: var(--muted); font-size: 16px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.property-tab:hover { color: var(--pine); }
.property-tab[aria-current='page'] { color: var(--pine); border-bottom-color: var(--orange); }
.browse-layout { display: grid; grid-template-columns: 182px minmax(0, 1fr); gap: 47px; align-items: start; padding-block: 20px 70px; min-height: 650px; }
.section-tabs { display: flex; flex-direction: column; gap: 7px; padding: 4px 0; }
.section-tab { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 11px 14px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.section-tab:hover { background: #f0f1e7; color: var(--pine); }
.section-tab[aria-current='page'] { color: var(--pine); background: #eeeee1; border-color: #dde2d2; }
.section-tab[aria-current='page'] svg { color: var(--orange); }
.browse-pane { min-width: 0; }
.browse-pane:focus { outline: none; }
.browse-pane:focus-visible { outline: 2px solid #bac5ae; outline-offset: 12px; border-radius: 5px; }
.room-heading { margin-bottom: 16px; }
.room-heading h1 { max-width: 820px; margin: 0 0 10px; font-size: clamp(34px, 3.1vw, 45px); letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; }
.room-locality { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }
.room-locality svg { width: 15px; height: 15px; }
.room-overview { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: stretch; margin-bottom: 30px; }
.room-overview.without-photo { grid-template-columns: minmax(0, 350px); }
.cover-wrap { position: relative; min-width: 0; overflow: hidden; border-radius: 9px; background: #e8eadf; min-height: 285px; }
.cover-wrap > img { width: 100%; height: 100%; min-height: 285px; max-height: 410px; aspect-ratio: 1.45; object-fit: cover; }
.photo-trigger { position: absolute; bottom: 14px; right: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 14px; border: 1px solid #d9dfd0; border-radius: 5px; background: #faf8f3f2; font-size: 14px; line-height: 1.5; box-shadow: 0 3px 14px #203b2810; }
.photo-trigger:hover { background: #fff; }
.rent-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 26px 24px; background: #eff0e6; border: 1px solid #dce1d2; border-radius: 9px; min-width: 0; }
.monthly-rent { font-family: Georgia, 'Times New Roman', serif; font-size: 35px; line-height: 1.3; letter-spacing: -.04em; margin: 0 0 14px; overflow-wrap: anywhere; }
.monthly-rent small { display: inline-block; font-family: Arial, Helvetica, sans-serif; color: var(--muted); font-size: 14px; line-height: 1.5; letter-spacing: 0; margin-left: 2px; white-space: nowrap; }
.availability { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; line-height: 1.5; color: #526b45; margin: 0 0 20px; }
.availability::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7a9364; flex-shrink: 0; }
.rent-panel p:not(.monthly-rent):not(.availability) { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 500; line-height: 1.5; text-align: center; }
.button.primary { background: #ad532d; color: #fff; }
.button.primary:hover { background: var(--orange-hover); }
.button.secondary { border-color: #b8c0b6; background: transparent; }
.button.secondary:hover { background: #eeeee5; }
.button.danger { border-color: #ddc1bb; color: #9b3428; background: #fff7f5; }
.button.small { min-height: 44px; font-size: 13px; padding: 8px 14px; }
.contact-host { width: 100%; }
.room-description { margin: 0 0 29px; }
.room-description p { color: #53634e; font-size: 16px; line-height: 1.85; margin-bottom: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.room-amenities { padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; row-gap: 12px; list-style: none; }
.room-amenities li { display: flex; align-items: flex-start; gap: 10px; color: #53634e; font-size: 15px; line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.room-amenities svg { width: 17px; height: 17px; color: #839672; margin-top: 4px; }
.transport-details { border-top: 1px solid var(--line); }
.transport-details dl { margin: 0; }
.transport-details dl > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.transport-details dt { font-size: 14px; line-height: 1.7; font-weight: 600; }
.transport-details dd { margin: 0; font-size: 16px; line-height: 1.85; color: #586a51; white-space: pre-wrap; overflow-wrap: anywhere; }
.photos-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.photo-link { display: block; border: 1px solid #d7ddcd; border-radius: 7px; overflow: hidden; background: #eaecdf; }
.photo-link img { width: 100%; aspect-ratio: 1.32; object-fit: cover; transition: transform .25s; }
.photo-link:hover img { transform: scale(1.025); }
.viewer-open { overflow: hidden; }
.photo-viewer { width: min(980px, calc(100% - 24px)); max-height: 94dvh; min-width: 0; padding: 16px; border: 0; border-radius: 10px; background: var(--paper); color: var(--pine); }
.photo-viewer::backdrop { background: rgb(17 28 23 / 78%); }
.photo-viewer > img { width: 100%; max-height: 67dvh; object-fit: contain; background: #efefe6; border-radius: 5px; }
.photo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.photo-controls:first-child { margin: 0 0 10px; }
.photo-controls button, .photo-controls > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; border: 1px solid #bec9b3; border-radius: 5px; padding: 9px 13px; background: transparent; color: var(--pine); font-size: 14px; }
.photo-controls button:hover, .photo-controls > a:hover { background: #e9eedf; }
.reviews-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 9px; }
.reviews-bar > p { margin: 0; }
.review-action { flex-shrink: 0; }
.tenant-reviews { display: flex; flex-direction: column; gap: 18px; }
.tenant-review { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 25px; }
.review-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.review-byline strong { color: var(--pine); font-weight: 600; }
.review-stars { color: #a04b26; font-size: 23px; letter-spacing: .06em; margin: 9px 0 12px; }
.tenant-review > p:last-child { color: #57674f; font-size: 16px; line-height: 1.85; margin-bottom: 0; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-form-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f2f2e8; padding: 26px; scroll-margin-top: 20px; }
.review-form-panel > p { color: var(--muted); }
.review-form { margin-top: 23px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack > p { margin: 0; }
.stack > .button { align-self: flex-start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { font-size: 14px; font-weight: 600; line-height: 1.6; }
.form-input, .form-textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #b5c0ac; border-radius: 5px; background: #fff; color: var(--pine); padding: 11px 12px; font-size: 16px; line-height: 1.5; }
.form-textarea { resize: vertical; }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7; }
.check-label input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--pine); }
.hint { color: var(--muted); font-size: 13px; line-height: 1.7; }
.muted { color: var(--muted); }
.text-link { text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--orange-hover); }
.notice { border: 1px solid #ccd5bf; border-radius: 6px; background: #edf2e6; padding: 13px 16px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.notice.error { border-color: #d5b2a5; background: #fff1e9; color: #8a3624; }
.notice.success { border-color: #bacdab; background: #edf5e7; color: #35522b; }
.rental-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); padding: 24px 0 30px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.rental-footer p { margin: 0; }
.empty-listings { min-height: 60vh; padding-block: 40px; }
.empty-listings h1 { font-size: 40px; }
.page-card { width: min(700px, calc(100% - 40px)); margin: 40px auto; padding: 30px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.page-card h1 { font-size: 36px; line-height: 1.2; }
@media (max-width: 1100px) {
  .rental-header, .browse-layout, .rental-footer, .empty-listings { width: calc(100% - 56px); }
  .browse-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 29px; }
  .room-overview { grid-template-columns: minmax(0, 1fr) 235px; gap: 18px; }
  .rent-panel { padding: 22px 19px; }
  .monthly-rent { font-size: 32px; }
  .cover-wrap, .cover-wrap > img { min-height: 270px; }
  .transport-details dl > div { grid-template-columns: 165px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .browse-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 24px; }
  .section-tab { padding-inline: 10px; gap: 9px; font-size: 13px; }
  .section-tab svg { width: 17px; height: 17px; }
  .room-overview { grid-template-columns: 1fr; }
  .cover-wrap > img { max-height: 380px; aspect-ratio: 1.5; }
  .rent-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; padding: 21px; }
  .rent-panel .monthly-rent { grid-column: 1; margin-bottom: 0; }
  .rent-panel .availability { grid-column: 1; margin: 0; }
  .rent-panel .contact-host { grid-column: 2; grid-row: 1 / 3; width: auto; }
  .rent-panel p:not(.monthly-rent):not(.availability) { grid-column: 1 / -1; margin-bottom: 0; }
  .photos-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transport-details dl > div { grid-template-columns: 1fr; gap: 9px; }
  .reviews-bar { flex-direction: column; gap: 16px; }
}
@media (max-width: 700px) {
  .rental-header, .browse-layout, .rental-footer, .empty-listings { width: calc(100% - 36px); }
  .rental-header { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'brand owner' 'streets streets'; gap: 0 8px; padding-top: 6px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 23px; }
  .owner-entry { padding-inline: 11px; font-size: 12px; }
  .property-tabs { gap: 3px 28px; }
  .property-tab { font-size: 15px; min-height: 44px; padding-block: 7px; }
  .browse-layout { display: block; padding-block: 0 47px; min-height: 600px; }
  .section-tabs { flex-direction: row; flex-wrap: wrap; gap: 4px 7px; padding: 6px 0 9px; }
  .section-tab { flex: 1 1 auto; justify-content: center; padding: 10px 9px; gap: 7px; min-height: 44px; font-size: 13px; }
  .section-tab svg { width: 16px; height: 16px; }
  .room-heading { margin-bottom: 12px; }
  .room-heading h1 { font-size: clamp(31px, 6.9vw, 40px); line-height: 1.17; margin-bottom: 11px; }
  .room-locality { font-size: 13px; }
  .room-overview { gap: 15px; margin-bottom: 28px; }
  .cover-wrap, .cover-wrap > img { min-height: 235px; }
  .cover-wrap > img { aspect-ratio: 1.35; max-height: 420px; }
  .photo-trigger { bottom: 11px; right: 11px; font-size: 12px; min-height: 44px; padding: 9px 12px; }
  .rent-panel { padding: 19px; gap: 8px 16px; }
  .monthly-rent { font-size: 31px; }
  .monthly-rent small { font-size: 12px; }
  .rent-panel .contact-host { font-size: 13px; padding-inline: 15px; }
  h2 { font-size: 25px; }
  .room-amenities { column-gap: 15px; row-gap: 11px; }
  .room-amenities li { font-size: 14px; gap: 8px; }
  .transport-details dl > div { padding-block: 21px; gap: 8px; }
  .photos-layout { gap: 11px; }
  .photo-link img { aspect-ratio: 1.2; }
  .photo-viewer > img { max-height: 58dvh; }
  .photo-controls { gap: 10px; font-size: 13px; }
  .photo-controls button, .photo-controls > a { padding-inline: 11px; font-size: 13px; }
  .tenant-review { padding: 21px; }
  .review-byline { font-size: 13px; }
  .review-form-panel { padding: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .rental-footer { align-items: flex-start; flex-direction: column; gap: 7px; font-size: 12px; padding-block: 21px 25px; }
  .page-card { width: calc(100% - 28px); margin-block: 20px; padding: 22px; }
}
@media (max-width: 390px) {
  .rental-header, .browse-layout, .rental-footer, .empty-listings { width: calc(100% - 28px); }
  .brand-name { font-size: clamp(17px, 5.3vw, 21px); line-height: 1.1; }
  .brand img { width: 24px; height: 24px; }
  .owner-entry { padding-inline: 10px; font-size: 11px; }
  .property-tabs { gap: 4px 24px; }
  .section-tabs { gap: 4px; }
  .section-tab { font-size: 12px; padding-inline: 7px; gap: 5px; }
  .section-tab svg { width: 15px; height: 15px; }
  .room-heading h1 { font-size: 30px; }
  .rent-panel { display: flex; align-items: flex-start; padding: 19px; gap: 10px; }
  .rent-panel .contact-host { margin-top: 4px; width: 100%; }
  .room-amenities { grid-template-columns: 1fr; }
  .photo-controls { gap: 8px; }
  .review-form-panel { padding: 17px; }
}
@media (max-width: 360px) { .section-tab svg { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-link img { transition: none; }
  .photo-link:hover img { transform: none; }
}
