/* --- Hero sekce podle vzhledu homepage --- */
.distributors-hero { 
    text-align: center; 
    margin-bottom: 2.5rem; 
    padding: 10px 0;
}

.dist-subtitle {
    color: #e65100;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dist-title {
    color: #000000;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.dist-desc {
    color: #333333;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto 20px auto;
}

/* --- Vyhledávací pole --- */
.distributors-search { 
    width: 100%; 
    max-width: 500px; 
    padding: 11px 16px; 
    font-size: 15px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    margin-top: 15px;
    transition: all 0.2s ease;
}

.distributors-search:focus {
    border-color: #e65100;
    outline: none;
    box-shadow: 0 0 5px rgba(230, 81, 0, 0.3);
}

/* --- Informační box --- */
.distributors-notice {
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #e65100;
    padding: 16px 20px;
    margin: 20px auto;
    max-width: 650px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    text-align: left;
}

.distributors-notice p {
    margin: 0;
}

.dist-notice-divider {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 12px 0;
}

.distributors-notice a {
    color: #e65100;
    font-weight: 700;
    text-decoration: underline;
}

.distributors-notice a:hover {
    color: #b33f00;
}

.dist-partner-text {
    color: #555555;
}

/* --- Layout (Mapa + Seznam) --- */
.distributors-wrapper { 
    display: flex; 
    gap: 20px; 
    min-height: 550px; 
    width: 100%;
    align-items: stretch;
}

.distributors-map-container { 
    flex: 1.2; 
    height: 550px; 
    border-radius: 6px; 
    overflow: hidden; 
    border: 1px solid #e0e0e0; 
    position: relative; 
}

#distributors-map { 
    width: 100%; 
    height: 100%; 
    min-height: 550px; 
    background: #e5e3df; 
}

.leaflet-popup-content-wrapper {
    border-top: 3px solid #e65100;
}

.distributors-list-container { 
    flex: 1; 
    height: 550px; 
    max-height: 550px; 
    overflow-y: auto; 
    padding-right: 8px; 
}

/* --- Karty distributorů --- */
.dist-card { 
    border: 1px solid #e0e0e0; 
    border-radius: 6px; 
    padding: 15px; 
    margin-bottom: 12px; 
    background: #ffffff; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}

.dist-card:hover, .dist-card.active { 
    border-color: #e65100; 
    box-shadow: 0 3px 10px rgba(230, 81, 0, 0.15); 
}

.dist-card-country { 
    font-size: 12px; 
    font-weight: 700; 
    color: #e65100; 
    text-transform: uppercase; 
    letter-spacing: 0.8px;
}

.dist-card-title { 
    font-size: 16px; 
    font-weight: 700; 
    margin: 4px 0 8px 0; 
    color: #000000; 
}

.dist-card-info { 
    font-size: 13px; 
    line-height: 1.5; 
    color: #444444; 
}

.dist-card-actions { 
    margin-top: 12px; 
    display: flex; 
    gap: 8px; 
}

/* --- Tlačítka --- */
.dist-btn { 
    display: inline-block; 
    padding: 6px 14px; 
    font-size: 12px; 
    font-weight: 700; 
    text-decoration: none; 
    border-radius: 4px; 
    border: 1px solid #ccc; 
    background: #fff; 
    color: #333333; 
    transition: all 0.2s ease;
}

.dist-btn:hover {
    border-color: #999;
    background: #f5f5f5;
    color: #000;
}

.dist-btn-primary { 
    background: #e65100; 
    color: #ffffff; 
    border-color: #e65100; 
}

.dist-btn-primary:hover { 
    background: #b33f00; 
    color: #ffffff; 
    border-color: #b33f00;
}

/* --- Mobilní úprava --- */
@media (max-width: 768px) {
    .distributors-wrapper { 
        flex-direction: column; 
        height: auto; 
    }
    
    .distributors-map-container, #distributors-map { 
        height: 350px; 
        min-height: 350px; 
    }
    
    .distributors-list-container { 
        height: auto; 
        max-height: none; 
    }
}