/* Shared mobile layout and progressive browser fallbacks. */
@font-face{font-family:Vazirmatn;src:url('./fonts/Vazirmatn-Variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@font-face{font-family:Tajawal;src:local('Tajawal'),url('./fonts/Tajawal-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Tajawal;src:local('Tajawal Bold'),url('./fonts/Tajawal-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
html[lang=ar]{--arabic-font:Tajawal,"Segoe UI",Tahoma,Arial,sans-serif}
html[lang=ar] body,html[lang=ar] input,html[lang=ar] select,html[lang=ar] textarea,html[lang=ar] button{font-family:var(--arabic-font)}
html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3,html[lang=ar] .eyebrow,html[lang=ar] .intro-label{letter-spacing:normal;line-height:1.55}
html[lang=ar] h1 em,html[lang=ar] h2 em{font-family:inherit;font-style:normal}
html[lang=ar] .message-preview{font-family:var(--arabic-font)}
html[lang=fa]{--persian-font:Vazirmatn,Tahoma,Arial,sans-serif}
html[lang=fa] body,html[lang=fa] input,html[lang=fa] select,html[lang=fa] textarea,html[lang=fa] button{font-family:var(--persian-font)}
html[lang=fa] h1,html[lang=fa] h2,html[lang=fa] h3,html[lang=fa] .eyebrow,html[lang=fa] .intro-label{letter-spacing:normal;line-height:1.55}
html[lang=fa] h1 em,html[lang=fa] h2 em{font-family:inherit;font-style:normal}
body{overflow-wrap:break-word}img,svg,video{max-width:100%}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,.button,summary{touch-action:manipulation}
.container,.wrap{min-width:0}.panel,section,aside,form,.fields,.fields>*,.booking-layout>*,.car-content,.listing-card,.table-wrap,.comparison-scroll,.translation-row{min-width:0;max-width:100%}
.booking-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.booking-layout.vehicle-detail>aside{position:static}
.summary dd{margin-inline-start:0;overflow-wrap:anywhere}.message-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.page-title,h1,h2,h3{overflow-wrap:break-word}
.table-wrap,.comparison-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.table-wrap:focus,.comparison-scroll:focus{outline:2px solid var(--blue);outline-offset:3px}
.site-header{gap:16px}.site-header nav{min-width:0}.site-header .languages{flex-shrink:0}.nav-toggle{display:none}
.site-header .languages a{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.pagination{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.pagination a,.back{min-height:44px;display:inline-flex;align-items:center}
.photo-backdrop{position:fixed;inset:0;z-index:199;background:#091422cc}dialog:not([open]){display:none}#photo-viewer.dialog-fallback[open]{display:block;position:fixed;z-index:200;inset:3vh 2vw auto;margin:auto}
#photo-viewer{max-height:94vh;max-height:94dvh}.viewer-stage>img{height:58vh;height:58dvh}.viewer-stage{min-height:180px}.viewer-thumbnails button,.remove-compare{min-width:44px;min-height:44px}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:1100px){.site-header{flex-wrap:wrap;padding-inline:24px}.site-header nav{flex-wrap:wrap;gap:12px}.site-header .logo{margin-inline-end:auto}}
@media(max-width:900px){.booking-layout{grid-template-columns:minmax(0,1fr)}.booking-layout>aside{position:static}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.home .listing-card{grid-template-columns:minmax(0,220px) minmax(0,1fr)}}
@media(max-width:800px){
 .site-header{padding:10px 16px;gap:8px;align-items:center}.site-header .logo{font-size:20px}.site-header .logo img{width:36px;height:auto}.site-header .languages{width:auto;order:2;gap:2px}.site-header .languages a{font-size:12px;padding:5px;min-width:40px;min-height:44px}
 .site-header nav,.site-header.admin-header nav{order:3;flex:1 1 100%;width:100%;display:flex;flex-wrap:wrap;max-height:60vh;overflow-y:auto;padding:8px 0;gap:8px}
 .site-header nav>a,.site-header.admin-header nav>a{display:inline-flex!important;align-items:center;min-height:44px;padding:8px 12px;white-space:normal}.site-header nav form{margin:0}
 .site-header.js-navigation .nav-toggle{display:inline-flex;order:1;min-height:44px;padding:8px 12px;font-size:14px}.site-header.js-navigation:not(.nav-open) nav{display:none}
 .site-header.js-navigation.nav-open nav{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap}.site-header.nav-open nav form button{width:100%}
 .filters{display:flex;flex-wrap:wrap;gap:12px}.filters>label{flex:1 1 180px;min-width:0}.filters>button{align-self:end;margin-bottom:15px}
 input,select,textarea{font-size:16px!important;line-height:1.5;min-height:44px}label{font-size:14px}.home-search-fields>label{font-size:13px}.home-search-fields input{font-size:16px!important}
 .button,button{min-height:44px}.check{min-height:44px}.lookup-filter>summary{min-height:48px}.lookup-filter .check{font-size:14px;min-height:44px}.clear-lookup,.close-filter{min-height:44px}.lookup-search{min-height:44px}
 .intro-copy>p,.how-steps p,.home-faq p,.service-banner p{font-size:14px}.home .car-content .car-specs,.listing-location,.home .card-bottom p{font-size:13px;line-height:1.7}
 .home .card-bottom .button{font-size:14px}.compare-check{min-height:44px!important;font-size:13px!important}.compare-tray{bottom:calc(12px + env(safe-area-inset-bottom,0px));max-height:45vh;overflow:auto}.compare-item button{min-width:44px;min-height:44px}
 .mobile-book{bottom:calc(12px + env(safe-area-inset-bottom,0px));min-height:48px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-specs{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:550px){
 .container,.wrap{padding-inline:16px}.panel{padding:18px}.site-header .logo{flex:1 1 auto}.site-header .languages{flex-basis:100%;justify-content:center}.site-header.nav-open .languages{order:2}
 .home .listing-card{display:block}.home .listing-card .card-bottom{flex-wrap:wrap;gap:12px}.home .listing-card .card-bottom>.button{width:100%}.listing-top{flex-wrap:wrap;gap:8px}.home .listing-card .car-content{padding:16px}
 .fields,.fields.two,.two{grid-template-columns:minmax(0,1fr)}.home-search-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.home-search-fields>label,.home-search-fields>button{width:100%;flex:auto}.home-search-fields input{width:100%;min-width:0}.home-search-fields>label{border:0;padding:0}.search-heading{align-items:start;gap:8px;flex-wrap:wrap}.search-heading .check{font-size:12px}
 .catalog-filter-bar.filters-open{z-index:60}.filter-options{top:12px;top:calc(12px + env(safe-area-inset-top,0px));inset-inline:12px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:16px;overscroll-behavior:contain}.price-options{width:auto}
 .catalog-filter-bar .sort-control{justify-content:start;flex-wrap:wrap}.sort-control select{max-width:100%}.catalog-filter-bar>.quiet-link{min-height:44px;display:inline-flex;align-items:center}.catalog-filter-bar>.lookup-filter{min-width:0;flex-basis:calc(50% - 8px)}
 .stats{grid-template-columns:minmax(0,1fr)}.stats .panel{padding:16px}.summary{grid-template-columns:minmax(0,1fr)}.summary dd{margin-bottom:12px}.photo-grid{grid-template-columns:minmax(0,1fr)}.photo-grid form{flex-wrap:wrap}.admin-title .button{flex:1 1 140px;font-size:14px}
 .compare-picker{padding:16px}.comparison-reference{min-width:660px}.compare-tools{align-items:start;gap:10px}.compare-tools .check{font-size:14px}.viewer-stage>img{height:44vh;height:44dvh}.viewer-header{flex-wrap:wrap}.viewer-header h2{flex:1;min-width:0}.viewer-info strong{font-size:21px}.gallery-primary img{min-height:215px}.gallery-previews{min-width:0}.gallery-mosaic{grid-template-columns:minmax(0,2fr) minmax(86px,1fr)}
 .home-final{margin-inline:16px}.service-banner{margin-inline:16px}.home .intro-copy h1{font-size:36px}.home .home-section-title h2{font-size:28px}.home-section-title{flex-wrap:wrap;gap:10px}footer{padding-bottom:calc(85px + env(safe-area-inset-bottom,0px))}
}
@media(max-height:500px) and (orientation:landscape){.site-header{position:relative}#photo-viewer{max-height:96vh;max-height:96dvh}.viewer-stage>img{height:45vh;height:45dvh}.viewer-info{display:none}.viewer-body{grid-template-columns:minmax(0,1fr)}.viewer-thumbnails img{height:44px}.viewer-thumbnails button{min-height:44px}.viewer-stage{min-height:120px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:800px){footer a{display:inline-flex;align-items:center;min-height:44px}.message-preview{font-size:14px}.lookup-list summary{min-height:44px;padding-block:10px}.translation-row textarea{line-height:1.8}}
html[lang=fa] .message-preview{font-family:var(--persian-font)}
