:root {
  --ml-ink: #151c2c;
  --ml-muted: #667085;
  --ml-line: #e6e9ef;
  --ml-soft: #f7f9fc;
  --ml-coral: #ff574f;
  --ml-coral-dark: #e9433d;
  --ml-teal: #13aab2;
}

/* Vasıta mobil detaylı arama: masaüstüyle aynı kategori ve filtre verisini kullanır. */
@media (max-width: 991px) {
  .arsiv .sidebar #filtre_panel_buton[aria-controls="arv-mobil-filtre-form"] {
    min-height: 54px;
    margin: 0 0 14px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg,#ff625f,#ef3e3b) !important;
    box-shadow: 0 10px 24px rgba(239,62,59,.22);
    font-weight: 800;
    letter-spacing: .02em;
  }

  .arv-vehicle-filter-form {
    margin: 0 0 18px;
    padding: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(18,30,56,.09);
  }

  .arv-mobile-vehicle-search { display: block !important; }

  .arv-vehicle-type-tabs {
    display: flex;
    gap: 9px;
    margin: 0 -14px 14px;
    padding: 1px 14px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .arv-vehicle-type-tabs::-webkit-scrollbar { display: none; }
  .arv-vehicle-type {
    display: flex;
    flex: 0 0 96px;
    min-height: 104px;
    padding: 9px 7px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #344054 !important;
    text-align: center;
    text-decoration: none !important;
    background: #f8fafc;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    scroll-snap-align: start;
  }
  .arv-vehicle-type.active {
    color: #fff !important;
    background: linear-gradient(145deg,#ff625f,#ef3e3b);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(239,62,59,.22);
  }
  .arv-vehicle-type-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
    place-items: center;
    color: #e84945;
    background: #fff;
    border-radius: 12px;
    font-size: 21px;
  }
  .arv-vehicle-type.active .arv-vehicle-type-icon { color: #ef3e3b; }
  .arv-custom-vehicle-image {
    width: 32px;
    height: 28px;
    display: block;
    object-fit: contain;
  }
  .arv-vehicle-type strong {
    display: block;
    width: 100%;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
  }
  .arv-vehicle-type small { margin-top: 3px; font-size: 10px; opacity: .75; }

  .arv-mobile-filter-hint {
    margin-bottom: 13px;
    padding: 11px 12px;
    color: #475467;
    background: #f0fbfb;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.45;
  }
  .arv-mobile-filter-hint i { margin-right: 5px; color: #11aaa7; }
  .arv-mobile-subcategory { margin-bottom: 13px; }
  .arv-mobile-subcategory label,
  .arv-vehicle-filter-form .filtre .panel-heading {
    display: block;
    margin: 0 0 7px;
    padding: 0 !important;
    color: #1d2939;
    background: transparent !important;
    border: 0 !important;
    font-size: 13px;
    font-weight: 800;
  }
  .arv-mobile-subcategory .form-control,
  .arv-vehicle-filter-form .form-control {
    height: 46px;
    color: #344054;
    background-color: #fff;
    border: 1px solid #d9dee7;
    border-radius: 11px;
    box-shadow: none;
    font-size: 13px;
  }

  .arv-vehicle-filter-form .filtre_mobil_scroll {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: 100%;
    height: auto !important;
    max-height: none !important;
    gap: 11px;
    padding: 0 !important;
    overflow: visible !important;
  }
  .arsiv .sidebar .arv-vehicle-filter-form .filtre_mobil_scroll > .panel {
    min-width: 0;
    margin: 0 !important;
    padding: 11px !important;
    background: #f8fafc !important;
    border: 1px solid #e7eaf0 !important;
    border-radius: 13px !important;
    box-shadow: none !important;
  }
  .arsiv .sidebar .arv-vehicle-filter-form .filtre_mobil_scroll > .arv-filter-min_max { grid-column: 1 / -1; }
  .arsiv .sidebar .arv-vehicle-filter-form .filtre_mobil_scroll > .arv-filter-address { grid-column: 1 / -1; }
  .arv-address-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .arv-address-field { min-width: 0; }
  .arv-address-field label {
    display: block;
    margin: 0 0 6px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
  }
  .arv-address-field #ilce_sec > label { display: none !important; }
  .arv-address-field .form-control { width: 100%; }
  .arv-address-field .form-control:disabled {
    color: #98a2b3;
    background: #f2f4f7;
    cursor: not-allowed;
  }
  .arv-vehicle-filter-form #mahalle_sec:not(:empty) { margin-top: 9px; }
  .arv-vehicle-filter-form .filtre .panel-body {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }
  .arv-vehicle-filter-form .filtre .form-group { margin: 0; }
  .arv-vehicle-filter-form .filtre .row { margin-right: -4px; margin-left: -4px; }
  .arv-vehicle-filter-form .filtre .row > [class*="col-"] { padding-right: 4px; padding-left: 4px; }
  .arv-vehicle-filter-form #buton {
    min-height: 52px;
    margin-top: 13px;
    color: #fff;
    border: 0 !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg,#ff625f,#ef3e3b) !important;
    box-shadow: 0 9px 22px rgba(239,62,59,.22);
    font-size: 15px;
    font-weight: 800;
  }
}

@media (max-width: 420px) {
  .arv-vehicle-filter-form { padding: 12px; }
  .arv-vehicle-filter-form .filtre_mobil_scroll { gap: 8px; }
  .arsiv .sidebar .arv-vehicle-filter-form .filtre_mobil_scroll > .panel { padding: 9px !important; }
  .arv-vehicle-filter-form .form-control { font-size: 12px; }
}

@media (min-width: 992px) {
  .arv-address-field label,
  .arv-address-field #ilce_sec select:disabled { display: none; }
  .arv-address-field #il_sec { margin-bottom: 10px; }
}

/* Kategori ve arama sonuçları */
.arsiv { color: var(--ml-ink); }
.container.mt20.arsiv { margin-top: 28px !important; }
.arsiv > .row { align-items: flex-start; }
.arsiv .beyaz { background: #fff; }

/* Sol kategori ve filtre alanı */
.arsiv .sidebar > .panel,
.arsiv .sidebar .filtre_mobil_scroll > .panel {
  overflow: visible;
  margin: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.arsiv .sidebar {
  padding: 17px 16px 15px !important;
  background: #fff;
  border: 1px solid #edf0f4;
  border-radius: 15px;
  box-shadow: 0 9px 30px rgba(18,30,56,.055);
}
.arsiv .sidebar > .panel > .panel-body { padding: 0 2px 13px !important; }
.arsiv .sidebar .ana_menu,
.arsiv .sidebar .ana_menu ul { margin: 0; padding: 0; list-style: none; }
.arsiv .sidebar .ana_menu ul {
  margin: 4px 0 3px 8px;
  padding-left: 8px;
  border-left: 1px solid #edf0f4;
}
.arsiv .sidebar .ana_menu li { position: relative; margin: 2px 0; border-radius: 8px; }
.arsiv .sidebar .ana_menu li > a {
  display: block;
  min-height: 32px;
  padding: 7px 43px 7px 10px;
  color: #344054 !important;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none !important;
  transition: background .18s ease,color .18s ease,transform .18s ease;
}
.arsiv .sidebar .ana_menu li > a:hover {
  color: var(--ml-ink) !important;
  background: #f1f8f9;
  transform: translateX(2px);
}
.arsiv .sidebar .ana_menu > li > a {
  color: var(--ml-ink) !important;
  padding-left: 11px !important;
  background: #f5fafb;
  border-left: 3px solid var(--ml-teal);
  font-weight: 800;
}
.arsiv .sidebar .ana_menu li > .toplam {
  position: absolute;
  top: 7px;
  right: 9px;
  min-width: 25px;
  padding: 2px 5px;
  color: #7b8494;
  background: #f4f6f9;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}
.arsiv .sidebar .filtre .panel-heading {
  margin: 0 !important;
  padding: 14px 3px 8px !important;
  color: var(--ml-ink);
  background: #fff !important;
  border: 0 !important;
  border-top: 1px solid #edf0f4 !important;
  font-size: 14px;
  font-weight: 800;
}
.arsiv .sidebar .filtre .panel-body {
  padding: 3px 2px 14px !important;
  background: #fff !important;
}
.arsiv .sidebar .form-control,
.arsiv .tab #jump {
  height: 42px;
  color: #344054;
  background: #fff;
  border: 1px solid #dfe3ea !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}
.arsiv .sidebar .form-control:focus,
.arsiv .tab #jump:focus {
  border-color: var(--ml-teal) !important;
  box-shadow: 0 0 0 3px rgba(19,170,178,.1) !important;
}
.arsiv .sidebar #buton,
.arsiv #filtre_panel_buton {
  min-height: 43px;
  color: #fff !important;
  background: linear-gradient(135deg,var(--ml-coral),var(--ml-coral-dark)) !important;
  border: 0 !important;
  border-radius: 9px !important;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(255,87,79,.2);
}

/* Sonuç bilgisi, sekmeler ve sıralama */
.arsiv .col-md-33 > .sonuc {
  margin: 0 0 15px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ml-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.arsiv .col-md-33 > .sonuc .panel-body { padding: 7px 4px 15px; color: #4b5565; }
.arsiv .col-md-33 > .sonuc .kategori a { color: var(--ml-ink); font-weight: 800; }
.arsiv .col-md-33 > .sonuc .sayi { color: var(--ml-coral-dark); font-weight: 800; }
.arsiv .tab {
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.arsiv .tab > .panel-heading {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 5px 2px 11px !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ml-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.arsiv .tab .nav-tabs { border: 0 !important; }
.arsiv .tab .nav-tabs > li > a {
  margin: 0;
  padding: 9px 13px;
  color: #596273;
  background: transparent;
  border: 0 !important;
  border-radius: 8px;
  font-weight: 700;
}
.arsiv .tab .nav-tabs > li.active > a,
.arsiv .tab .nav-tabs > li > a:hover {
  color: var(--ml-ink) !important;
  background: #f1f8f9 !important;
}
.arsiv .tab .sag { display: flex; align-items: center; gap: 9px; }
.arsiv .tab .listeleme { margin: 0; }
.arsiv .tab #jump { min-width: 220px; padding: 0 12px; }

/* İlan satırları: Oto Radar ile aynı kart dili */
.arsiv .tab > .panel-body {
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.arsiv table.liste {
  width: 100%;
  margin: 0 !important;
  background: #fff !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}
.arsiv table.liste > thead > tr > th {
  padding: 8px 10px !important;
  color: #7b8494 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.arsiv table.liste > tbody > tr {
  cursor: pointer;
  background: #fff !important;
  box-shadow: none !important;
}
.arsiv table.liste > tbody > tr > td {
  padding: 12px 10px !important;
  color: #4b5565;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ml-line) !important;
  vertical-align: middle !important;
  transition: background .18s ease;
}
.arsiv table.liste > tbody > tr:hover > td { background: #f8fbfc !important; }
.arsiv table.liste > tbody > tr > td:first-child {
  border-left: 0 !important;
  border-radius: 0 !important;
}
.arsiv table.liste > tbody > tr > td:last-child {
  border-right: 0 !important;
  border-radius: 0 !important;
}
.arsiv table.liste .resim {
  width: 94px !important;
  max-width: 94px !important;
  height: 70px !important;
  object-fit: cover;
  border-radius: 8px !important;
  box-shadow: 0 3px 8px rgba(18,30,56,.12);
}
.arsiv table.liste .baslik_td .baslik a {
  color: var(--ml-ink) !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}
.arsiv table.liste .arv-vehicle-column,
.arsiv table.liste .arv-vehicle-value {
  width: 74px;
  text-align: center !important;
  white-space: nowrap;
}
.arsiv table.liste .arv-vehicle-value {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}
.arsiv .arv-vehicle-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.arsiv .arv-vehicle-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 4px 7px;
  color: #4b5565;
  background: #f5f7fa;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
}
.arsiv .arv-vehicle-facts b { color: #7b8494; font-weight: 700; }
.arsiv table.liste td.fiyat,
.arsiv table.liste .fiyat_mobil { color: var(--ml-coral-dark) !important; font-weight: 800; }
.arsiv table.liste .il_ilce { color: var(--ml-muted); }
.arsiv table.liste .il_ilce:before {
  content: "\f041";
  margin-right: 6px;
  color: var(--ml-teal);
  font-family: FontAwesome;
}
.arsiv table.liste .etiket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  font-size: 10px;
}
.arsiv table.liste tr.vitrin,
.arsiv table.liste tr.vitrin > td,
.arsiv table.liste tr.vitrin:nth-child(odd) > td,
.arsiv table.liste tr.vitrin:nth-child(even) > td { background: #fff !important; }
.arsiv table.liste tr.vitrin:hover > td { background: #f8fbfc !important; }
.arsiv .table.liste tr.vitrin,
.arsiv .table.liste tr.vitrin > td,
.arsiv .table.liste tr.vitrin:nth-child(odd) > td,
.arsiv .table.liste tr.vitrin:nth-child(even) > td { background: #fff !important; }
.arsiv .table.liste tr.vitrin:hover > td { background: #f8fbfc !important; }
.arsiv tr.satir_link.vitrin_sticker > td:first-child:after {
  top: 8px;
  left: 5px;
  padding: 3px 7px;
  background: var(--ml-teal);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 7px rgba(19,170,178,.2);
}
.arsiv tr.satir_link.vitrin_sticker > td:first-child:before { display: none; }
.arsiv table.liste .vitrin_mesaj {
  padding: 9px 12px !important;
  color: #667085;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ml-line) !important;
  border-radius: 0 !important;
  text-align: center;
  box-shadow: none;
}
.arsiv table.liste .vitrin_mesaj p { margin: 0; }
.arsiv .alert-danger {
  color: #7a342f !important;
  background: #fff4f2 !important;
  border: 1px solid #ffd7d2 !important;
  border-radius: 10px !important;
}
.arsiv .pagination > li > a {
  margin: 0 3px;
  color: #344054;
  border: 1px solid var(--ml-line);
  border-radius: 8px !important;
}
.arsiv .pagination > .active > a { color: #fff; background: var(--ml-coral); border-color: var(--ml-coral); }

@media (max-width: 991px) {
  .arsiv .tab > .panel-heading { display: block; }
  .arsiv .tab .sag { justify-content: flex-end; }
}

@media (max-width: 767px) {
  html,body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .arsiv { width: calc(100% - 8px) !important; padding-right: 0 !important; padding-left: 0 !important; }
  .arsiv > .row { margin-right: 0 !important; margin-left: 0 !important; }
  .arsiv > .row > [class*="col-"] { padding-right: 0 !important; padding-left: 0 !important; }
  .container.mt20.arsiv { margin-top: 20px !important; }
  .arsiv .sidebar {
    padding: 0 !important;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .arsiv .sidebar > .panel:first-child { display: none !important; }
  .arsiv .sidebar #filtre_panel_buton {
    min-height: 48px;
    margin: 0 0 18px !important;
    border-radius: 10px !important;
    font-size: 14px;
    letter-spacing: .02em;
  }
  .arsiv .sidebar > .panel,
  .arsiv .sidebar .filtre_mobil_scroll > .panel { border-radius: 0 !important; }
  .arsiv .tab > .panel-heading { min-height: 0; padding: 7px !important; }
  .arsiv .tab .sag { width: 100%; }
  .arsiv .tab #jump { width: 100%; min-width: 0; }
  .arsiv table.liste,
  .arsiv table.liste > tbody { display: block; width: 100%; }
  .arsiv table.liste > thead { display: none; }
  .arsiv table.liste > tbody > tr {
    display: grid;
    grid-template-columns: clamp(94px,30vw,112px) minmax(0,1fr);
    min-height: 0;
    margin-top: 0 !important;
    margin-bottom: 1px !important;
    padding: 0;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e1e6ee;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(18,30,56,.055);
  }
  .arsiv table.liste > tbody > tr + tr { margin-top: 0 !important; }
  .arsiv table.liste > tbody > tr > td { display: none !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
  .arsiv table.liste > tbody > tr > td:first-child {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    height: 100%;
  }
  .arsiv table.liste > tbody > tr > td.baslik_td {
    display: block !important;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 4px 5px 4px 9px !important;
  }
  .arsiv .table.liste:not(.profil) > tbody > tr > td.baslik_td {
    padding: 4px 5px 4px 9px !important;
  }
  .arsiv table.liste .resim {
    width: 100% !important;
    max-width: none !important;
    height: 96px !important;
    min-height: 0;
    border-radius: 7px !important;
  }
  .arsiv table.liste .baslik_td .baslik {
    display: block;
    padding-right: 2px;
    line-height: 1.25;
  }
  .arsiv table.liste .baslik_td .baslik { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .arsiv table.liste .baslik_td .baslik a { font-size: clamp(13px,4.2vw,15px); white-space: nowrap; }
  .arsiv table.liste .arv-vehicle-facts {
    display: grid;
    grid-template-columns: .78fr 1.32fr 1fr;
    gap: 3px;
    margin-top: 6px;
  }
  .arsiv table.liste .arv-vehicle-facts span {
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 4px 2px;
    overflow: visible;
    font-size: clamp(9px,2.8vw,10.5px);
    line-height: 1.05;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
  }
  .arsiv table.liste .arv-vehicle-facts b {
    display: block;
    margin-bottom: 2px;
    font-size: clamp(7px,2.2vw,8.5px);
    text-transform: uppercase;
  }
  .arsiv table.liste .fiyat_mobil { margin-top: 6px; overflow: hidden; font-size: clamp(12px,3.8vw,14px); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
  .arsiv table.liste .il_ilce { margin-top: 4px; overflow: hidden; font-size: clamp(10px,3.2vw,12px); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .arsiv table.liste .baslik_td > .etiket { display: none !important; }
  .arsiv table.liste > tbody > tr.vitrin_mesaj_satiri {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 5px 0 12px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--ml-line) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }
  .arsiv table.liste .vitrin_mesaj {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 9px 5px !important;
    overflow: hidden;
    text-align: center !important;
    white-space: nowrap;
  }
  .arsiv table.liste .vitrin_mesaj p {
    display: block;
    width: 100%;
    overflow: hidden;
    font-size: 9px !important;
    line-height: 14px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
