.showrooms-map-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.showrooms-map {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.showrooms-carousel-wrapper {
    margin-top: 20px;
    padding: 0 40px;
    position: relative;
}

.showrooms-carousel {
    width: 100%;
    padding-bottom: 20px;
}

.showroom-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.showroom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.showroom-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.showroom-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showroom-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.showroom-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.showroom-card-distance {
    margin-bottom: 10px;
    padding: 5px 10px;
    background: #e3f2fd;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
    color: #1976d2;
    font-weight: 500;
}

.showroom-card-field {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.showroom-card-field strong {
    color: #666;
    margin-left: 5px;
}

.showroom-card-field span {
    color: #333;
}

.showroom-card-link {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: #1976d2;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background 0.3s ease;
    font-size: 14px;
}

.showroom-card-link:hover {
    background: #1565c0;
    color: #fff;
}

.swiper-button-next,
.swiper-button-prev {
    color: #1976d2;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

.nearby-navigation {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nearby-nav-btn {
    padding: 8px 15px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.nearby-nav-btn:hover {
    background: #1565c0;
}

.nearby-counter {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Post Type Card Highlight */
.showroom-card-highlighted,
[id^="gallery_m_"].showroom-card-highlighted,
[class*="gallery_m_"].showroom-card-highlighted {
    animation: highlightPulse 2s ease-in-out;
    box-shadow: 0 0 20px rgba(25, 118, 210, 0.6) !important;
    border: 2px solid #1976d2;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(25, 118, 210, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0);
    }
}

/* Cursor pointer for clickable post type cards */
[id^="gallery_m_"],
[class*="gallery_m_"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

[id^="gallery_m_"]:hover,
[class*="gallery_m_"]:hover {
    opacity: 0.9;
}

/* Popup styles for highlighted marker */
.showroom-highlight-popup .leaflet-popup-content-wrapper {
    background: #1976d2;
    color: #fff;
    border-radius: 8px;
}

.showroom-highlight-popup .leaflet-popup-content {
    margin: 10px;
    font-size: 14px;
}

.showroom-highlight-popup .leaflet-popup-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.showroom-highlight-popup .leaflet-popup-tip {
    background: #1976d2;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .showrooms-map {
        height: 400px;
    }
    
    .showrooms-carousel-wrapper {
        padding: 0 30px;
    }
    
    .showroom-card-image {
        height: 150px;
    }
    
    .showroom-card-title {
        font-size: 16px;
    }
    
    .nearby-navigation {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 10px;
        flex-direction: column;
        width: 100%;
    }
    
    .nearby-nav-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .showrooms-map {
        height: 300px;
    }
    
    .showrooms-carousel-wrapper {
        padding: 0 20px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }
}

/* RTL Support */
.rtl .showroom-card-field strong {
    margin-left: 0;
    margin-right: 5px;
}

.rtl .nearby-navigation {
    right: auto;
    left: 10px;
}

