/**
 * Public Styles for Harta CAR România
 */

/* Map Wrapper */
.whc-map-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Map Container */
.whc-map-container {
    max-width: 100%;
    margin: 0 auto 40px;
    position: relative;
}

.whc-map-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Default county styles */
.whc-map-container svg path {
    fill: #e0e0e0;
    stroke: #ffffff;
    stroke-width: 0.5;
    transition: all 0.3s ease;
    cursor: default;
}

/* Active counties (CAR afiliate) */
.whc-map-container svg path.active-county {
    fill: #0073aa;
    stroke: #ffffff;
    stroke-width: 0.8;
    cursor: pointer;
}

/* Hover effects - DOAR pe județele active */
.whc-map-container svg path.active-county:hover {
    fill: #005a87;
    filter: brightness(1.2);
}

/* Branches Section */
.whc-branches-section {
    margin-top: 40px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
}

.whc-branches-title {
    margin: 0 0 40px 0;
    padding-bottom: 20px;
    border-bottom: 3px solid #0073aa;
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    text-align: center;
}

/* County Branches Container */
.whc-county-branches {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.whc-county-branches:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.whc-county-branches.highlighted {
    border-color: #0073aa;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.15);
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.whc-county-title {
    margin: 0 0 25px 0;
    font-size: 26px;
    font-weight: 700;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whc-county-code {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Branches Grid */
.whc-branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Branch Card */
.whc-branch-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e3e8ef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whc-branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0073aa;
}

/* Card Header */
.whc-branch-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    padding: 20px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.whc-branch-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Card Body */
.whc-branch-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whc-branch-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e3e8ef;
    transition: all 0.2s ease;
}

.whc-branch-info:hover {
    background: #f8f9fa;
    border-color: #0073aa;
    transform: translateX(5px);
}

.whc-branch-card .whc-branch-info .whc-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #0073aa;
    margin-top: 2px;
}

.whc-branch-info span {
    color: #50575e;
    font-size: 15px;
    line-height: 1.5;
}

.whc-branch-info a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.whc-branch-info a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Card Footer - Social Buttons */
.whc-branch-footer {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e3e8ef;
}

.whc-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.whc-branch-card .whc-social-btn svg {
    width: 16px;
    height: 16px;
}

.whc-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whc-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
}

.whc-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.whc-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
    color: #fff;
}

.whc-facebook:hover {
    background: linear-gradient(135deg, #0C63D4 0%, #084BA3 100%);
}

.whc-website {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.whc-website:hover {
    background: linear-gradient(135deg, #764ba2 0%, #5a3680 100%);
}

.whc-maps {
    background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
    color: #fff;
}

.whc-maps:hover {
    background: linear-gradient(135deg, #C5221F 0%, #A91B0D 100%);
}

/* No Branches Message */
.whc-no-branches,
.whc-no-active {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    font-size: 16px;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .whc-branches-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .whc-branches-section {
        padding: 30px 20px;
    }

    .whc-branches-title {
        font-size: 26px;
    }

    .whc-county-title {
        font-size: 22px;
        flex-wrap: wrap;
    }

    .whc-branches-grid {
        grid-template-columns: 1fr;
    }

    .whc-county-branches {
        padding: 20px;
    }

    .whc-branch-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

@media screen and (max-width: 480px) {
    .whc-branches-title {
        font-size: 22px;
    }

    .whc-county-code {
        font-size: 16px;
        padding: 6px 12px;
    }

    .whc-branch-title {
        font-size: 18px;
    }

    .whc-branch-body {
        padding: 15px;
        gap: 10px;
    }

    .whc-branch-info {
        font-size: 14px;
    }

    .whc-social-btn {
        padding: 8px;
    }

    .whc-branch-card .whc-social-btn svg {
        width: 14px;
        height: 14px;
    }
}
