/* =====================================================
   KİRALIK TARLA — STİL DOSYASI
   ===================================================== */

:root {
  --bg:          #faf7f0;
  --card:        #ffffff;
  --card-soft:   #f5f0e6;
  --primary:     #1f3a1f;
  --primary-2:   #4a6a3a;
  --accent:      #b8956a;
  --accent-2:    #d9b487;
  --text:        #1a2818;
  --muted:       #6b7259;
  --border:      #e5dfd0;
  --border-2:    #d8d0bc;
  --danger:      #b54a3a;
  --warn:        #c67e1f;
  --success:     #4a7c3a;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 1px 2px rgba(31,58,31,0.04), 0 4px 12px rgba(31,58,31,0.06);
  --shadow-lg:   0 10px 30px rgba(31,58,31,0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary);
  line-height: 1.2;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- HEADER ---------- */
header.site-head {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.head-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 20px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 1.4rem;
  color: var(--primary);
  display: flex; align-items: center; gap: 10px;
}
.brand .leaf {
  display: inline-block; width: 28px; height: 28px;
  background: var(--primary); border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
}
nav.main-nav {
  display: flex; gap: 6px; align-items: center;
}
nav.main-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; font-size: 0.92rem;
}
nav.main-nav a:hover { background: var(--card-soft); text-decoration: none; }
nav.main-nav a.active { background: var(--primary); color: #fff; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-family: inherit; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent;
  background: var(--primary); color: #fff;
  cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.btn:hover { background: var(--primary-2); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--card-soft); color: var(--primary); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); color: var(--primary); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #913a2c; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- LAYOUT ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 28px 20px; }
.container-sm { max-width: 540px; margin: 0 auto; padding: 28px 20px; }

.grid-2 { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- CARD ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-bottom: 14px; }

/* ---------- FORM ---------- */
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; margin-bottom: 6px;
  font-weight: 500; color: var(--primary);
  font-size: 0.88rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(74,106,58,0.12);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 600px) {
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.92rem; margin-bottom: 14px;
}
.alert-error   { background: #fbe9e5; color: var(--danger); border: 1px solid #f0c6bd; }
.alert-success { background: #e7f0e0; color: var(--success); border: 1px solid #c8d8b8; }
.alert-info    { background: #f0ebdf; color: var(--primary); border: 1px solid #d8d0bc; }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  padding: 60px 20px 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(184,149,106,.18) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(217,180,135,.14) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  position: relative;
}
.hero h1 {
  color: #fff; font-size: 2.6rem; margin-bottom: 12px;
}
.hero p {
  color: rgba(255,255,255,0.86);
  font-size: 1.1rem; max-width: 560px;
}
@media (max-width: 600px) { .hero h1 { font-size: 1.8rem; } }

/* ---------- İLAN GRID ---------- */
.ilan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.ilan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s ease;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--text);
}
.ilan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  text-decoration: none;
}
.ilan-card .kapak {
  aspect-ratio: 16/10;
  background: var(--card-soft) center/cover no-repeat;
  position: relative;
}
.ilan-card .kapak::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15) 100%);
}
.ilan-card .kapak.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 2.5rem;
}
.ilan-card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.ilan-card .baslik {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 6px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ilan-card .lokasyon {
  color: var(--muted); font-size: 0.85rem; margin-bottom: 10px;
}
.ilan-card .meta-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text); margin-top: auto; padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.ilan-card .fiyat {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 1.15rem;
  color: var(--primary);
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 0.74rem; font-weight: 600;
  background: var(--card-soft); color: var(--primary);
  border: 1px solid var(--border);
}
.badge-sulu     { background: #d6e7d4; color: #2c5e2a; border-color: #b9d3b6; }
.badge-yari     { background: #ece4cb; color: #7a5e1a; border-color: #d8c89a; }
.badge-susuz    { background: #e9e4d8; color: var(--muted); border-color: var(--border); }
.badge-bekleme  { background: #f1e7d0; color: var(--warn); border-color: #d8c89a; }
.badge-onayli   { background: #d6e7d4; color: var(--success); border-color: #b9d3b6; }
.badge-red      { background: #fbe9e5; color: var(--danger); border-color: #f0c6bd; }

/* ---------- FİLTRE ---------- */
.filtre-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filtre-bar input, .filtre-bar select {
  padding: 8px 12px; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  background: var(--card); font-family: inherit; font-size: 0.9rem;
  min-width: 130px;
}
.filtre-bar input:focus, .filtre-bar select:focus { outline: none; border-color: var(--primary-2); }

/* ---------- SAYFALAMA ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination button {
  padding: 7px 12px; border: 1px solid var(--border-2); background: var(--card);
  border-radius: var(--radius-sm); font-family: inherit; cursor: pointer; font-size: 0.9rem;
  color: var(--text);
}
.pagination button:hover { background: var(--card-soft); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- DETAY ---------- */
.galeri {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 22px;
  background: var(--card-soft);
}
.galeri .resim {
  background: var(--card-soft) center/cover no-repeat;
  cursor: pointer;
}
.galeri .resim:first-child { grid-row: 1 / 3; }
@media (max-width: 700px) {
  .galeri { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .galeri .resim:first-child { grid-row: auto; aspect-ratio: 16/9; }
  .galeri .resim:not(:first-child) { aspect-ratio: 4/3; }
}
.bilgi-tablosu {
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px;
  font-size: 0.95rem;
}
.bilgi-tablosu dt { color: var(--muted); font-weight: 500; }
.bilgi-tablosu dd { color: var(--text); }

#harita { width: 100%; height: 320px; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 16px; }

/* ---------- MESAJ ---------- */
.mesaj-listesi { display: flex; flex-direction: column; gap: 12px; }
.mesaj-item {
  background: var(--card-soft); padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.mesaj-item .basa { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 0.85rem; }
.mesaj-item .ad { font-weight: 600; color: var(--primary); }
.mesaj-item .zaman { color: var(--muted); font-size: 0.8rem; }
.mesaj-item .mesaj { color: var(--text); white-space: pre-wrap; }

/* ---------- TABLE (admin) ---------- */
.table-wrap { overflow-x: auto; }
table.tbl {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
  background: var(--card);
}
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th {
  background: var(--card-soft); color: var(--primary);
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em;
  text-transform: uppercase;
}
table.tbl tbody tr:hover { background: var(--card-soft); }
table.tbl td .btn { margin-right: 4px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs .tab {
  padding: 10px 18px; background: transparent; border: 0;
  cursor: pointer; font-family: inherit; font-size: 0.92rem; font-weight: 500;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.tabs .tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.stat-box .label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-box .deger { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.8rem; color: var(--primary); }

/* ---------- RESİM ÖNİZLEME ---------- */
.resim-onizleme {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px; margin-top: 10px;
}
.resim-onizleme .item {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-sm);
  background: var(--card-soft) center/cover no-repeat;
  border: 1px solid var(--border);
}
.resim-onizleme .item .sil {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 0;
}

/* ---------- HELPERS ---------- */
.muted { color: var(--muted); }
.right { text-align: right; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ico { font-size: 3rem; margin-bottom: 12px; }

/* ---------- FOOTER ---------- */
footer.site-foot {
  margin-top: 60px; padding: 32px 20px;
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
