/* ============ DEĞİŞKENLER ============ */
:root {
  --red: #E4002B;
  --red-dark: #B5001F;
  --blue: #003DA5;
  --blue-dark: #002d7a;
  --ink: #1A1D24;
  --gray-700: #4B5165;
  --gray-400: #8890A0;
  --gray-200: #C7CCD6;
  --gray-100: #EDEFF3;
  --gray-50: #F7F8FA;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(26, 29, 36, 0.08);
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.section-tag {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 8px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--gray-700); }
.bg-gray { background: var(--gray-50); }

/* ============ BUTONLAR ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--blue); color: var(--white); }
.btn-secondary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; border-color: var(--gray-200); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.06); border-color: var(--gray-100); }
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo .logo-badge {
  background: var(--red);
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.logo .logo-sub { color: var(--blue); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a { font-weight: 500; color: var(--gray-700); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); border-color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(228, 0, 43, .25);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  border: 4px solid rgba(255,255,255,.15);
}

/* ============ STAT ROW ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--red); }
.stat-card span { color: var(--gray-700); font-size: .9rem; }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 32px 24px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gray-50);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.service-card p { color: var(--gray-700); font-size: .95rem; margin-bottom: 0; }

/* ============ LISTING CARDS ============ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.listing-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  background: var(--white);
}
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.listing-card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); }
.listing-card-image img { width: 100%; height: 100%; object-fit: cover; }
.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--white);
}
.listing-badge-satilik { background: var(--blue); }
.listing-badge-kiralik { background: var(--red); }
.listing-card-body { padding: 20px; }
.listing-price { font-family: var(--font-heading); font-weight: 700; color: var(--red); font-size: 1.15rem; margin-bottom: 6px; }
.listing-title { font-size: 1.05rem; margin-bottom: 10px; }
.listing-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--gray-700); font-size: .85rem; }
.listing-meta span { background: var(--gray-50); padding: 4px 10px; border-radius: 6px; }

.view-all-wrap { text-align: center; margin-top: 40px; }

/* ============ FILTER BAR ============ */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 12px;
  background: var(--gray-50);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  align-items: end;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label { font-size: .8rem; color: var(--gray-700); font-weight: 600; }
.filter-field select,
.filter-field input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-family: var(--font-body);
  font-size: .9rem;
  background: var(--white);
}
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-700); }

/* ============ LISTING DETAIL ============ */
.listing-detail {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}
.listing-detail-gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.listing-detail-price { font-family: var(--font-heading); font-size: 1.8rem; color: var(--red); font-weight: 700; margin: 12px 0; }
.listing-detail-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--gray-50);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.listing-detail-specs div { text-align: center; }
.listing-detail-specs strong { display: block; font-family: var(--font-heading); }
.listing-detail-specs span { font-size: .8rem; color: var(--gray-700); }
.listing-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
#relatedListings { margin-top: 72px; }
#relatedListings h2 { margin-bottom: 24px; }

/* ============ ABOUT / BIO ============ */
.bio-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.bio-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.remax-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.remax-fact {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
}
.remax-fact strong { display: block; color: var(--red); font-family: var(--font-heading); font-size: 1.4rem; }
.remax-fact span { color: var(--gray-700); font-size: .9rem; }

/* ============ CTA STRIP ============ */
.cta-strip {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-strip h2 { margin-bottom: 12px; }
.cta-strip .btn-primary { background: var(--white); color: var(--red); }
.cta-strip .btn-primary:hover { background: var(--gray-100); }
.cta-actions { display: flex; gap: 16px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ============ ANKET (SURVEY) ============ */
.survey-wrap { max-width: 640px; margin: 0 auto; }
.survey-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.survey-question { margin-bottom: 28px; }
.survey-question label { display: block; font-weight: 600; margin-bottom: 10px; }
.star-rating { display: flex; gap: 6px; }
.star-rating button {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-200);
  padding: 0;
  transition: transform .1s ease;
}
.star-rating button:hover { transform: scale(1.15); }
.star-rating button.active { color: #F5A623; }
.recommend-toggle { display: flex; gap: 12px; }
.recommend-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: .9rem;
}
.recommend-toggle input { width: auto; margin: 0; }
.recommend-toggle input:checked + span { font-weight: 700; }
.survey-thanks { text-align: center; padding: 40px 0; }
.survey-thanks .icon { font-size: 3rem; margin-bottom: 16px; }

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.contact-info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-card p { color: var(--gray-700); margin-bottom: 0; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; display: block; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-family: var(--font-body);
  font-size: .95rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 24px; border: 1px solid var(--gray-100); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: var(--gray-200); padding: 56px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-grid a { color: var(--gray-200); display: block; padding: 4px 0; font-size: .9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: .85rem;
  color: var(--gray-400);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  font-size: 1.6rem;
  z-index: 90;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; margin: 0 auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .services-grid, .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .bio-grid, .contact-grid, .listing-detail { grid-template-columns: 1fr; }
  .remax-fact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform .2s ease;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .services-grid, .listings-grid, .filter-bar, .remax-fact-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
