/* The phone layout is a separate app shell; desktop controls stay in their places. */
.mobile-only{display:none}
@media(max-width:760px){
  :root{--mobile-nav-height:calc(66px + env(safe-area-inset-bottom,0px))}
  body{background:#f5f5ef;padding-bottom:var(--mobile-nav-height)}
  body>header{display:none}
  .mobile-only{display:flex}
  .mobile-header{position:sticky;top:0;z-index:700;height:calc(69px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 20px 0;align-items:center;justify-content:space-between;background:#f5f5eff5;backdrop-filter:blur(14px);border-bottom:1px solid #e7e8df}
  .mobile-wordmark{display:flex;align-items:center;gap:7px;font-size:24px;letter-spacing:-1.2px;font-weight:800}.mobile-wordmark img{width:27px;height:30px}.mobile-wordmark span{color:var(--accent)}
  .mobile-city{display:flex;flex-direction:column;text-align:right;gap:4px;font-size:12px}.mobile-city small{font-size:10px;color:#7c8279}
  main{padding:0 18px;max-width:none}main>.intro,main>footer{display:none}
  .mobile-home{display:block;padding:23px 0 15px}.mobile-home .eyebrow{font-size:9px;letter-spacing:1.8px;color:#6d7d68;margin:0 0 8px}.mobile-home h1{font-size:30px;letter-spacing:-1.1px;line-height:1.1;margin:0 0 18px}
  .mobile-search-row{display:flex;gap:9px}.mobile-search-trigger{display:flex;align-items:center;gap:10px;min-width:0;flex:1;height:57px;padding:10px 13px;border-radius:14px;border:1px solid #e0e3d9;background:#fffefa;text-align:left;box-shadow:0 3px 10px #29472b04}.mobile-search-trigger>span:first-child{display:grid;place-items:center;width:32px;height:32px;background:#f3e9dd;border-radius:10px;color:var(--accent);font-size:23px}.mobile-search-trigger>span:last-child{min-width:0;display:flex;flex-direction:column;gap:4px}.mobile-search-trigger strong{font-size:12px;font-weight:600}.mobile-search-trigger small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#818679;max-width:230px}
  .mobile-filter-trigger{position:relative;width:54px;min-height:54px;flex-shrink:0;border:1px solid #d9e0d2;border-radius:14px;background:#e9eedf;color:#3b5842;display:grid;place-items:center}.mobile-filter-trigger svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}.mobile-filter-trigger>span{position:absolute;right:3px;top:3px;background:#34734f;border-radius:50%;width:17px;height:17px;color:white;font-size:10px;line-height:17px}
  .mobile-install{align-items:center;gap:6px;border:0;background:none;font-size:10px;padding:12px 0 0;color:#6b7564;text-decoration:underline;text-underline-offset:3px}
  .mobile-nav{position:fixed;z-index:800;bottom:0;left:0;right:0;height:var(--mobile-nav-height);padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));align-items:stretch;justify-content:space-around;border-top:1px solid #e0e5d9;background:#fffefaee;backdrop-filter:blur(18px);gap:3px}
  .mobile-nav button{border:0;background:none;border-radius:12px;color:#7b8474;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;flex:1;font-size:10px;position:relative;min-height:48px;max-width:110px}.mobile-nav button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.mobile-nav button[aria-current=page]{background:#edf2e6;color:#305a3b;font-weight:600}.mobile-nav button small{position:absolute;top:4px;left:calc(50% + 10px);font-size:9px}
  .results-heading{margin:8px 0 12px;gap:8px;align-items:center;flex-wrap:nowrap}.results-heading .results-title-group{display:flex;gap:7px;align-items:baseline;min-width:0}.results-heading h2{font:600 16px Arial,sans-serif;letter-spacing:-.4px}.results-heading #result-count{font-size:10px;white-space:nowrap;padding:3px 5px}.results-heading .results-controls{width:auto;gap:0}.view-switch{display:none}.sort-label{font-size:0!important}.sort-label select{max-width:120px;font-size:10px;padding:8px 3px;min-height:40px;background:transparent}
  .value-catalog-note{font-size:10px;line-height:1.55;margin-bottom:14px;color:#7d8374}.ranking-legend{font-size:10px}
  #catalog-layout:not(.map-mode) .grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .card{border-radius:18px;box-shadow:0 3px 16px #24332206}.card .photo-wrap{aspect-ratio:1.55}.card .card-body{padding:15px 16px 16px;display:flex;flex-direction:column}.card .card-top{flex-direction:row;justify-content:space-between;align-items:center;gap:6px}.card .price{font-size:25px}.card .price small{font-size:10px}.card .card-room{font-size:11px}.card .card-title{font-size:14px;min-height:0;line-height:1.4;margin:9px 0 5px;order:1}.card .address{font-size:11px;min-height:0;margin:0 0 7px;order:2}.card .facts{order:3;font-size:11px}.card .tags{order:4}.card .card-reason{order:5}.card .value-badge{order:6;width:auto;align-self:flex-start;padding:6px 9px;margin-top:12px;gap:8px;border-radius:8px}.card .value-badge>strong{font-size:17px}.card .value-badge>span{font-size:10px}.card .value-badge span small{display:none}.card .heart{width:42px;height:42px;top:12px;right:12px;background:#fffefbea;font-size:25px}.card .photo-arrow{width:38px;height:44px;opacity:1}.card .photo-count{font-size:10px}.best-label{order:-1}
  body[data-mobile-screen=map] .mobile-home{padding:13px 0}body[data-mobile-screen=map] .mobile-home h1,body[data-mobile-screen=map] .mobile-home>.eyebrow,body[data-mobile-screen=map] .mobile-install{display:none}
  body[data-mobile-screen=map] .results-heading,body[data-mobile-screen=map] .value-catalog-note,body[data-mobile-screen=map] .ranking-legend,body[data-mobile-screen=map] #catalog-layout>div:first-child{display:none}
  body[data-mobile-screen=map] #catalog-layout.map-mode{display:block}
  body[data-mobile-screen=map] #map-panel{position:fixed;left:0;right:0;top:calc(151px + env(safe-area-inset-top,0px));bottom:var(--mobile-nav-height);border-radius:0;border:0;z-index:1}
  body[data-mobile-screen=map] #map{height:100%;min-height:0}.map-header{top:12px}.map-foot{max-width:calc(100% - 30px);font-size:9px}
  .mobile-sheet{padding:0!important;margin:auto 0 0;width:100%;max-width:none;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 16px);border:0;border-radius:24px 24px 0 0;background:#fffefa;overscroll-behavior:contain}
  .mobile-sheet::backdrop{background:#18291f70;backdrop-filter:blur(4px)}.mobile-sheet-heading{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:4;padding:19px 20px 12px;background:#fffefa;border-bottom:1px solid #e6e9df}.mobile-sheet-heading h2{font:600 19px Arial,sans-serif;margin:0;padding:0}.mobile-sheet-heading button{width:38px;height:38px;border:0;border-radius:50%;background:#eff2e8;font-size:24px}
  #mobile-search-content{padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px))}.mobile-sheet .wish-builder{display:flex;height:auto;flex-direction:column;border:0;box-shadow:none;border-radius:0;gap:18px;margin:0}.mobile-sheet .wish-builder .search-box{padding:0;min-height:260px;border:0;background:none}.mobile-sheet .search-field{min-height:190px}.mobile-sheet .search-field label{font-size:12px}.mobile-sheet .query-shell{min-height:160px}.mobile-sheet textarea{font-size:16px!important}.mobile-sheet .search-actions .primary{min-height:48px}.mobile-sheet .wish-options{padding:16px;background:#f1f4e9;border:0;border-radius:14px;height:380px;flex-shrink:0}.mobile-sheet .wish-options #wish-options-description{height:auto;min-height:22px}.mobile-sheet .wish-step{right:16px;top:16px}.mobile-sheet .profile-options button{font-size:12px;min-height:48px}.mobile-sheet .wish-filter-values button{min-height:38px}
  #mobile-filter-content{padding:8px 20px calc(24px + env(safe-area-inset-bottom,0px))}.mobile-sheet .toolbar{margin:0;border:0;padding:10px 0 0}.mobile-sheet .quick-filters{display:flex;flex-direction:column;align-items:stretch;gap:19px}.mobile-sheet .quick-filters label,.mobile-sheet .quick-filters legend,.mobile-sheet #extra-filters label,.mobile-sheet #extra-filters legend{font-size:12px}.mobile-sheet .quick-filters #all-filters{display:none}.mobile-sheet .quick-filters>#reset{align-self:flex-end;min-height:40px;font-size:12px}.mobile-sheet input,.mobile-sheet select{font-size:16px!important;min-height:46px}.mobile-sheet #extra-filters{display:block!important;border-top:1px solid #e3e8dc;margin-top:8px;padding-top:18px}.mobile-sheet .extra-filter-fields{display:flex;flex-direction:column;gap:18px}.mobile-sheet #apply-filters{width:100%;min-height:48px;margin-top:20px}.mobile-sheet #filter-error{font-size:12px;line-height:1.5}
  #detail{max-width:none;width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0;padding:22px 18px calc(24px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}#detail h2{font-size:23px;padding-right:40px}#detail .close{position:sticky;float:right;top:0;right:0;z-index:6;width:42px;height:42px}.detail-carousel{margin-left:-18px;margin-right:-18px;border-radius:0;aspect-ratio:1.2;max-height:400px}.detail-link{display:flex;justify-content:center;min-height:48px}.value-detail{padding:14px}.value-heading h3{font-size:15px}.value-total{font-size:26px}.rating-method summary{min-height:44px;padding-top:10px}
  .auth-dialog{border-radius:22px;max-height:90dvh}.auth-dialog input,.account-dialog input,.account-dialog textarea,.account-dialog select{font-size:16px}.account-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding-bottom:env(safe-area-inset-bottom,0px)}.account-actions button{min-height:44px}.account-sidebar nav button{min-height:42px}
  .toast{bottom:calc(var(--mobile-nav-height) + 12px);z-index:900}.mobile-offline{padding:10px 18px;background:#f4e4c9;color:#75512e;font-size:12px;margin:0;line-height:1.5}
  #install-help{padding:25px;max-width:380px}#install-help h2{font-size:22px}#install-help p{font-size:13px;line-height:1.7}#install-help .primary{width:100%;min-height:46px}
}
@media(prefers-reduced-motion:reduce){.mobile-nav button,.mobile-sheet{transition:none}}
@media(max-width:760px){.results-heading .results-title-group{flex-direction:column;align-items:flex-start;gap:4px;flex:1}.results-heading h2{white-space:nowrap}.results-heading #result-count{background:none;padding:0;font-size:10px}.results-heading .results-controls{flex-shrink:0}}
@media(max-width:760px){body[data-mobile-screen=map] #map-panel{height:calc(100dvh - 151px - env(safe-area-inset-top,0px) - var(--mobile-nav-height))}}
