/**
 * Service Area Map Component Styles
 * 
 * @package DoItAllDemo
 * @since 1.0.0
 */

/* =========================================
   Service Area Section
   ========================================= */
.service-area {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0A0F1C 0%, #1B365D 50%, #0A0F1C 100%);
    position: relative;
    overflow: hidden;
}

.service-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(27, 54, 93, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

/* Header */
.service-area__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1;
}

.service-area__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 115, 22, 0.15);
    color: #F97316;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.service-area__label svg {
    width: 18px;
    height: 18px;
}

.service-area__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.service-area__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Content Layout */
.service-area__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Map Container */
.service-area__map-container {
    position: relative;
}

.service-area__map {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.service-area__svg-map {
    width: 100%;
    height: auto;
    display: block;
}

/* State Styling */
.service-area__state {
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-area__state:hover {
    filter: brightness(1.2);
    transform-origin: center;
}

.service-area__state--primary-state {
    fill: #1B365D;
}

.service-area__state--extended {
    opacity: 0.8;
}

.service-area__state--extended:hover {
    opacity: 1;
}

/* County Styling */
.service-area__county {
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-area__county--primary {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: url(#glow) brightness(1);
    }
    50% {
        filter: url(#glow) brightness(1.2);
    }
}

.service-area__county:hover {
    transform: scale(1.02);
    filter: brightness(1.3);
}

/* Pins */
.service-area__pin {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-area__pin:hover {
    transform: scale(1.3);
}

.service-area__pin circle {
    transition: all 0.3s ease;
}

/* State Labels */
.service-area__state-label {
    font-size: 24px;
    font-weight: 800;
    fill: rgba(255, 255, 255, 0.3);
    text-anchor: middle;
    pointer-events: none;
}

.service-area__state-label--primary {
    font-size: 48px;
    fill: rgba(255, 255, 255, 0.15);
}

/* Legend */
.service-area__legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-area__legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.service-area__legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.service-area__legend-item--primary .service-area__legend-color {
    background: linear-gradient(135deg, #F97316, #EA580C);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.service-area__legend-item--extended .service-area__legend-color {
    background: linear-gradient(135deg, #1B365D, #0F1D33);
    opacity: 0.7;
}

/* Info Cards */
.service-area__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-area__card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-area__card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-area__card--primary {
    border-color: rgba(249, 115, 22, 0.3);
}

.service-area__card--primary:hover {
    border-color: rgba(249, 115, 22, 0.5);
}

.service-area__card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #F97316, #EA580C);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #fff;
}

.service-area__card--extended .service-area__card-icon {
    background: linear-gradient(135deg, #1B365D, #2a4a7a);
}

.service-area__card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.service-area__card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* County List */
.service-area__county-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-area__county-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.9375rem;
}

.service-area__county-item svg {
    color: #F97316;
    flex-shrink: 0;
}

.service-area__county-item strong {
    font-weight: 600;
}

/* State List */
.service-area__state-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-area__state-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.service-area__state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
}

/* Card Note */
.service-area__card-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.service-area__card-note svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.service-area__card--primary .service-area__card-note svg {
    color: #F97316;
}

/* CTA Section */
.service-area__cta {
    margin-top: 4rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-area__cta-content {
    flex: 1;
}

.service-area__cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.service-area__cta-text {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1rem;
}

.service-area__cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 1024px) {
    .service-area__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-area__map {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .service-area__info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .service-area {
        padding: 4rem 0;
    }
    
    .service-area__header {
        margin-bottom: 2.5rem;
    }
    
    .service-area__title {
        font-size: 1.75rem;
    }
    
    .service-area__subtitle {
        font-size: 1rem;
    }
    
    .service-area__info {
        grid-template-columns: 1fr;
    }
    
    .service-area__legend {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .service-area__cta {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .service-area__cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .service-area__cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .service-area__state-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .service-area {
        padding: 3rem 0;
    }
    
    .service-area__label {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
    
    .service-area__map {
        padding: 1rem;
    }
    
    .service-area__card {
        padding: 1.25rem;
    }
    
    .service-area__card-icon {
        width: 48px;
        height: 48px;
    }
    
    .service-area__card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .service-area__cta-title {
        font-size: 1.25rem;
    }
}
