#top-salons {
    overflow: hidden;
}

#top-salons-map {
    position: relative;
    height: 520px;
    min-height: 520px;
    max-height: 70vh;
    width: 100%;
    max-width: 100%;
    border: 1px solid #dfe5ec;
    background: #f7f9fc;
    overflow: hidden;
    z-index: 1;
}

#top-salons-map.leaflet-container {
    overflow: hidden;
    font-family: inherit;
}

#top-salons-map .leaflet-pane,
#top-salons-map .leaflet-tile,
#top-salons-map .leaflet-marker-icon,
#top-salons-map .leaflet-marker-shadow,
#top-salons-map .leaflet-tile-container,
#top-salons-map .leaflet-pane > svg,
#top-salons-map .leaflet-pane > canvas,
#top-salons-map .leaflet-zoom-box,
#top-salons-map .leaflet-image-layer,
#top-salons-map .leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}

#top-salons-map .leaflet-container {
    overflow: hidden;
}

#top-salons-map .leaflet-tile,
#top-salons-map .leaflet-marker-icon,
#top-salons-map .leaflet-marker-shadow {
    user-select: none;
    -webkit-user-drag: none;
}

#top-salons-map .leaflet-marker-icon,
#top-salons-map .leaflet-marker-shadow {
    display: block;
}

#top-salons-map .leaflet-pane {
    z-index: 400;
}

#top-salons-map .leaflet-tile-pane {
    z-index: 200;
}

#top-salons-map .leaflet-overlay-pane {
    z-index: 400;
}

#top-salons-map .leaflet-shadow-pane {
    z-index: 500;
}

#top-salons-map .leaflet-marker-pane {
    z-index: 600;
}

#top-salons-map .leaflet-tooltip-pane {
    z-index: 650;
}

#top-salons-map .leaflet-popup-pane {
    z-index: 700;
}

#top-salons-map .leaflet-map-pane canvas {
    z-index: 100;
}

#top-salons-map .leaflet-map-pane svg {
    z-index: 200;
}

#top-salons-map .leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: auto;
}

#top-salons-map .leaflet-top,
#top-salons-map .leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

#top-salons-map .leaflet-top {
    top: 0;
}

#top-salons-map .leaflet-right {
    right: 0;
}

#top-salons-map .leaflet-bottom {
    bottom: 0;
}

#top-salons-map .leaflet-left {
    left: 0;
}

#top-salons-map .leaflet-control-zoom {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

#top-salons-map .leaflet-control-zoom a {
    display: block;
    width: 30px;
    height: 30px;
    background: #fff;
    color: #111820;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

#top-salons-map .leaflet-control-zoom a + a {
    border-top: 1px solid #dfe5ec;
}

#top-salons-map .leaflet-control-attribution {
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 11px;
}

#top-salons-map .leaflet-popup {
    position: absolute;
    margin-bottom: 20px;
    text-align: center;
}

#top-salons-map .leaflet-popup-content-wrapper {
    padding: 1px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
}

#top-salons-map .leaflet-popup-content {
    margin: 13px 18px;
    min-width: 210px;
    line-height: 1.45;
    text-align: left;
}

#top-salons-map .leaflet-popup-tip-container {
    position: absolute;
    left: 50%;
    width: 40px;
    height: 20px;
    margin-left: -20px;
    overflow: hidden;
    pointer-events: none;
}

#top-salons-map .leaflet-popup-tip {
    width: 17px;
    height: 17px;
    margin: -10px auto 0;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
    transform: rotate(45deg);
}

#top-salons-map .leaflet-popup-close-button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 4px 0 0;
    width: 22px;
    height: 22px;
    color: #111820;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    line-height: 18px;
}

.top-salon-map-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    background: #f7f9fc;
}

.top-salon-marker {
    position: relative;
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: #0057b8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transform: rotate(-45deg);
}

.top-salon-marker::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.top-salon-marker span {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(45deg);
}

.top-salon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.top-salon-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.top-salon-search {
    width: min(100%, 420px);
}

.top-salon-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.top-salon-search input {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #dfe5ec;
    border-radius: 0;
    background: #fff;
    color: #111820;
    font: inherit;
}

.top-salon-search input:focus {
    border-color: #0057b8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.14);
}

.top-salon-count {
    color: #5d6773;
    font-weight: 600;
}

.top-salon-popup-photo {
    display: block;
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    object-fit: cover;
    border-radius: 4px;
}

.top-salon-card {
    overflow: hidden;
    height: 100%;
    border: 1px solid #dfe5ec;
    background: #fff;
}

.top-salon-card.is-hidden {
    display: none;
}

.top-salon-card-photo {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #f7f9fc;
}

.top-salon-card-body {
    padding: 24px;
}

.top-salon-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.25;
}

.top-salon-meta {
    margin-bottom: 12px;
    color: #0057b8;
    font-weight: 600;
    text-transform: uppercase;
}

.top-salon-card a {
    color: #0057b8;
    text-decoration: none;
}

.top-salon-card a:hover {
    text-decoration: underline;
}

.top-salon-empty {
    padding: 28px;
    border: 1px solid #dfe5ec;
    background: #f7f9fc;
}

.top-salon-no-results {
    display: none;
    margin-top: 18px;
}

.top-salon-no-results.is-visible {
    display: block;
}

.top-salon-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.top-salon-pagination button {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #dfe5ec;
    background: #fff;
    color: #111820;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.top-salon-pagination button:hover,
.top-salon-pagination button.is-active {
    border-color: #0057b8;
    background: #0057b8;
    color: #fff;
}

.top-salon-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

@media (max-width: 991px) {
    .top-salon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-salon-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    #top-salons-map {
        height: 380px;
        min-height: 380px;
        max-height: 60vh;
    }

    .top-salon-grid {
        grid-template-columns: 1fr;
    }
}
