:root{
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f0f1f3;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17,24,39,.10);
  --shadow: 0 12px 30px rgba(17,24,39,.10);
  --radius: 18px;

  --primary: #111827;
  --primary-2: #374151;

  --ok: #16a34a;
  --warn: #ef4444;

  --max: 1120px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(17,24,39,.06), transparent 55%),
    radial-gradient(900px 450px at 95% 10%, rgba(17,24,39,.05), transparent 55%),
    linear-gradient(180deg, var(--bg), #fff);
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
}

.muted{ color: var(--muted); }
.note{ font-size: 12px; }

/* ===== HEADER ===== */
.site-header{
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
}

.brand-logo{
  height: 42px;
  width: auto;
  display:block;
  object-fit: contain;
}

.brand-mark{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #6b7280);
  box-shadow: var(--shadow);
}

.brand-title{
  font-weight: 900;
  letter-spacing: .3px;
}
.brand-subtitle{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.nav-item{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.nav-item:hover{ background: rgba(255,255,255,.95); }
.nav-item:active{ transform: translateY(1px); }
.nav-item.active{
  background: #111827;
  color: #fff;
  border-color: rgba(17,24,39,.25);
}
.nav-item.disabled{
  cursor: not-allowed;
  opacity: .65;
  user-select:none;
}

.tag{
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17,24,39,.10);
  border: 1px solid rgba(17,24,39,.12);
}

/* ===== TOP BANNER ===== */
.banner{
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,24,39,.03), rgba(255,255,255,.75));
}
.banner-inner{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  padding-top: 6px;
  padding-bottom: 18px;
}
.banner h1{
  margin: 10px 0 6px 0;
  font-size: 22px;
}
.banner p{
  margin:0;
  color: var(--muted);
}

.page{ padding-top: 16px; padding-bottom: 40px; }

/* ===== CARD ===== */
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-soft{
  box-shadow: 0 8px 20px rgba(17,24,39,.08);
}

.card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17,24,39,.02), transparent);
}
.card-title{ font-weight: 900; letter-spacing:.2px; }

/* ===== BUTTON ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.14);
  background: #fff;
  cursor:pointer;
  font-weight: 800;
  color: var(--text);
  text-decoration:none;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ background: rgba(17,24,39,.03); }
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--primary);
  color: #fff;
  border-color: rgba(17,24,39,.20);
}
.btn-primary:hover{ background: #0b1220; }
.btn-secondary{ background: rgba(17,24,39,.06); }
.btn-ghost{ background: transparent; }

.link{
  text-decoration:none;
  border-bottom: 1px dotted rgba(17,24,39,.25);
  color: var(--text);
}

/* ===== FILTERS ===== */
.filters{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  padding: 14px 16px 16px 16px;
}
.field{
  grid-column: span 3;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.field label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
input, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.12);
  background: #fff;
  outline: none;
  font-size: 14px;
}
input:focus, select:focus{
  border-color: rgba(17,24,39,.28);
  box-shadow: 0 0 0 4px rgba(17,24,39,.08);
}
.field-actions{
  grid-column: span 12;
  display:flex;
  justify-content:flex-end;
}

.hint{
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
}

/* ===== GRID / LISTINGS ===== */
.grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.listing{
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(17,24,39,.10);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  cursor:pointer;
}

.listing .photo{
  height: 130px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.listing .photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.listing .body{
  padding: 12px 12px 14px 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  flex:1;
}

.row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:flex-start;
}

.title{
  font-weight: 900;
  line-height: 1.2;
}

.badge{
  font-size: 12px;
  font-weight: 800;
  background: rgba(17,24,39,.08);
  border: 1px solid rgba(17,24,39,.10);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-2);
  white-space:nowrap;
}

.series{
  font-size: 12px;
  color: var(--muted);
  margin-top: -4px;
}

.price{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(17,24,39,.03);
  display:flex;
  justify-content:space-between;
  align-items:baseline;
}
.price .label{ font-size: 12px; color: var(--muted); font-weight: 700; }
.price .value{ font-size: 16px; font-weight: 950; }

.specs{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}
.spec b{ color: var(--text); }

.listing .actions{
  margin-top:auto;
  display:flex;
  gap: 10px;
  border-top: 1px dashed rgba(17,24,39,.16);
  padding-top: 10px;
  align-items:center;
  justify-content:space-between;
}

/* ===== FAB ===== */
.fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  text-decoration:none;
  font-weight: 900;
  box-shadow: var(--shadow);
}

/* ===== EMPTY ===== */
.empty{
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
  border: 1px dashed rgba(17,24,39,.22);
  border-radius: 18px;
  background: rgba(255,255,255,.6);
}

/* ===== CALC (genel) ===== */
.calc{
  padding: 14px 16px 16px 16px;
  display:grid;
  gap: 12px;
}

.alert{
  display:none;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
  color: #7f1d1d;
  font-weight: 800;
}

.result{
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(17,24,39,.03);
  border-radius: 16px;
  padding: 12px;
}
.result-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(17,24,39,.18);
}
.result-row:last-child{ border-bottom:none; }
.result-row .k{ color: var(--muted); font-weight: 800; }
.result-row .v{ font-weight: 950; }

/* ===== COMING ===== */
.coming{
  padding: 22px 18px;
  text-align:center;
}
.coming-badge{
  display:inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17,24,39,.08);
  border: 1px solid rgba(17,24,39,.12);
  font-weight: 950;
}
.actions{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

/* ===== İLETİŞİM ===== */
.contact-grid{
  grid-template-columns: repeat(12, 1fr);
}
.contact-card{
  grid-column: span 6;
}
.map-wrap{
  width: 100%;
  height: 360px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.map-wrap iframe{
  width:100%;
  height:100%;
  border:0;
}
.contact-body{
  padding: 14px 16px 16px 16px;
  display:grid;
  gap: 12px;
}
.contact-actions{
  display:grid;
  gap: 10px;
}
.btn.full{ width: 100%; }

.contact-info{
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(17,24,39,.03);
  border-radius: 16px;
  padding: 12px;
}
.info-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(17,24,39,.18);
}
.info-row:last-child{ border-bottom:none; }
.info-row .k{ color: var(--muted); font-weight: 800; }
.info-row .v{ font-weight: 900; }

/* ===== İLAN DETAY ===== */
.detail-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.detail-card{ grid-column: span 6; }

.detail-gallery{ padding: 0; }

.hero{
  height: 250px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.hero-empty{
  color: var(--muted);
  font-weight: 800;
}

.thumbs{
  display:flex;
  gap: 10px;
  padding: 12px 16px;
  overflow:auto;
  border-bottom: 1px solid var(--line);
}
.thumb{
  width: 120px;
  height: 76px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.12);
  background:#fff;
  padding:0;
  cursor:pointer;
  flex: 0 0 auto;
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.thumb.active{
  outline: 3px solid rgba(17,24,39,.18);
}

.detail-section{
  padding: 14px 16px 16px 16px;
}
.detail-section-title{
  font-weight: 900;
  margin-bottom: 10px;
}

.chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(17,24,39,.04);
}
.chip-degisen{ border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.08); }
.chip-lokal{ border-color: rgba(251,146,60,.25); background: rgba(251,146,60,.12); }
.chip-boya{ border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.10); }
.chip-orijinal{ border-color: rgba(34,197,94,.25); background: rgba(34,197,94,.10); }

.detail-body{
  padding: 14px 16px 16px 16px;
  display:grid;
  gap: 12px;
}

.detail-table .row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(17,24,39,.18);
}
.detail-table .row:last-child{ border-bottom:none; }
.detail-table .k{ color: var(--muted); font-weight: 900; }
.detail-table .v{ font-weight: 950; }

.detail-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-sub{ margin-top: 14px; }
.detail-sub-title{ font-weight: 950; margin-bottom: 10px; }

.mini-calc{ display:grid; gap: 12px; }
.mini-row{ display:flex; justify-content:space-between; gap:12px; }
.mini-k{ color: var(--muted); font-weight: 900; }
.mini-v{ font-weight: 950; }

.mini-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.mini-grid .field{ grid-column: span 6; }

/* ===== FOOTER (sade) ===== */
/* ===== FOOTER (Küçük & Sade) ===== */
.footer{
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.9);
}

.footer-compact .footer-inner{
  padding-top: 8px;
  padding-bottom: 8px;
}

.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-brand{
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-phones{
  display:flex;
  flex-direction: column;
  gap: 4px;
}

.footer-phones a{
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  opacity: .9;
}

.footer-phones a:hover{
  text-decoration: underline;
}

.footer-right{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.social{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.12);
  background: transparent;
  color: var(--text);
  text-decoration:none;
  font-weight: 900;
  font-size: 12px;
}

.social:hover{
  background: rgba(17,24,39,.03);
}

.social svg{
  width: 16px;
  height: 16px;
  display:block;
  fill: currentColor;
  opacity: .9;
}

/* Mobilde sağ taraf alta düşsün */
@media (max-width: 620px){
  .footer-right{ justify-content:flex-start; }
}

#waFloat{ display:none !important; }

@media (max-width: 980px){
  .hero{ height: 460px; }     /* 320 yerine */
}

/* ===========================
   MOBİL DÜZELTME PAKETİ
   (style.css en alta yapıştır)
   =========================== */

img{ max-width:100%; height:auto; }

/* Header - logo ve menü sıkışmasın */
@media (max-width: 720px){
  .container{ padding: 12px; }

  .brand{ min-width: 0 !important; }
  .brand-logo{ height: 34px; } /* logo mobilde küçülsün */

  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Menü çoksa taşmasın: yatay scroll */
  .nav{
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .nav::-webkit-scrollbar{ height: 6px; }
  .nav-item{ white-space: nowrap; }
}

/* Filtreler ve kart içi butonlar mobilde tam otursun */
@media (max-width: 620px){
  .filters{ gap: 10px; }
  .field{ grid-column: span 12 !important; }

  /* Listing aksiyonları alt alta */
  .listing .actions{
    flex-direction: column;
    align-items: stretch;
  }
  .listing .actions .btn{
    width: 100%;
  }
}

/* İlan detay fotoğraf (hero) mobilde kırpmasın / taşmasın */
@media (max-width: 720px){
  /* Sabit height yerine daha akıllı bir yükseklik */
  .hero{
    height: clamp(260px, 55vw, 420px) !important;
  }

  /* Fotoğraf “yarım” kalmasın diye contain öneriyorum */
  .hero img{
    object-fit: contain !important; /* cover kırpıyordu */
    background: var(--surface-2);
  }

  /* Thumbnail'lar mobilde daha küçük + rahat kaydır */
  .thumb{
    width: 120px !important;
    height: 80px !important;
  }

  .thumbs{
    gap: 8px;
    padding: 10px 12px;
  }
}

/* Footer mobilde daha düzenli */
@media (max-width: 720px){
  .footer-inner{
    gap: 10px;
  }
  .footer-right{
    justify-content: flex-start;
  }
}

/* =========================================
   GLOBAL RESPONSIVE FIX (ALL PAGES)
   style.css EN ALTINA YAPIŞTIR
   ========================================= */

html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* Container ve genel boşluklar mobilde daha düzgün */
@media (max-width: 900px){
  .container{ padding: 12px !important; }
  .page{ padding-top: 12px !important; padding-bottom: 26px !important; }
}

/* HEADER / NAV: mobilde kırılma yerine düzgün hizalama + yatay kaydırma */
@media (max-width: 900px){
  .brand{ min-width: 0 !important; }
  .brand-logo{ height: 34px !important; }
  .header-inner{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .nav{
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .nav-item{ white-space: nowrap; }
}

/* BANNER: mobilde başlık ve metin taşmasın */
@media (max-width: 900px){
  .banner-inner{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .banner h1{ font-size: 20px !important; }
  .banner p{ font-size: 13px !important; }
}

/* === EN ÖNEMLİ DÜZELTME: 12 kolon / span yerine AUTO-FIT === */

/* Filtreler: her ekranda kendi kendine kolon ayarlasın */
.filters{
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
}
.field{ grid-column: auto !important; }
.field-actions{
  grid-column: 1 / -1 !important;
  justify-content: flex-end;
}

/* Kart grid (ilan listesi): span yerine auto-fit */
.grid{
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  align-items: start;
}
.listing{ grid-column: auto !important; }

/* Kart foto: sabit height yerine oranla güzel dursun */
.listing .photo{
  height: 60% !important;
  aspect-ratio: 16 / 10;
}
.listing .photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Kart içindeki butonlar mobilde alt alta ve full */
@media (max-width: 620px){
  .listing .actions{
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .listing .actions .btn{ width: 100% !important; }
}

/* İLAN DETAY: 12 kolon yerine auto-fit, küçük ekranda tek kolon */
.detail-grid{
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
}
.detail-card{ grid-column: auto !important; }

/* İlan detay hero: sabit yüksekliği kırma, mobilde akıllı yükseklik */
.hero{
  height: clamp(320px, 55vw, 560px) !important;
}
@media (max-width: 620px){
  .hero{
    height: clamp(240px, 62vw, 420px) !important;
  }
}

/* Thumbnail: mobilde daha mantıklı boy */
.thumb{
  width: 130px !important;
  height: 90px !important;
}
@media (max-width: 620px){
  .thumb{
    width: 120px !important;
    height: 78px !important;
  }
}

/* Contact grid: auto-fit */
.contact-grid{
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
}
.contact-card{ grid-column: auto !important; }

/* Map yüksekliği mobilde taşmasın */
@media (max-width: 620px){
  .map-wrap{ height: 280px !important; }
}

/* Footer: küçük, taşma yok */
.footer-inner{
  align-items: flex-start !important;
}
.footer-left a{
  display: inline-block;
  font-size: 12px;
  line-height: 1.35;
}

/* Footer sosyal pill: küçült */
.footer-pill{
  padding: 7px 9px !important;
  font-size: 12px !important;
}

/* Senet hesaplama (ilan detay / senet sayfası) alanlarını büyüt */
.mini-grid{
  grid-template-columns: repeat(12, 1fr) !important;
}

.mini-grid .field{
  grid-column: span 6 !important;  /* Peşinat + Vade yan yana geniş */
  min-width: 0;
}

@media (max-width: 620px){
  .mini-grid .field{
    grid-column: span 12 !important; /* mobilde alt alta */
  }
}

/* ===== İlan Detay Senet Kutusu Mobil Fix ===== */

/* Mini senet grid'i her zaman 2 sütun gibi davransın (desktop/tablet) */
.mini-grid{
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 12px !important;
}

/* Peşinat ve Vade alanları geniş olsun */
.mini-grid .field{
  grid-column: span 6 !important;
  min-width: 0;
}

/* Input/select tam genişlik */
.mini-grid input,
.mini-grid select{
  width: 100% !important;
}

/* Mobilde alt alta ve tam genişlik */
@media (max-width: 620px){
  .mini-grid .field{
    grid-column: span 12 !important;
  }
}

@media (max-width: 620px){
  /* Büyük foto alanını biraz daha yüksek yapalım ki dikey foto çok kırpılmasın */
  .hero{
    height: 62vh !important;     /* istersen 70vh yap */
    max-height: 560px !important;
  }

  /* Foto container'ı doldursun */
  .hero img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important; /* istersen center top */
  }
}

/* Filtre sonrası kartlar büyümesin: kolon sayısı sabit kalsın */
.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start; /* kartlar uzamasın */
}

/* Tablet */
@media (max-width: 980px){
  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobil */
@media (max-width: 620px){
  .grid{
    grid-template-columns: 1fr;
  }
}







