/* ============================================
   SERVICE AREA MAP & ZIP LOOKUP STYLES
   ============================================ */

/* Section Styling */
.service-area {
    background: linear-gradient(135deg, #FFFFFF 0%, #F7F5F2 100%);
    padding: 100px 0;
    position: relative;
}

/* Layout */
.service-area-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

/* Zip Lookup Card */
.zip-lookup-card {
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(29, 32, 44, 0.3);
    border: 2px solid #C5A572;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: fit-content;
    position: sticky;
    top: 120px;
    z-index: 5;
}

.zip-lookup-header {
    text-align: center;
}

.zip-lookup-header i {
    font-size: 3rem;
    color: #C5A572;
    margin-bottom: 16px;
}

.zip-lookup-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.zip-lookup-header p {
    font-size: 0.9375rem;
    color: #CBD5E1;
    line-height: 1.5;
}

/* Zip Input Form */
.zip-lookup-form {
    width: 100%;
}

.zip-input-group {
    display: flex;
    gap: 12px;
}

.zip-input-group input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A202C;
    border: 2px solid #C5A572;
    border-radius: 12px;
    background: #FFFFFF;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
}

.zip-input-group input:focus {
    outline: none;
    border-color: #D6B15B;
    box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.2);
}

.zip-input-group input::placeholder {
    color: #94A3B8;
    font-weight: 500;
}

.zip-input-group .btn {
    padding: 16px 24px;
    font-size: 1rem;
    white-space: nowrap;
    background: linear-gradient(135deg, #D6B15B 0%, #B68C35 100%);
    border: 2px solid #D6B15B;
}

.zip-input-group .btn:hover {
    background: linear-gradient(135deg, #E8D5B7 0%, #D6B15B 100%);
    transform: translateY(-2px);
}

/* Zip Result */
.zip-lookup-result {
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.zip-lookup-result.success {
    border: 2px solid #10B981;
}

.zip-lookup-result.extended {
    border: 2px solid #F59E0B;
}

.zip-lookup-result.outside {
    border: 2px solid #EF4444;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.result-icon::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.zip-lookup-result.success .result-icon::before {
    content: '\f058'; /* check-circle */
    color: #10B981;
}

.zip-lookup-result.extended .result-icon::before {
    content: '\f06a'; /* exclamation-circle */
    color: #F59E0B;
}

.zip-lookup-result.outside .result-icon::before {
    content: '\f057'; /* times-circle */
    color: #EF4444;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.result-message {
    font-size: 0.9375rem;
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-actions .btn {
    width: 100%;
    justify-content: center;
}

.result-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 2px solid rgba(197, 165, 114, 0.5);
}

/* Coverage Stats */
.coverage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 32px;
    border-top: 2px solid rgba(197, 165, 114, 0.3);
}

.coverage-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.coverage-stats .stat i {
    font-size: 1.5rem;
    color: #C5A572;
}

.coverage-stats .stat strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}

.coverage-stats .stat span {
    font-size: 0.875rem;
    color: #CBD5E1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Map Container */
.service-area-map {
    position: relative;
    background: #E2E8F0;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

#map-container {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #F7F5F2 0%, #E9E9E7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
    border-radius: 16px;
    overflow: visible;
}

.map-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.kansas-map {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(197, 165, 114, 0.2));
}

.kansas-map .city-marker {
    transition: all 0.3s ease;
    cursor: pointer;
}

.kansas-map .city-marker:hover {
    transform: scale(1.1);
}

.kansas-map .city-marker:hover circle {
    fill: #D6B15B;
}

.kansas-map .city-marker text {
    font-family: 'Montserrat', sans-serif;
}

.map-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #C5A572 0%, #D6B15B 100%);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(197, 165, 114, 0.3);
}

.map-badge i {
    font-size: 1.125rem;
}

@keyframes pulse-map {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

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

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.map-legend h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #334155;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 24px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.legend-color.primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.legend-color.secondary {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

/* Cities Served */
.cities-served {
    text-align: center;
}

.cities-served h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1A202C;
    margin-bottom: 40px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.city-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #FFFFFF;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.city-item:hover {
    border-color: #C5A572;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(197, 165, 114, 0.2);
}

.city-item i {
    font-size: 1.25rem;
    color: #10B981;
}

.city-item span {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1A202C;
}

/* Cities Note */
.cities-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: rgba(197, 165, 114, 0.1);
    border-radius: 12px;
    border-left: 4px solid #C5A572;
    max-width: 800px;
    margin: 0 auto;
}

.cities-note i {
    font-size: 1.5rem;
    color: #C5A572;
    flex-shrink: 0;
    margin-top: 2px;
}

.cities-note p {
    font-size: 1rem;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

.cities-note a {
    color: #C5A572;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cities-note a:hover {
    color: #8A6420;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-area-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .zip-lookup-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .service-area {
        padding: 60px 0;
    }
    
    .zip-lookup-card {
        padding: 32px 24px;
    }
    
    .zip-input-group {
        flex-direction: column;
    }
    
    .zip-input-group .btn {
        width: 100%;
    }
    
    #map-container {
        height: 350px;
        padding: 20px;
    }
    
    .map-badge {
        top: 10px;
        right: 10px;
        font-size: 0.8125rem;
        padding: 8px 14px;
    }
    
    .kansas-map {
        max-width: 100%;
    }
    
    .kansas-map text {
        font-size: 10px;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .coverage-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .map-legend {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 16px;
    }
}
