:root {
  --primary: #0f5c46;
  --primary-dark: #0a3f30;
  --accent: #d9a441;
  --bg: #f7f8f6;
  --text: #1d2521;
  --muted: #5c6a63;
  --card-bg: #ffffff;
  --border: #e4e7e3;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 92, 70, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.25; margin: 0 0 12px; }
p { margin: 0 0 12px; color: var(--muted); }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 42px; width: auto; border-radius: 6px; }
.brand-mark { font-size: 28px; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 18px; color: var(--primary-dark); }
.brand-text small { color: var(--muted); font-size: 11px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { font-weight: 600; color: var(--text); font-size: 15px; }
.main-nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 10px 18px; border-radius: 30px;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--primary-dark); border-radius: 2px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 64px 0 120px;
  text-align: center;
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); color: #fff; }
.hero p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 28px; }

/* Search box */
.search-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: -80px auto 40px;
  max-width: 980px;
  position: relative;
  z-index: 5;
}
.search-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.search-grid .full { grid-column: 1 / -1; }
.search-box select, .search-box input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: #fbfbfa;
}
.search-box button {
  grid-column: 1 / -1;
  background: var(--accent); color: #26200e; border: none; padding: 14px; border-radius: 10px;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.search-box button:hover { filter: brightness(0.95); }

/* Category grid */
.section { padding: 50px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head p { max-width: 560px; margin: 0 auto; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 26px 16px; text-align: center;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card .icon { font-size: 34px; margin-bottom: 10px; }
.cat-card strong { display: block; font-size: 15px; }

/* Listing cards */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.listing-card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.listing-thumb { position: relative; aspect-ratio: 4/3; background: #dfe6e2; overflow: hidden; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; color: #fff;
}
.badge-satilik { background: var(--primary); }
.badge-kiralik { background: var(--accent); color: #26200e; }
.listing-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.listing-price { font-size: 19px; font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.listing-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.listing-meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.listing-cta { margin-top: auto; display: inline-block; background: var(--bg); border: 1px solid var(--border);
  padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; text-align: center; }
.listing-cta:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Filter bar (ilanlar.php) */
.filter-bar {
  background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  margin-bottom: 26px;
}
.filter-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.filter-grid select, .filter-grid input {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit;
}
.filter-grid button {
  background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
}
.results-count { margin-bottom: 16px; color: var(--muted); font-size: 14px; }

/* Listing detail */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: #dfe6e2; margin-bottom: 10px; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--primary); }
.detail-title { font-size: 26px; margin-top: 18px; }
.detail-price { font-size: 28px; font-weight: 800; color: var(--primary-dark); }
.detail-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.spec-item { background: #fff; border-radius: 10px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.spec-item small { display: block; color: var(--muted); font-size: 12px; }
.spec-item strong { font-size: 16px; }
.contact-card {
  background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
  position: sticky; top: 90px;
}
.contact-card h3 { margin-bottom: 4px; }
.contact-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cbtn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 10px;
  font-weight: 700; font-size: 14px; }
.cbtn-call { background: var(--primary); color: #fff; }
.cbtn-sms { background: #2f6fb0; color: #fff; }
.cbtn-wa { background: #25D366; color: #fff; }
.cbtn:hover { filter: brightness(0.95); }

/* Static pages */
.page-content { max-width: 820px; margin: 0 auto; }
.page-content h1 { font-size: 30px; }

/* Footer */
.site-footer { background: var(--primary-dark); color: #d7e4de; padding: 46px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 15px; }
.footer-col a { display: block; color: #cfe0d8; margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: #cfe0d8; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 0 90px;
  font-size: 13px; color: #a9c1b7;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: #ffd98a; font-weight: 700; }

/* Mobile floating contact bar */
.mobile-contact-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  display: flex; background: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,0.12);
}
.mcb-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 0; font-size: 11px; font-weight: 700; gap: 3px; color: #fff; }
.mcb-call { background: var(--primary); }
.mcb-sms { background: #2f6fb0; }
.mcb-wa { background: #25D366; }

/* Buttons general */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 16px 20px; gap: 14px; border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: flex; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 58px; }
}
@media (max-width: 560px) {
  .search-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .detail-specs { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}
