/* Responsive additions; desktop layout stays in the existing stylesheet. */
.garage-bottom-nav{display:none}
@media(max-width:767px){
  .garage-app{width:100%;min-width:0;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .garage-app main,.garage-app section,.garage-app article,.garage-app .grid>*,.garage-app .flex-1{min-width:0}
  .garage-app h1,.garage-app h2,.garage-app h3,.garage-app p{overflow-wrap:anywhere}
  .garage-app main>div:not(.garage-home){padding-top:20px;padding-bottom:24px}
  .garage-app main h1{font-size:25px;line-height:1.3}
  .garage-app main h2{font-size:21px;line-height:1.35}
  .garage-app input:not([type=checkbox]):not([type=radio]):not([type=file]),.garage-app select,.garage-app textarea{font-size:16px;max-width:100%;min-width:0}
  .garage-app input:not([type=checkbox]):not([type=radio]),.garage-app select{min-height:44px}
  .garage-app textarea{min-height:100px}
  .garage-app button{touch-action:manipulation}
  .garage-app main button,.garage-mobile-menu button{min-height:40px}
  .garage-app button:focus-visible,.garage-app a:focus-visible{outline:2px solid #c46c4c;outline-offset:3px}
  .garage-announcement,.garage-guest-actions,.garage-account-menu{display:none!important}
  .garage-header{padding-top:env(safe-area-inset-top,0px);backdrop-filter:none;background:#fff}
  .garage-header-row{height:62px;gap:8px}
  .garage-header>.max-w-7xl{padding-left:14px;padding-right:14px}
  .garage-header-brand{gap:7px;min-width:0;flex-shrink:1}
  .garage-header-brand>img{width:31px;height:38px}
  .garage-header-brand .text-xl{font-size:15px;line-height:1.2;white-space:nowrap}
  .garage-header-brand [class~="text-[10px]"]{font-size:8px;letter-spacing:.12em;margin-top:3px}
  .garage-header button[aria-label="Menüyü aç"],.garage-header button[aria-label="Menüyü kapat"]{width:42px;height:42px;display:flex;align-items:center;justify-content:center}
  .garage-header-popover{position:fixed!important;top:calc(68px + env(safe-area-inset-top,0px));left:12px;right:12px;width:auto!important;max-width:none!important;margin-top:0!important;max-height:calc(100dvh - 160px);overflow-y:auto}
  .garage-mobile-menu{max-height:calc(100dvh - 150px - env(safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain;padding:14px}
  .garage-bottom-nav{position:fixed;z-index:45;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));border-top:1px solid #ead9cd;background:#fff;box-shadow:0 -4px 20px #58342c08}
  .garage-bottom-item{border:0;background:transparent;color:#7b6863;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:48px;font-size:10px;font-weight:700;line-height:1.2;border-radius:12px}
  .garage-bottom-item.is-active{color:#79391f;background:#f8eee7}
  .garage-bottom-icon{position:relative;display:flex;align-items:center;justify-content:center;min-width:26px;min-height:24px}
  .garage-bottom-item.is-create .garage-bottom-icon{width:34px;height:28px;border-radius:9px;background:#c46c4c;color:white}
  .garage-bottom-badge{position:absolute;top:-5px;right:-10px;min-width:16px;height:16px;padding:1px 3px;border-radius:9px;background:#c46c4c;color:white;font-size:9px;line-height:14px}
  .garage-home{padding-bottom:12px}
  .garage-home>:not(:last-child){margin-bottom:34px}
  .garage-home>section{margin-top:0!important}
  .garage-home>section:first-child{padding-top:26px;padding-bottom:24px}
  .garage-home>section:first-child h1{font-size:29px;line-height:1.23;letter-spacing:-.8px}
  .garage-home>section:first-child h1 span{text-decoration-thickness:2px;text-underline-offset:5px}
  .garage-home>section:first-child p{font-size:14px;line-height:1.7;margin-top:16px}
  .garage-home>section:first-child .rounded-full{font-size:10px;padding:6px 10px;gap:5px;margin-bottom:18px;max-width:100%;flex-wrap:wrap;justify-content:center}
  .garage-home>section:first-child .rounded-full>span:nth-last-child(-n+2){display:none}
  .garage-home>section:first-child .mt-8{margin-top:22px;gap:10px}
  .garage-home>section:first-child .mt-8>button{min-height:48px;padding-top:12px;padding-bottom:12px}
  .garage-home>section:first-child .mt-12{margin-top:24px}
  .garage-home>section:first-child .pt-8{padding-top:20px}
  .garage-home>section>.flex.items-end{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:16px}
  .garage-home section>.flex button{flex-shrink:0}
  .garage-home>section:last-child>div{padding:24px 20px;border-radius:20px}
  .garage-listing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .garage-listing-card{border-radius:14px;min-width:0}
  .garage-listing-card .garage-card-image{aspect-ratio:1/1}
  .garage-listing-card .garage-card-image img{object-fit:contain}
  .garage-card-image>.absolute:first-of-type{max-width:calc(100% - 48px);left:7px;top:7px}
  .garage-card-image .absolute.items-start>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;padding:3px 5px}
  .garage-card-image>button{width:36px;height:36px;min-height:36px!important;right:6px;top:6px;display:flex;justify-content:center;align-items:center}
  .garage-listing-card>div:last-child{padding:10px}
  .garage-listing-card h3{font-size:13px;line-height:1.35}
  .garage-card-price{flex-direction:column;align-items:flex-start;gap:5px}
  .garage-card-price>div:first-child,.garage-card-price>div:first-child>div{flex-wrap:wrap;row-gap:3px}
  .garage-card-price .text-base{font-size:16px}
  .garage-listing-card>div:last-child>div:last-child{gap:4px}
  .garage-listing-card>div:last-child>div:last-child button{padding:8px;min-width:36px;min-height:36px}
  .garage-listing-card button[title="Detaylı İncele"]>span{display:none}
  .garage-market-tabs{width:100%;gap:4px;padding:5px}
  .garage-market-tabs button{flex:1;justify-content:center;padding-left:6px;padding-right:6px;font-size:12px}
  .garage-filter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
  .garage-filter-row>select{width:100%}
  .garage-market[data-filters-open="false"] .garage-filter-row>select{display:none}
  .garage-filter-row>div{min-width:0;display:flex}
  .garage-filter-row>div select{width:100%;font-size:14px}
  .garage-filter-row>button{justify-content:center}
  .garage-garages>.grid{gap:16px}
  .garage-garages>.grid>div{padding:18px;border-radius:20px}
  .garage-app[data-view="profile"] main .h-48{height:140px}
  .garage-app[data-view="profile"] main .p-6{padding:18px}
  .garage-app[data-view="profile"] main .flex.flex-wrap{row-gap:10px}
  .garage-footer{margin-top:28px}
  .garage-footer>div{padding-top:28px;padding-bottom:24px}
  .garage-footer .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
  .garage-footer .grid>div:first-child{grid-column:1/-1}
  .garage-modal-overlay{padding:12px!important;align-items:center!important;overflow-y:auto;overscroll-behavior:contain}
  .garage-modal-overlay>div{max-width:100%!important;width:100%;max-height:calc(var(--garage-viewport-height,100dvh) - 24px)!important;min-height:0;overflow-y:auto;border-radius:20px!important;overscroll-behavior:contain}
  .garage-modal-overlay .p-6,.garage-modal-overlay .p-8{padding:20px}
  .garage-modal-overlay .gap-8{gap:20px}
  .garage-modal-overlay [class~="min-w-[300px]"]{min-width:0}
  .garage-modal-overlay button{min-height:42px}
  .garage-modal-overlay input[maxlength="1"]{width:calc((100vw - 132px)/6);max-width:44px;min-width:24px;height:48px;font-size:20px!important;padding:0}
  .garage-chat-page{padding:14px!important}
  .garage-chat-page h1{font-size:22px!important}
  .garage-chat-layout{height:calc(var(--garage-viewport-height,100dvh) - 270px)!important;max-height:none!important;min-height:280px!important;border-radius:18px}
  .garage-chat-layout>div{min-width:0}
  .garage-message-bubble{max-width:88%;overflow-wrap:anywhere;white-space:pre-wrap;font-size:14px!important}
  .garage-chat-composer{padding:10px;gap:8px}
  .garage-chat-composer input{padding-left:12px;padding-right:12px}
  .garage-chat-composer button{width:44px;height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
  .garage-app[data-view="messages"] .garage-footer{display:none}
  .garage-app[data-view="messages"][data-chat-open="true"]{padding-bottom:0}
  .garage-app[data-view="messages"][data-chat-open="true"] .garage-chat-page{padding:0!important}
  .garage-app[data-chat-open="true"] .garage-chat-page>div:not(.garage-chat-layout):not([role="alert"]){display:none}
  .garage-app[data-chat-open="true"] .garage-chat-layout{height:calc(var(--garage-viewport-height,100dvh) - 62px - env(safe-area-inset-top,0px))!important;min-height:0!important;border:0;border-radius:0}
  .garage-app[data-chat-open="true"] .garage-chat-composer{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:359px){
  .garage-listing-grid{grid-template-columns:minmax(0,1fr)}
  .garage-listing-card .garage-card-image{aspect-ratio:4/3}
  .garage-header-brand .text-xl{font-size:13px}
  .garage-header-brand>img{width:26px}
  .garage-bottom-item{font-size:9px}
}
@media(min-width:768px) and (max-width:1023px){
 .garage-header-row{gap:12px}
 .garage-header-brand .text-xl{font-size:17px}
 .garage-header-popover{max-width:calc(100vw - 32px)}
}
