/* ============================================
   COVERAGE PAGE — PREMIUM DARK-HERO + MAP LAYOUT
   ============================================ */

/* ── HERO ── */
.coverage-hero {
    padding: 140px 0 50px !important;
    margin-top: 0 !important;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(36, 114, 191, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(111, 179, 255, 0.08) 0%, transparent 50%),
        linear-gradient(160deg, #081220 0%, #0B1F36 30%, #10345D 60%, #2472BF 100%) !important;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: auto !important;
}

.coverage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    z-index: 0;
}

/* ── Hero two-column grid ── */
.coverage-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.coverage-hero-content {
    flex: 1;
    max-width: 640px;
}

.coverage-hero-graphic {
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

/* ── Pill badge ── */
.coverage-hero .hero-pill {
    display: inline-block;
    background: rgba(111, 179, 255, 0.12);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6FB3FF;
    border: 1px solid rgba(111, 179, 255, 0.2);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

/* ── Gradient title ── */
.coverage-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.coverage-hero h1 .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #6FB3FF 60%, #a8d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Subtitle ── */
.coverage-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ── CTA buttons ── */
.coverage-hero .hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.coverage-hero .btn-hero-primary {
    background: linear-gradient(135deg, #2472BF 0%, #1a5a9e 100%);
    color: #fff;
    padding: 0.85rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(36, 114, 191, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.coverage-hero .btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(36, 114, 191, 0.5);
    color: #fff;
}

.coverage-hero .btn-hero-outline {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.85rem 2.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.coverage-hero .btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ── Metrics row ── */
.coverage-hero .hero-metrics {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.coverage-hero .hero-metric {
    display: flex;
    flex-direction: column;
}

.coverage-hero .hero-metric-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #6FB3FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coverage-hero .hero-metric-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    font-weight: 500;
}

/* ── Floating graphic ── */
.coverage-hero .graphic-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coverage-hero .graphic-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(111, 179, 255, 0.12);
    border: 2px solid rgba(111, 179, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #6FB3FF;
    position: relative;
    z-index: 2;
    animation: coverageFloat 6s ease-in-out infinite;
}

@keyframes coverageFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.coverage-hero .pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(111, 179, 255, 0.15);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: coveragePulse 4s ease-in-out infinite;
}

.coverage-hero .pulse-ring-1 { width: 130px; height: 130px; animation-delay: 0s; }
.coverage-hero .pulse-ring-2 { width: 170px; height: 170px; animation-delay: 1s; }
.coverage-hero .pulse-ring-3 { width: 210px; height: 210px; animation-delay: 2s; }

@keyframes coveragePulse {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.1; transform: translate(-50%, -50%) scale(1.15); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
}

/* ── STATISTICS ── */
.coverage-stats {
    padding: 40px 0;
    background: #ffffff;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #2563eb;
    box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-icon {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* ── MAP SECTION ── */
.map-section {
    padding: 60px 0;
}

.map-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    contain: paint;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
    z-index: 10;
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-legend .legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

.map-legend .legend-item .dot.fiber { background: #2563eb; }
.map-legend .legend-item .dot.wireless { background: #f59e0b; }
.map-legend .legend-item .dot.both { background: #10b981; }

.btn-locate {
    position: absolute;
    bottom: 80px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #2563eb;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.btn-locate:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ── MAP CONTROLS ── */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
}

.search-box .form-control {
    padding-left: 40px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    height: 48px;
    font-size: 0.9rem;
}

.search-box .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.search-box .btn {
    position: absolute;
    right: 4px;
    height: 40px;
    border-radius: 50px;
    padding: 0 1.2rem;
}

.form-select {
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    height: 48px;
    font-size: 0.85rem;
    background-color: #fff;
    transition: all 0.3s;
}

.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.btn-outline-secondary {
    border-radius: 50px;
    height: 48px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

/* ── COVERAGE LIST ── */
.coverage-list {
    padding: 60px 0;
    background: #ffffff;
}

.coverage-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: all 0.3s ease;
}

.coverage-card:hover {
    transform: translateY(-6px);
    border-color: #2563eb;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}

.coverage-card .coverage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.coverage-card .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.coverage-card .status-badge.active {
    background: #d1fae5;
    color: #065f46;
}
.coverage-card .status-badge i {
    font-size: 0.5rem;
}

.coverage-card .type-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    color: #fff;
}
.coverage-card .type-badge.fiber { background: #2563eb; }
.coverage-card .type-badge.wireless { background: #f59e0b; color: #1a1a2e; }
.coverage-card .type-badge.both { background: #10b981; }

.coverage-card .coverage-card-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.coverage-card .coverage-card-location {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.coverage-card .coverage-card-location i {
    font-size: 0.7rem;
}

.coverage-card .coverage-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.coverage-card .coverage-card-link i {
    transition: all 0.3s ease;
}

.coverage-card .coverage-card-link:hover {
    color: #1d4ed8;
}
.coverage-card .coverage-card-link:hover i {
    transform: translateX(4px);
}

/* ── POPUP STYLES ── */
.map-popup .popup-header {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.map-popup .popup-header .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
}

.map-popup .popup-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
    color: #0f172a;
}

.map-popup .popup-location {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
}

.map-popup .popup-location i {
    font-size: 0.7rem;
    margin-right: 4px;
}

.map-popup .popup-link {
    display: inline-block;
    margin-top: 6px;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .coverage-hero-grid {
        flex-direction: column;
        text-align: center;
    }
    .coverage-hero-content {
        max-width: 100%;
    }
    .coverage-hero .hero-subtitle {
        max-width: 100%;
    }
    .coverage-hero .hero-cta-group {
        justify-content: center;
    }
    .coverage-hero .hero-metrics {
        justify-content: center;
    }
    .coverage-hero-graphic {
        flex: 0 0 auto;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .coverage-hero {
        padding: 120px 0 40px !important;
    }
    .coverage-hero h1 {
        font-size: 2.2rem;
    }
    .coverage-hero .hero-metrics {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .coverage-hero .hero-metric-number {
        font-size: 1.4rem;
    }
    .coverage-stats {
        padding: 30px 0;
    }
    .stat-card .stat-number {
        font-size: 2rem;
    }
    .coverage-list {
        padding: 40px 0;
    }
    .map-section {
        padding: 40px 0;
    }
    .map-legend {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.65rem;
    }
    .map-legend .legend-item .dot {
        width: 10px;
        height: 10px;
    }
    .btn-locate {
        bottom: 70px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 0.8rem;
    }
    #coverageMap {
        height: 350px !important;
    }
}

@media (max-width: 576px) {
    .coverage-hero h1 {
        font-size: 1.8rem;
    }
    .coverage-hero .hero-pill {
        font-size: 0.65rem;
        padding: 0.3rem 1rem;
    }
    .coverage-hero .graphic-wrapper {
        width: 140px;
        height: 140px;
    }
    .coverage-hero .graphic-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    .coverage-hero .pulse-ring-1 { width: 100px; height: 100px; }
    .coverage-hero .pulse-ring-2 { width: 130px; height: 130px; }
    .coverage-hero .pulse-ring-3 { width: 160px; height: 160px; }
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .coverage-card {
        padding: 0.75rem;
    }
    .coverage-card .coverage-card-title {
        font-size: 0.85rem;
    }
    .coverage-card .coverage-card-location {
        font-size: 0.7rem;
    }
    .coverage-card .status-badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.4rem;
    }
    .coverage-card .type-badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.4rem;
    }
    .coverage-card .coverage-card-link {
        font-size: 0.7rem;
    }
    .coverage-grid .row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }
    .coverage-item {
        padding: 0.25rem;
    }
    #coverageMap {
        height: 280px !important;
    }
    .map-legend {
        font-size: 0.55rem;
        padding: 6px 10px;
    }
    .map-legend .legend-item .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 400px) {
    .coverage-card .coverage-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
