/* BOMBA! Területi Képviselő Map CSS */

.bomba-map-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #333;
}

/* Header & Search Box */
.bomba-map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bomba-map-header h2 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 800;
}

.bomba-search-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.bomba-search-box input {
    padding: 12px 20px;
    width: 100%;
    max-width: 400px;
    border: 2px solid #ccc;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.bomba-search-box input:focus {
    outline: none;
    border-color: #E60000;
    box-shadow: 0 0 8px rgba(230, 0, 0, 0.3);
}

.bomba-search-box button {
    background: #E60000; /* BOMBA Red */
    color: #FFF;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.bomba-search-box button:hover {
    background: #B30000;
}

#bomba-search-result {
    font-size: 1.1rem;
    font-weight: bold;
    color: #E60000;
    min-height: 24px;
}

/* Map Wrapper */
.bomba-map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    background: #f9f9f9;
}

#bomba-leaflet-map {
    width: 100%;
    height: 600px;
    background: #e0e0e0; /* Fallback */
}

/* Floating Card / Tooltip */
.bomba-card {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Above Leaflet map */
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 250px;
}

.bomba-card.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.bomba-card-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.bomba-card-close:hover {
    color: #E60000;
}

.bomba-card-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #000;
    border-bottom: 2px solid #E60000;
    padding-bottom: 5px;
    font-weight: 800;
    text-transform: uppercase;
}

.bomba-rep-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}
.bomba-rep-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bomba-rep-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #333;
}

.bomba-rep-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.bomba-card p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.bomba-contact-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.bomba-contact-link:hover {
    color: #E60000;
    text-decoration: underline;
}

/* Form Styles */
.bomba-partner-form-container {
    background: #111; /* BOMBA Dark */
    color: #FFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bomba-partner-form-container h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #FFF;
    text-transform: uppercase;
}

.bomba-form-group {
    margin-bottom: 20px;
}

.bomba-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ccc;
}

.bomba-form-group input,
.bomba-form-group textarea {
    width: 100%;
    padding: 15px;
    background: #222;
    border: 1px solid #444;
    color: #FFF;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.bomba-form-group input:focus,
.bomba-form-group textarea:focus {
    outline: none;
    border-color: #E60000;
}

.bomba-btn-submit {
    width: 100%;
    background: #E60000;
    color: #FFF;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.bomba-btn-submit:hover {
    background: #FF1A1A;
}

.bomba-btn-submit:active {
    transform: scale(0.98);
}

#bomba-form-feedback {
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.bomba-feedback-success {
    color: #4CAF50;
}

.bomba-feedback-error {
    color: #F44336;
}

/* Responsive */
@media (max-width: 768px) {
    .bomba-map-wrapper {
        margin: 0 -15px 2rem -15px;
        border-radius: 0;
    }
    
    #bomba-leaflet-map {
        height: 400px;
    }

    .bomba-card {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
    }

    .bomba-card.hidden {
        transform: translate(50%, 10px);
    }
}
