/* ===============================
   RESET + BASE
================================ */
*{margin:0;padding:0;box-sizing:border-box;font-family:Inter,Arial,sans-serif}
:root{
  --bg:#f5f6f7;
  --text:#111;
  --muted:#666;
  --card:#fff;
  --border:#e8e8e8;
  --shadow:0 14px 35px rgba(0,0,0,.08);
  --shadow2:0 22px 45px rgba(0,0,0,.12);
  --yellow:#ffcc00;
  --yellow2:#ffb800;
  --radius:14px;
}
body{background:var(--bg);color:var(--text);}

/* a */
a{color:inherit}
img{display:block;max-width:100%}

/* ===============================
   TOPBAR / HEADER
================================ */
.topbar{
  height:70px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
  box-shadow:0 4px 20px rgba(0,0,0,.06);
  position:sticky; top:0; z-index:50;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.logo{
  font-size:30px;
  font-weight:900;
  letter-spacing:-.4px;
  color:var(--yellow);
}

/* nav */
#nav{
  display:flex;
  align-items:center;
  gap:18px;
}
#nav a{
  text-decoration:none;
  color:#333;
  font-weight:600;
  padding:10px 12px;
  border-radius:10px;
  transition:.2s;
}
#nav a:hover{
  background:rgba(0,0,0,.04);
}
#nav .btn{
  background:var(--yellow);
  color:#000;
  font-weight:900;
  padding:10px 16px;
  border-radius:10px;
  box-shadow:0 8px 18px rgba(255,204,0,.25);
}
#nav .btn:hover{
  transform:translateY(-1px);
}

/* mobile nav button */
#navBtn{
  display:none;
  width:44px;height:44px;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
#navBtn span{
  width:20px;height:2px;background:#111;display:block;position:relative;
}
#navBtn span:before,
#navBtn span:after{
  content:""; position:absolute; left:0;
  width:20px;height:2px;background:#111;
}
#navBtn span:before{top:-6px}
#navBtn span:after{top:6px}

/* ===============================
   SEARCH AREA
================================ */
.search-area{
  padding:64px 40px 30px;
  text-align:center;
}
.search-area h1{
  font-size:42px;
  letter-spacing:-.8px;
  margin-bottom:18px;
}
.search-box{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  padding:12px;
}
.search-box input,
.search-box select{
  padding:14px 14px;
  width:240px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  outline:none;
}
.search-box input:focus,
.search-box select:focus{
  border-color:rgba(255,204,0,.8);
  box-shadow:0 0 0 4px rgba(255,204,0,.15);
}
.search-box button{
  padding:14px 22px;
  border:none;
  background:var(--yellow);
  font-weight:900;
  border-radius:12px;
  cursor:pointer;
  transition:.2s;
}
.search-box button:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(255,204,0,.22);
}

/* ===============================
   CITY / DISTRICT STRIP
================================ */
.city-strip{
  padding: 10px 40px 10px;
}
.city-strip__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 10px 0 14px;
}
.city-strip__head h2{
  font-size:18px;
  font-weight:900;
}
.city-strip__actions{
  display:flex;
  gap:8px;
}
.cs-btn{
  width:40px;height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  transition:.2s;
}
.cs-btn:hover{
  border-color:rgba(255,204,0,.9);
  box-shadow:0 12px 25px rgba(0,0,0,.08);
  transform:translateY(-1px);
}

/* scroller */
.city-strip__scroller{
  display:flex;
  gap:18px;
  overflow:auto;
  padding: 6px 2px 14px;
  scroll-behavior:smooth;
  scrollbar-width: thin;
}
.city-strip__scroller::-webkit-scrollbar{height:10px}
.city-strip__scroller::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.16);
  border-radius:20px;
}
.city-strip__scroller.is-dragging{
  cursor:grabbing;
  user-select:none;
}

.city-card{
  position:relative;
  min-width:260px;
  height:150px;
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  color:#fff;
  background:#111;
  box-shadow:0 14px 35px rgba(0,0,0,.10);
  transition:.25s;
}
.city-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow2);
}
.city-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.05);
}
.city-card__overlay{
  position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,.10));
}
.city-card__text{
  position:absolute;
  left:14px; bottom:12px;
  right:14px;
}
.city-card__name{
  font-size:18px;
  font-weight:900;
  text-transform:none;
}
.city-card__count{
  font-size:13px;
  opacity:.95;
  margin-top:4px;
}

/* active district */
.city-card.is-active{
  outline: 3px solid rgba(255,204,0,.95);
  box-shadow:0 22px 45px rgba(0,0,0,.18);
  transform:translateY(-6px);
}

/* district-bg (ilanlar.php uses it) */
.district-bg{
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(255,204,0,.95), rgba(0,0,0,.55));
}

/* ===============================
   LISTINGS GRID
================================ */
.listings{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:22px;
  padding:26px 40px 50px;
}

.card{
  background:var(--card);
  border-radius:16px;
  overflow:hidden;
  text-decoration:none;
  color:#000;
  border:1px solid rgba(0,0,0,.04);
  transition:.28s;
}
.card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 40px rgba(0,0,0,.12);
}
.card img{
  width:100%;
  height:185px;
  object-fit:cover;
}
.card-body{
  padding:14px 14px 16px;
}
.price{
  font-size:20px;
  font-weight:900;
  color:var(--yellow2);
}
.title{
  margin:6px 0 4px;
  font-weight:800;
}
.meta{
  font-size:13px;
  color:var(--muted);
}

/* ===============================
   EMPTY STATE
================================ */
.empty-state{
  background:#fff;
  border:1px dashed #e2e2e2;
  border-radius:16px;
  padding:18px;
  color:#555;
}

/* ===============================
   REVEAL ANIMATION (JS uses reveal--on)
================================ */
.reveal{
  opacity:0;
  transform:translateY(34px);
}
.reveal--on{
  opacity:1;
  transform:none;
  transition:.8s ease;
}

/* ===============================
   OPTIONAL: TO TOP BUTTON
================================ */
#toTop{
  position:fixed;
  right:18px;
  bottom:18px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 14px 35px rgba(0,0,0,.10);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 980px){
  .topbar{padding:0 18px}
  .search-area{padding:54px 18px 24px}
  .listings{padding:22px 18px 44px}
  .city-strip{padding:10px 18px}
}

@media (max-width: 768px){
  #navBtn{display:flex}
  #nav{
    position:fixed;
    top:70px;
    left:0; right:0;
    background:#fff;
    border-top:1px solid var(--border);
    padding:12px 14px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    z-index:60;
  }
  #nav.nav--open{display:flex}
  #nav a{display:flex; justify-content:center}
  .search-area h1{font-size:30px}
  .search-box input, .search-box select{width:100%}
  .search-box{max-width:520px;margin:0 auto}
  .city-card{min-width:230px;height:140px}
}

@media (max-width: 420px){
  .logo{font-size:26px}
  .city-card{min-width:210px;height:135px}
}
