:root {
  --primary: #1e3a8a;
  --accent: #25d366;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 820px;
  margin: 0 auto;
}

/* Üst Başlık */
header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  padding: 32px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

header h1 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

header p {
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Harita & Konum Bölümü */
.map-box {
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.map-box h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.map-box img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.map-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

/* Kategori Filtreleri */
.categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cat-btn {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
}

.cat-btn.active,
.cat-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Esnaf Kartları Izgarası */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.card {
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  width: fit-content;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Butonlar */
.actions {
  display: flex;
  gap: 8px;
}

.btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-call {
  background: #f1f5f9;
  color: var(--text);
}

.btn-wp {
  background: var(--accent);
  color: white;
}

/* Esnaf Başvuru Kutusu */
.cta-box {
  background: white;
  border: 2px dashed #93c5fd;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.cta-box h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.cta-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
}

/* Harita Tıklanabilirlik İpucu */
.map-box img {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-box img:hover {
  transform: scale(1.005);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Lightbox (Tam Ekran Büyütme) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Alt Bilgi (Footer) */
.site-footer {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .disclaimer {
  line-height: 1.65;
  margin-bottom: 12px;
}

.site-footer .disclaimer strong {
  color: var(--text);
}

.site-footer .footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}


/* Sayfalar Arası Gezinme Menüsü */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid #cbd5e1;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-link.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

@media (max-width: 520px) {
  .page-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
  }
}