/* Onto Rent: a local, editorial visual identity. Marketplace behavior stays native. */
:root {
  --cyan: #bd2838;
  --cyan-dark: #a71e2d;
  --teal: #b52233;
  --deep: #8f1d2a;
  --ink: #272a2e;
  --muted: #646a71;
  --soft: #f3f4f5;
  --mint: #eceef0;
  --line: #dfe2e5;
  --radius: 9px;
  --header-height: 82px;
  --shadow: 0 12px 32px #20252b12;
}
html { scroll-padding-top: calc(var(--header-height) + 22px); }
body { background: #fff; }
button, a, input, select, textarea { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: #a31f31; }
.container { max-width: 1240px; padding-inline: 32px; }
.section { padding-block: 76px; }
h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.16; letter-spacing: -.045em; }
.eyebrow { font-size: .875rem; letter-spacing: .115em; margin-bottom: 13px; }
.primary-btn, .secondary-btn, .post-btn, .filter-button, .quick-filters select, .sort-label select, .view-switch, .view-switch button { border-radius: 6px; }
.primary-btn, .secondary-btn { min-height: 46px; font-size: .9375rem; }
.text-link { font-size: .9375rem; }

/* A quiet white masthead gives the red brand room to stand out. */
.header { background: #fff; color: var(--ink); border-top: 4px solid var(--cyan); border-bottom: 1px solid #e8eaec; transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 5px 22px #1d222c0d; }
.nav-wrap { max-width: 1440px; min-height: 78px; padding: 13px 32px; gap: 28px; }
.brand[data-adaptive-logo] { --brand-ink: #30343b; --brand-accent: var(--cyan); color: var(--brand-accent); }
.brand[data-adaptive-logo][data-brand-tone="dark"] { --brand-ink: #fff; --brand-accent: #fff; }
.header .brand { gap: 12px; flex-shrink: 0; }
.header .brand > svg { width: 31px; height: 39px; }
.header .brand > span { font-size: 21px; font-weight: 800; letter-spacing: .015em; }
.header .brand small { color: #686d73; font-size: 9px; letter-spacing: .27em; }
.brand .brand-wordmark { display: block; width: 205px; line-height: 0; flex-shrink: 0; }
.brand-wordmark svg { display: block; width: 100%; height: auto; }
.brand-wordmark .wordmark-text { fill: var(--brand-ink, #30343b); }
.brand-wordmark .wordmark-o { fill: var(--brand-accent, var(--cyan)); }
.footer-brand .brand { gap: 12px; }
.desktop-nav { gap: 24px; }
.desktop-nav a { position: relative; font-size: .9375rem; padding-block: 10px; }
.desktop-nav a:hover { opacity: 1; color: var(--teal); }
.desktop-nav a[aria-current="page"]::after { content: ''; position: absolute; height: 2px; left: 0; right: 0; bottom: 1px; background: var(--teal); }
.nav-actions { gap: 17px; }
.account-nav { font-size: .875rem; }
.saved-nav .count { color: var(--teal); background: #f6e9ec; font-size: .75rem; border-radius: 4px; }
.lang-switch { background: #f1f2f3; border: 1px solid #e3e5e7; padding: 3px; border-radius: 6px; }
.lang-switch button { color: #626870; border-radius: 4px; min-height: 34px; min-width: 32px; font-size: .8125rem; }
.lang-switch button.active { background: #fff; color: var(--teal); box-shadow: 0 1px 4px #24292f16; }
.post-btn { background: var(--teal); color: #fff; min-height: 44px; font-size: .875rem; padding: 10px 16px; }
.post-btn:hover { background: var(--deep); }
.notification-nav > span { background: var(--teal); color: #fff; }
#mobile-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--header-height) - 85px); overflow-y: auto; overscroll-behavior: contain; background: #fff; color: var(--ink); box-shadow: 0 18px 30px #20252b18; border-top: 1px solid var(--line); padding: 12px 24px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
#mobile-nav a, #mobile-nav button { color: var(--ink); min-height: 48px; font-size: .9375rem; line-height: 1.5; padding: 13px 4px; border-bottom: 1px solid #eceef0; }
#mobile-nav a:hover, #mobile-nav button:hover { color: var(--teal); }

/* The Old Port fills the hero; charcoal keeps the search clear over the photograph. */
.hero { height: auto; min-height: 630px; display: block; text-align: left; background: #242629; color: #fff; overflow: hidden; isolation: isolate; }
.hero-visual { position: absolute; inset: 0; width: 100%; z-index: -1; background: linear-gradient(90deg, #1c1f23ed 0%, #222529b8 48%, #1c1f236b 100%), linear-gradient(0deg, #1c1f2366, transparent 55%), url(assets/old-port-buildings.jpg) center 47% / cover; }
.hero-visual::before { display: none; }
.hero-content { position: relative; max-width: 1240px; width: 100%; padding: 74px 32px 88px; margin: auto; }
.hero-copy { width: 100%; max-width: 710px; padding-right: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 11px; color: #f0dadd; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: none; margin-bottom: 24px; }
.hero-eyebrow::before { content: ''; height: 3px; width: 27px; background: #e95b6c; flex-shrink: 0; }
.hero h1 { font-size: clamp(3.4rem, 4.9vw, 4.65rem); line-height: 1.045; letter-spacing: -.055em; margin-bottom: 24px; }
.hero h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.04em; letter-spacing: -.065em; color: #fff; text-decoration: underline; text-decoration-color: #d84a5c; text-decoration-thickness: 3px; text-underline-offset: 10px; }
.hero p { color: #e3e4e6; font-size: 1.0625rem; line-height: 1.7; max-width: 530px; }
.hero-search { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 180px 135px; width: 780px; max-width: calc(100vw - 64px); margin: 30px 0 18px; padding: 9px; gap: 0; background: #fff; color: var(--ink); border: 1px solid #fff; border-radius: 8px; box-shadow: 0 0 0 6px #ffffff14, 0 12px 36px #0003; z-index: 1; }
.hero-search-location { display: flex; align-items: center; gap: 11px; padding: 5px 13px; min-width: 0; }
.hero-search-location > div { min-width: 0; flex: 1; }
.hero-search .search-pin { color: var(--teal); }
.hero-search .search-pin svg { width: 22px; height: 22px; }
.hero-search label { display: block; font-size: .875rem; font-weight: 700; color: #3a3e43; line-height: 1.4; }
.hero-search input { width: 100%; min-height: 30px; font-size: 1rem; padding: 4px 0; outline: none; }
.hero-search input::placeholder { color: #7b8086; font-size: .9375rem; }
.hero-bed-field { border-left: 1px solid #e3e5e7; padding: 5px 16px; min-width: 0; }
.hero-bed-field select { border: 0; border-radius: 0; background-color: transparent; width: 100%; min-height: 30px; padding: 4px 25px 4px 0 !important; font-size: .9375rem; color: #72787e; background-position: right 0 center !important; }
.hero-search button { padding: 12px 15px; justify-content: center; border-radius: 5px; font-size: .9375rem; }
.hero-search button svg { width: 18px; height: 18px; }
.hero-popular { justify-content: flex-start; max-width: none; gap: 8px; font-size: .875rem; }
.hero-popular > span { display: none; }
.hero-popular button { background: #1c1f2366; color: #fff; border: 1px solid #ffffff66; font-size: .875rem; padding: 7px 12px; border-radius: 4px; }
.hero-popular button:hover { color: var(--teal); border-color: var(--teal); background: #fff; }
.hero-location { right: max(40px, calc((100vw - 1176px) / 2)); bottom: 38px; opacity: 1; padding: 19px 22px; background: #fff; border: 1px solid #e7e8ea; border-radius: 3px; display: block; color: var(--ink); font-size: .9375rem; transform: rotate(3deg); box-shadow: 6px 7px 0 #ffffff25, 0 12px 24px #0002; }
.hero-location::before { content: ''; position: absolute; width: 48px; height: 17px; top: -9px; left: calc(50% - 24px); background: #c8cacebf; transform: rotate(-7deg); }
.hero-location strong { display: block; font-weight: 600; }
.hero-location > span { display: block; margin-top: 5px; color: #666c73; font-size: .8125rem; }

.space-paths { border-bottom: 1px solid var(--line); background: #fff; }
.space-paths-inner { min-height: 108px; display: flex; gap: 35px; align-items: center; }
.space-paths-copy { margin-right: auto; }
.space-paths-copy p { font-size: .875rem; margin-bottom: 4px; }
.space-paths-copy strong { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.space-paths-copy { padding-left: 15px; border-left: 3px solid var(--teal); }
.space-type-links { display: flex; gap: 12px; }
.space-type-links a { display: flex; gap: 9px; align-items: center; border: 1px solid #e2e5e7; border-radius: 6px; padding: 12px 18px; font-size: .9375rem; font-weight: 500; min-height: 48px; background: #fff; }
.space-type-links a svg { width: 20px; height: 20px; color: var(--teal); }
.space-type-links a:hover { border-color: var(--teal); background: #fff8f9; }
.section-top { align-items: flex-end; margin-bottom: 30px; }
.section-top p { font-size: 1rem; line-height: 1.65; margin-top: 12px; }
.section-top .text-link { border-radius: 5px; padding: 12px 18px; font-size: .9375rem; }
.section-jumps { display: flex; gap: 25px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.section-jumps button { background: transparent; border: 0; color: #666c73; font-size: .875rem; padding: 8px 0; border-bottom: 1px solid #bbc0c6; }
.section-jumps button:hover { color: var(--teal); border-color: var(--teal); }

/* Listings stay vertical in search; the homepage can be swiped on a phone. */
.cards { gap: 24px; align-items: start; }
.property-card { border: 1px solid #e0e3e6; border-radius: 9px; box-shadow: none; background: #fff; }
.property-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px #20252b12; border-color: #cbd0d5; }
.card-photo { height: 235px; overflow: hidden; }
.card-body { padding: 21px 22px; }
.card-price { font-size: 1.8rem; color: var(--ink); }
.card-price small { font-size: .875rem; }
.card-type { font-size: .875rem; margin: 12px 0; }
.card-facts { font-size: .875rem; gap: 13px; margin-bottom: 18px; }
.card-title { font-size: 1.125rem; line-height: 1.4; margin-bottom: 7px; }
.card-subtitle { font-size: .875rem; line-height: 1.6; }
.card-footer { font-size: .875rem; gap: 15px; padding-top: 15px; margin-top: 18px; }
.heart-btn { width: 42px; height: 42px; border-radius: 6px; box-shadow: 0 2px 9px #20252b10; }
.photo-count { border-radius: 4px; font-size: .8125rem; }
.card-badge { font-size: .8125rem; letter-spacing: .02em; border-radius: 3px; }
.featured-section .draft-actions, .featured-section .listing-automation-actions { display: none; }
.featured-section .card-badge:not(.featured) { display: none; }
.featured-section .cards:has(> .property-card:only-child) { grid-template-columns: 1fr; }
.featured-section .property-card:only-child { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 300px; }
.featured-section .property-card:only-child .card-photo { height: 100%; min-height: 300px; }
.featured-section .property-card:only-child .card-body { align-self: center; padding: 30px 38px; }
.scroll-rentals-hint { display: none; }
.market-empty { background: #f6f7f8; border-style: dashed; border-radius: 8px; }
.market-empty h3 { font-size: 1.4rem; }

.neighbourhood-section { background: #f3f4f5; }
.neighbourhoods { display: grid; grid-template-columns: 1.08fr 1fr 1fr; grid-template-rows: repeat(3, minmax(115px, 1fr)); gap: 15px; }
.neighbourhood-card { border-radius: 7px; height: auto; color: var(--ink); }
.neighbourhood-card::after { display: none; }
.neighbourhood-cover { grid-row: span 3; min-height: 390px; color: white; border: 7px solid #fff; transform: rotate(-1.3deg); box-shadow: 0 7px 20px #20252b16; }
.neighbourhood-cover img { height: 100%; object-position: 70% 50%; }
.neighbourhood-cover::after { display: block; background: linear-gradient(0deg, #151b27d9, transparent 65%); }
.neighbourhood-cover div { left: 25px; bottom: 25px; right: 20px; }
.neighbourhood-caption { font-size: .8125rem; letter-spacing: .12em; }
.neighbourhood-cover h3 { font-size: 2rem; margin-top: 8px; }
.neighbourhood-card p { font-size: .875rem; }
.neighbourhood-link { display: flex; align-items: center; gap: 15px; padding: 24px 21px; background: #fff; border: 1px solid #e1e4e7; transition: border-color .2s, background .2s; }
.neighbourhood-link:hover { background: #fffafb; border-color: #c74856; }
.neighbourhood-link div { position: static; }
.neighbourhood-link h3 { font-size: 1.125rem; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 5px; }
.neighbourhood-link p { color: #737980; }
.neighbourhood-pin { display: grid; place-items: center; width: 38px; height: 38px; color: var(--teal); background: #f9ecee; border-radius: 5px; flex-shrink: 0; }
.neighbourhood-pin svg { position: static; color: var(--teal); width: 20px; height: 20px; }

.how-section { padding-block: 76px; }
.how-section h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
.how-grid { gap: 0; margin-top: 38px; }
.how-grid article { padding: 0 32px; border-left: 1px solid var(--line); }
.how-grid article:first-child { padding-left: 0; border-left: 0; }
.how-grid article:last-child { padding-right: 0; }
.how-icon { background: #f8eaed; color: var(--teal); border-radius: 6px; width: 48px; height: 48px; margin: 0 0 20px; }
.how-grid h3 { font-size: 1.3rem; margin-bottom: 12px; }
.how-grid p { font-size: 1rem; line-height: 1.7; }
.how-grid a { display: inline-block; margin-top: 18px; min-height: 36px; }
.wanted-home-section { max-width: 1176px; padding: 48px 52px; margin: 0 auto 76px; grid-template-columns: 1.3fr .8fr; gap: 75px; background: #b42636; border-radius: 9px; color: #fff; }
.wanted-home-section .eyebrow { color: #f7cbd1; }
.wanted-home-section h2 { font-size: clamp(2rem, 3vw, 2.7rem); margin-top: 13px; }
.wanted-home-section p { color: #ffe9ed; font-size: 1rem; line-height: 1.75; margin: 19px 0 25px; }
.wanted-home-section .primary-btn { background: #fff; color: #a31f31; border-color: #fff; }
.wanted-home-section .secondary-btn { background: transparent; border-color: #e9909b; color: #fff; }
.wanted-home-section .secondary-btn:hover { background: #ffffff12; }
.wanted-home-note { position: relative; transform: rotate(2deg); background: #fff; color: var(--ink); border: 0; padding: 29px; border-radius: 6px; box-shadow: 0 10px 24px #57121d22; }
.wanted-home-note::before { content: ''; position: absolute; width: 66px; height: 23px; top: -11px; left: calc(50% - 33px); background: #e8c2c4bf; transform: rotate(-6deg); border: 1px solid #ffffff40; }
.wanted-home-note .wish-label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--teal); }
.wanted-home-note strong { display: block; font-size: 1.6rem; margin: 15px 0 20px; letter-spacing: -.035em; line-height: 1.25; }
.wish-list { display: grid; gap: 0; }
.wish-list > span { display: flex; gap: 12px; align-items: center; border-top: 1px solid #e7e9eb; padding: 13px 0; font-size: .9375rem; color: #61676e; }
.wish-list svg { width: 19px; height: 19px; color: var(--teal); }
.landlord-section { max-width: 1176px; background: #eef0f2; border-radius: 9px; margin: 0 auto 76px; grid-template-columns: 1.05fr 1fr; }
.landlord-copy { padding: 46px; }
.landlord-copy h2 { font-size: clamp(2rem, 3vw, 2.65rem); }
.landlord-copy p { font-size: 1rem; line-height: 1.7; margin: 20px 0; }
.owner-benefits { display: grid; gap: 13px; margin-bottom: 26px; }
.owner-benefits > span { display: flex; gap: 10px; align-items: center; font-size: .9375rem; }
.owner-benefits svg { width: 19px; height: 19px; color: var(--teal); }
.landlord-copy .form-actions { gap: 10px; }
.landlord-copy .text-link { display: inline-block; font-size: .9375rem; margin-top: 19px; }
.landlord-photo { min-height: 500px; }
.owner-photo-tag { position: absolute; top: 34px; left: -13px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border: 1px solid #e0e3e6; border-radius: 4px; padding: 16px 21px; box-shadow: 0 6px 18px #20252b1a; transform: rotate(-4deg); }
.owner-photo-tag > strong { color: var(--teal); font-size: 2rem; line-height: 1; letter-spacing: -.06em; }
.owner-photo-tag > span { font-size: .875rem; font-weight: 600; line-height: 1.4; max-width: 100px; }
.photo-note { font-size: .8125rem; }

/* Easier reading and steady controls throughout the existing workspace. */
.search-view { background: #f4f5f6; }
.search-toolbar { padding: 17px 32px; gap: 15px; }
.search-toolbar form { min-width: 0; border-radius: 6px; background: #f8f9fa; max-width: 635px; padding: 5px 6px 5px 15px; min-height: 50px; }
.search-toolbar input { font-size: 1rem; min-height: 35px; }
.search-toolbar .primary-btn { min-height: 39px; font-size: .9375rem; }
.quick-filters select, .filter-button { font-size: .9375rem; min-height: 50px; }
.results-container { padding-block: 35px 65px; }
.results-heading h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.results-heading p { font-size: .9375rem; }
.breadcrumbs { font-size: .875rem; }
.sort-label select, .view-switch button { font-size: .875rem; }
.view-switch button { min-height: 38px; }
.active-filters button { font-size: .875rem; border-radius: 5px; min-height: 36px; }
.panel, .wanted-card, .showing-choice { border-radius: 8px; }
.workspace-view > h1, .dashboard-heading h1 { font-size: clamp(1.9rem, 3.2vw, 2.65rem); line-height: 1.2; }
.dashboard-links > a { min-height: 50px; font-size: .9375rem; }
.stats-grid .panel { background: #f7f8f9; border-color: #e2e5e8; }
.stats-grid span { font-size: .9375rem; }
.stats-grid strong { font-size: 2.1rem; }
.field { font-size: .875rem; }
.field input, .field select, .field textarea { font-size: 1rem; }
dialog { overscroll-behavior: contain; }
.checkbox-grid label, .consent, .detail-description { font-size: .9375rem; }
.detail-location, .detail-facts > span { font-size: .9375rem; }
.footer-top { gap: 45px; }
.footer-brand p { font-size: 1rem; line-height: 1.75; }
.footer-links a, .footer-links button { font-size: .9375rem; min-height: 32px; }
.footer-links h3 { font-size: 1rem; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto; font-size: .875rem; gap: 12px; }
.image-credit { grid-column: 1 / -1; font-size: .875rem; line-height: 1.7; color: #b9bec5; }
.image-credit a { text-decoration: underline; text-underline-offset: 3px; }
.mobile-dock { display: none; }
.back-to-top { position: fixed; bottom: 24px; right: 24px; z-index: 18; border: 1px solid #d9dde1; border-radius: 6px; background: #fff; box-shadow: 0 4px 18px #20252b12; padding: 11px 15px; min-height: 44px; font-size: .875rem; color: var(--ink); }
body.modal-open .back-to-top { display: none; }
[data-reveal] { transition: opacity .45s ease, transform .45s ease; }
.reveal-pending { opacity: 0; transform: translateY(16px); }

@media(min-width: 1001px) {
  .search-toolbar { position: sticky; top: var(--header-height); z-index: 19; box-shadow: 0 3px 12px #20252b07; }
}
@media(max-width: 1440px) {
  .desktop-nav a[href="#landlords"] { display: none; }
}
@media(max-width: 1240px) {
  .nav-wrap { gap: 22px; padding-inline: 25px; }
  .desktop-nav { gap: 19px; }
  .desktop-nav a[href="#landlords"] { display: none; }
  .nav-actions { gap: 13px; }
  .saved-text { display: none; }
  .hero-search { width: 740px; }
  .space-paths-inner { gap: 20px; }
  .space-type-links { gap: 8px; }
  .space-type-links a { padding: 12px 14px; }
  .wanted-home-section, .landlord-section { margin-inline: 32px; }
  .wanted-home-section { gap: 40px; padding: 42px; }
}
@media(max-width: 1300px) {
  :root { --header-height: 78px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: inline-flex !important; color: var(--ink); min-height: 42px; min-width: 36px; }
  .nav-wrap { min-height: 74px; }
}
@media(max-width: 1120px) {
  :root { --header-height: 78px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: inline-flex !important; color: var(--ink); min-height: 42px; min-width: 36px; }
  .nav-wrap { min-height: 74px; }
  .hero { min-height: 600px; }
  .hero-content { padding-block: 64px 100px; }
  .hero h1 { font-size: 3.5rem; }
  .hero-eyebrow { max-width: 390px; font-size: .8125rem; }
  .hero-copy { max-width: 670px; }
  .hero p { font-size: 1rem; }
  .hero-search { grid-template-columns: minmax(0, 1fr) 165px 130px; width: 650px; }
  .space-paths-inner { flex-wrap: wrap; padding-block: 25px; gap: 18px; }
  .space-paths-copy { width: 100%; }
  .space-type-links { width: 100%; }
  .space-type-links a { flex: 1; justify-content: center; }
  .neighbourhoods { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .neighbourhood-cover { grid-row: span 3; min-height: 430px; }
  .neighbourhood-link { min-height: 125px; }
  .neighbourhood-link:nth-last-child(-n+3) { min-height: 100px; }
  .how-grid article { padding-inline: 24px; }
  .wanted-home-section { grid-template-columns: 1.2fr .8fr; gap: 28px; padding: 36px; }
  .wanted-home-note { padding: 24px; }
  .wanted-home-note strong { font-size: 1.4rem; }
  .landlord-copy { padding: 36px; }
  .landlord-copy .form-actions { align-items: stretch; flex-direction: column; }
  .footer-top { gap: 30px; }
}
@media(max-width: 850px) {
  /* Account stays in mobile navigation; keep the avatar link out of the narrow header. */
  .header .nav-actions .account-nav { display: none; }
}
@media(max-width: 760px) {
  .container { padding-inline: 24px; }
  .section { padding-block: 55px; }
  .hero { min-height: 570px; }
  .hero-content { padding: 46px 24px 110px; }
  .hero-copy { width: 100%; padding-right: 0; }
  .hero h1 { font-size: 3rem; }
  .hero-eyebrow { font-size: .8125rem; letter-spacing: .035em; gap: 8px; }
  .hero-eyebrow::before { width: 20px; }
  .hero-search { width: 640px; max-width: calc(100vw - 48px); grid-template-columns: minmax(0, 1fr) 155px 125px; }
  .hero-search-location { padding-inline: 8px; gap: 8px; }
  .hero-search label { font-size: .8125rem; }
  .hero-location { right: 26px; bottom: 26px; padding: 12px 16px; max-width: calc(100% - 48px); font-size: .875rem; }
  .hero-location > span { font-size: .8125rem; }
  .how-grid { grid-template-columns: 1fr; gap: 26px; }
  .how-grid article, .how-grid article:first-child, .how-grid article:last-child { padding: 0 0 24px; border-left: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 0 18px; }
  .how-grid article:last-child { border-bottom: 0; padding-bottom: 0; }
  .how-icon { grid-row: span 3; margin-top: 2px; }
  .how-grid h3 { margin-bottom: 8px; }
  .how-grid p, .how-grid a { grid-column: 2; }
  .how-grid a { margin-top: 12px; }
  .wanted-home-section { margin-inline: 24px; margin-bottom: 55px; grid-template-columns: 1fr; padding: 34px; gap: 30px; }
  .wanted-home-note { transform: rotate(1deg); max-width: 440px; width: 100%; justify-self: center; }
  .wanted-home-note strong { font-size: 1.5rem; }
  .landlord-section { margin-inline: 24px; margin-bottom: 55px; grid-template-columns: 1fr; padding: 0; }
  .landlord-copy { padding: 34px; }
  .landlord-copy .form-actions { flex-direction: row; }
  .landlord-photo { min-height: 290px; }
  .search-toolbar { padding-inline: 24px; }
  .featured-section .property-card:only-child { grid-template-columns: 1fr 1fr; }
  .featured-section .property-card:only-child .card-body { padding: 24px; }
  .card-photo { height: 220px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .card-body { padding: 20px; }
}
@media(max-width: 680px) {
  :root { --header-height: 72px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .container { padding-inline: 20px; }
  .nav-wrap { min-height: 68px; padding: 10px 16px; gap: 10px; }
  .header .brand > span { font-size: 18px; }
  .header .brand { gap: 8px; }
  .header .brand-wordmark { width: 144px; }
  .header .brand > svg { width: 26px; height: 34px; }
  .header .brand small { font-size: 8px; letter-spacing: .22em; }
  .nav-actions { gap: 8px; }
  .account-nav, .saved-nav, .post-btn { display: none; }
  .notification-nav { min-width: 32px; min-height: 42px; }
  .notification-nav svg { width: 22px; height: 22px; }
  .mobile-menu { color: var(--ink); width: 35px; height: 42px; }
  .lang-switch button { min-width: 31px; min-height: 36px; font-size: .8125rem; }
  #mobile-nav { padding-inline: 20px; gap: 0 15px; }
  #mobile-nav a, #mobile-nav button { font-size: .875rem; }
  .hero { min-height: 0; background: #242629; }
  .hero-visual { width: 100%; height: auto; inset: 0; background-position: 67% 50%; background-image: linear-gradient(90deg, #1c1f23d9, #222529a6), linear-gradient(0deg, #1c1f2366, transparent 55%), url(assets/old-port-buildings.jpg); }
  .hero-visual::before { display: none; }
  .hero-content { padding: 42px 20px 120px; }
  .hero-copy { width: 100%; padding: 0; }
  .hero-eyebrow { font-size: .8125rem; margin-bottom: 17px; }
  .hero h1 { font-size: 2.95rem; line-height: 1.04; margin-bottom: 20px; }
  .hero h1 em { text-underline-offset: 7px; text-decoration-thickness: 2px; }
  .hero p { margin: 0; font-size: 1rem; max-width: 430px; line-height: 1.65; }
  .hero-search { width: 100%; max-width: none; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px 0; margin: 24px 0 16px; padding: 10px; border-radius: 7px; }
  .hero-search-location { grid-column: 1 / -1; padding: 5px 5px 12px; border-bottom: 1px solid #e4e7e9; gap: 11px; }
  .hero-search label { font-size: .875rem; }
  .hero-search input, .hero-search input::placeholder { font-size: 1rem; min-height: 35px; }
  .hero-bed-field { border-left: 0; padding: 5px 8px; }
  .hero-bed-field select { font-size: 1rem; padding-top: 5px; }
  .hero-search button { font-size: 1rem; padding: 12px 13px; margin-left: 8px; }
  .hero-popular { max-width: none; gap: 8px; justify-content: flex-start; }
  .hero-popular > span { display: none; }
  .hero-popular button { font-size: .875rem; padding: 7px 11px; }
  .hero-location { top: auto; bottom: 26px; left: auto; right: 25px; max-width: calc(100% - 50px); padding: 12px 16px; font-size: .875rem; }
  .hero-location > span { font-size: .8125rem; }
  .space-paths-inner { padding-block: 24px; display: block; }
  .space-paths-copy strong { font-size: 1.0625rem; }
  .space-type-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .space-type-links a { justify-content: flex-start; padding: 12px 13px; font-size: .9375rem; min-height: 48px; }
  .section-top { align-items: flex-start; gap: 19px; }
  .section-top h2 { font-size: 2rem; }
  .section-top p { font-size: 1rem; }
  .section-top .text-link { font-size: .9375rem; }
  .section-jumps { gap: 22px; margin-top: 20px; }
  .section-jumps button { font-size: .875rem; min-height: 42px; }
  .eyebrow { font-size: .8125rem; line-height: 1.5; }
  .cards { grid-template-columns: 1fr; gap: 23px; }
  .card-photo { height: auto; aspect-ratio: 1.55; }
  .card-price { font-size: 1.8rem; }
  .card-facts { font-size: .875rem; }
  .card-title { font-size: 1.125rem; }
  .card-body { padding: 21px; }
  .featured-section .property-card:only-child { display: block; min-height: 0; }
  .featured-section .property-card:only-child .card-photo { height: auto; min-height: 0; }
  .featured-section .property-card:only-child .card-body { padding: 21px; }
  .featured-section .cards:has(> .property-card:nth-child(2)) { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 88%; gap: 15px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-left: 0; margin-right: -20px; padding: 3px 20px 16px 0; align-items: stretch; }
  .featured-section .cards:has(> .property-card:nth-child(2)) .property-card { scroll-snap-align: start; }
  .scroll-rentals-hint { display: block; font-size: .875rem; margin: 12px 0 0; }
  .neighbourhoods { grid-template-columns: 1fr 1fr; gap: 11px; }
  .neighbourhood-cover { grid-column: 1 / -1; grid-row: auto; min-height: 0; height: 280px; }
  .neighbourhood-cover img { object-position: 65% 50%; }
  .neighbourhood-cover h3 { font-size: 1.85rem; }
  .neighbourhood-link, .neighbourhood-link:nth-last-child(-n+3) { min-height: 128px; padding: 18px 15px; gap: 12px; align-items: flex-start; flex-direction: column; }
  .neighbourhood-link h3 { font-size: 1rem; }
  .neighbourhood-link p { font-size: .875rem; }
  .neighbourhood-pin { width: 32px; height: 32px; }
  .how-section h2 { font-size: 2rem; }
  .how-grid { margin-top: 30px; }
  .how-grid article, .how-grid article:first-child, .how-grid article:last-child { grid-template-columns: 44px 1fr; gap: 0 15px; }
  .how-icon { width: 44px; height: 44px; }
  .how-grid h3 { font-size: 1.2rem; }
  .how-grid p { font-size: 1rem; line-height: 1.7; }
  .wanted-home-section { margin-inline: 20px; padding: 30px 24px; border-radius: 8px; }
  .wanted-home-section h2 { font-size: 2rem; }
  .wanted-home-section p { font-size: 1rem; }
  .wanted-home-section .form-actions { display: grid; grid-template-columns: 1fr; }
  .wanted-home-note { padding: 24px; }
  .wanted-home-note > svg { display: none; }
  .landlord-section { margin-inline: 20px; border-radius: 8px; }
  .landlord-copy { padding: 30px 24px; }
  .landlord-copy h2 { font-size: 2rem; }
  .landlord-copy .form-actions { flex-direction: column; align-items: stretch; }
  .landlord-photo { min-height: 260px; }
  .owner-photo-tag { left: 18px; top: 23px; padding: 13px 17px; }
  .search-toolbar { padding: 15px 20px; gap: 12px; }
  .search-toolbar form { padding-left: 12px; min-height: 51px; }
  .search-toolbar input { font-size: 1rem; }
  .search-toolbar .primary-btn { min-height: 40px; font-size: .9375rem; }
  .quick-filters { gap: 8px; }
  .quick-filters select { font-size: .875rem; padding: 10px 29px 10px 10px !important; min-height: 46px; }
  .filter-button { font-size: .875rem; min-height: 46px; padding: 10px 12px; }
  .results-container { padding-block: 27px 45px; }
  .results-heading h1 { font-size: 1.9rem; }
  .results-heading p { font-size: .9375rem; }
  .sort-label select { font-size: .875rem; min-height: 43px; }
  .view-switch button { font-size: .875rem; min-height: 36px; }
  .active-filters button { font-size: .875rem; min-height: 36px; }
  .map-note { font-size: .875rem; line-height: 1.6; }
  .field, .checkbox-grid label, .consent { font-size: .875rem; }
  .field input, .field textarea, .field select { font-size: 1rem; }
  .detail-location, .detail-facts > span { font-size: .875rem; }
  .detail-description { font-size: 1rem; }
  .dialog-footer .secondary-btn { min-height: 42px; font-size: .875rem; }
  .footer-top { gap: 30px 22px; }
  .footer-links:last-child { display: block; }
  .footer-links a, .footer-links button { font-size: .9375rem; min-height: 36px; }
  .footer-bottom { display: flex; font-size: .875rem; align-items: flex-start; gap: 10px; }
  .image-credit { font-size: .875rem; margin-top: 8px; }
  .mobile-dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; background: #fffffff5; backdrop-filter: blur(16px); border-top: 1px solid #dde0e4; padding: 7px 7px calc(7px + env(safe-area-inset-bottom, 0px)); z-index: 25; box-shadow: 0 -4px 22px #20252b08; }
  .mobile-dock > a, .mobile-dock > button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; color: #656b72; min-height: 58px; background: none; border: 0; padding: 6px 2px; border-radius: 5px; font-size: .875rem; line-height: 1.2; min-width: 0; }
  .mobile-dock svg { width: 21px; height: 21px; }
  .mobile-dock .is-current { color: #ab2132; background: #fbebee; }
  .mobile-dock .dock-post { color: var(--teal); font-weight: 700; }
  body.modal-open .mobile-dock, body:has(input:focus, textarea:focus) .mobile-dock { display: none; }
  .back-to-top { bottom: calc(89px + env(safe-area-inset-bottom, 0px)); right: 16px; padding: 9px 12px; min-height: 42px; background: #ffffffed; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); font-size: .875rem; }
}
@media(max-width: 380px) {
  .space-type-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .space-type-links a { flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
  .nav-wrap { padding-inline: 12px; gap: 8px; }
  .header .brand > span { font-size: 16px; }
  .header .brand > svg { width: 24px; }
  .header .brand-wordmark { width: 122px; }
  .notification-nav { display: none; }
  .lang-switch button { min-width: 28px; }
  .nav-actions { gap: 5px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-search { grid-template-columns: minmax(0, 1fr) 117px; }
  .hero-search button { font-size: .9375rem; padding-inline: 10px; }
  .hero-search button svg { display: none; }
  .hero-popular { gap: 6px; }
  .hero-popular button { font-size: .8125rem; padding-inline: 10px; }
  .neighbourhood-link { padding-inline: 13px; }
  .mobile-dock > a, .mobile-dock > button { font-size: .8125rem; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-pending { opacity: 1; transform: none; }
  [data-reveal], .header, .property-card { transition: none; }
}

/* Long custom layouts wrap within cards and listing details. */
.card-facts, .detail-facts { flex-wrap: wrap; }
.layout-fact { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.layout-fact .icon { flex: 0 0 auto; }
@media (max-width: 680px) {
  .quick-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .quick-filters label { min-width: 0; }
  .quick-filters select, .quick-filters .filter-button { width: 100%; max-width: none; }
}

/* Group the mobile menu by task, with the two main actions always visible. */
#mobile-nav.mobile-menu-organized{display:block;padding:16px 20px 20px;max-height:calc(100dvh - var(--header-height) - 85px);scrollbar-gutter:stable;overscroll-behavior:contain}
#mobile-nav .mobile-menu-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
#mobile-nav .mobile-menu-primary>a,#mobile-nav .mobile-menu-primary>button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;margin:0;padding:11px 10px;border:1px solid #dedfe2;border-radius:10px;background:#fff;color:#34383d;text-align:center;font-size:14px;font-weight:650;line-height:1.3}
#mobile-nav .mobile-menu-primary>a.mobile-menu-find{background:#bd2530;border-color:#bd2530;color:#fff}
#mobile-nav .mobile-menu-primary [data-icon]{display:flex;flex:0 0 20px;width:20px;height:20px}
#mobile-nav .mobile-menu-group{margin:0 0 10px;border:1px solid #e4e5e7;border-radius:12px;background:#fff;overflow:clip}
#mobile-nav .mobile-menu-group summary{display:flex;align-items:center;gap:12px;min-height:58px;padding:14px 16px;list-style:none;color:#30343b;font-size:15px;font-weight:650;line-height:1.4;cursor:pointer}
#mobile-nav .mobile-menu-group summary::-webkit-details-marker{display:none}
#mobile-nav .mobile-menu-group summary>[data-icon]{display:flex;flex:0 0 21px;width:21px;height:21px;color:#b72237}
#mobile-nav .mobile-menu-chevron{width:8px;height:8px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);margin:-4px 2px 0 auto;flex:0 0 8px}
#mobile-nav .mobile-menu-group[open] summary{background:#faf8f8;border-bottom:1px solid #ece9ea}
#mobile-nav .mobile-menu-group[open] .mobile-menu-chevron{transform:rotate(225deg);margin-top:4px}
#mobile-nav .mobile-menu-links{display:flex;flex-direction:column;padding:4px 12px 6px}
#mobile-nav .mobile-menu-links>a,#mobile-nav .mobile-menu-links>button{display:flex;align-items:center;width:100%;min-height:46px;margin:0;padding:11px 12px 11px 36px;border:0;border-bottom:1px solid #f0f0f1;border-radius:0;background:transparent;color:#44494f;text-align:left;font-size:14px;font-weight:400;line-height:1.5}
#mobile-nav .mobile-menu-links>:last-child{border-bottom:0}
#mobile-nav .mobile-menu-links>a:hover,#mobile-nav .mobile-menu-links>button:hover{color:#b72237;background:#fcf5f6}
#mobile-nav a[aria-current=page]:not(.mobile-menu-find){color:#a31f2d;background:#fcf0f2;font-weight:650}
#mobile-nav .mobile-menu-install{display:block;min-height:44px;margin-top:4px;padding:12px 6px;border:0;color:#6d7075;text-align:center;font-size:13px;line-height:1.5}
#mobile-nav :is(a,button,summary):focus-visible{outline:2px solid #bd2530;outline-offset:-3px}
#mobile-nav [data-icon] svg{width:100%;height:100%}
@media(min-width:681px){#mobile-nav.mobile-menu-organized{max-width:560px;left:auto;right:20px;border:1px solid #e4e5e7;border-radius:0 0 16px 16px}}

body.mobile-menu-open #ai-launcher{visibility:hidden;pointer-events:none}

.footer-account-help > section + section { margin-top: 1.5rem; }

.header .messages-nav {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  position: relative; font-size: .9375rem; font-weight: 600; white-space: nowrap;
}
.messages-nav [data-icon] { display: inline-flex; }
.messages-nav svg { width: 20px; height: 20px; }
.header .messages-nav:is(:hover,[aria-current="page"]) { color: #aa2031; }
.mobile-dock [data-message-entry] { position: relative; }
.mobile-dock [data-message-entry] .onto-message-nav-count {
  position: absolute; top: 0; left: calc(50% + 3px); margin: 0;
  min-width: 18px; min-height: 18px; padding: 1px 4px; border-radius: 12px;
  font-size: .75rem; line-height: 16px;
}
@media (max-width: 680px) { .header .messages-nav { display: none; } }

@media (min-width: 1101px) {
  .header .nav-wrap { gap: clamp(12px, 1.2vw, 20px); padding-inline: clamp(16px, 2vw, 28px); }
  .header .desktop-nav { min-width: 0; gap: clamp(10px, 1vw, 16px); }
  .header .desktop-nav a { white-space: normal; line-height: 1.25; }
  .header .nav-actions { gap: clamp(8px, .8vw, 12px); }
  .header .account-nav { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 681px) and (max-width: 850px) {
  .header .nav-wrap { gap: 12px; padding-inline: 16px; }
  .header .nav-actions { gap: 8px; }
  .header .messages-nav { justify-content: center; min-width: 44px; }
  .header .messages-nav-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}

@media (min-width: 681px) and (max-width: 1050px) {
  .header .brand .brand-wordmark { width: 160px; }
  .header .nav-actions .post-btn {
    min-width: 44px; width: 44px; justify-content: center; gap: 0; padding-inline: 0;
  }
  .header .post-btn > span[data-i18n] {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
}
