/* ============================================================
   District Pages — Yerel (İlçe) Sayfa Tasarım Sistemi
   Ana sayfadan ayrı, her ilçeye özgü görünüm.
   ============================================================ */

body.district-page {
    --d-accent: #2563eb;
    --d-accent-dark: #1d4ed8;
    --d-accent-soft: rgba(37, 99, 235, 0.10);
    --d-accent-line: rgba(37, 99, 235, 0.26);
    --d-ink: #0f172a;
    --d-muted: #64748b;
    --d-surface: #ffffff;
    --d-surface-alt: #f6f7f9;
    --d-ring: rgba(15, 23, 42, 0.08);
}

/* ---- Her ilçe için özgün vurgu rengi ---- */
body.district-duzce-merkez { --d-accent: #2563eb; --d-accent-dark: #1d4ed8; --d-accent-soft: rgba(37, 99, 235, 0.10); --d-accent-line: rgba(37, 99, 235, 0.26); }
body.district-akcakoca      { --d-accent: #0284c7; --d-accent-dark: #0369a1; --d-accent-soft: rgba(2, 132, 199, 0.10);  --d-accent-line: rgba(2, 132, 199, 0.26); }
body.district-golyaka       { --d-accent: #0d9488; --d-accent-dark: #0f766e; --d-accent-soft: rgba(13, 148, 136, 0.10); --d-accent-line: rgba(13, 148, 136, 0.26); }
body.district-cumayeri      { --d-accent: #d97706; --d-accent-dark: #b45309; --d-accent-soft: rgba(217, 119, 6, 0.12);  --d-accent-line: rgba(217, 119, 6, 0.28); }
body.district-kaynasli      { --d-accent: #4f46e5; --d-accent-dark: #4338ca; --d-accent-soft: rgba(79, 70, 229, 0.10);  --d-accent-line: rgba(79, 70, 229, 0.26); }
body.district-gumusova      { --d-accent: #475569; --d-accent-dark: #334155; --d-accent-soft: rgba(71, 85, 105, 0.10);  --d-accent-line: rgba(71, 85, 105, 0.26); }
body.district-yigilca       { --d-accent: #15803d; --d-accent-dark: #166534; --d-accent-soft: rgba(21, 128, 61, 0.10);  --d-accent-line: rgba(21, 128, 61, 0.26); }
body.district-cilimli       { --d-accent: #65a30d; --d-accent-dark: #4d7c0f; --d-accent-soft: rgba(101, 163, 13, 0.12); --d-accent-line: rgba(101, 163, 13, 0.28); }
body.district-berceste      { --d-accent: #dc2626; --d-accent-dark: #b91c1c; --d-accent-soft: rgba(220, 38, 38, 0.10);  --d-accent-line: rgba(220, 38, 38, 0.26); }

/* ---------- Breadcrumb ---------- */
.district-breadcrumb {
    background: var(--d-surface-alt);
    border-bottom: 1px solid var(--border-color);
    padding: 0.7rem 0;
    font-size: 0.85rem;
}
.district-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
}
.district-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--d-muted);
}
.district-breadcrumb li + li::before {
    content: '\203A';
    color: #cbd5e1;
    font-weight: 700;
}
.district-breadcrumb a {
    color: var(--d-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.district-breadcrumb a:hover { color: var(--d-accent); }
.district-breadcrumb [aria-current="page"] {
    color: var(--d-ink);
    font-weight: 600;
}


/* ---------- District Hero ---------- */
.district-hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
    background:
        radial-gradient(900px 420px at 88% -12%, var(--d-accent-soft), transparent 62%),
        linear-gradient(180deg, #ffffff 0%, var(--d-surface-alt) 100%);
}
.district-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--d-accent-line), transparent);
}
.district-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}
.district-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--d-accent-soft);
    border: 1px solid var(--d-accent-line);
    color: var(--d-accent-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.district-eyebrow svg { flex-shrink: 0; }
.district-hero-copy h1 {
    margin: 1.1rem 0 1rem;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--d-ink);
}
.district-hero-copy > p {
    max-width: 46ch;
    font-size: 1.08rem;
    color: #475569;
}
.district-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1.9rem 0 1.4rem;
}
.district-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
}
.district-hero-badges li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.district-hero-badges li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--d-accent);
    box-shadow: 0 0 0 4px var(--d-accent-soft);
}

/* ---------- Yerel Bilgi Kartı ---------- */
.district-fact-card {
    background: var(--d-surface);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 45px -25px rgba(15, 23, 42, 0.35);
}
.district-fact-photo {
    position: relative;
    min-height: 210px;
    background-size: cover;
    background-position: center;
}
.district-fact-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.55) 100%);
}
.district-fact-live {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--d-ink);
    font-size: 0.76rem;
    font-weight: 700;
}
.district-fact-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    animation: districtPulse 1.6s infinite;
}
@keyframes districtPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
    50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}
.district-fact-body { padding: 1.4rem 1.5rem 1.6rem; }
.district-fact-body h2 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--d-muted);
    margin-bottom: 1rem;
}
.district-fact-list { list-style: none; }
.district-fact-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border-color);
}
.district-fact-list li:last-child { border-bottom: 0; }
.district-fact-list span { font-size: 0.9rem; color: var(--d-muted); }
.district-fact-list strong {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--d-accent-dark);
    white-space: nowrap;
}
.district-fact-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--d-accent);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}
.district-fact-cta:hover { background: var(--d-accent-dark); transform: translateY(-2px); }

/* ---------- Hizmet Bölgesi (district-zone) ---------- */
.district-zone { padding: 4rem 0; background: var(--d-surface); }
.district-zone-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.2rem;
    align-items: start;
}
.district-section-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--d-ink);
    letter-spacing: -0.01em;
    margin-bottom: 0.7rem;
}
.district-section-sub {
    color: var(--d-muted);
    font-size: 1rem;
    margin-bottom: 1.6rem;
    max-width: 52ch;
}


/* ---------- Yerel Bölge Bölümleri ---------- */
.district-zones { padding: 4rem 0; background: var(--d-surface); }
.district-zone-list { list-style: none; }
.district-zone-list li {
    position: relative;
    padding: 1rem 1.1rem 1rem 1.2rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--d-accent);
    border-radius: 0 14px 14px 0;
    background: #ffffff;
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow-sm);
}
.district-zone-list li strong { color: var(--d-accent-dark); }
.district-zone-list li:last-child { margin-bottom: 0; }

/* ---------- Bölge SEO Metni ---------- */
.district-seo-text {
    margin-top: 1.4rem;
    padding: 1.1rem 1.25rem;
    border: 1px dashed var(--d-accent-line);
    border-radius: 14px;
    background: var(--d-surface-alt);
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Özel Hizmet Bandı ---------- */
.district-spotlight {
    border: 1px solid var(--d-accent-line);
    border-radius: 20px;
    background:
        radial-gradient(420px 220px at 100% 0%, var(--d-accent-soft), transparent 65%),
        var(--d-surface-alt);
    padding: 1.8rem;
    position: sticky;
    top: 190px;
}
.district-spotlight h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--d-ink);
    margin-bottom: 0.6rem;
}
.district-spotlight p { color: #475569; font-size: 0.96rem; }
.district-spotlight .district-mini-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.1rem;
}
.district-spotlight .district-mini-badges span {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--d-accent-dark);
    background: #ffffff;
    border: 1px solid var(--d-accent-line);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
}

/* ---------- Süreç Adımları ---------- */
.district-steps { padding: 0 0 4rem; background: var(--d-surface); }
.district-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.district-step {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: #ffffff;
    padding: 1.4rem 1.2rem;
    overflow: hidden;
}
.district-step::before {
    content: attr(data-step);
    position: absolute;
    top: 0.6rem;
    right: 0.9rem;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--d-accent-soft);
    line-height: 1;
}
.district-step h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--d-ink);
    margin-bottom: 0.4rem;
}
.district-step p { font-size: 0.88rem; color: var(--d-muted); }
.district-step a { color: var(--d-accent-dark); font-weight: 700; text-decoration: none; }

/* ---------- İlçe Sayfalarında Ortak Bölüm Başlıkları ---------- */
body.district-page .services-header h2,
body.district-page .why-choose-header h2,
body.district-page .faq-header h2,
body.district-page .service-areas-header h2,
body.district-page .section-header h2 {
    position: relative;
}
body.district-page .trust {
    border-top: 3px solid var(--d-accent);
}

/* ---------- Metin Vurguları (strong/mark) ---------- */
body.district-page mark {
    background: var(--d-accent-soft);
    color: var(--d-accent-dark);
    padding: 0.05em 0.3em;
    border-radius: 5px;
    font-weight: 700;
}
body.district-page p strong {
    color: var(--d-accent-dark);
}
body.district-page .district-zone-list li b {
    color: var(--d-ink);
}



/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .district-hero-grid,
    .district-zone-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .district-hero-copy h1 { font-size: 2.2rem; }
    .district-spotlight { position: static; }
    .district-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .district-hero { padding: 2.5rem 0 3rem; }
}
@media (max-width: 560px) {
    .district-hero-copy h1 { font-size: 1.8rem; }
    .district-steps-grid { grid-template-columns: 1fr; }
    .district-hero-actions .btn { width: 100%; justify-content: center; }
}

