/* Page layout for fixed header */
.page-nasze-sklepy {
    padding-top: 140px;
    padding-bottom: 80px;
}

#shops-map {
    height: 600px;
    width: 100vw;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    z-index: 1;
}

@media (max-width: 1200px) {
    #shops-map {
        width: 100%;
        max-width: 100%;
        left: auto;
        transform: none;
        margin: 20px auto;
    }
}


.shop-popup {
    text-align: center;
    font-family: inherit;
}

/* Map Carousel Popup */
.shop-popup__carousel-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    background: #f4f4f4;
}

/* Page Gallery Carousel Overrides */
.custom-page-carousel {
    height: 400px;
    /* Taller on the actual landing page */
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    border-radius: var(--radius-2xl, 1.5rem);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(44, 24, 16, 0.1));
}

@media (max-width: 768px) {
    .custom-page-carousel {
        height: 280px;
        margin: 24px 0;
        border-radius: var(--radius-xl, 1rem);
    }
}

/* Custom Marker Styling */
.custom-shop-marker svg {
    filter: drop-shadow(0px 4px 3px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.custom-shop-marker:hover svg {
    transform: scale(1.1) translateY(-2px);
}

.shop-popup__carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.shop-popup__carousel-image {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Controls */
.shop-popup__nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    z-index: 10;
    transition: background 0.2s;
}

.shop-popup__nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.shop-popup__nav-btn--prev {
    left: 5px;
}

.shop-popup__nav-btn--next {
    right: 5px;
}

/* Dots */
.shop-popup__dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.shop-popup__dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background 0.2s;
}

.shop-popup__dot--active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 560px) {
    .custom-page-carousel {
        height: 240px;
        margin: 20px 0;
    }

    .shop-popup__nav-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.62);
    }

    .shop-popup__nav-btn--prev {
        left: 8px;
    }

    .shop-popup__nav-btn--next {
        right: 8px;
    }

    .shop-popup__dots {
        bottom: 10px;
    }
}

.shop-popup__title {
    font-size: 1.2rem;
    color: #e5b322;
    /* Piast yellow/gold */
    margin: 0 0 10px 0;
    font-weight: 700;
}

.shop-popup__address,
.shop-popup__contact {
    font-size: 0.95rem;
    margin: 5px 0;
    color: #333;
    line-height: 1.4;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 10px;
}

.leaflet-popup-content {
    margin: 10px;
    min-width: 250px;
    /* Minimum width for nice photo display */
}

@media (max-width: 768px) {
    #shops-map {
        height: 400px;
        margin: 20px 0;
    }
}

/* Tooltip (Hover) */
.custom-shop-tooltip {
    background: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
    min-width: 200px;
}

.custom-shop-tooltip::before {
    display: none;
    /* Hide default leaflet triangle */
}

.shop-tooltip {
    display: flex;
    flex-direction: column;
}

.shop-tooltip__image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.shop-tooltip__content {
    padding: 8px 12px;
}

.shop-tooltip__title {
    font-size: 1rem;
    color: #e5b322;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.shop-tooltip__desc {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
    white-space: normal;
}
