/* UrbanNest marketplace art direction — August 2026. */
:root{--un-forest:#073c3c;--un-deep:#052d2d;--un-mint:#dff3ee;--un-cream:#f8f5ee;--un-coral:#f36b32;--un-coral-dark:#d94e18;--un-ink:#152b2b}
.marketplace-home{background:var(--un-cream)}
.discovery-nav{border-top-color:var(--un-coral);border-bottom-color:rgba(7,60,60,.1);background:rgba(252,250,245,.94);box-shadow:none}
.discovery-nav .nav-inner{min-height:88px;padding-block:9px}
.discovery-brand .brand-logo-wrap,.discovery-brand .brand-logo-image{width:60px;height:60px}
.discovery-brand strong,.brand.option-b-brand strong{color:var(--un-deep)}
.discovery-nav .nav-links .link-button,.nav-saved-action,.nav-signin-action,.nav-menu-action{color:var(--un-ink)}
.urbannest-home-hero{position:relative;overflow:hidden;padding:clamp(44px,6vw,92px) 0 clamp(58px,7vw,104px);background:radial-gradient(circle at 8% 10%,rgba(223,243,238,.16),transparent 28%),linear-gradient(115deg,var(--un-deep),var(--un-forest));color:#fff}
.urbannest-home-hero::after{position:absolute;right:-12vw;bottom:-34vw;width:62vw;height:62vw;border:1px solid rgba(255,255,255,.09);border-radius:50%;box-shadow:0 0 0 8vw rgba(255,255,255,.025),0 0 0 16vw rgba(255,255,255,.018);content:"";pointer-events:none}
.urbannest-home-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:clamp(42px,7vw,110px);align-items:center}
.urbannest-home-hero-copy{max-width:690px}
.urbannest-kicker{display:inline-flex;align-items:center;gap:10px;margin-bottom:20px;color:#aee0d4;font-size:12px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}
.urbannest-kicker::before{width:36px;height:2px;background:var(--un-coral);content:""}
.urbannest-home-hero h1{max-width:700px;margin:0;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:clamp(46px,5.6vw,84px);font-weight:500;letter-spacing:-.045em;line-height:.98}
.urbannest-home-hero-copy>p{max-width:600px;margin:25px 0 0;color:rgba(255,255,255,.76);font-size:clamp(16px,1.4vw,19px);line-height:1.7}
.urbannest-hero-actions{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center;margin-top:30px}
.urbannest-primary-action.button.primary{min-height:54px;padding-inline:24px;border-color:var(--un-coral);border-radius:8px;background:var(--un-coral);box-shadow:0 14px 30px rgba(4,26,26,.25)}
.urbannest-primary-action.button.primary:hover{border-color:var(--un-coral-dark);background:var(--un-coral-dark)}
.urbannest-text-action{display:inline-flex;min-height:48px;align-items:center;gap:9px;padding:8px 2px;border:0;background:transparent;color:#fff;font-weight:850}
.urbannest-text-action .dock-icon{width:18px;height:18px}
.urbannest-trust-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:clamp(38px,5vw,66px);padding-top:22px;border-top:1px solid rgba(255,255,255,.16)}
.urbannest-trust-strip>span{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:center}
.urbannest-trust-strip .dock-icon{width:21px;height:21px;grid-row:1/3;color:#aee0d4}
.urbannest-trust-strip strong{font-size:12px}.urbannest-trust-strip small{margin-top:3px;color:rgba(255,255,255,.56);font-size:10px}
.urbannest-home-hero-visual{position:relative;min-height:clamp(400px,39vw,590px)}
.urbannest-home-hero-visual>img{width:100%;height:clamp(400px,39vw,590px);border-radius:180px 14px 14px 14px;object-fit:cover;box-shadow:0 34px 70px rgba(2,18,18,.36)}
.urbannest-hero-proof,.urbannest-hero-location{position:absolute;display:flex;align-items:center;gap:12px;padding:15px 18px;border:1px solid rgba(255,255,255,.55);background:rgba(252,250,245,.94);color:var(--un-ink);box-shadow:0 18px 44px rgba(2,18,18,.24);backdrop-filter:blur(15px)}
.urbannest-hero-proof{right:-22px;bottom:32px;max-width:280px;border-radius:12px}.urbannest-hero-location{top:30px;left:-30px;border-radius:999px}
.urbannest-hero-proof>span,.urbannest-hero-location>.dock-icon{display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;border-radius:50%;background:var(--un-mint);color:var(--un-forest)}
.urbannest-hero-proof .dock-icon{width:21px;height:21px}.urbannest-hero-location>.dock-icon{padding:10px}
.urbannest-hero-proof div,.urbannest-hero-location span{display:grid;gap:3px}
.urbannest-hero-proof small,.urbannest-hero-location small{color:#687777;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.urbannest-hero-proof strong,.urbannest-hero-location strong{font-size:14px}
.urbannest-search-panel.marketplace-discovery-panel{padding:26px 0 30px;border-bottom-color:rgba(7,60,60,.12);background:#fff}
.urbannest-search-panel .marketplace-category-tabs button.active::after{background:var(--un-coral)}
.urbannest-search-panel .marketplace-category-tabs .dock-icon,.urbannest-search-panel .marketplace-category-tabs button:hover{color:var(--un-forest)}
.urbannest-search-panel .home-search-bar{border-color:rgba(7,60,60,.15);border-radius:10px;box-shadow:0 16px 45px rgba(7,60,60,.09)}
.urbannest-search-panel .home-search-submit{border-radius:7px;background:var(--un-forest);box-shadow:0 10px 24px rgba(7,60,60,.2)}
.marketplace-results-section{--results-graphite:#292c30;--results-surface:#34383e;--results-muted:#d0d5da;padding-top:clamp(46px,6vw,82px);background:var(--results-graphite)}
.marketplace-results-heading h1{color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,3.4vw,52px);font-weight:500;letter-spacing:0}
.marketplace-results-heading .eyebrow{color:#ffa06f;letter-spacing:0}
.marketplace-results-heading p,.marketplace-results-heading>span{color:var(--results-muted)}
.marketplace-results-section .empty-state{background:var(--results-surface);border-color:#626b76;color:#e5e7eb}
.marketplace-results-section .empty-state strong,.marketplace-results-section .empty-state p{color:inherit}
.realestate-listing-card{border-color:rgba(7,60,60,.1);border-radius:10px;box-shadow:0 12px 35px rgba(7,45,45,.09)}
.realestate-listing-card:hover{box-shadow:0 20px 48px rgba(7,45,45,.15)}.realestate-listing-card .property-body{padding:20px}
.realestate-price-row .price,.realestate-title-row h3{color:var(--un-deep)}
.realestate-listing-card .property-cta-row .button.primary{border-color:var(--un-coral);background:var(--un-coral)}
.marketplace-home .shorts-section{background:var(--un-deep);color:#fff}
.marketplace-home .shorts-section .section-title h2,.marketplace-home .shorts-section .shorts-empty strong{color:#fff}
.marketplace-home .shorts-section .section-title p,.marketplace-home .shorts-section .shorts-empty span{color:rgba(255,255,255,.68)}
@media(max-width:1040px){.urbannest-home-hero-grid{grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:48px}.urbannest-home-hero h1{font-size:clamp(44px,6vw,64px)}}
@media(max-width:760px){.discovery-nav .nav-inner{min-height:70px}.urbannest-home-hero{padding:34px 0 42px}.urbannest-home-hero-grid{grid-template-columns:1fr;gap:34px}.urbannest-home-hero h1{font-size:clamp(40px,12vw,58px)}.urbannest-home-hero-copy>p{font-size:15px;line-height:1.6}.urbannest-hero-actions{display:grid;grid-template-columns:1fr}.urbannest-primary-action.button.primary{width:100%}.urbannest-text-action{justify-content:center}.urbannest-trust-strip{grid-template-columns:1fr;gap:13px;margin-top:32px}.urbannest-home-hero-visual,.urbannest-home-hero-visual>img{min-height:330px;height:330px}.urbannest-home-hero-visual>img{border-radius:96px 10px 10px 10px}.urbannest-hero-location{top:16px;left:12px}.urbannest-hero-proof{right:12px;bottom:14px;left:12px;max-width:none}.urbannest-search-panel.marketplace-discovery-panel{padding-top:16px}.marketplace-results-heading h1{font-size:36px}.realestate-listing-card .property-body{padding:17px 15px}}
@media(max-width:360px){.urbannest-home-hero h1{font-size:38px}.urbannest-home-hero-visual,.urbannest-home-hero-visual>img{min-height:285px;height:285px}.urbannest-hero-location{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.realestate-listing-card,.discovery-brand{transition:none}}


/* Role portal system */
.mockup-app-shell{--portal-accent:#0b7775;--portal-accent-soft:#e3f4ef;--portal-accent-ink:#075654;--portal-action-ink:#fff;background:#eeeae1}
.mockup-app-shell.role-landlord{--portal-accent:#e7642a;--portal-accent-soft:#fff0e7;--portal-accent-ink:#a53e13;--portal-action-ink:#111}
.mockup-app-shell.role-agent{--portal-accent:#315f8d;--portal-accent-soft:#eaf1f8;--portal-accent-ink:#244b71}
.mockup-app-shell.role-crew{--portal-accent:#36735b;--portal-accent-soft:#e8f2ec;--portal-accent-ink:#285743}
.mockup-app-shell.role-admin{--portal-accent:#34454b;--portal-accent-soft:#e9eef0;--portal-accent-ink:#243339}
.role-dashboard-shell{grid-template-columns:264px minmax(0,1fr);width:calc(100% - 40px);min-height:calc(100svh - 40px);margin:20px;border:0;border-radius:18px;background:#f8f6f0;box-shadow:0 24px 70px rgba(17,39,38,.14)}
.mockup-dashboard-sidebar{padding:26px 18px 20px;border-right:0;background:linear-gradient(180deg,#073c3c,#052f2f);color:#fff}
.mockup-sidebar-brand{margin:0 2px 8px;padding:0 5px}
.mockup-sidebar-brand strong{color:#fff;font-size:21px}
.mockup-sidebar-brand .brand-logo-image{border-color:rgba(255,255,255,.5);box-shadow:0 0 0 4px rgba(255,255,255,.08)}
.portal-role-label{display:block;margin:0 12px 23px;color:rgba(255,255,255,.52);font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.mockup-dashboard-sidebar nav{gap:5px}
.mockup-dashboard-sidebar nav button,.mockup-sidebar-signout{min-height:44px;border-radius:9px;color:rgba(255,255,255,.7);font-size:13px}
.mockup-dashboard-sidebar nav button:hover{background:rgba(255,255,255,.09);color:#fff}
.mockup-dashboard-sidebar nav button.active,.role-landlord .mockup-dashboard-sidebar nav button.active{position:relative;background:#fff;color:var(--portal-accent-ink);box-shadow:0 10px 22px rgba(1,21,21,.18)}
.mockup-dashboard-sidebar nav button.active::before{position:absolute;top:10px;bottom:10px;left:-8px;width:3px;border-radius:4px;background:var(--portal-accent);content:""}
.mockup-support-card{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08)}
.mockup-support-card strong{color:#fff}.mockup-support-card span{color:rgba(255,255,255,.58)}
.mockup-support-card button{border-color:rgba(255,255,255,.18);background:#fff;color:var(--un-deep)}
.mockup-sidebar-signout{color:rgba(255,255,255,.58)}
.mockup-dashboard-main.app-main{padding:40px 46px 56px;background:#f8f6f0}
.mockup-dashboard-heading{align-items:center;margin-bottom:30px;padding-bottom:22px;border-bottom:1px solid rgba(7,60,60,.1)}
.portal-heading-kicker{display:block;margin-bottom:6px;color:var(--portal-accent);font-size:10px;font-weight:950;letter-spacing:.15em;text-transform:uppercase}
.mockup-dashboard-heading h1{color:var(--un-deep);font-size:clamp(30px,3vw,42px);font-weight:600;letter-spacing:-.02em}
.mockup-dashboard-heading p{color:#6b7775;font-size:14px}
.mockup-heading-avatar{width:62px;height:62px;flex-basis:62px;border:3px solid #fff;background:var(--portal-accent-soft);color:var(--portal-accent-ink);box-shadow:0 0 0 2px var(--portal-accent),0 10px 24px rgba(17,39,38,.12)}
.mockup-heading-actions .button.primary,.mockup-dashboard-view .button.primary{border-color:var(--portal-accent);background:var(--portal-accent);color:var(--portal-action-ink)}
.mockup-heading-actions .button.primary:hover,.mockup-dashboard-view .button.primary:hover{border-color:var(--portal-accent-ink);background:var(--portal-accent-ink);color:#fff}
.mockup-dashboard-view .dashboard-intro-card{border:0;border-radius:14px;background:linear-gradient(120deg,var(--portal-accent-soft),#fff);box-shadow:0 12px 34px rgba(17,39,38,.07)}
.mockup-dashboard-view .dashboard-intro-card h2{color:var(--un-deep);font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.02em}
.mockup-dashboard-view .dashboard-summary-grid{gap:14px}
.mockup-dashboard-view .dashboard-summary-card,.mockup-dashboard-view .dashboard-card,.mockup-dashboard-view .tenant-planner,.mockup-dashboard-view .table-card,.mockup-dashboard-view .financial-card{border:1px solid rgba(7,60,60,.1);border-radius:12px;background:#fff;box-shadow:0 10px 30px rgba(17,39,38,.055)}
.mockup-dashboard-view .dashboard-summary-card{position:relative;overflow:hidden;padding:18px}
.mockup-dashboard-view .dashboard-summary-card::after{position:absolute;right:0;bottom:0;width:54px;height:4px;border-radius:4px 0 0;background:var(--portal-accent);content:""}
.mockup-dashboard-view .dashboard-summary-card.turquoise,.mockup-dashboard-view .dashboard-summary-card.orange{border-color:rgba(7,60,60,.1);background:#fff}
.mockup-dashboard-view .dashboard-summary-card strong{color:var(--un-deep);font-family:Georgia,"Times New Roman",serif;font-weight:600}
.mockup-dashboard-view .quick-action-button{border-color:rgba(7,60,60,.12);border-radius:9px;box-shadow:none}
.mockup-dashboard-view .quick-action-button strong{background:var(--portal-accent)}
.mockup-dashboard-view .status-pill,.mockup-dashboard-view .badge{border-radius:6px}
.header-alert-button{border-color:rgba(7,60,60,.12);background:#fff;color:var(--un-deep);box-shadow:none}
@media(max-width:820px){
  .mockup-app-shell{background:#f8f6f0}
  .mockup-mobile-topbar{border-bottom:1px solid rgba(7,60,60,.1);background:rgba(248,246,240,.96)}
  .role-dashboard-shell{width:100%;min-height:auto;margin:0;border-radius:0;box-shadow:none}
  .mockup-dashboard-main.app-main{padding:24px 16px 110px}
  .mockup-dashboard-heading{margin-bottom:22px;padding-bottom:18px}
  .portal-heading-kicker{font-size:9px}
  .mockup-dashboard-heading h1{font-size:30px}
  .mockup-heading-avatar{width:52px;height:52px;flex-basis:52px}
  .mobile-role-dock{right:10px;bottom:max(10px,env(safe-area-inset-bottom));left:10px;border:1px solid rgba(7,60,60,.12);border-radius:20px;background:rgba(255,255,255,.97);box-shadow:0 16px 40px rgba(17,39,38,.17)}
  .mobile-role-dock button.active{background:var(--portal-accent-soft);color:var(--portal-accent-ink)}
}
@media(max-width:380px){
  .mockup-dashboard-main.app-main{padding-inline:12px}
  .mockup-dashboard-heading h1{font-size:27px}
  .mockup-heading-intro{gap:10px}
}
/* Admin security uses the same compact layout on phones and desktop. */
.admin-security-screen { min-height: 100dvh; padding: 24px 16px; display: grid; place-items: center; background: #f3f7f7; }
.admin-security-panel { width: min(100%, 560px); min-width: 0; padding: 24px; background: #fff; border: 1px solid #d6e5e4; border-radius: 8px; display: grid; gap: 16px; color: #172b2b; overflow-wrap: anywhere; }
.admin-security-panel h1, .admin-security-panel p { margin: 0; text-align: left; }
.admin-security-panel h1 { font-size: 28px; line-height: 1.2; }
.admin-security-panel label { display: grid; gap: 8px; }
.admin-security-panel form { display: grid; gap: 16px; min-width: 0; }
.admin-security-panel input { width: 100%; min-height: 48px; min-width: 0; font-size: 18px; }
.admin-security-panel .button { min-height: 48px; white-space: normal; }
.admin-security-panel summary { cursor: pointer; padding: 8px 0; }
.admin-security-logo { width: 64px; height: 64px; object-fit: contain; }
.admin-mfa-enrollment { display: grid; gap: 12px; }
.admin-mfa-qr { width: min(100%, 220px); height: auto; background: #fff; }
.admin-mfa-key { display: block; overflow-wrap: anywhere; user-select: all; font-size: 16px; padding: 12px; background: #edf7f6; }
.floating-chip { position: relative; max-width: 100%; min-width: 0; }
.floating-chip input { top: 0; left: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; clip-path: inset(50%); }
.floating-chip span { white-space: normal; overflow-wrap: anywhere; }
.floating-chip input:focus-visible + span { outline: 2px solid #087b78; outline-offset: 2px; }
/* Keep support controls clear of both the mobile dock and active dialogs. */
.floating-contact-controls { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right)); bottom: calc(104px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.floating-contact-controls a, .floating-contact-controls button { width: 48px; min-height: 48px; padding: 8px; display: flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid #d5e3e2; border-radius: 50%; box-shadow: 0 3px 12px #142e2d20; }
.floating-country-button { background: #fff; color: #073e3e; font-size: 11px; font-weight: 700; flex-direction: column; }
.floating-country-button .dock-icon { width: 20px; height: 20px; }
.floating-whatsapp-button { background: #137f50; color: #fff; text-decoration: none; }
.modal-open .floating-contact-controls { display: none; }
body.nav-open .floating-contact-controls { visibility: hidden; }
@media (max-width: 820px) and (max-height: 450px) {
  .floating-contact-controls { bottom: calc(92px + env(safe-area-inset-bottom)); gap: 2px; }
  .floating-contact-controls a, .floating-contact-controls button { height: 48px; flex: 0 0 48px; padding: 4px; }
}
.nav-country-action { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: transparent; color: #073e3e; font-weight: 700; padding: 4px 8px; }
.country-picker-grid { display: grid; gap: 12px; }
.country-choice { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px 12px; align-items: center; text-align: left; padding: 18px; border: 1px solid #c8dedd; border-radius: 8px; background: #fff; color: #103333; }
.country-choice small { grid-column: 2; overflow-wrap: anywhere; }
.country-choice[aria-pressed="true"] { border-color: #087d78; background: #e9f7f5; }
.location-search-form { display: flex; gap: 8px; margin-top: 14px; width: 100%; }
.location-search-form label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; margin: 0; padding: 0 10px; border: 1px solid #cfdedd; background: white; border-radius: 8px; }
.location-search-form input { min-width: 0; width: 100%; border: 0; padding: 12px 0; font-size: 16px; color: #122e2e; background: transparent; }
.google-places-host { position: relative; min-width: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.google-places-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 150; background: #fff; color: #142d2d; border: 1px solid #cfdedd; border-radius: 8px; box-shadow: 0 6px 20px #0002; padding: 4px; margin-top: 4px; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.google-places-panel[hidden] { display: none; }
.google-places-panel.above { top: auto; bottom: 100%; margin-top: 0; margin-bottom: 4px; }
.google-places-panel [role="option"] { min-height: 44px; padding: 10px 12px; font-size: 15px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; cursor: pointer; }
.google-places-panel [role="option"]:hover, .google-places-panel [aria-selected="true"] { background: #e3f5f3; color: #063e3a; }
.google-places-panel > img { display: block; width: 120px; height: 14px; margin: 8px 12px; object-fit: contain; }
.location-search-form > button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; width: auto; min-width: 48px; flex: 0 0 auto; padding: 10px 16px; }
.map-location-list { display: grid; gap: 8px; margin-block: 16px; }
.map-location-list a { display: flex; align-items: center; gap: 10px; padding: 12px; color: #103b3a; background: #f4f9f8; border: 1px solid #d9e5e3; border-radius: 8px; text-decoration: none; }
.map-location-list a span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.map-location-list small { display: block; margin-top: 4px; }
.amenity-chip-grid a { padding: 12px; border: 1px solid #d5e3e2; border-radius: 8px; color: #103b3a; text-decoration: none; }
.amenity-chip-grid a small { display: block; }
@media (min-width: 769px) { .floating-contact-controls { bottom: 24px; } }
@media (max-width: 430px) { .location-search-form button span { display: none; } .nav-country-action { padding-inline: 4px; } .discovery-actions .nav-country-action span { display: none; } }
.compliance-details summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
.compliance-details[open] summary { margin-bottom: 8px; }

/* The market picker adds a field; never squeeze its selected country into a narrow track. */
@media (min-width: 981px) {
  .home-search-bar { grid-template-columns: minmax(180px, 1fr) minmax(200px, 1.2fr) repeat(2, minmax(160px, 1fr)) auto; }
  .home-search-bar.people-search-bar { grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(200px, 1.2fr)) auto; }
}
@media (max-width: 980px) {
  .home-search-bar,
  .home-search-bar.people-search-bar { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px; overflow: visible; }
  .home-search-bar label,
  .home-search-bar label:not(:first-of-type),
  .home-search-bar.people-search-bar label:not(:first-of-type) { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; width: 100%; min-width: 0; min-height: 0; padding: 12px 0; border-right: 0; border-bottom: 1px solid #e7e9ec; justify-content: normal; }
  .home-search-bar label > .dock-icon,
  .home-search-bar label:first-child > .dock-icon { grid-column: 1; grid-row: 1; align-self: center; width: 20px; height: 20px; margin: 0; }
  .home-search-bar label > span { grid-column: 2; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
  .home-search-bar label > select { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 44px; padding: 8px 32px 8px 10px; border: 1px solid #d5e3e2; border-radius: 6px; background: #f8fbfb; font-size: 16px; }
  .home-search-bar .search-context-copy { display: none; }
  .home-search-bar .home-search-submit { grid-column: 1 / -1; width: 100%; min-width: 0; min-height: 48px; height: auto; gap: 8px; margin: 12px 0 0; padding: 12px; font-size: 16px; }
  .home-search-bar .home-search-submit::after { display: inline; content: "Search"; }
  .home-search-bar .home-search-submit .dock-icon { margin: 0; }
}
@media (min-width: 431px) and (max-width: 980px) {
  .home-search-bar,
  .home-search-bar.people-search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .home-search-bar .market-switch-field { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .mockup-dashboard-main.app-main:has(.admin-users-table) { padding-bottom: 16px; }
  body:has(.admin-users-table) .floating-contact-controls { position: static; flex-direction: row; justify-content: flex-end; margin: 0 16px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .admin-users-table { overflow: visible; min-width: 0; }
  .admin-users-table table { display: block; min-width: 0; width: 100%; }
  .admin-users-table thead { display: none; }
  .admin-users-table tbody { display: grid; gap: 14px; width: 100%; }
  .admin-users-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; min-width: 0; padding: 16px; border: 1px solid #d5e3e2; border-radius: 8px; background: #fff; }
  .admin-users-table td { display: grid; align-content: start; justify-items: start; gap: 6px; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; line-height: 1.5; font-size: 14px; }
  .admin-users-table td[data-label]::before { content: attr(data-label); color: #626b76; font-size: 12px; font-weight: 700; }
  .admin-users-table .admin-user-identity,
  .admin-users-table .admin-user-actions { grid-column: 1 / -1; }
  .admin-user-identity strong { font-size: 17px; }
  .admin-user-identity br { display: none; }
  .admin-users-table .badge,
  .admin-users-table .status-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
  .admin-user-actions .row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .admin-user-actions .button { width: 100%; min-width: 0; min-height: 44px; padding: 10px; white-space: normal; font-size: 14px; }
}
@media (max-width: 430px) {
  .admin-user-actions .row-actions { grid-template-columns: minmax(0, 1fr); }
}

/* Marble-grey fields separate editable controls from the white card surface. */
:root {
  --un-field-surface: #e8ecef;
  --un-field-edge: #78838e;
  --un-field-ink: #18232c;
  --un-field-placeholder: #54616e;
  --un-field-focus: #eaf7f4;
}
:is(.auth-card, .auth-panel, .modal-card, .dashboard-card, .compact-form, .admin-security-panel)
  :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], .visually-hidden, .sr-only) {
  background-color: var(--un-field-surface);
  border-color: var(--un-field-edge);
  color: var(--un-field-ink);
  color-scheme: light;
  box-shadow: inset 0 1px 2px #18232c0d;
}
:is(.auth-card, .auth-panel, .modal-card, .dashboard-card, .compact-form, .admin-security-panel)
  :is(input, textarea)::placeholder {
  color: var(--un-field-placeholder);
  opacity: 1;
}
:is(.auth-card, .auth-panel, .modal-card, .dashboard-card, .compact-form, .admin-security-panel)
  :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], .visually-hidden, .sr-only):focus {
  background-color: var(--un-field-focus);
  border-color: #087b78;
  outline: 2px solid #087b78;
  outline-offset: 2px;
  box-shadow: none;
}
:is(.auth-card, .auth-panel, .modal-card, .dashboard-card, .compact-form, .admin-security-panel)
  :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"], [type="color"]):disabled {
  background-color: #f1f3f4;
  color: #626d78;
  opacity: 1;
}
:is(.auth-card, .auth-panel, .modal-card, .dashboard-card, .compact-form, .admin-security-panel)
  input:-webkit-autofill {
  -webkit-text-fill-color: var(--un-field-ink);
  box-shadow: inset 0 0 0 1000px var(--un-field-surface);
}

/* One scroll container per floating form; keep consent controls beside their copy. */
.modal-backdrop:not(:has(.shorts-viewer-modal)) {
  min-height: 0;
  top: var(--modal-viewport-top, 0px);
  bottom: auto;
  height: var(--modal-viewport-height, 100dvh);
  box-sizing: border-box;
  grid-template-rows: minmax(0, 1fr);
}
.modal-backdrop > .modal-card:not(.shorts-viewer-modal) {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  scroll-padding-block: 20px;
}
.modal-backdrop[data-dialog-motion] {
  --dialog-enter: 240ms;
  --dialog-exit: 155ms;
  --dialog-start: translateY(12px) scale(.975);
  --dialog-start-opacity: 0;
  animation: dialogBackdropIn var(--dialog-enter) cubic-bezier(.2,.75,.25,1) both;
}
.modal-backdrop[data-dialog-motion] > .modal-card {
  animation: dialogCardIn var(--dialog-enter) cubic-bezier(.2,.75,.25,1) both;
}
.modal-backdrop[data-dialog-motion="closing"] {
  animation: dialogBackdropOut var(--dialog-exit) ease-in both;
}
.modal-backdrop[data-dialog-motion="closing"] > .modal-card {
  animation: dialogCardOut var(--dialog-exit) ease-in both;
}
@keyframes dialogBackdropIn { from { background-color: transparent; } }
@keyframes dialogBackdropOut { to { background-color: transparent; } }
@keyframes dialogCardIn { from { opacity: var(--dialog-start-opacity); transform: var(--dialog-start); } }
@keyframes dialogCardOut { to { opacity: var(--dialog-start-opacity); transform: var(--dialog-start); } }
@media (max-width: 600px) {
  .modal-backdrop[data-dialog-motion] {
    --dialog-enter: 275ms;
    --dialog-start: translateY(calc(100% + 24px));
    --dialog-start-opacity: 1;
    align-items: end;
  }
  .modal-backdrop[data-dialog-motion] > .modal-card { margin-block: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop[data-dialog-motion],
  .modal-backdrop[data-dialog-motion] > .modal-card { animation: none; }
}
.toggle-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  justify-content: start;
  gap: 12px;
  text-align: left;
}
.toggle-row input[type="checkbox"], .toggle-row input[type="radio"] {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  margin: 2px 0 0;
  accent-color: #087b78;
}
.toggle-row > span { min-width: 0; overflow-wrap: anywhere; }

[data-identity-fields] { display: grid; gap: 16px; min-width: 0; }
[data-identity-fields][hidden] { display: none; }
[data-identity-fields] label { display: grid; gap: 8px; min-width: 0; }
[data-identity-fields] p { margin: 0; line-height: 1.5; }
.verification-section {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
  min-width: 0;
  border: 1px solid #d3dcdf;
  border-radius: 8px;
}
.verification-section legend, .verification-section summary { font-weight: 700; color: #18232c; }
.verification-section summary { cursor: pointer; min-height: 44px; }
.verification-section .form-grid { margin-top: 8px; }
.verification-section p { margin: 0; }
@media (max-width: 430px) {
  .verification-section { padding: 12px; }
}

/* Public discovery follows the supplied mobile reference; portals remain light. */
.reference-home-shell { background: #111214; color: #f6f7f8; }
.reference-home-shell .marketplace-home { background: #111214; }
.reference-home-shell .discovery-nav { background: #1c1d20; border-top: 0; border-bottom: 1px solid #35373b; }
.reference-home-shell .discovery-nav .nav-inner { min-height: 76px; padding-block: 8px; }
.reference-home-shell .discovery-brand strong,
.reference-home-shell .discovery-nav .nav-links .link-button,
.reference-home-shell .discovery-actions button,
.reference-home-shell .nav-country-action { color: #f5f6f7; }
.reference-home-shell .discovery-brand .brand-logo-wrap,
.reference-home-shell .discovery-brand .brand-logo-image { width: 48px; height: 48px; }
.reference-home-shell .discovery-nav .nav-menu-action { background: #282b30; color: #f5f6f7; }
.discovery-search-hero { position: relative; height: 230px; display: grid; align-items: center; }
.discovery-search-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.discovery-search-hero > .marketplace-wide-container { position: relative; z-index: 1; }
.discovery-start-search { display: flex; align-items: center; gap: 16px; width: min(100%, 820px); min-height: 64px; margin-inline: auto; padding: 10px 18px 10px 10px; background: #1d1e21; color: #fff; border: 1px solid #474a50; border-radius: 40px; box-shadow: 0 8px 24px #0004; }
.discovery-start-search > span { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; background: #f36b32; border-radius: 50%; }
.discovery-start-search > strong { flex: 1; font-size: 18px; font-weight: 600; text-align: center; }
.discovery-recent-section { padding-block: 26px; }
.discovery-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reference-home-shell .discovery-recent-section h2,
.reference-home-shell .discovery-videos-section h2 { margin: 0; color: #f5f6f7; font-size: 23px; line-height: 1.3; font-weight: 650; letter-spacing: 0; }
.discovery-market-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #62666c; border-radius: 24px; background: #26282d; color: #c6eeeb; }
.discovery-recent-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 24px; align-items: center; gap: 16px; width: 100%; padding: 22px 0; text-align: left; border: 0; border-bottom: 1px solid #42454a; border-radius: 0; background: transparent; color: #f5f6f7; }
.discovery-recent-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #25272b; }
.discovery-recent-row strong { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.discovery-recent-row small { display: block; margin-top: 7px; color: #bec2c8; font-size: 15px; }
.discovery-recent-empty { color: #bec2c8; margin: 16px 0 0; font-size: 16px; }
.reference-home-shell .discovery-more-searches { background: transparent; border: 0; padding: 0; }
.reference-home-shell .discovery-more-searches summary { min-height: 44px; padding: 16px 0; cursor: pointer; color: #f5f6f7; background: transparent; border: 0; }
.discovery-videos-section { padding-block: 16px 36px; }
.discovery-video-filters { display: flex; gap: 10px; overflow-x: auto; margin-block: 20px; padding-block: 3px; scrollbar-width: none; }
.discovery-video-filters button { flex: 0 0 auto; min-height: 44px; padding: 8px 20px; border: 1px solid #6d727b; border-radius: 24px; background: #27292e; color: #f5f6f7; font-size: 16px; }
.discovery-video-filters button.active { border: 2px solid #e4f9f6; background: #34383e; padding: 7px 19px; }
.discovery-videos-section .shorts-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 12px; }
.discovery-videos-section .short-card { flex: 0 0 230px; width: 230px; height: 346px; min-height: 0; margin: 0; border: 1px solid #565a62; border-radius: 8px; scroll-snap-align: start; background: #26282d; color: #fff; overflow: hidden; text-align: left; }
.discovery-videos-section .short-card > img { width: 100%; height: 100%; object-fit: cover; }
.discovery-videos-section .short-card > div { background: linear-gradient(transparent, #000e); padding: 48px 16px 18px; color: #fff; }
.discovery-videos-section .short-card strong { font-size: 18px; line-height: 1.35; }
.discovery-videos-section .short-card small { color: #e2e5e8; white-space: normal; }
/* This supplied poster already contains a caption; show its clean upper frame. */
.discovery-videos-section .short-card[data-short-id="urbannest-renovation-walkthrough"] > img { height: 48%; object-position: center top; position: absolute; inset: 0 0 auto; display: block; }
.discovery-videos-section .short-card[data-short-id="urbannest-renovation-walkthrough"] > div { inset: auto 0 0; min-height: 52%; padding: 16px; align-content: center; background: #191c20; }
.reference-home-shell .public-marketplace-dock .dock-label-compact { display: none; }
.reference-home-shell .marketplace-discovery-panel { background: #1b1d21; border-block: 1px solid #373b42; padding-block: 24px; }
.reference-home-shell .marketplace-category-tabs button { color: #f3f5f7; }
.reference-home-shell .marketplace-results-section { background: #111214; padding-block: 30px 40px; }
.reference-home-shell .marketplace-results-heading :is(h1,h2) { color: #f5f6f7; font: 650 26px/1.3 Arial, sans-serif; letter-spacing: 0; }
.reference-home-shell .marketplace-results-heading p,
.reference-home-shell .marketplace-results-heading > span { color: #c0c5cb; }
.reference-home-shell .airbnb-property-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 320px)); justify-content: start; gap: 24px; }
.reference-home-shell .discovery-property-card { max-width: 320px; border-radius: 8px; background: #fff; color: #18232c; box-shadow: 0 8px 24px #0003; }
.reference-home-shell .discovery-property-card .carousel { height: 210px; min-height: 0; }
.reference-home-shell .marketplace-about-section,
.reference-home-shell .marketplace-faq-section,
.reference-home-shell .marketplace-contact-section { background: #1b1d21; color: #f5f6f7; }
.reference-home-shell :is(.marketplace-about-section,.marketplace-faq-section,.marketplace-contact-section) :is(h2,h3,p,summary,a,strong,small,span) { color: inherit; }
.reference-home-shell .marketplace-faq-list details { background: #24272b; border-color: #4d535b; }
.reference-home-shell .marketplace-about-points article { background: #24272b; color: #f5f6f7; border-color: #4d535b; }
.reference-home-shell .public-marketplace-dock { background: #282b30; border-color: #545963; border-radius: 30px; padding: 8px; bottom: max(12px, env(safe-area-inset-bottom)); }
.reference-home-shell .public-marketplace-dock button { min-height: 56px; min-width: 0; padding: 6px 2px; gap: 5px; color: #e3e6ea; font-size: 11px; border-radius: 24px; }
.reference-home-shell .public-marketplace-dock button.active { background: #17191c; color: #51d8cb; }
.reference-home-shell .public-marketplace-dock .dock-icon { width: 25px; height: 25px; }
.reference-home-shell .public-marketplace-dock span { white-space: nowrap; overflow-wrap: normal; line-height: 1.15; font-size: 10px; }
@media (max-width: 760px) {
  .reference-home-shell .discovery-nav .nav-inner { min-height: 64px; }
  .discovery-search-hero { height: 158px; }
  .discovery-start-search { min-height: 60px; }
  .discovery-recent-section { padding-block: 22px; }
  .discovery-videos-section .short-card { width: 206px; flex-basis: 206px; height: 310px; }
  .reference-home-shell .marketplace-discovery-panel { padding-block: 16px; }
  .reference-home-shell .marketplace-discovery-panel .home-search-bar,
  .reference-home-shell .marketplace-discovery-panel .location-search-form { display: none; }
  .reference-home-shell .marketplace-category-tabs { margin: 0; }
  .reference-home-shell .marketplace-search-page .airbnb-property-grid { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .reference-home-shell .marketplace-search-page .airbnb-property-grid > .discovery-property-card { width: 100%; max-width: none; justify-self: stretch; }
  .reference-home-shell .marketplace-search-page .realestate-listing-hero { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .reference-home-shell .marketplace-search-page .realestate-listing-hero .photo-track { position: absolute; inset: 0; height: 100%; min-height: 0; }
  .reference-home-shell .marketplace-search-page .realestate-listing-hero .photo-track > :is(img, .listing-photo-empty) { height: 100%; min-height: 0; }
  .reference-home-shell .marketplace-contact-section { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
}
@media (max-width: 350px) {
  .reference-home-shell .public-marketplace-dock { left: 6px; right: 6px; padding: 6px; }
  .reference-home-shell .public-marketplace-dock button { font-size: 10px; }
  .reference-home-shell .public-marketplace-dock span { font-size: 9px; }
}

/* Search lives in a narrow dialog even on a wide desktop. */
[data-discovery-search] .home-search-bar,
[data-discovery-search] .home-search-bar.people-search-bar { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px; }
[data-discovery-search] .home-search-bar label,
[data-discovery-search] .home-search-bar label:not(:first-of-type),
[data-discovery-search] .home-search-bar.people-search-bar label:not(:first-of-type) { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; width: 100%; min-width: 0; padding: 12px 0; border-right: 0; border-bottom: 1px solid #e7e9ec; }
[data-discovery-search] .home-search-bar label > .dock-icon { grid-column: 1; grid-row: 1; width: 20px; margin: 0; }
[data-discovery-search] .home-search-bar label > span { grid-column: 2; font-size: 13px; }
[data-discovery-search] .home-search-bar label > select { grid-column: 1 / -1; min-height: 44px; padding: 8px 32px 8px 10px; border: 1px solid var(--un-field-edge); border-radius: 6px; font-size: 16px; }
[data-discovery-search] .search-context-copy { display: none; }

/* Graphite stipple, light by default; dark is an explicit user choice. */
:root { --un-page: #f2f3f4; --un-dot: #30374018; --un-surface: #ffffff; --un-text: #18232c; --un-secondary: #556273; --un-edge: #cdd5dc; }
html[data-theme="dark"] { color-scheme: dark; --un-page: #191c20; --un-dot: #c7d2df14; --un-surface: #24282f; --un-text: #f3f5f7; --un-secondary: #bbc5d0; --un-edge: #505d6b; --paper: #24282f; --wash: #191c20; --ink: #f3f5f7; --black: #f3f5f7; --muted: #bbc5d0; --line: #505d6b; --un-field-surface: #313943; --un-field-focus: #36414d; --un-field-ink: #f3f5f7; --un-field-placeholder: #bdc7d1; --un-field-edge: #697787; }
body, .reference-home-shell, .reference-home-shell .marketplace-home, .mockup-dashboard-main.app-main { background-color: var(--un-page); background-image: radial-gradient(var(--un-dot) 1px, transparent 1px); background-size: 18px 18px; color: var(--un-text); }
html[data-theme] .reference-home-shell :is(.discovery-nav,.marketplace-discovery-panel,.marketplace-results-section,.marketplace-about-section,.marketplace-faq-section,.marketplace-contact-section) { background: var(--un-surface); color: var(--un-text); }
html[data-theme] .reference-home-shell .marketplace-results-section { background: transparent; }
html[data-theme] .reference-home-shell :is(.discovery-recent-section,.discovery-videos-section,.marketplace-results-heading) :is(h1,h2,strong,summary),
html[data-theme] .reference-home-shell :is(.discovery-brand strong,.discovery-brand small,.nav-country-action,.nav-links .link-button,.discovery-actions button,.marketplace-category-tabs button,.discovery-more-searches summary) { color: var(--un-text); }
html[data-theme] .reference-home-shell :is(.discovery-recent-empty,.discovery-recent-row small,.marketplace-results-heading p,.marketplace-results-heading > span) { color: var(--un-secondary); }
html[data-theme] .reference-home-shell .discovery-recent-row { color: var(--un-text); border-color: var(--un-edge); }
html[data-theme] .reference-home-shell :is(.discovery-market-toggle,.discovery-recent-icon,.discovery-video-filters button,.marketplace-faq-list details,.marketplace-about-points article,.nav-menu-action) { background: var(--un-surface); color: var(--un-text); border-color: var(--un-edge); }
html[data-theme] .reference-home-shell .discovery-video-filters button.active { border-color: #087b78; background: #dff3ee; color: #074e4c; }
html[data-theme] .reference-home-shell .discovery-videos-section .short-card :is(strong,small) { color: #ffffff; }
html[data-theme] .reference-home-shell .discovery-nav .nav-links { background: var(--un-surface); border-color: var(--un-edge); }
html[data-theme] .reference-home-shell .discovery-nav .nav-links .link-button { color: var(--un-text); opacity: 1; }
html[data-theme] .reference-home-shell .marketplace-category-tabs .dock-icon { color: #0a9896; }
html[data-theme] .reference-home-shell .discovery-brand small { opacity: 1; }
/* Contact surfaces follow the selected theme instead of inherited dark colours. */
html[data-theme] .reference-home-shell .marketplace-contact-details > :is(a,div) { color: var(--un-text); }
html[data-theme] .reference-home-shell .marketplace-contact-details small,
html[data-theme] .reference-home-shell .marketplace-contact-legal { color: var(--un-secondary); }
html[data-theme] .reference-home-shell .marketplace-contact-legal { border-color: var(--un-edge); padding-right: 64px; }
.reference-home-shell .marketplace-contact-connect { padding-right: 32px; }
html[data-theme] .reference-home-shell .marketplace-social-link { background: var(--un-surface); color: var(--un-text); border-color: var(--un-edge); min-height: 44px; border-radius: 8px; white-space: nowrap; }
html[data-theme] .reference-home-shell .marketplace-social-link.pending { opacity: 1; color: var(--un-secondary); }
html[data-theme] .reference-home-shell .marketplace-social-link:hover { background: var(--un-page); }
html[data-theme] .reference-home-shell .whatsapp-contact-button { background: #117a50; color: #ffffff; border-radius: 8px; }
html[data-theme] .reference-home-shell .whatsapp-contact-button:hover { background: #0c6541; }
html[data-theme] .reference-home-shell .marketplace-contact-section :is(a,button):focus-visible { outline: 2px solid #0a9896; outline-offset: 3px; }
.floating-theme-button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--un-surface); color: var(--un-text); border: 1px solid var(--un-edge); font-size: 12px; font-weight: 700; box-shadow: 0 4px 14px #0002; }
.discovery-search-dock { position: sticky; top: var(--search-sticky-top, 0px); z-index: 35; margin-top: -100px; padding-block: 10px; margin-bottom: 22px; }
/* Clip horizontal spill without creating an ancestor scrolling container. */
html:has(.reference-home-shell), body:has(.reference-home-shell), #app:has(.reference-home-shell), .reference-home-shell { overflow-x: clip; overflow-y: visible; }
.discovery-search-dock .marketplace-wide-container { min-width: 0; }
.discovery-start-search { box-shadow: 0 4px 20px #0003; }
.managed-property-hero { position: relative; display: grid; grid-template-columns: minmax(90px, 220px) minmax(0, 1fr); align-items: start; gap: 20px; padding: 64px 20px 20px; }
.managed-property-hero > .property-hero-back { position: absolute; inset: 12px 16px auto auto; width: auto; }
.managed-property-hero > img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.managed-property-hero > div { min-width: 0; display: grid; gap: 12px; }
.managed-property-hero h2 { font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; }
.floating-card-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); align-items: stretch; gap: 12px; padding: 16px; margin: 0; }
.floating-card-actions > :is(button,a) { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 10px 8px; white-space: normal; overflow-wrap: normal; word-break: normal; line-height: 1.25; }
.unit-floating-card { display: flex; flex-direction: column; }
.unit-floating-card > .unit-floating-main { flex: 1; }
.unit-floating-card > .floating-card-actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 76px), 1fr)); }
.unit-floating-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); justify-items: stretch; }
.unit-floating-grid > .unit-floating-card { max-width: none; justify-self: stretch; }
.modal-card form > label:has(input[type="file"]) { gap: 12px; }
.modal-card input[type="file"] { padding: 12px; min-height: 52px; width: 100%; min-width: 0; font-size: 16px; }
.modal-card input[type="file"]::file-selector-button { margin: 0 12px 0 0; padding: 8px 12px; border: 1px solid var(--un-edge); border-radius: 6px; background: var(--un-surface); color: var(--un-text); }
.photo-upload-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; width: 100%; }
.photo-upload-previews:empty { display: none; }
.photo-upload-previews figure { display: grid; gap: 8px; margin: 0; min-width: 0; }
.photo-upload-previews img { width: 100%; height: 100px; object-fit: contain; border: 1px solid var(--un-edge); border-radius: 6px; background: var(--un-page); }
.photo-upload-previews button { min-height: 44px; padding: 8px; color: var(--un-text); background: var(--un-surface); border: 1px solid var(--un-edge); border-radius: 6px; }
.marketplace-home { width: 100%; min-width: 0; padding-inline-end: 0; }
.marketplace-about-copy .marketplace-organization { margin-bottom: 16px; }
.marketplace-about-grid > *, .marketplace-faq-layout > * { min-width: 0; }
.marketplace-about-copy :is(h2,p), .marketplace-faq-layout :is(h2,p,summary) { overflow-wrap: anywhere; word-break: normal; }
.floating-contact-controls.content-obstructed:not(:has(:focus-visible)) { opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 761px) {
  .discovery-nav .nav-inner { position: relative; }
  .discovery-nav .nav-links { display: none; }
  body.nav-open .discovery-nav .nav-links { display: grid; position: absolute; z-index: 3; inset: 100% 0 auto auto; width: min(320px, 100%); max-height: calc(100dvh - 130px); overflow-y: auto; justify-content: stretch; gap: 4px; padding: 12px; border: 1px solid var(--un-edge); border-radius: 8px; background: var(--un-surface); box-shadow: var(--shadow); }
  body.nav-open .discovery-nav .nav-links .link-button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; text-align: left; }
}
.marketplace-category-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.marketplace-category-tabs button { min-width: 0; display: flex; justify-content: center; align-items: center; gap: 8px; white-space: normal; font-size: 16px; line-height: 1.35; padding: 12px 8px; }
.home-search-bar label { min-width: 0; }
.home-search-bar label > span { font-size: 14px; white-space: normal; line-height: 1.35; }
.home-search-bar select { min-width: 0; width: 100%; font-size: 16px; }
html[data-theme="dark"] :is(.modal-card,.dashboard-card,.profile-card,.property-card,.unit-floating-card,.property-page-hero,.mockup-kpi-card,.chart-card,.home-search-bar,.public-marketplace-dock,.mobile-summary-dock,.bottom-action-panel,.auth-card,.auth-panel,.empty-state) { background: var(--un-surface); color: var(--un-text); border-color: var(--un-edge); }
html[data-theme="dark"] .airbnb-home-shell, html[data-theme="dark"] .airbnb-home-shell .marketplace-home { background-color: var(--un-page); background-image: radial-gradient(var(--un-dot) 1px, transparent 1px); background-size: 18px 18px; color: var(--un-text); }
html[data-theme="dark"] .airbnb-home-shell .discovery-nav { background: var(--un-surface); color: var(--un-text); }
html[data-theme="dark"] .airbnb-home-shell :is(.discovery-brand strong,.discovery-brand small,.discovery-nav .link-button,.discovery-actions button) { color: var(--un-text); }
html[data-theme="dark"] :is(.apartment-unit-preview-strip,.apartment-media-tile) span { background: #f3f5f7; color: #18232c; }
html[data-theme="dark"] .detail-chip { background: #313943; color: #f3f5f7; border-color: var(--un-edge); }
html[data-theme="dark"] :is(.modal-card,.dashboard-card,.profile-card,.property-card,.unit-floating-card,.property-page-hero,.auth-card,.auth-panel) :is(h1,h2,h3,h4,label,strong,legend,summary) { color: var(--un-text); }
html[data-theme="dark"] :is(.modal-card,.dashboard-card,.profile-card,.property-card,.unit-floating-card,.property-page-hero,.auth-card,.auth-panel) :is(p,small,.muted) { color: var(--un-secondary); }
html[data-theme="dark"] .property-card :is(.property-meta,.realestate-facts-row,.realestate-facts-row .unit-feature-icon,.realestate-facts-row .dock-icon) { color: var(--un-secondary); }
html[data-theme="dark"] :is(input,select,textarea):not([type="checkbox"],[type="radio"],[type="hidden"],[type="range"]) { color-scheme: dark; background: var(--un-field-surface); color: var(--un-field-ink); border-color: var(--un-field-edge); }
html[data-theme="dark"] .button.ghost { color: var(--un-text); background: var(--un-surface); border-color: var(--un-edge); }
html[data-theme="dark"] :is(.button.primary,.button.turquoise) { color: #fff; }
html[data-theme="dark"] .button.primary { background: #b34b0d; border-color: #b34b0d; }
html[data-theme="dark"] :is(.form-message.error,.danger-button) { color: #ffdbd7; background: #562d31; border-color: #ac6565; }
@media (max-width: 760px) {
  .marketplace-category-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .marketplace-category-tabs button { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 24px minmax(41px, auto); justify-items: center; align-items: start; align-content: start; gap: 8px; padding: 10px 2px; font-size: 15px; min-height: 96px; }
  .home-search-bar, .home-search-bar.people-search-bar { grid-template-columns: minmax(0, 1fr); width: 100%; gap: 0; }
  .home-search-bar label, .home-search-bar label:not(:first-of-type) { grid-column: auto; width: 100%; padding: 14px 12px; border-right: 0; border-bottom: 1px solid var(--un-edge); }
  .home-search-bar button[type="submit"] { margin: 12px; min-height: 48px; }
  [data-discovery-search] .home-search-bar label > span { font-size: 15px; }
  .managed-property-hero { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 64px 14px 18px; }
  .managed-property-hero > img { height: 132px; }
  .managed-property-hero h2 { font-size: 23px; }
  .managed-property-hero .floating-listing-meta { gap: 8px; }
  .discovery-search-dock { margin-top: -112px; margin-bottom: 24px; }
  body.nav-open .floating-contact-controls { visibility: hidden; }
  html[data-theme] body.nav-open .discovery-nav .nav-links { max-height: calc(100dvh - 180px); overflow-y: auto; padding: 12px; }
  html[data-theme] body.nav-open .discovery-nav .nav-links .link-button { min-height: 48px; font-size: 17px; text-align: left; width: 100%; }
}
[data-discovery-search] .home-search-submit { grid-column: 1 / -1; width: 100%; min-height: 48px; height: auto; margin: 12px 0 0; padding: 12px; }
[data-discovery-search] .home-search-submit::after { content: "Search"; display: inline; margin-left: 8px; }

/* Reserve a complete label row and a separate control row in each filter. */
.marketplace-discovery-panel .home-search-bar,
.marketplace-discovery-panel .home-search-bar.people-search-bar { grid-template-columns: repeat(3, minmax(0, 1fr)) 64px; gap: 0; }
.marketplace-discovery-panel .home-search-bar label,
.marketplace-discovery-panel .home-search-bar label:first-child { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: minmax(38px, auto) 44px; align-items: center; align-content: start; gap: 4px 8px; padding: 14px 12px; }
.marketplace-discovery-panel .home-search-bar label > .dock-icon,
.marketplace-discovery-panel .home-search-bar label:first-child > .dock-icon { grid-column: 1; grid-row: 1; width: 20px; height: 20px; margin: 0; }
.marketplace-discovery-panel .home-search-bar label > span { grid-column: 1 / -1; grid-row: 1; min-width: 0; white-space: normal; overflow-wrap: normal; word-break: normal; }
.marketplace-discovery-panel .home-search-bar label:has(> .dock-icon) > span { grid-column: 2; }
.marketplace-discovery-panel .home-search-bar label > select { grid-column: 1 / -1; grid-row: 2; min-height: 44px; padding: 8px 28px 8px 8px; border: 1px solid var(--un-field-edge); border-radius: 6px; background: var(--un-field-surface); color: var(--un-field-ink); }
.marketplace-discovery-panel .home-search-submit { width: 48px; min-width: 0; height: 48px; margin: 8px; padding: 0; }
.marketplace-discovery-panel .home-search-submit::after { content: none; }
.marketplace-discovery-panel .home-search-submit .dock-icon { margin: 0; }
.marketplace-discovery-panel .search-context-copy { grid-column: span 2; }
.marketplace-discovery-panel .home-search-bar.people-search-bar:has([data-marketplace-filter="crewQualification"]) { grid-template-columns: repeat(2, minmax(0, 1fr)) 64px; }
@media (max-width: 1100px) {
  .marketplace-discovery-panel .home-search-bar,
  .marketplace-discovery-panel .home-search-bar.people-search-bar,
  .marketplace-discovery-panel .home-search-bar.people-search-bar:has([data-marketplace-filter="crewQualification"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketplace-discovery-panel .home-search-submit { grid-column: 1 / -1; justify-self: stretch; width: auto; margin: 12px; }
}
@media (max-width: 600px) {
  .marketplace-discovery-panel .home-search-bar,
  .marketplace-discovery-panel .home-search-bar.people-search-bar,
  .marketplace-discovery-panel .home-search-bar.people-search-bar:has([data-marketplace-filter="crewQualification"]) { grid-template-columns: minmax(0, 1fr); }
}

/* Let long portal headings yield a full row to their actions. */
.mockup-dashboard-heading { flex-wrap: wrap; }
.mockup-heading-intro { flex: 1 1 240px; max-width: 100%; }
.mockup-dashboard-heading :is(h1, p) { overflow-wrap: anywhere; word-break: normal; letter-spacing: 0; }
.mockup-heading-actions { min-width: 0; max-width: 100%; flex-wrap: wrap; }
.mockup-dashboard-heading .mockup-heading-actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr)); }

/* Narrow portfolio cards need the same space for names and stats as full cards. */
.mockup-secondary-panel .property-bubble-card { container-type: inline-size; }
@container (max-width: 380px) {
  .mockup-secondary-panel .property-bubble-main { grid-template-columns: minmax(0, 1fr); }
  .mockup-secondary-panel .property-bubble-image { height: 180px; min-height: 0; }
}

.realestate-title-row > div { min-width: 0; }
.realestate-title-row :is(h3, p),
.realestate-listing-card .listing-attribution-row > small { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.realestate-listing-card .property-cta-row > :nth-child(3):last-child { grid-column: auto; }

/* Keep both agency and agent names readable beside the reserved logo space. */
.realestate-listing-card .agent-listing-banner { flex-direction: column; align-items: flex-start; gap: 4px; }
.realestate-listing-card .agent-listing-banner strong,
.realestate-listing-card .agent-listing-banner span { max-width: 100%; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; word-break: normal; letter-spacing: 0; line-height: 1.35; }
.realestate-listing-card .agent-listing-banner strong { font-size: 16px; }

@media (max-width: 820px) {
  .reference-home-shell .marketplace-contact-connect { padding-right: 0; }
  .mobile-role-dock { gap: 2px !important; padding-inline: 6px !important; }
  .mobile-role-dock button { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: 25px 16px !important; align-content: center !important; }
  .mobile-role-dock span { display: block !important; min-width: 0; height: 16px; max-height: 16px !important; font-family: Arial, sans-serif; font-weight: 700 !important; font-size: 10px !important; line-height: 16px !important; white-space: nowrap !important; overflow-wrap: normal !important; word-break: normal !important; -webkit-line-clamp: unset !important; }
  .reference-home-shell .public-marketplace-dock button { grid-template-columns: minmax(0, 1fr); grid-template-rows: 25px 16px; }
  .reference-home-shell .public-marketplace-dock span { display: block; width: 100%; height: 16px; line-height: 16px; text-align: center; font-family: Arial, sans-serif; font-weight: 700; font-size: 11px; }
}
@media (max-width: 430px) {
  .reference-home-shell .public-marketplace-dock .dock-label-compact { display: block; }
  .reference-home-shell .public-marketplace-dock .dock-label-full { display: none; }
  .reference-home-shell .public-marketplace-dock span { font-size: 12px; }
}
/* Leave the content clear during vertical scrolling without moving its layout. */
:is(.public-marketplace-dock,.mobile-role-dock,.mobile-summary-dock,.floating-contact-controls) { transition: opacity 140ms ease; }
body.floating-controls-scrolling :is(.public-marketplace-dock,.mobile-role-dock,.mobile-summary-dock,.floating-contact-controls):not(:has(:focus-visible)) { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
@media (prefers-reduced-motion: reduce) {
  :is(.public-marketplace-dock,.mobile-role-dock,.mobile-summary-dock,.floating-contact-controls) { transition: none; }
}
.reviewer-environment-banner {
  padding: 10px 16px;
  background: #fff3b8;
  color: #25282c;
  border-bottom: 1px solid #c3a950;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
  overflow-wrap: normal;
}
@media (max-width: 820px) {
  .reviewer-environment-banner + .mockup-app-shell { padding-top: 0; }
  .reviewer-environment-banner + .mockup-app-shell .mockup-mobile-topbar.app-topbar { position: sticky; }
}

.reference-home-shell .landing-marketplace-links { padding-block: 10px; }
.landing-marketplace-links .marketplace-category-tabs { width: min(100%, 680px); margin: 0 auto; padding: 0; overflow: visible; }
.landing-marketplace-links .marketplace-category-tabs button { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 20px 22px; justify-items: center; align-items: center; align-content: center; gap: 6px; padding: 6px 2px; min-height: 60px; white-space: nowrap; }
.landing-marketplace-links .marketplace-category-tabs button > span { white-space: nowrap; overflow-wrap: normal; word-break: normal; }

/* Keep public actions together beside the menu, including when links are collapsed. */
.discovery-nav .nav-inner { justify-content: flex-start; column-gap: 12px; }
.discovery-nav .discovery-actions { margin-inline-start: auto; flex: 0 0 auto; flex-wrap: nowrap; }
.discovery-nav .nav-menu-action { flex: 0 0 auto; margin-inline-start: 0; }

/* Move only the dock's resting position; retain its sticky offset and page flow. */
.reference-home-shell .discovery-search-dock { margin-top: -214px; margin-bottom: 136px; padding-block: 10px; }

.mockup-app-shell .mockup-dashboard-main.app-main { padding-top: 22px; }
.mockup-app-shell .mockup-dashboard-heading { flex-direction: row; margin-block-start: 0; margin-bottom: 18px; padding-bottom: 14px; gap: 12px; }
.mockup-app-shell .mockup-heading-actions { margin-inline-start: auto; justify-content: flex-end; justify-items: end; }
.mockup-app-shell .mockup-heading-actions .compact-add-action { width: auto; flex: 0 0 auto; min-height: 44px; white-space: nowrap; }
.mockup-app-shell.role-landlord .mockup-dashboard-sidebar > nav { row-gap: 10px; }

/* Payment labels stay compact and aligned with the first line of the record. */
.mockup-dashboard-view .item-row:has(> .badge),
.mockup-dashboard-view .item-row:has(> .row-actions > .badge) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.mockup-dashboard-view .item-row:has(> .badge) > div:first-child,
.mockup-dashboard-view .item-row:has(> .row-actions > .badge) > div:first-child { min-width: 0; }
.mockup-dashboard-view .item-row > .badge,
.mockup-dashboard-view .item-row > .row-actions > .badge { flex: 0 0 auto; align-self: start; justify-self: end; max-width: min(40vw, 240px); min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.mockup-dashboard-view .item-row > .row-actions:has(> .badge) { display: flex; flex: 0 0 auto; flex-direction: column; width: auto; max-width: min(40vw, 240px); margin-inline-start: auto; justify-content: flex-start; align-items: flex-end; }

@media (max-width: 820px) {
  .mockup-app-shell .mockup-dashboard-main.app-main { padding-top: 14px; }
  .mockup-app-shell .mockup-dashboard-heading { margin-bottom: 14px; padding-bottom: 12px; }
  .mockup-app-shell .mockup-dashboard-heading .mockup-heading-intro { width: auto; }
  .mockup-app-shell .mockup-dashboard-heading .mockup-heading-actions:has(> .compact-add-action) { display: flex; justify-content: flex-end; }
  .mockup-app-shell .mockup-heading-actions .compact-add-action { width: 44px !important; flex: 0 0 44px !important; min-width: 44px; max-width: 44px; height: 44px; padding: 0; }
  .mockup-app-shell .mockup-secondary-panel:has(> .property-bubble-grid) { padding-inline: 0; }
  .mockup-app-shell .mockup-secondary-panel:has(> .property-bubble-grid) > .mockup-section-heading { padding-inline: 16px; }
  .mockup-app-shell .mockup-secondary-panel .property-bubble-grid { width: 100%; grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .mockup-app-shell .mockup-secondary-panel .property-bubble-card { width: 100%; max-width: none; margin-inline: 0; justify-self: stretch; }
}
@media (max-width: 760px) {
  .reference-home-shell .discovery-search-dock { margin-top: -142px; margin-bottom: 54px; }
  .discovery-nav .nav-inner { column-gap: 8px; }
  .discovery-nav .nav-menu-action { margin-inline-start: auto; }
}
.landing-marketplace-links .marketplace-category-tabs .dock-icon { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .landing-marketplace-links .marketplace-category-tabs { grid-template-columns: minmax(44px, 1fr) minmax(44px, 1fr) minmax(52px, 1.2fr) minmax(max-content, 2.2fr); gap: 4px; }
  .landing-marketplace-links .marketplace-category-tabs button { grid-template-rows: 20px 20px; align-items: center; align-content: center; gap: 6px; padding: 6px 2px; min-height: 58px; font-size: 14px; line-height: 20px; }
}
.marketplace-search-page .marketplace-discovery-panel { padding-block: 24px; }
.marketplace-search-page .marketplace-results-heading { margin-block: 24px; gap: 16px; }
.marketplace-search-page .marketplace-results-heading h1 { font-size: 30px; line-height: 1.2; }
.reference-home-shell .marketplace-search-page .marketplace-discovery-panel .home-search-bar { display: grid; }
.reference-home-shell .marketplace-search-page .marketplace-discovery-panel .location-search-form { display: flex; }
.marketplace-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 12px; }
.home-search-bar .marketplace-area-field { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: minmax(38px, auto) minmax(44px, auto); align-items: center; align-content: start; gap: 4px 8px; padding: 14px 12px; border-right: 1px solid var(--un-edge); }
.marketplace-area-field > .dock-icon { width: 20px; height: 20px; grid-column: 1; grid-row: 1; }
.marketplace-area-field > span { grid-column: 2; grid-row: 1; min-width: 0; font-size: 14px; font-weight: 800; line-height: 1.35; }
.area-picker-trigger { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; width: 100%; min-height: 44px; padding: 8px; background: var(--un-field-surface); color: var(--un-field-ink); border: 1px solid var(--un-field-edge); border-radius: 6px; text-align: left; font-size: 16px; line-height: 1.35; }
.area-picker-trigger > span { min-width: 0; overflow-wrap: anywhere; }
.area-picker-trigger > .dock-icon, .auth-country-choice > .dock-icon:last-child { flex: 0 0 20px; width: 20px; height: 20px; transform: rotate(-90deg); }
.marketplace-selected-areas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.marketplace-selected-areas button { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--un-edge); border-radius: 6px; background: var(--un-surface); color: var(--un-text); font-size: 15px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.marketplace-selected-areas .dock-icon { flex: 0 0 16px; width: 16px; height: 16px; }
.area-picker-form { display: grid; gap: 16px; min-width: 0; }
.area-picker-search { display: grid; gap: 8px; margin: 0; }
.area-picker-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; color: var(--un-secondary); }
.area-picker-status button { min-height: 44px; padding-inline: 8px; }
.area-picker-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; max-height: min(40dvh, 360px); overflow-y: auto; margin: 0; padding: 2px; border: 0; }
.area-picker-options .area-picker-option { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; min-height: 52px; margin: 0; padding: 12px; border: 1px solid var(--un-edge); border-radius: 6px; background: var(--un-field-surface); color: var(--un-field-ink); line-height: 1.4; font-size: 16px; font-weight: 600; }
.area-picker-options .area-picker-option[hidden] { display: none; }
.area-picker-option input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; }
.area-picker-option span { min-width: 0; overflow-wrap: anywhere; }
.area-picker-option:has(input:checked) { border-color: #087f80; box-shadow: inset 0 0 0 1px #087f80; }
.area-picker-option:has(input:disabled) { opacity: 0.6; }
.area-picker-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 12px; background: var(--un-surface); }
.area-picker-actions .button { min-width: 0; min-height: 48px; margin: 0; }
.auth-country-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin-block: 20px; padding: 12px; border: 1px solid var(--un-field-edge); border-radius: 6px; background: var(--un-field-surface); color: var(--un-field-ink); text-align: left; }
.auth-country-choice > span { flex: 1; display: grid; gap: 4px; min-width: 0; font-size: 14px; }
.auth-country-choice strong { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
/* Public listings keep readable details and give the photography its own space. */
.reference-home-shell .marketplace-search-page .airbnb-property-grid { grid-template-columns: minmax(0, 1fr); }
.reference-home-shell .marketplace-search-page .airbnb-property-grid > .discovery-property-card { width: 100%; max-width: none; justify-self: stretch; }
.marketplace-search-page .realestate-listing-card .property-body { grid-template-rows: none; align-content: start; gap: 14px; }
.marketplace-search-page .realestate-title-row h3 { font-size: 22px; line-height: 1.3; }
.marketplace-search-page .realestate-title-row p { margin-top: 8px; font-size: 16px; line-height: 1.5; }
.marketplace-search-page .realestate-facts-row { gap: 10px 16px; font-size: 16px; line-height: 1.5; }
.property-units-public-page { padding-top: 20px; }
.public-property-page-hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; }
.public-property-page-hero > div { display: grid; align-content: start; gap: 12px; min-width: 0; padding-block: 8px; }
.public-property-page-hero > div > :is(.eyebrow, h1, p, .floating-listing-meta, .property-trust-row) { margin: 0; }
.public-property-page-hero h1 { font-size: 36px; line-height: 1.2; }
.public-property-page-hero p { font-size: 16px; line-height: 1.5; }
.public-property-page-hero .floating-listing-meta { gap: 8px; }
.public-property-page-hero .property-trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (min-width: 900px) {
  .reference-home-shell .marketplace-search-page .airbnb-property-grid > .discovery-property-card { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
  .reference-home-shell .marketplace-search-page .realestate-listing-hero { height: 100%; min-height: 420px; }
  .reference-home-shell .marketplace-search-page .realestate-listing-hero .photo-track { position: absolute; inset: 0; height: 100%; min-height: 0; }
  .reference-home-shell .marketplace-search-page .realestate-listing-hero .photo-track > :is(img, .listing-photo-empty) { height: 100%; min-height: 0; }
  .marketplace-search-page .realestate-listing-card .property-body { padding: 24px; }
}
@media (max-width: 899px) and (min-width: 761px) {
  .reference-home-shell .marketplace-search-page .realestate-listing-hero { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .reference-home-shell .marketplace-search-page .realestate-listing-hero .photo-track { position: absolute; inset: 0; height: 100%; min-height: 0; }
  .reference-home-shell .marketplace-search-page .realestate-listing-hero .photo-track > :is(img, .listing-photo-empty) { height: 100%; min-height: 0; }
}
@media (max-width: 820px) {
  .public-property-page-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .public-property-page-hero h1 { font-size: 30px; }
}
@media (max-width: 1100px) {
  .marketplace-discovery-panel .home-search-bar .marketplace-area-field { border-bottom: 1px solid var(--un-edge); }
}
@media (max-width: 600px) {
  .home-search-bar .marketplace-area-field { border-right: 0; border-bottom: 1px solid var(--un-edge); }
  .area-picker-options { grid-template-columns: minmax(0, 1fr); }
  .marketplace-search-page .marketplace-results-heading { align-items: start; flex-direction: column; }
  .marketplace-search-page .marketplace-results-heading h1 { font-size: 26px; }
  .marketplace-search-page .marketplace-category-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .marketplace-search-page .marketplace-category-tabs button { min-height: 84px; padding: 8px 2px; font-size: 13px; }
}

/* Apartment previews follow the compact agency / photo / facts composition. */
.airbnb-property-grid:has(> .apartment-preview-card) { grid-template-columns: minmax(0, 1fr); }
.airbnb-property-grid > .apartment-preview-card.property-card { width: 100%; max-width: none; justify-self: stretch; }
.apartment-preview-card.property-card { min-width: 0; border: 0; border-radius: 0; background: var(--un-surface); color: var(--un-text); box-shadow: none; }
.apartment-preview-card .apartment-media { min-width: 0; }
.apartment-preview-card .apartment-agency-strip { position: relative; display: flex; align-items: center; min-height: 48px; padding: 10px 76px 10px 16px; background: var(--un-page); color: var(--un-text); }
.apartment-preview-card.property-card .apartment-agency-strip > strong { color: #ff7417; font-size: 18px; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.apartment-building-logo { position: absolute; z-index: 2; top: 4px; right: 4px; display: grid; place-items: center; width: 56px; height: 56px; padding: 4px; border: 2px solid #737373; border-radius: 50%; background: #fff; color: #505050; }
.apartment-building-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.apartment-building-logo .dock-icon { width: 30px; height: 30px; }
.building-logo-upload-preview img { display: block; width: 64px; height: 64px; margin-top: 12px; padding: 4px; border: 1px solid var(--un-edge); border-radius: 50%; background: #fff; object-fit: contain; }
.account-country-settings, .account-country-settings form, [data-country-review-form] { display: grid; gap: 16px; min-width: 0; }
.account-country-settings :is(p, strong), .country-review-row :is(p, strong) { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.country-change-pending, .country-change-history { display: grid; gap: 8px; padding-block: 12px; border-block: 1px solid var(--un-edge); }
.account-country-review-panel { min-width: 0; margin-top: 24px; }
.country-review-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding-block: 16px; border-top: 1px solid var(--un-edge); }
.country-review-row > div:first-child { display: grid; gap: 8px; min-width: 0; }
.country-review-row .row-actions { display: grid; gap: 8px; }
@media (max-width: 600px) { .country-review-row { grid-template-columns: minmax(0, 1fr); } .country-review-row .row-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .country-review-row .button { min-width: 0; white-space: normal; } }
.apartment-preview-card.property-card .realestate-listing-hero { height: auto; min-height: 0; aspect-ratio: 1.3; border-radius: 0; background: var(--un-page); }
.apartment-preview-card.property-card .realestate-listing-hero .photo-track { position: absolute; inset: 0; height: 100%; min-height: 0; }
.apartment-preview-card.property-card .realestate-listing-hero .photo-track > :is(img, .listing-photo-empty) { height: 100%; min-height: 0; border-radius: 0; }
.apartment-preview-card .realestate-carousel-controls { top: 50%; right: 6px; bottom: auto; left: 6px; height: 40px; align-items: center; }
.apartment-preview-card .realestate-carousel-controls button { position: relative; display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; padding: 4px; border: 0; border-radius: 50%; background: transparent; color: var(--un-text); text-shadow: none; }
.apartment-preview-card .realestate-carousel-controls button::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--un-edge); border-radius: 50%; background: var(--un-surface); box-shadow: 0 1px 4px #0003; }
.apartment-preview-card .realestate-carousel-controls button:hover::before { border-color: currentColor; }
.apartment-preview-card .realestate-carousel-controls .dock-icon { position: relative; width: 18px; height: 18px; color: inherit; opacity: 1; stroke-width: 2; pointer-events: none; }
.apartment-preview-card .realestate-carousel-controls [data-carousel-dir="1"] .dock-icon { transform: rotate(180deg); }
.apartment-gallery-button { position: absolute; z-index: 1; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 6px; border: 0; border-radius: 4px; background: #262626; color: #fff; }
.apartment-gallery-button .dock-icon { width: 24px; height: 24px; }
.apartment-preview-card.property-card .property-body { display: grid; grid-template-rows: none; align-content: start; gap: 10px; padding: 12px 16px 18px; background: var(--un-surface); color: var(--un-text); }
.apartment-preview-card .apartment-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; min-width: 0; }
.apartment-preview-card.property-card .apartment-name { min-width: 0; margin: 0; color: var(--un-text); font-size: 26px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.apartment-preview-card .apartment-name button { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; font: inherit; overflow-wrap: anywhere; }
.apartment-price-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.apartment-preview-card.property-card .apartment-price { min-width: 0; margin: 6px 0 0; color: var(--un-text); font-size: 22px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.apartment-price small { font: inherit; }
.apartment-card-actions { display: flex; flex: 0 0 84px; gap: 4px; }
.apartment-card-actions button { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; padding: 5px; border: 0; border-radius: 0; background: transparent; color: var(--un-text); }
.apartment-save-button .dock-icon { width: 30px; height: 30px; stroke-width: 1.4; }
.apartment-save-button.saved .dock-icon { fill: currentColor; }
.apartment-more-button span { font-size: 17px; line-height: 1; letter-spacing: 0; }
.apartment-preview-card.property-card .apartment-address { min-width: 0; margin: 0; color: var(--un-secondary); font-size: 18px; line-height: 1.45; font-weight: 400; overflow-wrap: anywhere; }
.apartment-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; color: var(--un-text); font-size: 18px; line-height: 1.4; }
.apartment-facts > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.apartment-facts .unit-feature-icon, .apartment-facts .dock-icon { flex: 0 0 22px; width: 22px; height: 22px; color: inherit; stroke-width: 1.4; }
.apartment-facts .apartment-type { border-left: 1px solid var(--un-edge); padding-left: 12px; overflow-wrap: anywhere; }
.apartment-facts .apartment-type:first-child { border-left: 0; padding-left: 0; }
.apartment-preview-card.property-card .apartment-availability { margin: 0; color: var(--un-secondary); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.apartment-preview-card .apartment-view-units { display: inline-flex; align-items: center; justify-content: center; justify-self: start; gap: 8px; min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid currentColor; border-radius: 4px; background: var(--un-text); color: var(--un-surface); font-size: 16px; font-weight: 700; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.apartment-preview-card .apartment-view-units .dock-icon { flex: 0 0 20px; width: 20px; height: 20px; color: inherit; }
.apartment-preview-card button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Outrank shared theme rules so card surfaces, text and icons stay paired. */
html[data-theme] .apartment-preview-card.property-card,
html[data-theme] .apartment-preview-card.property-card .property-body { background: var(--un-surface); color: var(--un-text); }
html[data-theme] .apartment-preview-card.property-card :is(.apartment-name, .apartment-name button, .apartment-price, .apartment-price small, .apartment-facts, .apartment-card-actions button) { color: var(--un-text); opacity: 1; }
html[data-theme] .apartment-preview-card.property-card :is(.apartment-address, .apartment-availability) { color: var(--un-secondary); opacity: 1; }
html[data-theme] .apartment-preview-card.property-card :is(.apartment-facts, .apartment-card-actions) svg { color: inherit; opacity: 1; }
html[data-theme] .apartment-preview-card.property-card .apartment-agency-strip { background: var(--un-page); }
html[data-theme] .apartment-preview-card.property-card .apartment-agency-strip > strong { color: #ff7417; opacity: 1; }
html[data-theme] .apartment-preview-card.property-card .apartment-view-units { display: inline-flex; visibility: visible; background: var(--un-text); color: var(--un-surface); opacity: 1; }
.apartment-preview-card .apartment-view-units:focus-visible { outline-color: var(--un-text); }

/* Keep dashboard suggestions compact without clipping long listing details. */
@media (max-width: 760px) {
  .tenant-suggested-rail .apartment-preview-card.property-card .realestate-listing-hero {
    height: clamp(120px, 22vh, 190px);
    height: clamp(120px, 22svh, 190px);
    min-height: 0;
    aspect-ratio: auto;
  }
  .tenant-suggested-rail .apartment-preview-card.property-card .property-body {
    gap: 6px;
    padding: 10px 14px 14px;
  }
  .tenant-suggested-rail .apartment-preview-card.property-card .apartment-name { font-size: 20px; }
  .tenant-suggested-rail .apartment-preview-card.property-card .apartment-address { font-size: 16px; }
  .tenant-suggested-rail .apartment-preview-card.property-card .apartment-price { font-size: 19px; }
}

@media (max-width: 760px) and (max-height: 650px) {
  .tenant-suggested-rail .apartment-preview-card .apartment-agency-strip { min-height: 32px; padding: 4px 44px 4px 12px; }
  .tenant-suggested-rail .apartment-preview-card.property-card .apartment-agency-strip > strong { font-size: 14px; }
  .tenant-suggested-rail .apartment-preview-card .apartment-building-logo { width: 36px; height: 36px; }
  .tenant-suggested-rail .apartment-preview-card .apartment-building-logo .dock-icon { width: 20px; height: 20px; }
  .tenant-suggested-rail .apartment-preview-card.property-card .realestate-listing-hero { height: 84px; }
  .tenant-suggested-rail .apartment-preview-card .apartment-gallery-button { top: 4px; right: auto; bottom: auto; left: 8px; }
  .tenant-suggested-rail .apartment-preview-card .realestate-carousel-controls { top: auto; bottom: 0; transform: none; }
  .tenant-suggested-rail .apartment-preview-card.property-card .property-body { gap: 2px; padding: 6px 12px 8px; }
  .tenant-suggested-rail .apartment-preview-card.property-card .apartment-name { font-size: 18px; }
  .tenant-suggested-rail .apartment-preview-card.property-card .apartment-address { font-size: 15px; line-height: 1.3; }
  .tenant-suggested-rail .apartment-preview-card.property-card .apartment-price { margin: 0; font-size: 17px; }
  .tenant-suggested-rail .apartment-preview-card .apartment-facts { font-size: 16px; gap: 6px 10px; }
}
.apartment-options, .apartment-save-options { display: grid; gap: 12px; }
.apartment-options .button { justify-content: flex-start; gap: 12px; min-height: 48px; }
.apartment-save-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--un-edge); }
.apartment-save-row > span { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.apartment-save-row .icon-button { flex: 0 0 44px; width: 44px; height: 44px; }
.apartment-save-row [aria-pressed="true"] .dock-icon { fill: currentColor; }
@media (min-width: 900px) {
  .airbnb-property-grid > .apartment-preview-card.property-card,
  .reference-home-shell .marketplace-search-page .airbnb-property-grid > .apartment-preview-card { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
  .apartment-preview-card .apartment-media { display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .apartment-preview-card.property-card .realestate-listing-hero { height: 100%; min-height: 300px; aspect-ratio: auto; }
  .apartment-preview-card.property-card .property-body { padding: 20px; }
}
@media (max-width: 760px) {
  .marketplace-results-section:has(.apartment-preview-card) { padding-top: 0; }
  .marketplace-results-section > .marketplace-wide-container:has(> .airbnb-property-grid > .apartment-preview-card) { width: 100%; max-width: none; margin-inline: 0; padding-inline: 0; }
  .reference-home-shell .marketplace-search-page .airbnb-property-grid:has(> .apartment-preview-card) { gap: 20px; }
}

.referral-shortcut { position: relative; flex: 0 0 auto; }
.referral-shortcut > span { position: absolute; right: 1px; bottom: 1px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #006a62; color: white; font-size: 12px; font-weight: 700; line-height: 1; }
@media (max-width: 820px) {
  .mockup-heading-actions > .referral-shortcut { display: none; }
}
.referral-prompt-content { padding: 4px 4px 8px; }
.referral-prompt-content p { line-height: 1.5; margin: 0 0 14px; }
.referral-prompt-content .button { margin-top: 4px; }
.launch-intro {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background: #f0e2d3; color: #2e2015; opacity: 0; pointer-events: none;
}
.launch-intro-visible { opacity: 1; pointer-events: auto; animation: launchIntroIn 160ms ease-out; }
.launch-intro video {
  width: auto; height: auto; max-width: min(96vw, 960px); max-height: min(88dvh, 820px);
  -webkit-mask-image: radial-gradient(ellipse 64% 66%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 64% 66%, #000 72%, transparent 100%);
}
.launch-intro:focus { outline: none; }
.payment-terms { display: grid; gap: 14px; margin: 12px 0; min-width: 0; }
.payment-terms dt { font-weight: 750; margin-bottom: 4px; }
.payment-terms dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
@keyframes launchIntroIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .launch-intro { display: none; } }

[data-step-flow] [hidden], [data-step-flow] .step-host-inactive { display: none !important; }
[data-step-flow][data-modal-form-sections] .modal-form-section > summary { display: none; }
[data-step-flow][data-modal-form-sections] .modal-form-section { border-top: 0; }
[data-step-flow] .form-step-heading { display: grid; gap: 7px; min-width: 0; margin: 4px 0 6px; }
[data-step-flow] .form-step-heading p { margin: 0; font-size: 13px; font-weight: 700; color: var(--material-ink, var(--ink)); }
[data-step-flow] .form-step-heading h3 {
  margin: 0; padding: 14px 16px; border-radius: 8px; background: var(--material-selected, var(--turquoise-soft));
  color: var(--material-selected-ink, var(--turquoise-dark)); font-size: 17px; line-height: 1.4; overflow-wrap: anywhere;
}
[data-step-flow] .form-step-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 12px; border-top: 1px solid var(--material-edge, var(--line)); }
[data-step-flow] .form-step-nav > * { min-width: 0; min-height: 44px; white-space: normal; }
[data-step-flow] .form-step-nav > :disabled { opacity: .55; }
[data-step-flow] :is(.modal-form-section-body, .signup-details) label { line-height: 1.45; }
[data-step-flow] [data-form-step-motion] { --form-step-from: 6px; animation: formStepIn 185ms cubic-bezier(.2,.75,.25,1) both; }
[data-step-flow] [data-form-step-motion="back"] { --form-step-from: -6px; }
[data-step-flow] [data-signup-social] { margin-top: 16px; }
@keyframes formStepIn { from { opacity: 0; transform: translateY(var(--form-step-from)); } }
@media (prefers-reduced-motion: reduce) { [data-step-flow] [data-form-step-motion] { animation: none; } }

/* Long modal forms use unframed, mutually exclusive category rows. */
form[data-modal-form-sections] { gap: 8px; }
[data-modal-form-sections] .modal-form-section-host {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
[data-modal-form-sections] .modal-form-section {
  min-width: 0; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--un-edge, #c7d0d0);
  border-radius: 0; background: transparent; box-shadow: none;
}
[data-modal-form-sections] .modal-form-section > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; margin: 0; padding: 10px 0; list-style: none; cursor: pointer;
  color: var(--un-text, #18232c); font-size: 16px; font-weight: 650;
  line-height: 1.4; letter-spacing: 0; overflow-wrap: anywhere;
}
[data-modal-form-sections] .modal-form-section > summary::-webkit-details-marker { display: none; }
[data-modal-form-sections] .modal-form-section > summary::after {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
[data-modal-form-sections] .modal-form-section[open] > summary::after { transform: rotate(225deg); }
[data-modal-form-sections] .modal-form-section > summary:focus-visible { outline: 2px solid var(--un-deep, #087b78); outline-offset: 2px; }
[data-modal-form-sections] .modal-form-section-body { display: grid; gap: 12px; min-width: 0; padding: 2px 0 12px; }
[data-modal-form-sections] .modal-form-section-body > :is(.dashboard-card, .verification-section, .reference-section) {
  min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
[data-modal-form-sections] .modal-form-section-body > :is(.dashboard-card, .verification-section) > :is(h3, legend) { margin: 0; font-size: 16px; }
[data-modal-form-sections] .modal-form-section > .form-grid { margin: 0 0 12px; }
[data-modal-form-sections] .modal-form-section :is(input, select, textarea) { scroll-margin-block: 12px; }
[data-modal-form-sections] .move-in-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
[data-modal-form-sections] .move-in-summary > div { min-width: 0; padding: 10px; }
[data-modal-form-sections] .move-in-summary small { font-size: 11px; line-height: 1.35; }
[data-modal-form-sections] .move-in-summary strong { font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.modal-card:has([data-modal-form-sections]) > .modal-header { flex-direction: row; align-items: flex-start; gap: 10px; }
.modal-card:has([data-modal-form-sections]) > .modal-header .modal-title-wrap { min-width: 0; }
.modal-card:has([data-modal-form-sections]) > .modal-header h2 { margin: 0; font-size: 22px; }
.modal-card:has([data-modal-form-sections]) > .modal-header .modal-close { align-self: flex-start; flex: 0 0 36px; width: 36px; min-width: 36px; min-height: 36px; }
