/* ==========================================================================
   Nöbetim — tasarım sistemi
   Renk/aralık/komponent tokenları prototip referansından korunmuştur.
   Mobile-first; tüm renkler CSS değişkenleriyle, dark mode tek noktadan.
   ========================================================================== */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #101827;
  --muted: #667085;
  --line: #d9e2ef;
  --brand: #16a085;
  --brand-2: #0f766e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --ok: #22c55e;
  --shadow: 0 14px 36px rgba(16, 24, 39, .08);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
}

[data-theme="dark"] {
  --bg: #000000;
  --surface: #0a0a0c;
  --surface-2: #121215;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: #1e1f24;
  --brand: #31d0aa;
  --brand-2: #1aa38b;
  --shadow: 0 18px 40px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }

/* [hidden] her zaman gizlesin — .empty gibi display:grid kuralları geçmesin */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.app { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link — erişilebilirlik */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0; font-weight: 800;
}
.skip-link:focus { left: 0; }

/* Görünür klavye odağı */
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ===== Topbar ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 248, 251, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .topbar { background: rgba(11, 17, 23, .86); }

.nav {
  max-width: var(--maxw); margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 12px;
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 850; letter-spacing: -.03em; font-size: 18px; }
.logo {
  width: 38px; height: 38px; border-radius: 13px;
  background: #e11d48;
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 20px;
  flex: none;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}
.navlinks { display: flex; gap: 18px; color: var(--muted); font-size: 14px; align-items: center; }
.navlinks a:hover { color: var(--text); }
.navlinks a[aria-current="page"] { color: var(--brand-2); font-weight: 800; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.icon-btn, .btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 11px 15px; font-weight: 700; cursor: pointer;
  font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
  min-height: 44px; /* dokunmatik hedef */
}
.icon-btn { padding: 11px; min-width: 44px; }
.btn:hover { border-color: var(--brand); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.container { max-width: var(--maxw); margin: auto; padding: 28px 20px; }

/* ===== Hero ============================================================== */
.hero { display: grid; grid-template-columns: 1.06fr .94fr; gap: 26px; align-items: center; padding: 30px 0; }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center; color: var(--brand-2);
  font-weight: 800; background: rgba(22, 160, 133, .1); padding: 8px 12px;
  border-radius: 999px; font-size: 13px;
}
.h1 { font-size: 54px; line-height: 1.02; margin: 18px 0 14px; letter-spacing: -.06em; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 680px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.hero-cta .btn { font-size: 16px; padding: 15px 22px; }

/* ===== Search card ====================================================== */
.search-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); margin-top: 18px;
}
.search-row { display: grid; grid-template-columns: 1.4fr 1.4fr auto auto; gap: 8px; }
[data-use-location-home] {
  font-size: 13px;
  padding: 11px 12px;
  white-space: nowrap;
}
.field {
  display: flex; align-items: center; gap: 6px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 16px; padding: 13px 10px; color: var(--muted);
  font-weight: 600; font-size: 14px;
}
.field input, .field select, .field textarea {
  width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; font-family: inherit;
}
.field select.placeholder-active {
  color: var(--muted) !important;
}
.field select option {
  color: var(--text);
  background: var(--surface);
}
.field.col { flex-direction: column; align-items: stretch; gap: 6px; }
.field.col > span { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 9px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer;
  min-height: 38px; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); border-color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
button.chip { font-family: inherit; }

/* ===== Panels / sections =============================================== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-title h2 { font-size: 28px; margin: 0; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 440px;
  margin: 0 auto;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-map-mockup {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: var(--radius);
  background: radial-gradient(circle at 20% 20%, rgba(22, 160, 133, 0.15), transparent 40%), linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateX(20deg) rotateY(-20deg) rotateZ(10deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.hero-visual:hover .hero-map-mockup {
  transform: rotateX(15deg) rotateY(-15deg) rotateZ(5deg);
}
.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.user-pulse {
  position: absolute;
  left: 40px;
  top: 160px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
}
.user-pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: pulse-ring 2s infinite ease-out;
}
.pharmacy-pin {
  position: absolute;
  left: 160px;
  top: 40px;
  font-size: 24px;
  transform: translate(-50%, -100%);
  animation: pin-bounce 2s infinite ease-in-out;
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes pin-bounce {
  0%, 100% { transform: translate(-50%, -100%) translateY(0); }
  50% { transform: translate(-50%, -100%) translateY(-6px); }
}

/* Floating Glassmorphic Cards */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(16, 24, 39, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  z-index: 10;
  text-align: left;
}
[data-theme="dark"] .floating-card {
  background: rgba(12, 12, 14, 0.72);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.floating-card:hover {
  box-shadow: 0 20px 40px rgba(16, 24, 39, 0.12);
}
[data-theme="dark"] .floating-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}
.floating-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.floating-card h4 {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.floating-card p {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Staggered offsets for 3D depth */
.floating-card.c1 {
  left: 10px;
  top: 50px;
  transform: translateZ(40px);
}
.floating-card.c2 {
  right: 10px;
  bottom: 80px;
  transform: translateZ(60px);
}
.floating-card.c3 {
  left: 20px;
  bottom: 40px;
  transform: translateZ(80px);
}
.hero-visual:hover .floating-card.c1 {
  transform: translateZ(55px) translateY(-5px);
}
.hero-visual:hover .floating-card.c2 {
  transform: translateZ(80px) translateY(5px) translateX(3px);
}
.hero-visual:hover .floating-card.c3 {
  transform: translateZ(105px) translateY(-3px) translateX(-3px);
}

@media (max-width: 900px) {
  .hero-visual { display: none; } /* mobilde hero listesi zaten gizlenir */
}

/* ===== Pharmacy card =================================================== */
.pharmacy-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card-head h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.03em; }
.card-head .muted { font-size: 14px; }
.badge { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 7px 10px; white-space: nowrap; }
.badge.ok { background: rgba(34, 197, 94, .12); color: var(--ok); }
.badge.warn { background: rgba(245, 158, 11, .14); color: var(--warning); }
.badge.danger { background: rgba(239, 68, 68, .14); color: var(--danger); }
.badge.muted { background: var(--surface-2); color: var(--muted); }

.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.metric { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 13px; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.metric.countdown { color: var(--brand-2); }
.metric.countdown.urgent { color: var(--danger); }

/* Yoğunluk göstergesi */
.density { display: inline-flex; align-items: center; gap: 6px; }
.density .dots { display: inline-flex; gap: 3px; }
.density .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.density.calm .dot:nth-child(1) { background: var(--ok); }
.density.normal .dot:nth-child(1), .density.normal .dot:nth-child(2) { background: var(--warning); }
.density.high .dot { background: var(--danger); }

.card-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }

.actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.actions.two { grid-template-columns: 1fr 1fr; }
.actions .btn { border-radius: 14px; padding: 12px 8px; font-size: 13px; text-align: center; }

/* Favori butonu */
.fav-btn { border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.fav-btn[aria-pressed="true"] { background: rgba(239, 68, 68, .12); border-color: var(--danger); color: var(--danger); }

/* ===== Eczane akordiyon listesi ======================================= */
.pharm-list { display: grid; gap: 10px; }
.pharm-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); overflow: hidden;
}
.pharm-item > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px; min-height: 56px;
}
.pharm-item > summary::-webkit-details-marker { display: none; }
.pharm-item > summary:hover { background: var(--surface-2); }
.pharm-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pharm-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pharm-name { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.pharm-line { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.pharm-txt { flex: 1; min-width: 0; word-break: break-word; line-height: 1.35; }
.copy-ic { flex: none; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 9px; display: inline-grid; place-items: center; cursor: pointer; font-size: 15px; }
.copy-ic:hover { border-color: var(--brand); color: var(--brand-2); }
.pharm-sub { font-size: 13px; }
.chev {
  color: var(--muted);
  font-size: 11px;
  transition: transform .22s cubic-bezier(0.4, 0, 0.2, 1), background-color .15s ease, color .15s ease, border-color .15s ease;
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.pharm-item > summary:hover .chev {
  background: var(--line);
  color: var(--text);
  border-color: var(--brand);
}
.pharm-item[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.pharm-item[open] .chev {
  transform: rotate(180deg);
  background: rgba(22, 160, 133, 0.12);
  color: var(--brand);
  border-color: var(--brand);
}
.pharm-body { padding: 14px 18px 16px; display: grid; gap: 10px; }

.copy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.copy-text { font-size: 14px; color: var(--text); word-break: break-word; min-width: 0; }
a.copy-text:hover { color: var(--brand-2); }
.row-actions { display: flex; gap: 6px; flex: none; }
.copy-row .icon-btn { min-height: 38px; min-width: 38px; padding: 9px; font-size: 15px; }

/* ===== Layout (liste + sidebar) ======================================= */
.layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; }
.sidebar { position: sticky; top: 80px; align-self: start; }
.filter { display: grid; gap: 12px; }
.location-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.location-card b { display: block; font-size: 16px; margin-top: 2px; }

/* ===== Map blocks ===================================================== */
.map-block { height: 520px; border-radius: var(--radius); background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.map-controls { position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 32px); }

/* Harita sayfası — alt sheet */
.sheet {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow);
}
.sheet .grab { width: 42px; height: 5px; border-radius: 999px; background: var(--line); margin: -4px auto 12px; }

/* ===== SEO / detay ==================================================== */
.seo-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
/* Kompakt hero: AZ YÜKSEKLİK → liste daha çok görünür (mobil + masaüstü) */
.seo-hero.compact { padding: 15px 18px; }
.seo-hero.narrow { max-width: 620px; margin: 0 auto; } /* sadece il-seç sayfası */
.seo-hero .hero-sm { font-size: 23px; letter-spacing: -.03em; margin: 2px 0 4px; line-height: 1.12; }
.seo-hero .hero-sub { font-size: 14px; margin: 0 0 10px; line-height: 1.45; }
.seo-hero.compact .breadcrumbs { margin-bottom: 6px; }
.seo-hero.compact .quick { margin-top: 8px; }
.seo-hero.compact .field { max-width: 100%; }
@media (max-width: 600px) {
  .seo-hero .hero-sm { font-size: 20px; }
  .seo-hero .hero-sub { font-size: 13px; }
  .seo-hero.compact { padding: 13px 14px; }
}
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a:hover { color: var(--text); }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; }
.detail-title { font-size: 40px; letter-spacing: -.05em; margin: 8px 0; line-height: 1.05; }
.info-list { display: grid; gap: 10px; }
.info-row { display: flex; justify-content: space-between; gap: 15px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 13px; font-size: 14px; }
.info-row b { text-align: right; }

.prose { line-height: 1.7; color: var(--text); }
.prose p { color: var(--muted); }
.prose ul { color: var(--muted); padding-left: 20px; line-height: 1.8; }
.prose h2 { font-size: 22px; letter-spacing: -.03em; margin: 22px 0 10px; }

/* ===== City list ====================================================== */
.city-list { columns: 4; list-style: none; padding: 0; margin: 0; }
.city-list li { break-inside: avoid; margin-bottom: 10px; }
.city-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px; font-weight: 700; color: var(--muted); }
.city-list a:hover { color: var(--text); border-color: var(--brand); }

/* ===== FAQ ============================================================ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 16px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }

/* ===== Tabs / sort ==================================================== */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 10px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; color: var(--muted); cursor: pointer; font-size: 13px; font-family: inherit; min-height: 40px; }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== Forms ========================================================== */
.form { display: grid; gap: 12px; }
.textarea { min-height: 110px; resize: vertical; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-weight: 700;
}
.choice input { accent-color: var(--brand); width: 18px; height: 18px; }
.choice.selected { border-color: var(--brand); background: rgba(22, 160, 133, .08); }

/* ===== Night Banner ==================================================== */
.night-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand-2);
  margin-bottom: 18px;
}
[data-theme="dark"] .night-banner {
  background: rgba(49, 208, 170, 0.06);
  border-color: rgba(49, 208, 170, 0.15);
  color: var(--brand);
}

/* ===== Empty / loading states ========================================= */
.empty { display: grid; place-items: center; text-align: center; min-height: 420px; }
.empty h1 { font-size: 42px; letter-spacing: -.05em; }
.state-icon { font-size: 48px; margin-bottom: 8px; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius); min-height: 180px; border: 1px solid var(--line); }
.pharm-list .skeleton { min-height: 58px; border-radius: var(--radius-sm); }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
  transform: translateX(-100%); animation: shimmer 1.3s infinite;
}
[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ===== Toast ========================================================== */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px;
  background: var(--text); color: var(--bg); padding: 13px 18px; border-radius: 14px;
  display: none; z-index: 60; max-width: 90vw; text-align: center; font-weight: 600; box-shadow: var(--shadow);
}

/* ===== Footer ========================================================= */
.footer { margin-top: 40px; padding: 36px 20px 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: var(--surface); }
.footer-inner { max-width: var(--maxw); margin: auto; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.footer-cols h4 { color: var(--text); font-size: 14px; margin: 0 0 12px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ===== Mobil alt navigasyon =========================================== */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(246, 248, 251, .94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
}
[data-theme="dark"] .bottom-nav { background: rgba(11, 17, 23, .94); }
.bottom-nav a { display: grid; place-items: center; gap: 3px; font-size: 11px; color: var(--muted); padding: 6px 4px; font-weight: 700; border-radius: 12px; }
.bottom-nav a .ico { font-size: 19px; }
.bottom-nav a[aria-current="page"] { color: var(--brand-2); background: var(--surface-2); }

/* ===== Disclaimer satırı ============================================== */
.disclaimer { background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); color: var(--text); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; line-height: 1.5; display: flex; gap: 10px; }
.disclaimer .ico { flex: none; }

/* ===== Responsive ===================================================== */
@media (max-width: 900px) {
  .hero, .layout, .detail-grid { grid-template-columns: 1fr; }
  .h1 { font-size: 36px; }
  .detail-title { font-size: 30px; }
  .search-row { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .navlinks { display: none; }
  .city-list { columns: 2; }
  .sidebar { position: static; }
  .phone-shell { display: none; }
  .phone-map { height: 340px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer { padding-bottom: 100px; }
  .bottom-nav { display: grid; }
  .container { padding: 20px 16px; }
  .section-title h2 { font-size: 23px; }
  .nav-actions .btn.primary { display: none; } /* mobilde alt navda mevcut */
}

@media (max-width: 520px) {
  .city-list { columns: 1; }
  .choice-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
