/* PISOMI 2026: accessible touch navigation, safe-area dialogs, reduced motion. */
@media(max-width:750px){
  .tenant-mobile-nav a,.pisomi-admin-phone-nav a{min-height:48px;touch-action:manipulation;}
  .tenant-app-user main{padding-bottom:calc(108px + env(safe-area-inset-bottom));}
  .admin-body .admin-content{padding-bottom:calc(95px + env(safe-area-inset-bottom));}
  .admin-body input,.admin-body textarea,.admin-body select,
  .tenant-app-user input,.tenant-app-user textarea,.tenant-app-user select{font-size:max(16px,1rem);}
  .admin-body .panel,.tenant-app-user .panel{max-width:100%;min-width:0;}
  .admin-body .table-wrap,.tenant-app-user .table-wrap{overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;}
  .admin-body :is(.btn,button,summary),.tenant-app-user :is(.btn,button,summary){touch-action:manipulation;}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}

/* 2026-11: public listing and booking usability on small screens. */
@media (max-width: 750px) {
  .book-page, .book-grid, .book-form, .book-summary { min-width: 0; max-width: 100%; }
  .book-page { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
  .book-page :is(input:not([type="checkbox"]), select, textarea) { font-size: 16px; max-width: 100%; }
  .book-page :is(button, .btn, input:not([type="hidden"]), select) { min-height: 44px; }
  .book-page .p12-submit { min-height: 52px; white-space: normal; }
  .book-page :is(.field, .book-review, .summary-list, .bs-card) { min-width: 0; }
  .book-page :is(.summary-list dd, .book-review dd) { overflow-wrap: anywhere; }
  .book-page #details, .pp-side#booking { scroll-margin-top: 92px; }
  .mobile-book { gap: 10px; padding-inline: max(12px, env(safe-area-inset-left)); }
  .mobile-book > div { min-width: 0; flex: 1 1 auto; }
  .mobile-book > div strong { display: block; overflow: hidden; text-overflow: ellipsis; }
  .mobile-book .btn { min-height: 46px; flex: 0 0 auto; max-width: 55%; white-space: normal; }
}
@media(max-width:380px) {
  .mobile-book { gap: 8px; }
  .mobile-book .btn { padding-inline: 10px; font-size: 0.86rem; min-width: 118px; }
}

/* Public browse: no filter rail or saved-search bar on small screens, including Android. */
@media(max-width:980px), (pointer:coarse) and (max-width:1200px){
 body:not(.admin-body) form.filters-bar,
 body:not(.admin-body) .pisomi-saved-searches,
 body:not(.admin-body) .cat-row-sec{display:none!important;}
 body:not(.admin-body) .results-layout .map-panel{top:var(--header-h);}
 body:not(.admin-body) .hero .searchbar{grid-template-columns:minmax(0,1fr) auto;gap:6px;}
 body:not(.admin-body) .hero .searchbar .sb-field:first-child{grid-column:auto;}
 body:not(.admin-body) .hero .searchbar .sb-field:not(:first-child){display:none!important;}
 body:not(.admin-body) .hero .searchbar .btn{grid-column:auto;min-height:48px;padding-inline:14px;}
 body:not(.admin-body) .hero .searchbar input{font-size:16px;}
}
/* Only the account lookup and separate section headings, no shared admin styling. */
.pisomi-account-simple{padding-top:clamp(24px,5vw,48px);padding-bottom:48px;}
.pisomi-account-lookup{max-width:560px;margin:0 auto;scroll-margin-top:calc(var(--header-h) + 16px);}
.pisomi-account-lookup h1,.pisomi-account-section-head h1{font-size:clamp(1.5rem,3vw,2rem);margin:0 0 20px;}
.pisomi-account-lookup label{display:block;font-weight:650;margin-bottom:8px;}
.pisomi-lookup-row{display:flex;gap:10px;align-items:stretch;}
.pisomi-lookup-row .input{min-width:0;flex:1;width:100%;min-height:48px;font-size:16px;}
.pisomi-lookup-row .btn{min-height:48px;flex-shrink:0;touch-action:manipulation;}
.pisomi-account-lookup form>p{margin-top:10px;}
.pisomi-account-section-head{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px;}
.pisomi-account-section-head h1{margin:0;flex:1 1 220px;}
@media(max-width:520px){.pisomi-lookup-row{flex-direction:column;}.pisomi-lookup-row .btn{width:100%;justify-content:center;}.pisomi-account-simple{padding-bottom:calc(96px + env(safe-area-inset-bottom));}}
@media(pointer:coarse){
 body:not(.admin-body) :is(a[href],button,summary,input[type=submit],input[type=button],select){touch-action:manipulation;}
 body:not(.admin-body) .pcard-nav{opacity:1;}
 body:not(.admin-body) .pcard-track{touch-action:pan-y pinch-zoom;}
}
.pisomi-map-status{padding:16px;text-align:center;color:var(--muted);}
