/* =========================================================
   Plotson City Slider — Final
   Desktop: cover (crop OK)
   Mobile:  contain + blurred background (no black/gray bars)
   ========================================================= */

/* ---------------------------------------------------------
   1. Slider wrapper
   --------------------------------------------------------- */
#listing_main_image_photo.plotson-city-slider {
    position: relative;
    overflow: hidden;
    background: transparent;
    width: 100%;
    height: auto;
    min-height: 650px;
    max-height: none;
    aspect-ratio: 2 / 1;
}

/* ---------------------------------------------------------
   2. Track
   --------------------------------------------------------- */
#listing_main_image_photo.plotson-city-slider .plotson-city-slider__track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform .45s ease;
    will-change: transform;
}

/* ---------------------------------------------------------
   3. Slide
   --------------------------------------------------------- */
#listing_main_image_photo.plotson-city-slider .plotson-city-slider__slide {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    float: none !important;
    display: block !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

/* ---------------------------------------------------------
   4. Image (desktop default = cover)
   --------------------------------------------------------- */
#listing_main_image_photo.plotson-city-slider .plotson-city-slider__image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: transparent !important;
}

/* ---------------------------------------------------------
   5. Prev / Next buttons
   --------------------------------------------------------- */
#listing_main_image_photo.plotson-city-slider .plotson-city-slider__prev,
#listing_main_image_photo.plotson-city-slider .plotson-city-slider__next {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 25px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease;
}

#listing_main_image_photo.plotson-city-slider .plotson-city-slider__prev { left: 18px; }
#listing_main_image_photo.plotson-city-slider .plotson-city-slider__next { right: 18px; }

#listing_main_image_photo.plotson-city-slider .plotson-city-slider__prev:hover,
#listing_main_image_photo.plotson-city-slider .plotson-city-slider__next:hover {
    background: rgba(0, 0, 0, .7);
}

/* ---------------------------------------------------------
   6. Dots
   --------------------------------------------------------- */
#listing_main_image_photo.plotson-city-slider .plotson-city-slider__dots {
    position: absolute;
    z-index: 6;
    bottom: 18px;
    left: 50%;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

#listing_main_image_photo.plotson-city-slider .plotson-city-slider__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

#listing_main_image_photo.plotson-city-slider .plotson-city-slider__dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

/* ---------------------------------------------------------
   7. Text / overlay above slides
   --------------------------------------------------------- */
#listing_main_image_photo.plotson-city-slider .entry-title,
#listing_main_image_photo.plotson-city-slider .tax_tagline {
    position: relative;
    z-index: 4;
}

#listing_main_image_photo.plotson-city-slider .img-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* =========================================================
   8. RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
    #listing_main_image_photo.plotson-city-slider {
        min-height: 450px;
    }
}

/* ---------------------------------------------------------
   Mobile — Full image, blurred background (no bars)
   --------------------------------------------------------- */
@media (max-width: 767px) {
    #listing_main_image_photo.plotson-city-slider {
        aspect-ratio: 16 / 9;
        min-height: 320px;
        background: #000;                    /* fallback color */
    }

    /* Slide — blurred copy of the image as background */
    #listing_main_image_photo.plotson-city-slider .plotson-city-slider__slide {
        background-color: #000;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Blur overlay layer — sits behind the actual image */
    #listing_main_image_photo.plotson-city-slider .plotson-city-slider__slide::before {
        content: '';
        position: absolute;
        inset: -25px;                        /* extend beyond edges to avoid white gap */
        background-image: inherit;           /* inherits background from .slide */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        filter: blur(22px) brightness(0.55) saturate(1.2);
        z-index: 1;
    }

    /* Real image — full visible, no crop */
    #listing_main_image_photo.plotson-city-slider .plotson-city-slider__image {
        position: relative;
        z-index: 2;
        object-fit: contain !important;
        object-position: center center !important;
        background: transparent !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Buttons */
    #listing_main_image_photo.plotson-city-slider .plotson-city-slider__prev,
    #listing_main_image_photo.plotson-city-slider .plotson-city-slider__next {
        width: 34px;
        height: 34px;
        margin-top: -17px;
        font-size: 20px;
        line-height: 34px;
    }

    #listing_main_image_photo.plotson-city-slider .plotson-city-slider__prev { left: 10px; }
    #listing_main_image_photo.plotson-city-slider .plotson-city-slider__next { right: 10px; }

    #listing_main_image_photo.plotson-city-slider .plotson-city-slider__dots {
        bottom: 12px;
        gap: 5px;
    }

    #listing_main_image_photo.plotson-city-slider .plotson-city-slider__dot {
        width: 7px;
        height: 7px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    #listing_main_image_photo.plotson-city-slider {
        aspect-ratio: 16 / 10;
        min-height: 240px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    #listing_main_image_photo.plotson-city-slider {
        min-height: 200px;
    }
}