/* Bound grid children and long native controls at their source. */
html,body{min-width:0;max-width:100%}
#app,.site-header,.booking-entry,.booking-entry-inner,.booking-controls,.hero,.hero-inner,.detail-copy,.stay-info,.stay-card,.stay-search-form{min-width:0;max-width:100%;box-sizing:border-box}
.booking-controls>*,.cards>*,.detail-layout>*,.site-header>*{min-width:0}
#app .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
#app input,#app select,#app textarea{max-width:100%;min-width:0;box-sizing:border-box}
#app .hero-inner,#app .detail-copy,#app .stay-info{overflow-wrap:anywhere}
.bar-dates summary{min-width:0;max-width:100%}
.bar-date-value,.bar-selected-value{min-width:0;max-width:100%}
html.maqam-phone body{width:100%;max-width:var(--maqam-phone-width,100%);margin-inline:auto}
html.maqam-phone .desktop-nav,html.maqam-phone .desktop-action{display:none!important}
html.maqam-phone .site-header{height:auto;min-height:70px;padding:14px 16px;gap:12px;justify-content:space-between}
html.maqam-phone .brand{font-size:26px}
html.maqam-phone .header-actions{gap:10px;flex-shrink:1}
html.maqam-phone .header-link span,html.maqam-phone .partner-entry span{display:none}
html.maqam-phone .menu-btn{display:block;min-width:32px;border:0;background:transparent;font-size:24px;padding:4px}
html.maqam-phone .mobile-nav.open{display:flex;position:relative;top:auto;inset-inline:auto;width:100%;flex-direction:column;padding:15px 5%;background:white}
html.maqam-phone .topline{padding-inline:16px;gap:12px;font-size:11px;flex-wrap:wrap}
html.maqam-phone #app .cards,html.maqam-phone #app .detail-layout,html.maqam-phone #app .owner-layout,html.maqam-phone #app .story-grid,html.maqam-phone #app .editorial{grid-template-columns:minmax(0,1fr)}
html.maqam-phone .hero{min-height:55dvh}
html.maqam-phone .hero-inner{width:90%;padding:42px 0 80px}
html.maqam-phone .hero h1{font-size:38px;max-width:100%}
html.maqam-phone .hero p{font-size:16px;max-width:100%;line-height:1.9}
html.maqam-phone .hero-note{display:none}
html.maqam-phone .booking-entry.ux-floating-search{padding:10px 12px;margin:0}
html.maqam-phone .ux-floating-search .booking-entry-inner{width:100%;padding:12px!important}
html.maqam-phone #app #searchForm.ux-bar-search .booking-controls{width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,.7fr) minmax(48px,auto)!important}
html.maqam-phone #app #searchForm.ux-bar-search .booking-controls>label,html.maqam-phone .bar-dates summary{padding:7px 6px!important;font-size:13px}
html.maqam-phone .bar-selected-value,html.maqam-phone .bar-date-value{font-size:14px}
html.maqam-phone #app #searchForm.ux-bar-search .booking-go{padding:12px 8px!important;margin:0 3px!important;font-size:14px!important;white-space:nowrap}
html.maqam-phone .booking-box{position:static;width:100%}
html.maqam-phone .footer-top{grid-template-columns:minmax(0,1fr)}
html.maqam-phone .footer-bottom{flex-direction:column}
html.maqam-phone nav.maqam-bottom-tabs{display:grid;grid-template-columns:repeat(var(--maqam-tab-count,2),minmax(0,1fr));position:fixed;inset-inline:12px;bottom:18px;max-width:calc(var(--maqam-phone-width,100%) - 24px);margin:0 auto;padding:8px 12px calc(12px + env(safe-area-inset-bottom));border:1px solid #cad7c8;border-radius:18px;background:#203d30;z-index:50;gap:3px}
html.maqam-phone nav.maqam-bottom-tabs a{min-width:0;min-height:48px;padding:12px 4px;font-size:14px;white-space:nowrap;color:white;text-align:center;display:flex;align-items:center;justify-content:center}
html.maqam-phone .footer{padding-bottom:calc(150px + env(safe-area-inset-bottom))}
@media(max-width:650px){#app .cards{grid-template-columns:minmax(0,1fr)}.site-header{padding-inline:16px}.booking-entry-inner{width:100%;min-width:0}.bar-date-options{max-width:100%;min-width:0}}

nav.maqam-bottom-tabs{grid-template-columns:repeat(var(--maqam-tab-count,2),minmax(0,1fr))!important}

.stay-result-filters{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.stay-result-filters label{display:grid;gap:6px;flex:1 1 130px}.stay-result-filters input,.stay-result-filters select{min-width:0;width:100%;padding:12px;border:1px solid #c6d0c8;border-radius:12px;background:white;color:#263b32}.stay-live-price{margin:0 0 24px;font-weight:600}

/* Keep native controls within their actual grid/flex cells, including iOS Safari. */
:where(.ps,.host-portal,.property-reservation-page,.admin-shell) :where(form,fieldset,label){min-inline-size:0;max-inline-size:100%;box-sizing:border-box}
:where(.ps,.host-portal,.property-reservation-page,.admin-shell) :where(input:not([type=checkbox]):not([type=radio]),select,textarea){min-inline-size:0;max-inline-size:100%;box-sizing:border-box}
:where(.ps,.host-portal,.property-reservation-page,.admin-shell) :where(input[type=date],input[type=month],input[type=time],input[type=datetime-local]){display:block;inline-size:100%;min-inline-size:0;max-inline-size:100%;-webkit-appearance:none;appearance:none;font-size:16px}
:where(.ps,.host-portal,.property-reservation-page,.admin-shell) input::-webkit-date-and-time-value{min-width:0;text-align:start}
:where(.ps,.host-portal,.property-reservation-page) :where(h1,h2,h3,p,small,a){overflow-wrap:break-word}
:where(.ps,.host-portal,.property-reservation-page) :where(img,video){max-inline-size:100%}
.host-body,.host-shell,.partner-workspace,.pricing-page,.reserve-card,.reserve-fields>*{min-width:0;max-width:100%;box-sizing:border-box}
:where(.admin-form,.pricing-edit,.reserve-fields,.bank-certificate-fields)>*{min-width:0}
@media(max-width:650px){.host-body .form-grid{grid-template-columns:minmax(0,1fr)}.host-body .admin-panel-head{flex-wrap:wrap}.host-body .admin-panel-head>*{min-width:0;max-width:100%}.host-body .pricing-form-actions{flex-wrap:wrap}.property-reservation-page .reserve-actions>*{min-width:0;flex-basis:100%}}
