/* Hungary County Map Styles */

.hungary-county-map-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hungary-map-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Bal oldal - Képviselők panel */
.representatives-panel {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.representatives-content {
    position: relative;
}

.default-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.default-text h2 {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #204699;
}

.default-text p {
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.default-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #204699;
}

.county-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.county-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.close-county {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-county:hover {
    color: #333;
}

.representatives-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.representative-card {
    background: #fff;
    border: 1px solid #95D6DB;
    border-radius: 56px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
    transition: background-color 0.3s, color 0.3s;
    color: #204699;
}

.representative-card:hover {
    background: #95D6DB;
    color: #ffffff;
}

.representative-card:hover .representative-name,
.representative-card:hover .representative-title,
.representative-card:hover .representative-county,
.representative-card:hover .representative-county span,
.representative-card:hover .representative-phone,
.representative-card:hover .representative-email {
    color: #ffffff;
}

.representative-card:hover .representative-county svg {
    fill: #ffffff;
}

/* 1. oszlop - Kép */
.representative-image-column {
    flex-shrink: 0;
}

.representative-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
    display: block;
}

.representative-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    display: block;
    /* Üres átlátszó terület */
}

/* 2. oszlop - Név és leírás */
.representative-info-column {
    flex: 1;
    min-width: 0;
}

.representative-name {
    font-size: 18px;
    font-weight: bold;
    color: #204699;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.representative-card:hover .representative-name {
    color: #ffffff;
}

.representative-title {
    font-size: 14px;
    color: #204699;
    margin: 0;
    line-height: 1.4;
}

.representative-card:hover .representative-title {
    color: #ffffff;
}

/* 3. oszlop - Megye, telefon, email */
.representative-contact-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    flex-shrink: 0;
}

.representative-county {
    font-size: 14px;
    color: #204699;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.representative-card:hover .representative-county {
    color: #ffffff;
}

.representative-county svg {
    width: 16px;
    height: 16px;
    fill: #204699;
    flex-shrink: 0;
}

.representative-card:hover .representative-county svg {
    fill: #ffffff;
}

.representative-phone,
.representative-email {
    font-size: 14px;
    color: #204699;
    text-decoration: none;
    transition: color 0.3s;
}

.representative-card:hover .representative-phone,
.representative-card:hover .representative-email {
    color: #ffffff;
}

.representative-phone:hover,
.representative-email:hover {
    text-decoration: underline;
}

/* Jobb oldal - Térkép panel */
.map-panel {
    flex: 1;
    min-width: 300px;
    max-width: 800px;
}

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

.hungary-map-svg .county {
    fill: #B7C833;
    stroke: #ffffff;
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 0.3s ease;
}

.hungary-map-svg .county:hover {
    fill: #95D6DB;
}

.hungary-map-svg .county.selected {
    fill: #95D6DB;
}

/* amCharts térkép stílusok */
.hungary-interactive-map {
    background: #ffffff;
    border-radius: 8px;
}

.hungary-map-svg .county-name {
    font-size: 12px;
    font-weight: 500;
    fill: #333;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* Reszponzív design */
@media (max-width: 768px) {
    .hungary-map-wrapper {
        flex-direction: column;
    }
    
    .representatives-panel,
    .map-panel {
        max-width: 100%;
        width: 100%;
    }
    
    .map-panel {
        min-height: 400px;
    }
    
    .hungary-interactive-map {
        width: 100% !important;
        height: 100% !important;
        min-height: 400px !important;
    }
    
    .county-title h2 {
        font-size: 20px;
    }
    
    .representative-card {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .representative-image-column {
        display: flex;
        justify-content: center;
    }
    
    .representative-contact-column {
        align-items: center;
    }
    
    .default-text h2 {
        font-size: 24px;
    }
    
    .default-text h3 {
        font-size: 18px;
    }
}
