/* GŁÓWNA SEKCJA */
.mapa-handlowcow-glowna {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Play', sans-serif;
    font-weight: normal;
    line-height: 1.5;
    color: #333;
    box-sizing: border-box;
}
.mapa-handlowcow-glowna *,
.mapa-handlowcow-glowna *::before,
.mapa-handlowcow-glowna *::after {
    box-sizing: inherit;
}

/* WYSZUKIWARKA */
.mapa-handlowcow-wyszukiwarka {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: #000;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    gap: 10px;
    align-items: center;
}
.mapa-wyszukiwarka-opcja {
    flex: 0 0 auto;
    padding-right: 5px;
    font-size: 0.9em;
}
.mapa-wyszukiwarka-select {
    flex: 1 1 200px;
    min-width: 180px;
    height: 40px;
    background: url(../img/ikona-strzalka-listy-wyboru.png) no-repeat 97% 50% #c5000a;
    background-size: 12px;
    overflow: hidden;
    position: relative;
}
.mapa-wyszukiwarka-select select {
    width: 100%;
    height: 100%;
    padding: 5px 30px 5px 10px;
    color: #fff;
    background: transparent;
    border: 1px solid #c5000a;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    font-size: 0.9em;
    line-height: 1.5;
}
.mapa-wyszukiwarka-select select:disabled {
    background-color: #555;
    cursor: not-allowed;
    border-color: #555;
    background-image: none;
}
.mapa-wyszukiwarka-select select option {
    background-color: #fff;
    color: #333;
}

/* KOLUMNY MAPA + DANE */
.mapa-handlowcow-kolumny {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* MAPA */
.mapa-handlowcow-mapa {
    flex: 2 1 70%;
    min-width: 0;
    max-width: 800px;
    position: relative;
    order: 0;
}
.mapa-obrazek {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
.maphilighted-container {
    display: block;
    position: relative;
    padding: 0;
    width: 100%;
	
	background-size: contain;
    background-repeat: no-repeat;
}
.maphilighted-container img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.maphilighted-container canvas {
    position: absolute;
    top: 0;
    left: 0;
}

/* DANE HANDLOWCA */
.mapa-handlowcow-dane {
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
	gap: 15px;
    order: 1;
}
.mapa-dane-lokalizacja,
.mapa-dane-handlowiec {
    border: 1px solid #ccc;
    padding: 15px;
    background: #f9f9f9;
}
.mapa-dane-naglowek {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    background: #eee;
    margin: -15px -15px 10px -15px;
    padding: 10px 15px;
}
.mapa-ikona-dzialu {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.mapa-dane-informacja {
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95em;
    line-height: 1.6;
}
.mapa-dane-wartosc {
    color: #c5000a;
    font-weight: bold;
    padding-left: 5px;
}
.mapa-dane-informacja .mapa-dane-wartosc a {
    color: #c5000a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.mapa-dane-informacja .mapa-dane-wartosc a:hover {
    text-decoration: underline;
}
.mapa-ikona-kontaktu {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}
.mapa-dane-placeholder {
    color: #777;
    font-style: italic;
    text-align: center;
    padding: 20px;
}
.mapa-przycisk-oferta {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #c5000a;
    color: #fff;
    border: none;
    border-radius: 3px;
    text-align: center;
    font-family: 'Play', sans-serif;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.mapa-przycisk-oferta:hover {
    background-color: #a00008;
    color: #fff;
}

/* TOOLTIP */
.maphilight-tooltip {
    position: absolute;
    background-color: rgba(197, 0, 10, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* MEDIA QUERY: tablety i telefony */
@media (max-width: 768px) {
    .mapa-handlowcow-wyszukiwarka {
        flex-direction: column;
        align-items: stretch;
    }

    .mapa-wyszukiwarka-select {
        flex-basis: auto;
        width: 100%;
    }

    .mapa-handlowcow-kolumny {
        flex-direction: column;
    }

    .mapa-handlowcow-dane {
        order: -1;
        width: 100%;
    }

    .mapa-handlowcow-mapa {
        order: 0;
        width: 100%;
    }
}

/* MEDIA QUERY: małe telefony */
@media (max-width: 480px) {
    .mapa-handlowcow-glowna {
        padding: 0 10px;
    }

    .mapa-dane-naglowek {
        font-size: 1em;
    }

    .mapa-dane-informacja {
        font-size: 0.9em;
    }

    .mapa-przycisk-oferta {
        width: 100%;
        padding: 12px;
    }
}
