@media (max-width: 991px) {
  .mas-compact-header { padding: 6px 0; border-top: 3px solid #a12020; background: #fffdf9; }
  .mas-compact-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; }
  .mas-compact-row .mas-logo-box { flex: 0 1 188px; min-width: 0; height: 57px; }
  .mas-header-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
  .mas-header-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 9px; border: 1px solid #d9cec3; border-radius: 8px; color: #251f1b !important; font: 700 12px/1 system-ui,sans-serif; text-decoration: none !important; }
  .mas-header-actions .mas-header-join { background: #a72522; color: white !important; border-color: #a72522; }
  .mas-header-links { display: flex; flex-wrap: wrap; gap: 3px 16px; align-items: center; margin-top: 1px; padding-bottom: 1px; }
  .mas-header-links a { display: inline-flex; align-items: center; min-height: 34px; color: #53443b; font: 700 12px/1.15 system-ui,sans-serif; }
  .mas-mobile-search { margin: 0; background: #f5f2ed; padding-block: 7px; }
  .mas-mobile-search .mas-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
  .mas-mobile-search input { width: 100%; height: 42px; padding: 0 9px; font: 500 16px/1 system-ui,sans-serif; border: 1px solid #ddd2c6; border-radius: 6px; background: #fffdf9; }
  .mas-mobile-search button { min-height: 42px; padding-inline: 10px; border: 1px solid #d7ccc1; border-radius: 6px; background: #fffdf9; color: #342a22; font-weight: 750; }
  .mas-home .mas-mobile-search { display: none; }

  .mas-mobile-promoted { width: min(700px,calc(100% - 24px)); margin: 14px auto 0; display: grid; gap: 8px; }
  .mas-mobile-promoted .bilesen { margin: 0 !important; padding: 0 !important; border: 0; background: none; }
  .mas-mobile-promoted .bilesen > .baslik { display: none !important; }
  .mas-mobile-promoted [data-mas-promotion] .mas-native-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .mas-mobile-promoted [data-mas-promotion=urgent] .mas-native-grid { grid-template-columns: minmax(0,1fr); }
  .mas-mobile-promoted .mas-live-card .liste { position: relative; padding: 0 !important; min-height: 0; box-shadow: none; }
  .mas-mobile-promoted [data-mas-promotion=urgent] .mas-live-card .liste { display: grid; grid-template-columns: 44% minmax(0,1fr); grid-template-rows: auto 1fr auto; background: #511b19; color:#fff4ec; }
  .mas-mobile-promoted [data-mas-promotion=urgent] .r_ust { grid-row: 1 / 4; min-height: 122px; }
  .mas-mobile-promoted [data-mas-promotion=urgent] .r_ust img { height: 100%; min-height:122px; object-fit:cover; position: absolute; inset: 0; }
  .mas-mobile-promoted [data-mas-promotion=urgent] .mas-live-price { margin-top: 13px; }
  .mas-mobile-promoted [data-mas-promotion=showcase] .mas-live-card .liste { background: #fff4d9; }
  .mas-mobile-promoted [data-mas-promotion=showcase] .r_ust img { aspect-ratio: 2; }
  .mas-mobile-promoted .mas-live-card .liste h3 { margin: 6px 10px 10px !important; min-height: 0; font: 750 13px/1.2 system-ui,sans-serif; }
  .mas-mobile-promoted .mas-live-card .liste h3 a { color: inherit !important; }
  .mas-mobile-promoted .mas-live-price { font-size: 17px; }
  .mas-mobile-promoted .mas-promo-tag { top: 6px; left: 6px; padding: 4px 6px; font: 750 11px/1 system-ui,sans-serif; }
  .mas-mobile-promoted .mas-promotion-controls { margin-bottom: 3px; }
  .mas-home .mas-native-grid:not(.mas-mobile-promoted *) .mas-live-card h3 { font-size: 12px; }

  .mas-shell .auth-page .auth-brand { display: none; }
  .mas-shell .auth-page { display: block; min-height: 0; padding: 0; background: #f5f2ed; }
  .mas-shell .auth-form-panel { padding: 12px; }
  .mas-shell .auth-card { width: min(100%,520px); max-width: 520px; padding: clamp(15px,5vw,27px); border-radius: 14px; box-shadow: 0 9px 24px #331b1110; }
  .mas-shell .auth-card .auth-sub { color: #64584c; line-height: 1.5; margin-bottom: 18px; }
  .mas-shell .auth-card .auth-field input:not([type=checkbox]):not([type=radio]) { min-height: 48px; background: #fff; }
  .mas-shell .auth-card .auth-submit { min-height: 49px; border-radius: 8px; background: #a72522; font: 750 16px/1.2 system-ui,sans-serif; }
  .mas-shell .auth-card .auth-bottom { color:#665a4d; }
  .mas-selling { width: min(100% - 24px, 720px); margin: 0 auto; }
  .mas-selling .form-control { min-height: 43px; max-width: 100%; font-size: 16px; }
  .mas-selling .panel { border-radius: 10px; border-color: #e1d8cc; }
  .mas-selling .panel-heading { font-weight: 750; color: #393029; white-space: normal; }

  .mas-detail { width: min(100%, 760px); padding-inline: 12px; }
  .mas-detail .ustilanbosluk { margin: 0 !important; }
  .mas-detail .ustilanbosluk > [class*="col-md-"] { width: 100%; padding: 0; float: none !important; }
  .mas-detail #tekilangaleri { min-width: 0; padding: 0; }
  .mas-detail .ilanbasligi { background:#fffdf9; border:1px solid #e4d9ce; border-radius:12px; padding:14px 12px 10px; margin-bottom:8px; }
  .mas-detail .ilanbasligi h1 { color:#231d19; margin:0 0 8px; font:800 clamp(19px,5.1vw,29px)/1.12 Arial,sans-serif; overflow-wrap:anywhere; }
  .mas-detail .ilanbaslikalti { color: #5f5148; font-size: 12px; line-height: 1.5; }
  .mas-gallery { position: relative; margin: 0 0 10px; border: 1px solid #e1d9cf; border-radius: 12px; overflow: hidden; background: #211d1a; }
  .mas-gallery-track { display:flex; align-items:stretch; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width: none; }
  .mas-gallery-track::-webkit-scrollbar { display:none; }
  .mas-gallery-track img { display:block; flex:0 0 100%; width:100%; aspect-ratio:4/3; object-fit:contain; scroll-snap-align:start; }
  .mas-gallery-tools { position:absolute; inset:auto 8px 8px; display:flex; align-items:center; justify-content:space-between; pointer-events:none; }
  .mas-gallery-tools button,.mas-gallery-tools span { color:#fff; border:1px solid #ffffff77; border-radius:7px; background:#221b18df; }
  .mas-gallery-tools button { pointer-events:auto; width:40px; height:40px; font-size:25px; line-height:1; }
  .mas-gallery-tools button:disabled { opacity:.52; }
  .mas-gallery-tools span { padding:4px 8px; font-size:12px; }
  .mas-detail .mas-specs,.mas-detail .ilansahibi,.mas-detail .ilandetay { margin: 0 0 10px !important; padding: 12px !important; width: 100%; border: 1px solid #e5dacf; box-shadow: none; border-radius: 12px; background:#fffdf9; float:none; }
  .mas-detail .mas-specs::before { content:'İlan bilgileri'; display:block; color:#201e1b; font:800 17px/1.15 system-ui,sans-serif; margin-bottom:10px; }
  .mas-detail .mas-specs > * { max-width:100%; overflow-wrap:anywhere; }
  .mas-detail .ilansahibi .panel, .mas-detail .ilandetay .panel { margin:0; box-shadow:none; border:0; background:transparent; }
  .mas-detail .panel .panel-body, .mas-detail .ilandetay .panel-heading { padding-inline:0; }
  .mas-detail .ilan_icerik { color:#322923; font: 400 15px/1.6 system-ui,sans-serif; overflow-wrap:anywhere; }
  .mas-detail .ilan_icerik img { height:auto; max-width:100%; }
  .mas-detail .ilan_icerik table { width:100%; max-width:100%; display:block; overflow-x:auto; }
  .mas-detail .mobilsiralama { width:100%; }
  .mas-detail .mas-seller-logo { width:132px; height:44px; margin-bottom:6px; }
  #benzer-ilanlar .mas-related-card .benzer-baslik { font-size: clamp(10px,2.85vw,12px); }
  .mas-detail-mobile { padding-bottom: calc(75px + env(safe-area-inset-bottom,0px)); }
  .mas-detail .mobil_fixed_iletisim.visible-xs { border:1px solid #ddd2c6; box-shadow:0 -5px 20px #22180e24; background:#fffdf9; padding:5px 8px max(5px,env(safe-area-inset-bottom)); z-index:995; }
  .mas-detail .mobil_fixed_iletisim.visible-xs .iletisim_bilgi { background:transparent; color:#554a40; min-height:20px; font:700 11px/1.35 system-ui,sans-serif; padding:2px 0; }
  .mas-detail .mobil_fixed_iletisim.visible-xs a { display:inline-flex !important; align-items:center; justify-content:center; gap:5px; width:calc(50% - 3px) !important; min-height:43px; height:auto; border-radius:7px; float:none !important; font-weight:750; color:#fff; }
  .mas-detail .mobil_fixed_iletisim.visible-xs a:only-of-type { width:100% !important; }
  .mas-detail .mobil_fixed_iletisim.visible-xs .tel { background:#a72522 !important; }
  .mas-detail .mobil_fixed_iletisim.visible-xs .whatsapp { background:#16623d !important; margin-inline-start:6px; }
  .mas-detail-mobile .footer_sabit { display:none !important; }
  .mas-detail-mobile .consent-banner { bottom:calc(83px + env(safe-area-inset-bottom,0px)); }

  .mas-catalog { width: min(100%, 760px); }
  .mas-catalog #filtre_panel_buton { min-height:43px; border-radius:7px; font-weight:750; background:#a72522; }
}
@media(max-width:767px) {
  .mas-catalog table.liste,.mas-catalog table.liste tbody { display:block; width:100%; }
  .mas-catalog table.liste thead { display:none; }
  .mas-catalog table.liste tbody tr.satir_link { display:grid; grid-template-columns:minmax(86px,32%) minmax(0,1fr); align-items:center; gap:7px; background:#fffdf9; border:1px solid #e4dacf; border-radius:9px; padding:5px; margin-bottom:6px; overflow:hidden; }
  .mas-catalog table.liste tbody tr.satir_link td:first-child,.mas-catalog table.liste tbody tr.satir_link td.baslik_td { display:block; width:auto !important; background:transparent !important; border:0 !important; min-width:0; }
  .mas-catalog table.liste tbody tr.satir_link td:not(:first-child):not(.baslik_td) { display:none !important; }
  .mas-catalog table.liste tbody tr.satir_link img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:6px; }
  .mas-catalog table.liste tbody tr.satir_link .baslik a { color:#211c18; font:750 13px/1.22 system-ui,sans-serif; overflow-wrap:anywhere; }
  .mas-catalog table.liste tbody tr.satir_link .fiyat_mobil { color:#8c211f; font:800 16px/1.1 system-ui,sans-serif; margin:5px 0 3px; }
  .mas-catalog table.liste tbody tr.satir_link .il_ilce { color:#594b41; font-size:11px; }
}



/* Shared public page presentation */
.mas-shell .mas-mobile-promoted { width:min(1392px,calc(100% - 64px)); margin:14px auto 0; display:grid; gap:9px; }
.mas-shell .mas-mobile-promoted.mas-has-urgent.mas-has-showcase { grid-template-columns:minmax(0,1.04fr) minmax(0,1.5fr); }
.mas-shell .mas-mobile-promoted .bilesen { min-width:0; margin:0 !important; padding:0 !important; background:transparent; border:0; }
.mas-shell .mas-mobile-promoted .bilesen > .baslik { display:none !important; }
.mas-shell .mas-mobile-promoted [data-mas-promotion=urgent] .mas-native-grid { grid-template-columns:minmax(0,1fr); height:100%; }
.mas-shell .mas-mobile-promoted [data-mas-promotion=showcase] .mas-native-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; height:100%; }
.mas-shell .mas-mobile-promoted .mas-live-card .liste { border-radius:10px; padding:0 !important; box-shadow:none; }
.mas-shell .mas-mobile-promoted .mas-live-card .liste h3 a { color:inherit !important; }
.mas-shell .mas-mobile-promoted .mas-live-card .liste .il_ilce { color:inherit !important; opacity:.88; }
.mas-shell .mas-mobile-promoted [data-mas-promotion=showcase] .r_ust img { aspect-ratio: 2; }
.mas-shell .mas-mobile-promoted [data-mas-promotion=urgent] .mas-live-card .liste { height:100%; }
.mas-shell .mas-mobile-promoted [data-mas-promotion=urgent] .r_ust img { aspect-ratio: 2.75; }
.mas-shell .mas-home-content { width:min(1392px,calc(100% - 64px)); padding:0; }
.mas-shell .mas-home-content .bilesen.ilan_listeleme > .baslik { background:transparent !important; border:0 !important; padding:10px 0 !important; color:#251e19 !important; font:800 clamp(21px,3vw,35px)/1.1 Arial,sans-serif !important; }
.mas-shell .mas-home-content .bilesen.ilan_listeleme > .baslik h3 { font:inherit !important; }
.mas-shell .mas-home-content .mas-live-card h3 a { color:#231c17 !important; }
.mas-shell .mas-catalog { margin-top:14px; }
.mas-shell .mas-catalog .mas-catalog-title { display:inline; font:800 clamp(19px,3vw,33px)/1.1 Arial,sans-serif; color:#271f19; margin:0; }
.mas-shell .mas-catalog table.liste { display:block; width:100%; background:none; }
.mas-shell .mas-catalog table.liste > thead { display:none; }
.mas-shell .mas-catalog table.liste > tbody { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:9px; }
.mas-shell .mas-catalog table.liste > tbody > tr:not(:has(>td.baslik_td)) { grid-column:1/-1; }
.mas-shell .mas-catalog table.liste > tbody > tr.satir_link:has(>td.baslik_td) { display:grid; grid-template-columns:minmax(0,1fr); align-content:start; overflow:hidden; min-width:0; padding:0; border:1px solid #ded3c6; border-radius:10px; background:#fffdf9 !important; }
.mas-shell .mas-catalog table.liste > tbody > tr.satir_link:has(>td.baslik_td) > td { display:none !important; width:auto !important; min-width:0; border:0 !important; background:transparent !important; }
.mas-shell .mas-catalog table.liste > tbody > tr.satir_link:has(>td.baslik_td) > td:first-child,.mas-shell .mas-catalog table.liste > tbody > tr.satir_link > td.baslik_td { display:block !important; }
.mas-shell .mas-catalog table.liste > tbody > tr.satir_link:has(>td.baslik_td) > td:first-child { position:relative; padding:0 !important; }
.mas-shell .mas-catalog table.liste > tbody > tr.satir_link > td.baslik_td { padding:9px 10px !important; text-align:left; }
.mas-shell .mas-catalog table.liste > tbody > tr.satir_link:has(>td.baslik_td) img { display:block; width:100% !important; height:auto !important; max-width:none !important; aspect-ratio:4/3; object-fit:cover; border-radius:0; }
.mas-shell .mas-catalog table.liste > tbody > tr.satir_link > td.baslik_td > .visible-xs { display:block !important; }
.mas-shell .mas-catalog table.liste .baslik_td .baslik a { color:#271e18; font:750 14px/1.22 system-ui,sans-serif; overflow-wrap:anywhere; }
.mas-shell .mas-catalog table.liste .fiyat_mobil { color:#8b2521; font:800 18px/1.1 system-ui,sans-serif; margin:6px 0 3px; }
.mas-shell .mas-detail #tekilangaleri { border-radius:12px; background:#fffdf9; }
.mas-shell .mas-detail .mas-specs,.mas-shell .mas-detail .ilandetay,.mas-shell .mas-detail .ilansahibi { background:#fffdf9; border:1px solid #e5dacf; border-radius:12px; }
.mas-shell .mas-detail .mas-seller-logo { width:140px; height:48px; }
.mas-shell .mas-detail .ilan_icerik { line-height:1.65; overflow-wrap:anywhere; }
.mas-shell .mas-detail .ilan_icerik img { max-width:100%; height:auto; }
@media(max-width:991px) {
  .mas-shell .mas-mobile-promoted,.mas-shell .mas-home-content { width:calc(100% - 24px); }
  .mas-shell .mas-mobile-promoted.mas-has-urgent.mas-has-showcase { grid-template-columns:minmax(0,1fr); }
  .mas-shell .mas-mobile-promoted [data-mas-promotion=urgent] .r_ust img { aspect-ratio:auto; }
}
@media(max-width:767px) {
  .mas-shell .mas-catalog table.liste > tbody { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .mas-shell .mas-catalog table.liste .baslik_td .baslik a { font-size:12px; }
  .mas-shell .mas-catalog table.liste .fiyat_mobil { font-size:15px; }
  .mas-shell .mas-catalog,.mas-shell .mas-catalog .row { max-width:100%; }
}

/* Keep the new public surfaces independent of inherited template overrides. */
.mas-shell .mas-catalog table.liste > tbody > tr.satir_link:has(>td.baslik_td) > td.baslik_td { display:block !important; }
.mas-shell .mas-catalog table.liste > tbody > tr.satir_link:has(>td.baslik_td) { border-radius:10px !important; }
.mas-shell .mas-catalog table.liste > tbody > tr.satir_link:has(>td.baslik_td) > td:first-child { border-radius:0 !important; padding:0 !important; }
.mas-shell .mas-catalog .mas-catalog-title { font-size:clamp(18px,3vw,31px) !important; }
.mas-shell .mas-mobile-promoted [data-mas-promotion=urgent] .mas-live-card h3 a { color:#fff8f2 !important; }
.mas-shell .mas-mobile-promoted .mas-live-card .liste { border-radius:10px !important; }
.mas-shell .mas-home-content .bilesen.ilan_listeleme > .baslik { background-color:transparent !important; background-image:none !important; }
@media(max-width:991px) {
  .mas-shell .mas-header-actions a { border-radius:8px !important; }
  .mas-shell .mas-mobile-search input,.mas-shell .mas-mobile-search button { border-radius:7px !important; }
  .mas-shell .mas-detail .mas-gallery { border-radius:12px !important; }
  .mas-shell .mas-detail .mas-gallery-track img { height:auto !important; border-radius:0 !important; }
  .mas-shell .mas-detail .ilanbasligi h1 { font-size:clamp(20px,5vw,29px) !important; line-height:1.12 !important; }
}
@media(max-width:767px) {
  .mas-shell .mas-detail .mobil_fixed_iletisim.visible-xs { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px 6px; }
  .mas-shell .mas-detail .mobil_fixed_iletisim.visible-xs .iletisim_bilgi { grid-column:1/-1; }
  .mas-shell .mas-detail .mobil_fixed_iletisim.visible-xs a { width:100% !important; margin:0 !important; padding:0 5px !important; border-radius:7px !important; }
  .mas-shell .mas-detail .mobil_fixed_iletisim.visible-xs a:only-of-type { grid-column:1/-1; }
}
.mas-shell.mas-home .mas-home-content .bilesen.ilan_listeleme:has(.mas-native-grid) > .baslik,
.mas-shell.mas-home .mas-home-content .bilesen.ilan_listeleme:has(.mas-native-grid) > .baslik > h3,
.mas-shell.mas-home .mas-home-content .bilesen.ilan_listeleme:has(.mas-native-grid) > .baslik > h3 > a {
  background: transparent !important; background-image: none !important; color: #281e18 !important; border: 0 !important; border-radius: 0 !important;
}
.mas-shell.mas-home .mas-home-content .bilesen.ilan_listeleme:has(.mas-native-grid) > .baslik > h3 { padding-inline:0 !important; text-align:left !important; font:800 clamp(22px,4vw,36px)/1.1 Arial,sans-serif !important; }