/* ==========================================
   NEIGHBORHOOD PAGES - ADDITIONAL STYLES
   ========================================== */

/* Breadcrumb */
.breadcrumb {
    /* Dark blur background for light text readability on grid */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #ffffff !important;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #64b5f6 !important;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb span:last-child {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Neighborhood Hero */
.neighborhood-hero {
    /* More transparent - grid visible through hero section */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@supports not (backdrop-filter: blur(10px)) {
    .neighborhood-hero {
        background: rgba(255, 255, 255, 0.92);
    }
}

.neighborhood-hero h1 {
    font-size: 26px;
    color: #1a237e;
    margin-bottom: 16px;
    line-height: 1.3;
    /* Blur background for heading */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
}

.neighborhood-hero .intro {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.filter-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

.filter-btn:active, .filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* Sections */
.neighborhood-electricians,
.services,
.faq,
.nearby,
.cta {
    padding: 32px 0;
}

.neighborhood-electricians {
    background: transparent !important;
}

.neighborhood-electricians h2 {
    font-size: 24px;
    color: #1a237e;
    margin-bottom: 24px;
    /* Prominent blur background for section titles */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

@supports not (backdrop-filter: blur(10px)) {
    .neighborhood-electricians h2 {
        background: rgba(255, 255, 255, 0.95);
    }
}

.section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Services Grid */
.services {
    background: transparent !important;
}

.services h2 {
    font-size: 24px;
    color: #1a237e;
    margin-bottom: 24px;
    text-align: center;
    /* Prominent blur background for section titles */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

@supports not (backdrop-filter: blur(10px)) {
    .services h2 {
        background: rgba(255, 255, 255, 0.95);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.service-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.service-item h3 {
    font-size: 18px;
    color: #1e40af;
    margin-bottom: 8px;
}

.service-item p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* FAQ Section */
.faq {
    background: transparent !important;
}

.faq h2 {
    font-size: 24px;
    color: #1a237e;
    margin-bottom: 24px;
    text-align: center;
    /* Prominent blur background for section titles */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 32px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

@supports not (backdrop-filter: blur(10px)) {
    .faq h2 {
        background: rgba(255, 255, 255, 0.95);
    }
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3::after {
    content: '+';
    font-size: 24px;
    color: #2563eb;
    transition: transform 0.3s;
}

.faq-item.active h3::after {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 16px 20px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

/* FAQ link styling */
.faq-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.faq-link:hover {
    border-bottom-color: #2563eb;
}

.faq-link:active {
    opacity: 0.8;
}

/* Nearby Neighborhoods */
.nearby {
    background: transparent !important;
}

.nearby h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 8px;
}

.nearby-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.nearby-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nearby-link {
    padding: 12px 20px;
    background: #eff6ff;
    border: 2px solid #2563eb;
    border-radius: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
}

.nearby-link:active {
    background: #2563eb;
    color: white;
}

/* CTA Section */
.cta {
    /* Semi-transparent - grid visible through CTA */
    background: rgba(25, 50, 120, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@supports not (backdrop-filter: blur(12px)) {
    .cta {
        background: rgba(25, 50, 120, 0.9);
    }
}

.cta h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: white;
    color: #2563eb;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Back link */
.back-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE: TABLETS (768px+)
   ========================================== */

@media (min-width: 768px) {
    .breadcrumb {
        font-size: 15px;
    }

    .neighborhood-hero h1 {
        font-size: 32px;
    }

    .neighborhood-hero .intro {
        font-size: 18px;
    }

    .quick-filters {
        gap: 12px;
    }

    .filter-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-item {
        padding: 24px;
    }

    .service-icon {
        font-size: 48px;
    }

    .service-item h3 {
        font-size: 20px;
    }

    .service-item p {
        font-size: 15px;
    }

    .faq-item h3 {
        font-size: 18px;
        padding: 20px 24px;
    }

    .faq-answer p {
        padding: 0 24px 20px 24px;
        font-size: 15px;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta p {
        font-size: 18px;
    }
}

/* ==========================================
   RESPONSIVE: DESKTOP (1024px+)
   ========================================== */

@media (min-width: 1024px) {
    .neighborhood-hero h1 {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .cta h2 {
        font-size: 36px;
    }

    /* Hover effects for desktop */
    .filter-btn:hover {
        background: #eff6ff;
        border-color: #2563eb;
    }

    .filter-btn.active:hover {
        background: #1e40af;
    }

    .nearby-link:hover {
        background: #2563eb;
        color: white;
    }

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }
}
