/* ===== Base ===== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* ===== Navbar ===== */
.navbar {
    padding: 0.75rem 0;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.brand-icon {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-section .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* ===== Steps ===== */
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

/* ===== Feature Bullet ===== */
.feature-bullet {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Feature Cards ===== */
.feature-card {
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ===== Cards ===== */
.card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

.card.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06) !important;
}

/* İlçe/Mahalle card links */
.card.text-decoration-none {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e2e8f0;
}

.card.text-decoration-none:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #1976d2;
}

/* ===== Map ===== */
#map {
    border-radius: 0 0 12px 12px;
    z-index: 1;
}

.parsel-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: none;
    padding: 0;
    overflow: hidden;
}

.parsel-popup .leaflet-popup-content {
    margin: 14px 20px;
}

.parsel-popup .leaflet-popup-tip {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.leaflet-control-layers {
    border-radius: 10px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important;
    border: none !important;
    padding: 8px 12px !important;
}

.leaflet-control-layers-base label {
    margin-bottom: 4px;
    font-size: 13px;
}

.leaflet-control-zoom a {
    border-radius: 8px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important;
    border-radius: 10px !important;
}

.leaflet-bar a {
    border-bottom: 1px solid #eee !important;
}

/* ===== Tables ===== */
.table th {
    font-size: 0.875rem;
}

/* ===== Accordion ===== */
.accordion-item {
    border-radius: 8px !important;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.accordion-button:not(.collapsed) {
    background-color: #e3f2fd;
    color: #0d47a1;
    font-weight: 600;
}

.accordion-button {
    font-weight: 500;
}

/* ===== Footer ===== */
.footer-section {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #cbd5e1;
    padding: 3.5rem 0 2rem;
    margin-top: 3rem;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #64b5f6;
}

.disclaimer-box {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.775rem;
    color: #94a3b8;
}

.disclaimer-box strong {
    color: #ffc107;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: #1976d2;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ===== Forms ===== */
.form-select, .form-control {
    border-radius: 8px;
    border-color: #d1d5db;
}

.form-select:focus, .form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.15);
}

.form-select-lg, .form-control-lg {
    border-radius: 10px;
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.35);
}

.btn-outline-primary {
    border-radius: 8px;
    font-weight: 500;
    border-width: 1.5px;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.2);
}

/* ===== Badges ===== */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

/* ===== SEO Section ===== */
.bg-light {
    background-color: #f1f5f9 !important;
}

/* ===== Lead text ===== */
.lead {
    color: #64748b;
    font-size: 1.1rem;
}

/* ===== Page headings ===== */
h1.fw-bold, .h2.fw-bold {
    color: #1e293b;
}

/* ===== Alert ===== */
.alert {
    border-radius: 10px;
    border: none;
}

/* ===== Sorgu Hero ===== */
.sorgu-hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
    padding: 48px 0 40px;
}

/* ===== Result Header ===== */
.result-header {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

/* ===== Info Stat Cards ===== */
.info-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}

.info-stat-unit {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ===== Detail Card ===== */
.detail-header {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #94a3b8;
    font-weight: 500;
}

.detail-value {
    color: #1e293b;
    text-align: right;
}

/* ===== Loading spinner ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Il Hero Banner ===== */
.il-hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
    padding: 32px 0 64px;
    position: relative;
    overflow: hidden;
}

.il-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.il-hero > .container { position: relative; z-index: 1; }

.il-hero .breadcrumb { font-size: 0.8rem; }
.il-hero .breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.il-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

.il-stat-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 10px 20px;
    text-align: center;
    backdrop-filter: blur(4px);
}

.il-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.il-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Section Icon ===== */
.section-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1565c0;
    flex-shrink: 0;
}

/* ===== Ilce Cards ===== */
.ilce-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.ilce-card:hover {
    border-color: #1976d2;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.12);
    transform: translateY(-2px);
}

.ilce-card-body {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ilce-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.ilce-card:hover .ilce-card-title { color: #1565c0; }

.ilce-card-desc {
    font-size: 0.7rem;
    color: #94a3b8;
    display: none;
}

.ilce-card-arrow {
    color: #cbd5e1;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

.ilce-card:hover .ilce-card-arrow {
    color: #1976d2;
    transform: translateX(3px);
}

/* ===== Content Cards ===== */
.content-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.content-card-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
}

.content-card-body {
    padding: 20px;
}

.content-card-body p {
    color: #475569;
    line-height: 1.7;
}

/* ===== Info Boxes ===== */
.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    height: 100%;
}

.info-box-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.info-box-text {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ===== Steps List ===== */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1565c0, #1976d2);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-item div:last-child {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    padding-top: 4px;
}

/* ===== Custom Searchable Dropdown ===== */
.cs-dropdown {
    position: relative;
}

.cs-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    color: #2c3e50;
    min-height: 38px;
    text-align: left;
}

.cs-dropdown-toggle:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.15);
    outline: none;
}

.cs-dropdown-toggle.disabled {
    background: #e9ecef;
    cursor: not-allowed;
    color: #6c757d;
}

.cs-dropdown-toggle::after {
    content: '';
    border-top: 5px solid #6c757d;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    flex-shrink: 0;
    margin-left: 8px;
}

.cs-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 280px;
    overflow: hidden;
    display: none;
}

.cs-dropdown.open .cs-dropdown-menu {
    display: block;
}

.cs-dropdown-search {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #fff;
}

.cs-dropdown-search input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    outline: none;
}

.cs-dropdown-search input:focus {
    border-color: #1976d2;
}

.cs-dropdown-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 0;
}

.cs-dropdown-item {
    padding: 7px 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #2c3e50;
}

.cs-dropdown-item:hover {
    background: #e3f2fd;
    color: #1565c0;
}

.cs-dropdown-item.selected {
    background: #1976d2;
    color: #fff;
}

.cs-dropdown-empty {
    padding: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0 55px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    #map {
        height: 350px !important;
    }

    .sorgu-hero {
        padding: 28px 0 24px;
    }

    .result-header {
        padding: 16px;
    }

    .footer-section {
        text-align: center;
    }

    .il-hero {
        padding: 24px 0 48px;
    }

    .il-hero h1 {
        font-size: 1.5rem !important;
    }

    .il-stat-badge {
        padding: 8px 14px;
    }

    .il-stat-num {
        font-size: 1.2rem;
    }

    .ilce-card-desc {
        display: none;
    }

    .content-card-body {
        padding: 16px;
    }
}
