#mobile-filters,#mobile-close-filters{display:none}
@media(max-width:700px){
  :root{--mobile-header:112px;--mobile-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  html,body{height:100%;overflow:hidden}
  header{height:var(--mobile-header);padding-top:env(safe-area-inset-top,0px)}
  body.is-welcome #mobile-filters,body.catalog-open #mobile-filters{display:none!important}
  body[data-mode=map]:not(.is-welcome):not(.catalog-open) #mobile-filters{display:block;position:fixed;top:calc(var(--mobile-header) + 10px);left:14px;z-index:7;background:#f5f4eaf5;color:#203e32;border:1px solid #d7ddce;padding:11px 16px;border-radius:5px;font-size:11px;min-height:40px}
  body[data-mode=map] .top-right,body.has-selection[data-mode=map] .top-right,body[data-angle=tilt][data-mode=map] .top-right,body.village-filters-open[data-angle=tilt][data-mode=map] .top-right{top:calc(var(--mobile-header) + 10px)!important;bottom:auto!important;right:14px!important;z-index:7}
  .map-angle button{min-width:40px;min-height:40px;padding:10px 12px}
  #village-filters{display:none!important}
  body[data-mode=map] .map-panel{display:none!important}
  body.mobile-filters-open[data-mode=map] .map-panel,body.mobile-filters-open.village-filters-open[data-mode=map] .map-panel{display:block!important;position:fixed!important;top:auto!important;bottom:var(--mobile-bottom)!important;left:14px!important;right:14px!important;width:auto!important;max-height:calc(100dvh - var(--mobile-header) - var(--mobile-bottom) - 65px)!important;padding:18px!important;overflow:auto;overscroll-behavior:contain;z-index:8;border-radius:12px;background:#f8f7ef;box-shadow:0 -12px 50px #193b3326}
  .mobile-filters-open .map-panel h1,.mobile-filters-open .plan-stats,.mobile-filters-open #expand-filters,.mobile-filters-open #source-plan{display:none!important}
  .mobile-filters-open .map-panel .eyebrow{margin:0 32px 18px 0;font-size:8px!important}
  .mobile-filters-open .map-panel #plot-search{margin:0!important}
  .mobile-filters-open #plot-search label{display:block!important;font-size:10px!important;margin-bottom:9px}
  .mobile-filters-open .phase-filter,.mobile-filters-open .plan-legend{display:flex!important}
  .mobile-filters-open .filter-label,.mobile-filters-open #availability,.mobile-filters-open .result-count{display:block!important}
  .mobile-filters-open #availability{width:100%!important;max-width:none!important;font-size:13px;min-height:42px;margin-bottom:12px}
  .mobile-filters-open #plot-number{font-size:16px!important;min-height:42px}
  .mobile-filters-open .phase-filter{margin:14px 0!important}
  .mobile-filters-open .phase-filter button{min-height:36px}
  .mobile-filters-open .plan-legend{position:static!important;gap:14px;font-size:10px!important;justify-content:flex-start;flex-direction:row!important}
  .mobile-filters-open #mobile-close-filters{display:block;position:absolute;right:10px;top:9px;width:36px;height:36px;border-radius:50%;font-size:24px;background:#e9ecdf;color:#294534}
  .mobile-filters-open .house-card,.mobile-filters-open .village-story,.mobile-filters-open .village-views,.mobile-filters-open .map-tools{display:none!important}
  body[data-angle=tilt][data-mode=map] .village-story{top:calc(var(--mobile-header) + 61px);left:14px;right:14px;text-shadow:none}
  .village-story>span,.village-story h1,.village-story p{display:none!important}
  .village-statuses{margin:0;width:100%;max-width:none;justify-content:space-between;padding:4px;background:#f5f4eaf5;backdrop-filter:none}
  .village-statuses button{padding:9px 7px;font-size:10px;min-height:36px;gap:4px}
  .village-status-note{background:#193d32de;border-radius:3px;width:max-content;max-width:100%;font-size:9px;padding:4px 7px;margin-top:5px}
  body.has-selection .village-story,body.has-selection .village-views{display:none!important}
  body.has-selection[data-mode=map] .map-tools{display:none!important}
  .village-views{left:14px;right:14px;bottom:var(--mobile-bottom);transform:none;padding:4px;backdrop-filter:none;gap:3px}
  .village-views button{min-height:38px;padding:8px 5px;font-size:9px;line-height:1.3;white-space:normal}
  .village-views small{display:none}
  body[data-mode=map] .minimap{display:none!important}
  footer{position:fixed;left:14px;right:14px;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;z-index:7}
  .view-switch{display:grid!important;grid-template-columns:1fr 1fr 1.25fr;width:100%;padding:4px!important;background:#f5f4eaf7;backdrop-filter:none!important;border-radius:6px!important}
  .view-switch button,body[data-angle=tilt] .view-switch button{min-height:44px;padding:8px 4px!important;font-size:10px!important;white-space:nowrap}
  .view-switch button>span{display:none}
  .demo-note{display:none!important}
  body[data-mode=map] .map-tools{position:fixed;top:44%!important;right:14px!important;border-radius:5px}
  body[data-mode=map] .map-tools button{width:36px;height:38px}
  body[data-mode=walk] .map-tools,body[data-mode=walk] .top-right,body[data-mode=walk] #mobile-filters{display:none!important}
  body.has-selection[data-mode=map] .house-card{position:fixed;top:auto;left:14px;right:14px;bottom:var(--mobile-bottom)!important;width:auto;max-height:min(42dvh,310px);overflow:auto;overscroll-behavior:contain;z-index:8;border-radius:10px;box-shadow:0 -8px 35px #173b3326;grid-template-columns:86px minmax(0,1fr)}
  body.has-selection .house-card .photo{min-height:0!important;height:auto!important}
  body.has-selection .house-card .card-content{padding:14px!important}
  body.has-selection .house-card .photo>span{display:block;left:5px;top:6px;max-width:76px;padding:4px;font-size:6px;line-height:1.3}
  body.has-selection .house-card h2{font-size:24px;margin:7px 0 10px}
  body.has-selection .house-card .price-row strong{font-size:20px}
  body.has-selection .house-card .secondary{display:none!important}
  body.has-selection .house-card .primary{font-size:11px;min-height:40px;padding:10px}
  body.has-selection .parcel-card{display:block!important}
  body.has-selection .parcel-card[hidden],body.has-selection .house-card[hidden]{display:none!important}
  body.has-selection .parcel-card .card-content{padding:18px!important}
  body.has-selection .parcel-status{float:none!important;margin:0 0 5px!important;font-size:10px!important}
  body.has-selection .parcel-details{display:flex;justify-content:space-between;gap:12px;margin:8px 0!important}
  body.has-selection .parcel-card .primary{margin-top:10px!important}
  body.has-selection .parcel-card #parcel-focus{display:none}
  body.has-selection .parcel-card #parcel-contact{display:block!important;background:#203e32;color:#fff;width:100%;padding:12px;border-radius:4px;margin-top:12px;font-size:12px;min-height:42px}
  .scene-heading{top:calc(var(--mobile-header) + 14px)!important;left:14px!important;right:14px;max-width:none!important;padding:12px 14px!important}
  .scene-heading h1{font-size:23px!important;margin:7px 0 0!important}
  .scene-heading .eyebrow{font-size:7px!important;line-height:1.5}
  .walk-controls{position:fixed;left:14px;right:14px;bottom:var(--mobile-bottom)!important;justify-content:space-between;align-items:flex-end}
  .walk-controls .direction-pad{grid-template-columns:repeat(3,42px);gap:4px}
  .direction-pad button{width:42px;height:42px;border-radius:5px;font-size:20px}
  .walk-controls>span.walk-help{max-width:150px;font-size:9px;background:#f5f4eaf0;backdrop-filter:none}
  .home-detail{max-height:calc(100dvh - 20px);height:calc(100dvh - 20px);margin:10px auto}
  .home-detail .detail-visual{grid-template-rows:56px minmax(220px,38dvh) 166px}
  .home-detail .photo-tabs{overflow-x:auto;white-space:nowrap;padding-right:45px;gap:0}
  .home-detail .photo-tabs button{flex-shrink:0}
  .home-detail .photo-toolbar{top:67px}
  .home-detail .model-badge{display:none}
  .home-detail .model-scene-controls{right:8px;bottom:8px;left:auto;gap:0}
  .home-detail .model-scene-controls button{font-size:9px;padding:8px}
  .home-detail.photo-expanded .detail-visual{height:100%}
  .catalog,.welcome{bottom:0;max-height:100dvh}
  dialog:not(.home-detail){max-height:calc(100dvh - 32px);overflow:auto}
  .shade{pointer-events:none}
  body.mobile-filters-open.has-selection .house-card{display:none!important}
}
@media(max-width:700px) and (max-height:690px){
  .village-status-note{display:none}
  .village-statuses button{font-size:9px;padding:7px 5px}
  body.has-selection[data-mode=map] .house-card{max-height:39dvh}
  body.has-selection .house-card h2{font-size:21px}
  .scene-heading{padding:9px 12px!important}
  .scene-heading h1{font-size:20px!important}
  .walk-controls>span.walk-help{max-width:130px}
}
@media(pointer:coarse){.village-presentation,.top-right,.house-card,.catalog-card,.view-switch{backdrop-filter:none!important}}
@media(max-width:359px){.village-statuses button{font-size:9px;padding:8px 5px}.village-statuses b{font-size:8px}.village-statuses .status-dot{width:6px;height:6px}.village-statuses{gap:1px}}
