/* ===========================
   District Landing Page
   =========================== */

/* Hero */
.hero--district {
    background-size: cover;
    background-position: center;
    min-height: 420px;
    position: relative;
}

.hero--district::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,126,52,0.85) 0%, rgba(26,26,26,0.75) 100%);
    z-index: 0;
}

.hero--district .hero__content {
    position: relative;
    z-index: 1;
}

.hero--district .hero__subtitle {
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 12px 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 6px;
    color: #999;
}

/* District Stats */
.district-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: -50px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.district-stat {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.district-stat:hover {
    transform: translateY(-4px);
}

.district-stat__icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.district-stat__value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.district-stat__label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 4px;
}

/* Content Sections */
.district-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.district-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.district-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.district-section h3 {
    font-size: 1.15rem;
    margin: 20px 0 10px;
    color: var(--text-dark);
}

.district-section p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.district-section ul {
    padding-left: 20px;
    margin: 10px 0 20px;
}

.district-section li {
    line-height: 1.8;
    color: #444;
    margin-bottom: 6px;
}

/* Two Column Layout */
.district-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .district-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Infrastructure List */
.infra-list {
    list-style: none;
    padding: 0;
}

.infra-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.infra-list li:last-child {
    border-bottom: none;
}

.infra-list .infra-icon {
    font-size: 1.3rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

/* Listings Section */
.district-listings {
    background: var(--bg-light);
    padding: 50px 0;
}

.district-listings .district-section {
    padding-top: 0;
    padding-bottom: 0;
}

.district-listings .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Price Table */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.price-table th {
    background: var(--primary-color);
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover td {
    background: #f0faf2;
}

/* FAQ Accordion */
.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.faq-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 24px;
    text-align: center;
}

.faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 18px;
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Map */
.district-map {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}

/* CTA Block */
.district-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #155724 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: white;
    margin: 30px 0;
}

.district-cta h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 12px;
}

.district-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.district-cta .cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.district-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Related links */
.related-districts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.related-districts a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 50px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.related-districts a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
