/* ============================================================
   OSAR Global — özgün tasarım sistemi (kütüphanesiz, saf CSS)
   Tasarım yönü: Gemini (premium/modern), uygulama: Claude
   ============================================================ */
:root {
  --hue: 215;
  --bg:        hsl(var(--hue), 30%, 97%);
  --surface:   hsl(0, 0%, 100%);
  --surface-2: hsl(var(--hue), 25%, 94%);
  --text:      hsl(var(--hue), 30%, 14%);
  --text-dim:  hsl(var(--hue), 12%, 42%);
  --primary:   hsl(var(--hue), 75%, 38%);
  --primary-2: hsl(var(--hue), 80%, 30%);
  --accent:    hsl(38, 95%, 55%);
  --line:      hsl(var(--hue), 20%, 88%);
  --radius: 14px;
  --shadow:   0 4px 24px hsla(var(--hue), 40%, 20%, .08);
  --shadow-lg: 0 12px 40px hsla(var(--hue), 40%, 20%, .14);
  --glass: hsla(0, 0%, 100%, .72);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        hsl(var(--hue), 25%, 9%);
    --surface:   hsl(var(--hue), 22%, 13%);
    --surface-2: hsl(var(--hue), 20%, 17%);
    --text:      hsl(var(--hue), 20%, 92%);
    --text-dim:  hsl(var(--hue), 10%, 62%);
    --primary:   hsl(var(--hue), 70%, 55%);
    --primary-2: hsl(var(--hue), 75%, 45%);
    --line:      hsl(var(--hue), 15%, 24%);
    --glass: hsla(var(--hue), 22%, 13%, .78);
  }
}

* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.65 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-size: 22px; font-weight: 800; color: var(--primary); }
.logo span { color: var(--text); font-weight: 500; }
.main-nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; font-size: 15px; }
.main-nav a { color: var(--text-dim); transition: color .15s; }
.main-nav a:hover { color: var(--primary); }
.dropdown { position: relative; }
.drop-menu {
  position: absolute; top: 130%; left: -12px; min-width: 300px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; flex-direction: column; gap: 2px;
}
.drop-menu a { padding: 10px 14px; border-radius: 8px; }
.drop-menu a:hover { background: var(--surface-2); }
.dropdown:hover .drop-menu { display: flex; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; background: var(--surface-2); border-radius: 20px; padding: 3px; font-size: 12px; font-weight: 600; }
.lang-switch a { padding: 4px 9px; border-radius: 16px; color: var(--text-dim); }
.lang-switch a.active { background: var(--primary); color: #fff; }
.nav-burger { display: none; background: none; border: 0; font-size: 24px; color: var(--text); cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  padding: 90px 0 70px; text-align: center;
  background:
    radial-gradient(60% 80% at 80% 10%, hsla(var(--hue), 80%, 50%, .12), transparent),
    radial-gradient(50% 70% at 15% 90%, hsla(38, 90%, 55%, .10), transparent);
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); max-width: 800px; margin: 0 auto 16px; }
.hero p { color: var(--text-dim); font-size: 18px; max-width: 620px; margin: 0 auto 36px; }

/* arama kutusu */
.search-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 14px; max-width: 900px; margin: 0 auto;
}
.search-bar select, .search-bar input {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 14px; min-width: 130px;
}
.search-bar input[type=text] { flex: 1; min-width: 200px; }

/* ---------- butonlar ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border: 0; cursor: pointer;
  border-radius: 10px; font: 600 15px 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px hsla(var(--hue), 70%, 40%, .35); }
.btn-outline { background: none; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- bölümler ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-size: 28px; }
.section-head a { color: var(--primary); font-weight: 600; font-size: 14px; }

/* hizmet kartları */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 26px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card .icon { font-size: 34px; margin-bottom: 14px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 14.5px; }

/* ilan kartları */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.listing-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.listing-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.listing-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.listing-card:hover .thumb img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 14px;
}
.badge.sale { background: var(--accent); color: hsl(30, 80%, 15%); }
.listing-card .body { padding: 16px; }
.listing-card .price { font-size: 20px; font-weight: 800; color: var(--primary); }
.listing-card h3 { font-size: 15.5px; font-weight: 600; margin: 6px 0 4px;
                   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card .meta { color: var(--text-dim); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- listeleme sayfası ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 26px; box-shadow: var(--shadow);
}
.filters select, .filters input {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px;
}
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--text-dim);
}
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- detay sayfası ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.gallery { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery .main-img { aspect-ratio: 16/10; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 6px; padding: 8px; background: var(--surface); overflow-x: auto; }
.gallery .thumbs img { width: 88px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .7; }
.gallery .thumbs img.active, .gallery .thumbs img:hover { opacity: 1; outline: 2px solid var(--primary); }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: sticky; top: 88px;
}
.info-card .price { font-size: 30px; font-weight: 800; color: var(--primary); }
.attr-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.attr-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.attr-table td:first-child { color: var(--text-dim); width: 45%; }
#map { height: 380px; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding: 48px 20px 28px; }
.site-footer h4 { margin-bottom: 12px; font-size: 15px; }
.site-footer a { display: block; color: var(--text-dim); font-size: 14px; padding: 3px 0; }
.site-footer a:hover { color: var(--primary); }
.site-footer p { color: var(--text-dim); font-size: 14px; margin: 10px 0; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 20px; font-size: 13px; color: var(--text-dim); text-align: center; }

/* ---------- mobil ---------- */
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 14px;
  }
  .main-nav.open { display: flex; }
  .nav-burger { display: block; }
  .drop-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 14px; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
}
