.html{scroll-behavior:smooth}#scrollingNav-detail{margin-top:3.3em}.scrolling-nav-detail{display:none;position:fixed;top:30px;width:100%;background-color:#fff;box-shadow:0 2px 4px #0000001a;z-index:1000;overflow-x:auto;white-space:nowrap}.scrolling-nav-links{list-style:none;margin-top:0;padding:0;display:flex}.scrolling-nav-links li{margin:0;padding:10px 5px}@media (max-width: 767px){.scrolling-nav-detail{display:none}.scrolling-nav-detail.show{display:block}}.scrolling-nav-links a{text-decoration:none;color:#333}.scrolling-nav-links a.active{color:#0062CC;font-weight:700}.dropdown-content-bcb,.dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1;border-radius:5px;cursor:pointer}.dropdown-content-bcb a,.dropdown-content a{color:#000;padding:12px 16px;text-decoration:none;display:block}.dropdown-content-bcb a:hover,.dropdown-content a:hover{background-color:#f1f1f1}.bottom-contact-banner:hover .dropdown-content-bcb,.comment-form:hover .dropdown-content{display:block}.dropdown-content-bcb{bottom:5em}.swiper-container{width:100%}.swiper-wrapper{display:flex;align-items:center;height:auto}.swiper-slide{display:flex;justify-content:center;align-items:center;height:auto}.image-detail{width:auto;height:auto;display:flex;justify-content:center;align-items:center}.image-detail img{max-width:100%;height:auto;display:block}

/* ==========================================================================
   Moved out of resources/views/Property/detail-guest.blade.php (SEO audit
   P1-11). The page shipped 108 KB of this as inline <style> on every
   request; here it is cached for a year and fingerprinted by pk_asset().
   Order is preserved: this file is pushed to the head's `styles` stack,
   after pelikani.css, exactly where the inline blocks sat in the cascade.
   ========================================================================== */

      @media (max-width: 768px) {
    /* The contact button owns the corner. The back-to-top pill sits to its left.
       The open chat is a bottom sheet, so it is not lifted with the button. */
    #scroll-top.button-go,
    #scroll-top.button-go.show {
        bottom: calc(100px + 6px + env(safe-area-inset-bottom, 0px)) !important;
        right: calc(20px + 56px + 12px) !important;
        left: auto !important;
    }
}
    #scrollingNav-detail {
        margin-top: 45px;
    }
    #description,
    #details,
    #location,
    #featured,
    #overview,
    #nearby-places {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Reduce space between details and featured sections */
    #details.wrap-property.wrap-style {
        margin-top: 25px !important;
    }
    
    #featured.wrap-featured.wrap-style {
        margin-top: -25px !important;
        padding-top: 0 !important;
        margin-bottom: 0px !important;
    }
    
    .payment-calculator-modern.wrap-featured.wrap-style {
        margin-top: 1px !important;
    }
    
    /* Override all possible padding-top for nearby-places */
    #nearby-places.wrap-map,
    #nearby-places.wrap-property,
    #nearby-places.wrap-style,
    #nearby-places.wrap-map.wrap-property,
    #nearby-places.wrap-map.wrap-style,
    #nearby-places.wrap-property.wrap-style,
    #nearby-places.wrap-map.wrap-property.wrap-style {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Ensure location comes before description in all devices - using CSS to enforce order */
    @media (min-width: 768px) {
        /* Desktop: ensure location is before description */
        #location {
            display: block !important;
        }
    }
    
    @media (min-width: 768px) {
        .desktop-gallery {
            display: flex;
            gap: 10px;
            /* PEL-275: a fixed size, so the lazy photos fill it instead of
               growing it after load (a flex item sized by its content) and
               pushing the page down. */
            width: 100%;
            height: min(600px, 42vw);
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
        }

        /* Single-photo layout (when only one image exists) */
        .desktop-single-image {
            width: 100%;
            max-width: 1100px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }

        .desktop-single-image img {
            width: 100%;
            height: min(600px, 42vw);
            object-fit: contain;
            display: block;
        }

        /* First large image on the left */
        .desktop-first-image {
            flex: 2;
            height: 100%;
            min-width: 0;
        }

        .desktop-first-image img {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 600px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
        }

        .desktop-right-images {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
            height: 100%;
            position: relative;
        }

        .desktop-image-item {
            flex: 1;
            min-height: 0;
            position: relative;
            overflow: hidden;
            border-radius: 8px;
        }

        .desktop-gallery picture {
            display: block;
            width: 100%;
            height: 100%;
        }

        .desktop-image-item.has-overlay {
            cursor: pointer;
        }

        .desktop-image-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
        }

        .desktop-image-item:last-child {
            position: relative;
        }

        .view-all-photos-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .view-all-photos-overlay:hover {
            background-color: rgba(0, 0, 0, 0.65);
        }

        .view-all-photos-btn {
            background-color: rgba(255, 255, 255, 0.95);
            color: #333;
            padding: 14px 24px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
            white-space: nowrap;
        }

        .view-all-photos-btn:hover {
            background-color: white;
            transform: scale(1.05);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        }

        .view-all-photos-btn i {
            font-size: 18px;
        }
    }

    @media (max-width: 767px) {
        .back-button-container,
        .share-button-container {
            position: absolute;
            z-index: 200;
            top: 15px;
        }
        
        .tour-booking-modal-overlay ~ * .back-button-container,
        .tour-booking-modal-overlay ~ * .share-button-container,
        body:has(.tour-booking-modal-overlay) .back-button-container,
        body:has(.tour-booking-modal-overlay) .share-button-container {
            z-index: 1 !important;
        }

        .back-button-container {
            left: 15px;
        }

        .share-button-container {
            right: 15px;
        }

        .back-button,
        .share-button {
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
        }

        .back-button:hover,
        .share-button:hover {
            background: white;
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .share-button-container {
            display: flex;
            align-items: center;
            gap: 8px;
        }
    }

    .flat-slider01.style .col-lg-12 {
        position: relative;
    }

    .gallery-photo-count {
        position: absolute;
        z-index: 200;
        bottom: 16px;
        right: 16px;
        background: rgba(17, 17, 17, 0.72);
        color: #fff;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.02em;
        pointer-events: none;
    }

    .gallery-save-button {
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        color: #111;
    }

    .gallery-save-button:hover {
        background: white;
        transform: scale(1.1);
    }

    .gallery-save-button[aria-pressed="true"] {
        color: #e11d48;
    }

    @media (min-width: 768px) {
        .flat-slider01.style .back-button-container,
        .flat-slider01.style .share-button-container {
            position: absolute;
            z-index: 200;
            top: 16px;
        }
        .flat-slider01.style .back-button-container { left: 16px; }
        .flat-slider01.style .share-button-container {
            right: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .flat-slider01.style .back-button,
        .flat-slider01.style .share-button {
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
    }

    /* "Shiko më shumë" rendered as a raw OS button (grey bevel, default font). */
    #showMoreBtn {
        appearance: none;
        -webkit-appearance: none;
        background: none;
        border: 0;
        padding: 10px 0;
        min-height: 44px;
        font: inherit;
        font-size: 15px;
        font-weight: 600;
        color: var(--pk-brand-800, #8a5a0a);
        cursor: pointer;
    }
    #showMoreBtn svg { vertical-align: middle; margin-left: 4px; }

    /* Collapsed description. Set and cleared by toggleDescription(); the
       markup itself is never cut, so any rich-text HTML collapses cleanly.
       The description is styled further down with a stack of !important
       rules (display: block, overflow: visible), so this has to out-rank
       them on both properties or the clamp never takes hold. */
    #description .property-description-text.is-collapsed {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden !important;
    }

    @media (max-width: 767px) {
        .mobile-carousel-wrapper {
            position: relative;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            margin: 0 auto;
            padding: 0;
            background: transparent !important;
            background-color: transparent !important;
        }

        .mobile-carousel-container {
            position: relative;
            width: 100%;
            height: auto;
            aspect-ratio: 4 / 3;
            max-height: min(70vw, 420px);
            min-height: 220px;
            overflow: hidden;
            background: transparent;
        }

        #mobile-carousel {
            display: flex;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
            width: 100%;
            height: 100%;
            gap: 0;
            position: relative;
            background: transparent;
            touch-action: pan-y pinch-zoom;
            cursor: grab;
            user-select: none;
        }

        #mobile-carousel:active,
        #mobile-carousel.dragging {
            cursor: grabbing;
        }

        #mobile-carousel .mobile-carousel-slide {
            user-select: none;
            -webkit-user-drag: none;
        }

        #mobile-carousel.dragging .mobile-carousel-slide img {
            pointer-events: none;
        }

        #mobile-carousel::-webkit-scrollbar {
            display: none;
        }

        .mobile-carousel-slide {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
            scroll-snap-align: start;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
        }

        .mobile-carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            max-width: 100%;
            max-height: 100%;
        }

        .carousel-arrow {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        
        .tour-booking-modal-overlay ~ * .carousel-arrow,
        body:has(.tour-booking-modal-overlay) .carousel-arrow {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        .carousel-arrow:active {
            display: none !important;
        }

        .carousel-arrow.left {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        .carousel-arrow.right {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        .carousel-arrow.hidden {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
        }
        
        .carousel-arrow:not(.hidden) {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        
        .mobile-carousel-container .carousel-arrow.left,
        .mobile-carousel-container .carousel-arrow.right {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        /* Sized by its 24px dots now (PEL-292): at least the old 150px pill,
           wider for more photos, never wider than the photo. */
        .carousel-pagination {
            width: max-content !important;
            max-width: calc(100% - 32px) !important;
            min-width: 150px !important;
            box-sizing: border-box !important;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0;
            padding: 0 10px;
            position: absolute;
            bottom: 35px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 50;
            background: rgba(0, 0, 0, 0.4);
            border-radius: 15px;
            backdrop-filter: blur(5px);
            flex-wrap: nowrap;
            overflow: hidden;
        }
        
        .tour-booking-modal-overlay ~ * .carousel-pagination,
        body:has(.tour-booking-modal-overlay) .carousel-pagination {
            z-index: 1 !important;
        }

        /* PEL-292: each dot is a transparent 24×24 touch target (WCAG 2.5.8;
           the arrows are hidden on phones, so there is no larger equivalent)
           and the dot itself is drawn by ::before: 8px, or the 24px bar when
           active, exactly as before. */
        .carousel-dot {
            position: relative;
            width: 24px;
            height: 24px;
            padding: 0;
            border: none;
            background: transparent;
            cursor: pointer;
            flex-shrink: 0;
        }

        .carousel-dot::before {
            content: "";
            position: absolute;
            top: 8px;
            left: 8px;
            width: 8px;
            height: 8px;
            border-radius: 4px;
            background-color: rgba(255, 255, 255, 0.6);
            transition: all 0.3s ease;
        }

        .carousel-dot.active::before {
            left: 0;
            width: 24px;
            background-color: white;
            box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        }

        #firstImageOfCarousel {
            width: 100%;
            height: auto;
            aspect-ratio: 4 / 3;
            max-height: min(70vw, 420px);
            min-height: 220px;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #firstImageOfCarousel img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    }

    @media (min-width: 768px) {
        .carousel > div {
            vertical-align: top;
            height: 100%;
        }

        .carousel > div img {
            display: block;
        }
    }
    
    @media (max-width: 767px) {
        .mobile-carousel-slide {
            flex: 0 0 100%;
            width: 100%;
            scroll-snap-align: start;
            position: relative;
            min-height: 300px;
            max-height: 500px;
            background: transparent;
        }
        
        .mobile-carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    }

    .mobile-view-all-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .mobile-view-all-overlay:hover {
        background-color: rgba(0, 0, 0, 0.65);
    }

    .view-all-photos-btn-mobile {
        background-color: rgba(255, 255, 255, 0.95);
        color: #333;
        padding: 12px 20px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
        white-space: nowrap;
    }

    .view-all-photos-btn-mobile:hover {
        background-color: white;
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    #fullGalleryModal {
        display: none;
        position: fixed;
        z-index: 99999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.98);
        overflow: hidden;
    }

    #fullGalleryModal.show {
        display: flex;
        flex-direction: column;
    }

    .gallery-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 30px;
        background-color: rgba(0, 0, 0, 0.9);
        color: white;
        z-index: 10001;
    }

    .gallery-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

    .gallery-close {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        padding: 5px 10px;
        line-height: 1;
        transition: opacity 0.3s;
    }

    .gallery-close:hover {
        opacity: 0.7;
    }

    .gallery-main {
        flex: 1;
        display: flex;
        position: relative;
        overflow: hidden;
    }

    .gallery-main-image {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        position: relative;
        touch-action: pan-y pinch-zoom;
    }

    .gallery-main-image img {
        max-width: 100%;
        max-height: calc(100vh - 200px);
        object-fit: contain;
        border-radius: 4px;
        display: block;
        width: auto;
        height: auto;
    }

    .gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.9);
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
        transition: all 0.3s;
        z-index: 10002;
        pointer-events: auto;
    }

    .gallery-nav:hover {
        background-color: white;
        transform: translateY(-50%) scale(1.1);
    }

    .gallery-nav.prev {
        left: 20px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .gallery-nav.next {
        right: 20px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .gallery-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        display: flex !important;
        visibility: visible !important;
    }

    .gallery-thumbnails {
        padding: 20px 30px;
        background-color: rgba(0, 0, 0, 0.9);
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        max-height: 150px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scroll-behavior: smooth;
    }

    .gallery-thumbnails::-webkit-scrollbar {
        height: 8px;
    }

    .gallery-thumbnails::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .gallery-thumbnails::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }

    .gallery-thumbnail {
        display: inline-block;
        width: 120px;
        height: 80px;
        margin-right: 10px;
        cursor: pointer;
        border-radius: 4px;
        overflow: hidden;
        border: 3px solid transparent;
        transition: all 0.3s;
        opacity: 0.6;
        touch-action: pan-x pan-y;
        user-select: none;
        -webkit-user-select: none;
        pointer-events: auto;
    }

    .gallery-thumbnail:hover {
        opacity: 0.8;
        transform: scale(1.05);
    }

    .gallery-thumbnail.active {
        border-color: white;
        opacity: 1;
    }

    .gallery-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    @media (max-width: 767px) {
        .gallery-header {
            padding: 15px 20px;
        }

        .gallery-header h3 {
            font-size: 16px;
        }

        .gallery-nav {
            width: 40px;
            height: 40px;
            font-size: 16px;
        }

        /* Hide navigation arrows on mobile - use scroll only */
        .gallery-nav.prev,
        .gallery-nav.next {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        
        /* Hide gallery nav buttons on mobile */
        #fullGalleryModal .gallery-nav.prev,
        #fullGalleryModal .gallery-nav.next {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }

        .gallery-main-image {
            padding: 10px;
        }

        .gallery-thumbnails {
            padding: 15px 20px;
            max-height: 120px;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-x;
            scroll-behavior: smooth;
        }

        .gallery-thumbnail {
            width: 100px;
            height: 70px;
        }
    }

    /* Description text alignment and formatting */
    .property-description-text,
    #description .property-description-text {
        text-align: left !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.8 !important;
        margin-bottom: 2em !important;
        padding: 0 !important;
        padding-right: 15px !important;
        padding-bottom: 1em !important;
        display: block !important;
        unicode-bidi: plaintext !important;
        direction: ltr !important;
        text-rendering: optimizeLegibility !important;
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #333 !important;
        font-size: 15px !important;
    }

    #description .text-1,
    #description .text-color-2 {
        text-align: left !important;
    }

    #description p.text-1.text-color-2 {
        text-align: left !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: pre-wrap !important;
        line-height: 1.6 !important;
        margin-bottom: 1em !important;
        padding: 0 !important;
    }

    /* Ensure proper paragraph spacing */
    #description br {
        line-height: 1.8 !important;
    }

    /* Wrap text container */
    .wrap-text {
        text-align: left !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Remove extra padding from description section */
    #description.wrap-text,
    #description.wrap-text.wrap-style {
        padding-top: 1px !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }

    /* Ensure description container doesn't hide content */
    #description {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #description .titles {
        margin-bottom: 15px !important;
    }

    /* Add spacing between map and description */
    #location.wrap-map {
        margin-bottom: 3em !important;
    }

    /* Ensure spacing after map section */
    .wrap-map.wrap-property.wrap-style {
        margin-bottom: 2em !important;
        padding-bottom: 1em !important;
        clear: both !important;
    }

    /* Details Section with Blur and See All */
    .details-wrapper {
        position: relative;
    }

    .details-box-blur {
        position: relative;
        max-height: none;
        transition: max-height 0.3s ease;
    }

    .details-box-blur.collapsed {
        max-height: 600px;
        overflow: hidden;
    }

    .details-box-blur.collapsed::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 180px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 1) 100%);
        pointer-events: none;
        z-index: 10;
    }
    
    .details-box-blur.collapsed::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 180px;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        pointer-events: none;
        z-index: 9;
    }

    .details-list {
        position: relative;
    }

    .details-box-blur.collapsed .details-categorized .detail-category:nth-child(-n+2) {
        opacity: 1 !important;
        filter: none !important;
    }

    .details-box-blur.collapsed .details-categorized .detail-category:nth-child(n+3) {
        opacity: 0.3;
        filter: blur(3px);
        pointer-events: none;
    }

    .details-box-blur.expanded .details-categorized .detail-category:nth-child(n+3) {
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
    }

    .details-box-blur.expanded::after,
    .details-box-blur.expanded::before {
        display: none;
    }

    .details-see-all-container {
        position: absolute;
        bottom: 100px;
        left: 0;
        z-index: 15;
        text-align: left;
        width: 100%;
    }
    
    .details-box-blur.expanded .details-see-all-container {
        position: static;
        transform: none;
        margin-top: 20px;
        padding-top: 10px;
    }
    
    .details-box-blur.expanded {
        margin-bottom: 2em !important;
        padding-bottom: 1em !important;
    }
    
    #details.wrap-property.wrap-style.details-expanded {
        margin-bottom: 0px !important;
    }
    
    #details.wrap-property.wrap-style.details-expanded + #featured.wrap-featured.wrap-style {
        margin-top: 0px !important;
        padding-top: 2em !important;
    }

    /* Categorized Details Section Styles */
    .details-categorized {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .detail-category {
        border-bottom: 1px solid #e9ecef;
        padding: 20px 0;
    }

    .detail-category:last-child {
        border-bottom: none;
    }

    .detail-category-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .detail-category-icon {
        font-size: 20px;
        color: #0062CC;
    }

    .detail-category-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

    .detail-category-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .detail-subcategory {
        margin-bottom: 12px;
    }

    .detail-subcategory-title {
        font-size: 14px;
        font-weight: 600;
        color: #666;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .detail-items-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .detail-item-categorized {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .detail-item-label {
        font-size: 14px;
        color: #666;
        margin-bottom: 4px;
    }

    .detail-item-value {
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }

    @media (max-width: 991px) {
        .detail-items-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 767px) {
        .detail-items-grid {
            grid-template-columns: 1fr;
        }
    }

    .details-see-all-btn {
        background-color: #fff;
        color: #333;
        border: 2px solid #e0e0e0;
        padding: 12px 30px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .details-see-all-btn:hover {
        background-color: #f5f5f5;
        border-color: #ccc;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Amenities Section with Blur and See All - Same structure as Details */
    #featured.tf-amenities {
        box-shadow: none !important;
        border: none !important;
    }
    
    .box-featured {
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .amenities-wrapper {
        position: relative;
    }

    .amenities-blur {
        position: relative;
        max-height: none;
        transition: max-height 0.3s ease;
    }

    .amenities-blur.collapsed {
        max-height: 600px;
        overflow: hidden;
    }

    .amenities-blur.collapsed::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 180px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 1) 100%);
        pointer-events: none;
        z-index: 10;
    }
    
    .amenities-blur.collapsed::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 180px;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        pointer-events: none;
        z-index: 9;
    }

    .amenities-blur.collapsed .amenities-categorized .amenity-category:nth-child(-n+2) {
        opacity: 1 !important;
        filter: none !important;
    }

    .amenities-blur.collapsed .amenities-categorized .amenity-category:nth-child(n+3) {
        opacity: 0.3;
        filter: blur(3px);
        pointer-events: none;
    }

    .amenities-blur.expanded .amenities-categorized .amenity-category:nth-child(n+3) {
        opacity: 1 !important;
        filter: none !important;
        pointer-events: auto !important;
    }

    .amenities-blur.expanded::after,
    .amenities-blur.expanded::before {
        display: none;
    }

    .amenities-see-all-container {
        position: absolute;
        bottom: 100px;
        left: 0;
        z-index: 15;
        text-align: left;
        width: 100%;
    }
    
    .amenities-blur.expanded .amenities-see-all-container {
        position: static;
        transform: none;
        margin-top: 20px;
        padding-top: 10px;
        bottom: auto;
    }
    
    .amenities-blur.expanded {
        margin-bottom: 2em !important;
        padding-bottom: 1em !important;
    }
    
    #featured.wrap-featured.wrap-style.amenities-expanded {
        margin-bottom: 0px !important;
    }
    
    #featured.wrap-featured.wrap-style.amenities-expanded ~ .payment-calculator-modern.wrap-featured.wrap-style,
    #featured.wrap-featured.wrap-style.amenities-expanded + .wrap-featured.payment-calculator-modern {
        margin-top: 0px !important;
        padding-top: 2em !important;
    }

    .amenities-see-all-btn {
        background-color: #fff;
        color: #333;
        border: 2px solid #e0e0e0;
        padding: 12px 30px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .amenities-see-all-btn:hover {
        background-color: #f5f5f5;
        border-color: #ccc;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Categorized Amenities Section Styles - Same as Details */
    .amenities-categorized {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .amenity-category {
        border-bottom: 1px solid #e9ecef;
        padding: 20px 0;
    }

    .amenity-category:last-child {
        border-bottom: none;
    }

    .amenity-category-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .amenity-category-icon {
        font-size: 20px;
        color: #0062CC;
    }

    .amenity-category-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

    .amenity-category-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .amenity-items-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .amenity-item-categorized {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .amenity-item-label {
        font-size: 14px;
        color: #666;
        margin-bottom: 4px;
    }

    .amenity-item-value {
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }

    @media (max-width: 991px) {
        .amenity-items-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 767px) {
        .amenity-items-grid {
            grid-template-columns: 1fr;
        }
        
        .amenities-blur.collapsed {
            max-height: 450px;
            overflow: hidden;
        }

        .amenities-blur.collapsed::after {
            height: 120px;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 1) 100%);
        }
        
        .amenities-blur.collapsed::before {
            height: 120px;
            background: rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }

        .amenities-see-all-container {
            bottom: 100px;
            left: 0;
            width: calc(100% - 20px);
            padding: 0 10px;
        }
        
        .amenities-blur.expanded .amenities-see-all-container {
            position: static;
            transform: none;
            margin-top: 20px;
            padding-top: 10px;
            bottom: auto;
            width: 100%;
            padding: 0;
        }

        .amenities-see-all-btn {
            padding: 10px 20px;
            font-size: 14px;
            width: 100%;
            max-width: 200px;
        }

        .amenities-wrapper {
            padding-bottom: 0px;
            overflow: visible;
        }
    }

    /* Nearby Places Section Styling */
    #nearby-places {
        margin-top: 0 !important;
        padding-top: 0 !important;
        display: block !important;
        visibility: visible !important;
    }

    .nearby-places-tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        border-bottom: 2px solid #e9ecef;
    }

    .poi-tab {
        padding: 10px 20px;
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        color: #666;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
        white-space: nowrap;
    }

    .poi-tab:hover {
        color: #0062CC;
        background-color: #f8f9fa;
    }

    .poi-tab.active {
        color: #0062CC;
        border-bottom-color: #0062CC;
        font-weight: 600;
    }

    .nearby-places-list {
        display: grid;
        gap: 15px;
        margin-top: 20px;
    }
    
    .nearby-places-list.hidden {
        display: none;
    }

    .nearby-place-item {
        display: flex;
        align-items: center;
        padding: 15px;
        background-color: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #0062CC;
        cursor: pointer;
        transition: all 0.3s;
    }

    .nearby-place-item:hover {
        background-color: #e9ecef;
        transform: translateX(5px);
    }

    .nearby-place-item .poi-icon {
        font-size: 24px;
        color: #0062CC;
        margin-right: 15px;
        min-width: 30px;
        text-align: center;
    }

    .nearby-place-item .poi-info {
        flex: 1;
    }

    .nearby-place-item .poi-name {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
    }

    .nearby-place-item .poi-distance {
        font-size: 14px;
        color: #666;
    }

    .nearby-place-item .poi-arrow {
        color: #999;
        font-size: 18px;
        margin-left: 10px;
    }

    .loading-placeholder {
        text-align: center;
        padding: 40px;
        color: #666;
    }

    .no-places-found {
        text-align: center;
        padding: 40px;
        color: #999;
    }

    @media (max-width: 768px) {
        .nearby-places-tabs {
            flex-wrap: wrap;
        }

        .poi-tab {
            padding: 8px 15px;
            font-size: 14px;
        }
    }

    /* Ensure description comes after map with proper spacing */
    #description {
        clear: both !important;
        display: block !important;
    }

    /* Additional spacing for desktop between map and description */
    @media (min-width: 768px) {
        #location + div[style*="margin-top: 4em"] {
            margin-top: 2em !important;
            margin-bottom: 4em !important;
            display: block !important;
            clear: both !important;
        }
    }
    
    #description .property-description-text {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Ensure no space before first bullet point */
    #description .property-description-text:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .wrap-text .text-1 {
        text-align: left !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Ensure consistent text flow */
    .property-description-text * {
        text-align: left !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Bullet point styling */
    .property-description-text {
        padding-left: 0 !important;
        padding-right: 15px !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        text-indent: 0 !important;
        line-height: 1.8 !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }

    .property-description-text br {
        margin-bottom: 0.5em !important;
        display: block !important;
        content: "" !important;
        line-height: 1.8 !important;
    }

    /* Ensure lists display properly with bullets and numbers */
    .property-description-text ul,
    #description .property-description-text ul,
    div.property-description-text ul {
        margin: 12px 0 !important;
        margin-bottom: 12px !important;
        padding-left: 30px !important;
        padding-right: 0 !important;
        list-style-type: disc !important;
        list-style: disc outside !important;
        list-style-position: outside !important;
        display: block !important;
        counter-reset: none !important;
    }
    .property-description-text ol,
    #description .property-description-text ol,
    div.property-description-text ol {
        margin: 12px 0 !important;
        margin-bottom: 12px !important;
        padding-left: 30px !important;
        padding-right: 0 !important;
        list-style-type: decimal !important;
        list-style: decimal outside !important;
        list-style-position: outside !important;
        display: block !important;
        counter-reset: none !important;
    }
    .property-description-text li,
    #description .property-description-text li,
    div.property-description-text li {
        margin: 6px 0 !important;
        margin-bottom: 6px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: list-item !important;
        list-style-position: outside !important;
    }
    .property-description-text ul > li,
    #description .property-description-text ul > li,
    div.property-description-text ul > li {
        list-style-type: disc !important;
        list-style: disc outside !important;
    }
    .property-description-text ol > li,
    #description .property-description-text ol > li,
    div.property-description-text ol > li {
        list-style-type: decimal !important;
        list-style: decimal outside !important;
    }

    /* Ensure bullet points and text are fully visible */
    .property-description-text {
        color: #333 !important;
        font-size: 15px !important;
    }

    /* Make sure text doesn't get cut off */
    #description .property-description-text {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    /* Remove space before first line */
    .property-description-text:first-line {
        padding-left: 0 !important;
        text-indent: 0 !important;
    }
    
    /* Remove any leading whitespace */
    .property-description-text::before {
        content: '';
        display: none;
    }

    /* Hide/Show utilities */
    @media (min-width: 768px) {
        .hide-desktop {
            display: none !important;
        }
        
        .mobile-carousel-wrapper {
            display: none !important;
        }
        
        .mobile-only {
            display: none !important;
        }

        .flat-slider01.style .back-button-container,
        .flat-slider01.style .share-button-container,
        .flat-slider01.style .gallery-photo-count {
            display: flex;
        }

        /* Ensure location is displayed before description on desktop */
        #location {
            display: block !important;
        }

    }

    @media (max-width: 767px) {
        .hide-on-mobile {
            display: none !important;
        }
        
        .desktop-gallery {
            display: none !important;
        }

        /* Ensure location is displayed before description on mobile */
        #location {
            display: block !important;
        }

    }

    /* Property info grid styling */
    .property-info-grid {
        margin-top: 2em !important;
        margin-bottom: 2em !important;
        padding-top: 1em !important;
    }

    .property-info-item {
        transition: transform 0.2s, box-shadow 0.2s;
        min-height: 60px;
        display: flex !important;
        align-items: center !important;
    }

    .property-info-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Overview stats cards */
    .maps-views {
        margin-bottom: 24px !important;
    }

    .maps-views .map-link .btn {
        width: 100%;
        text-align: center;
        border-radius: 10px;
        padding: 10px 14px;
        font-weight: 600;
    }

    .property-share-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid #eee;
    }

    .property-share-main {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .share-label {
        font-weight: 600;
        color: #333;
    }

    .share-icons {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .property-share-views {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid #e5eaf3;
        background: #f8fbff;
        border-radius: 10px;
        padding: 8px 10px;
        color: #0f172a;
        font-weight: 600;
        white-space: nowrap;
    }

    .property-share-views i {
        color: #0062CC;
        font-size: 14px;
    }

    .property-share-views .views-count {
        font-weight: 700;
        color: #0f172a;
    }

    .mobile-loan-actions {
        display: none;
    }

    .property-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 14px;
        margin-top: 16px;
    }

    .property-stat-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 12px;
        border: 1px solid #edf1f7;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
        min-height: 76px;
    }

    .property-stat-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: rgba(0, 123, 255, 0.1);
        color: #0062CC;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 18px;
    }

    .property-stat-content {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .property-stat-label {
        font-size: 13px;
        line-height: 1.25;
        color: #667085;
        margin: 0;
    }

    .property-stat-value {
        font-size: 17px;
        line-height: 1.2;
        font-weight: 700;
        color: #0f172a;
        margin-top: 4px;
        overflow-wrap: anywhere;
    }

    /* Responsive design for property info grid */
    @media (max-width: 768px) {
        .property-info-grid {
            grid-template-columns: 1fr !important;
            gap: 15px !important;
            margin-top: 2em !important;
            margin-bottom: 2em !important;
        }
        
        .property-info-item {
            padding: 15px !important;
            min-height: 70px !important;
        }
        
        .property-info-item i {
            font-size: 18px !important;
            margin-right: 12px !important;
        }

        /* Ensure description text is visible on mobile */
        .property-description-text,
        #description .property-description-text {
            padding-right: 10px !important;
            overflow: visible !important;
            width: 100% !important;
            max-width: 100% !important;
            white-space: normal !important;
            word-break: break-word !important;
        }

        #description {
            overflow: visible !important;
            width: 100% !important;
            padding-right: 0 !important;
        }

        .property-stats-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-top: 12px;
        }

        .property-share-row {
            align-items: flex-start;
        }

        .property-share-main {
            flex: 1 1 100%;
        }

        .property-share-views {
            margin-left: auto;
        }

        .property-stat-card {
            min-height: 70px;
            padding: 12px 14px;
            border-radius: 10px;
        }

        .property-stat-icon {
            width: 38px;
            height: 38px;
            font-size: 16px;
        }

        .property-stat-label {
            font-size: 12px;
        }

        .property-stat-value {
            font-size: 16px;
        }

        .mobile-loan-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin: 10px 0 14px;
        }

        .mobile-loan-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-height: 44px;
            padding: 10px 8px;
            border-radius: 8px;
            border: 1px solid #dbe5f1;
            background: #ffffff;
            color: #0f172a;
            text-decoration: none !important;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            text-align: center;
        }

        .mobile-loan-btn:hover,
        .mobile-loan-btn:focus {
            text-decoration: none !important;
            color: #0f172a;
        }

        .mobile-loan-btn.monthly-estimate {
            border-color: #d4e7ff;
            background: #f3f8ff;
        }

        .mobile-loan-btn.apply-home-loan {
            border-color: #ffd599;
            background: #fff8eb;
        }

        .mobile-loan-btn .loan-arrow {
            color: #64748b;
            font-size: 12px;
            line-height: 1;
        }

        .mobile-loan-btn .loan-value {
            white-space: nowrap;
        }

        .mobile-loan-btn .loan-label {
            font-size: 12px;
            font-weight: 600;
            color: #475569;
        }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
        .property-info-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }

        .property-stats-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    /* Ensure request tour modal is always on top - MUST BE HIGHEST */
    .tour-booking-modal-overlay {
        z-index: 2147483647 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .tour-booking-modal {
        z-index: 2147483647 !important;
        position: relative !important;
    }

    /* When tour-booking modal is open on mobile, keep bottom-contact-banner below the modal */
    body:has(.tour-booking-modal-overlay) .bottom-contact-banner,
    body:has(#tour-booking-modal-overlay) .bottom-contact-banner {
        z-index: 1 !important;
        pointer-events: none !important;
    }
    
    /* When modal is open, force these elements below - universal fallback */
    .tour-booking-modal-overlay ~ * .back-button-container,
    .tour-booking-modal-overlay ~ * .share-button-container,
    .tour-booking-modal-overlay ~ * .carousel-arrow,
    .tour-booking-modal-overlay ~ * .carousel-pagination,
    .tour-booking-modal-overlay ~ * .directions-button {
        z-index: 1 !important;
    }

    /* Hide directions button when gallery modal is open */
    #fullGalleryModal.show ~ * .directions-button,
    body:has(#fullGalleryModal.show) .directions-button,
    body #fullGalleryModal.show ~ * .directions-button {
        display: none !important;
        z-index: -1 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Hide directions button when tour-booking modal is open */
    body:has(.tour-booking-modal-overlay) .directions-button,
    body:has(#tour-booking-modal-overlay) .directions-button,
    .tour-booking-modal-overlay ~ * .directions-button,
    #tour-booking-modal-overlay ~ * .directions-button,
    body .tour-booking-modal-overlay ~ * .directions-button,
    body #tour-booking-modal-overlay ~ * .directions-button {
        display: none !important;
        z-index: -1 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Hide directions button when any modal is open - universal rule */
    body:has(#fullGalleryModal.show) .directions-button,
    body:has(.tour-booking-modal-overlay) .directions-button,
    body:has(#tour-booking-modal-overlay) .directions-button {
        display: none !important;
        z-index: -1 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Ensure directions button is visible on mobile when no modal is open */
    .directions-button {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        z-index: 10 !important;
        pointer-events: auto !important;
    }

    /* Mobile specific styles for directions button */
    @media (max-width: 767px) {
        .directions-button {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            position: absolute !important;
            bottom: 30px !important;
            left: 10px !important;
            z-index: 10 !important;
            pointer-events: auto !important;
            background-color: #fff !important;
            padding: 8px 12px !important;
            border-radius: 4px !important;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
            font-size: 14px !important;
        }
    }

    /* Only hide when modals are actually open */
    body:not(:has(#fullGalleryModal.show)):not(:has(.tour-booking-modal-overlay)):not(:has(#tour-booking-modal-overlay)) .directions-button {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Keep bottom-contact-banner visible but below modals */
    #fullGalleryModal.show ~ * .bottom-contact-banner,
    body:has(#fullGalleryModal.show) .bottom-contact-banner,
    body #fullGalleryModal.show ~ * .bottom-contact-banner {
        z-index: 1 !important;
        /* Don't hide, just keep it below modal */
    }

    /* Chat widget sits above the lightbox; hide it while viewing listing photos */
    body:has(#fullGalleryModal.show) .chat-widget-btn,
    body:has(#fullGalleryModal.show) .chat-widget-container,
    body:has(#fullGalleryModal.show) .chat-window-wrapper,
    body:has(#fullGalleryModal.show) .chat-window-container {
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }

    /* Hide footer when gallery modal is open */
    #fullGalleryModal.show ~ * #footer,
    body:has(#fullGalleryModal.show) #footer,
    body #fullGalleryModal.show ~ * #footer,
    body:has(#fullGalleryModal.show) footer,
    body #fullGalleryModal.show ~ * footer {
        display: none !important;
        z-index: -1 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Hide footer when tour-booking modal is open */
    body:has(.tour-booking-modal-overlay) #footer,
    body:has(#tour-booking-modal-overlay) #footer,
    .tour-booking-modal-overlay ~ * #footer,
    #tour-booking-modal-overlay ~ * #footer,
    body .tour-booking-modal-overlay ~ * #footer,
    body #tour-booking-modal-overlay ~ * #footer,
    body:has(.tour-booking-modal-overlay) footer,
    body:has(#tour-booking-modal-overlay) footer {
        display: none !important;
        z-index: -1 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Hide footer when any modal is open - universal rule */
    body:has(#fullGalleryModal.show) #footer,
    body:has(.tour-booking-modal-overlay) #footer,
    body:has(#tour-booking-modal-overlay) #footer,
    body:has(#fullGalleryModal.show) footer,
    body:has(.tour-booking-modal-overlay) footer,
    body:has(#tour-booking-modal-overlay) footer {
        display: none !important;
        z-index: -1 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Ensure sidebar stays below modals, dropdowns, and mobile menu but above photos - FORCE IT */
    .side-bar,
    .side-bar-1,
    .side-bar *,
    .widget-rent,
    .widget-tour,
    .inner-side-bar,
    .inner-side-bar *,
    #sidebarDesktop,
    #sidebarDesktop *,
    #sidebarMobile,
    #sidebarMobile *,
    aside.side-bar,
    aside.side-bar *,
    .col-lg-4#sidebarDesktop,
    .col-lg-4#sidebarDesktop * {
        z-index: 10 !important;
        position: relative !important;
    }
    
    /* Override z-index for contact widget specifically */
    #contact-widget-desktop,
    #contact-widget-desktop.widget-rent,
    #contact-widget-desktop.widget-rent.style,
    #contact-widget-desktop * {
        z-index: 10000 !important;
        position: relative !important;
    }
    
    /* Contact form - low z-index so modals (e.g. Kërko Vizitë) stay on top */
    .property-contact-form,
    .property-contact-form * {
        z-index: 1 !important;
        position: relative !important;
    }
    #sidebarDesktop,
    .col-lg-4#sidebarDesktop {
        z-index: 0 !important;
    }

    .btn.btn-warning.btn-sm {
        max-width: 231px !important;
    }
    /* Override any inline styles on sidebar */
    [class*="side-bar"][style*="z-index"],
    [id*="sidebar"][style*="z-index"],
    [class*="widget-rent"][style*="z-index"],
    [class*="widget-tour"][style*="z-index"] {
        z-index: 1 !important;
    }
    
    /* Override position relative for sticky contact widget - MUST BE AFTER widget-rent rule */
    #contact-widget-desktop.sticky-contact,
    #contact-widget-desktop.sticky-contact.widget-rent {
        position: fixed !important;
    }
    
    /* Ensure mobile menu, dropdowns, and modals are above sidebar - MUST BE HIGHER */
    .mobile-menu,
    .mobile-menu-visible,
    .mobile-menu-visible .mobile-menu,
    .menu-backdrop,
    .menu-box,
    .close-btn,
    .dropdown-content,
    #fullGalleryModal,
    .gallery-header,
    .gallery-nav,
    .gallery-main,
    .gallery-thumbnails {
        z-index: 999999 !important;
    }
    
    /* Bottom contact banner - HIDE on desktop, SHOW only on mobile */
    .bottom-contact-banner {
        display: none !important;
    }
    
    @media (max-width: 767px) {
        .bottom-contact-banner {
            display: flex !important;
            gap: 8px !important;
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
            background-color: #fff !important;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
            z-index: 1000 !important;
            padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)) !important;
            margin: 0 !important;
            align-items: stretch !important;
        }
        /* PEL-243: keep Contact tappable — do not let three CTAs crush it. */
        .bottom-contact-banner > div {
            flex: 1 1 0 !important;
            min-width: 5.5rem !important;
        }
        .bottom-contact-banner .edge-button,
        .bottom-contact-banner .btn-1,
        .bottom-contact-banner .btn-request-tour {
            min-width: 0 !important;
            width: 100% !important;
            /* kma.css gives .edge-button margin:.65rem; inside a 1/3-width cell that pushes it past the cell and over its neighbour. */
            margin: 0 !important;
            box-sizing: border-box !important;
            min-height: 44px !important;
            justify-content: center !important;
            padding-inline: 8px !important;
            font-size: 13px !important;
            white-space: nowrap !important;
        }
        .bottom-contact-banner .request-tour-button-container {
            margin-top: 0 !important;
        }
        .bottom-contact-banner .edge-button span {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Add padding to body to prevent content from being hidden behind fixed banner */
        body {
            padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important; /* PEL-240 */
        }
    }
    
    /* Hide mobile contact banner on desktop */
    @media (min-width: 768px) {
        .bottom-contact-banner {
            display: none !important;
        }
        
        /* Sticky contact section on desktop */
        #contact-widget-desktop {
            transition: all 0.3s ease;
        }
        
        #contact-widget-desktop.sticky-contact {
            position: fixed !important;
            top: var(--sticky-contact-top, 78px) !important; /* Header height; JS e ndryshon kur ndalet mbi Prona të Ngjashme */
            z-index: 10000 !important; /* Above similar properties slider */
            background-color: #fff !important;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
            padding: 20px !important;
            margin: 0 !important;
            border-radius: 8px !important;
            isolation: isolate; /* Own stacking context so it stays on top */
        }
        
        /* Force override any position relative from parent rules */
        #contact-widget-desktop.sticky-contact.widget-rent,
        .widget-rent#contact-widget-desktop.sticky-contact,
        #sidebarDesktop #contact-widget-desktop.sticky-contact {
            position: fixed !important;
        }
        
        /* Sidebar above main content so sticky contact widget stays on top of slider */
        #sidebarDesktop,
        .col-lg-4#sidebarDesktop {
            position: relative !important;
            z-index: 100 !important;
        }
    }

    /* Show mobile contact banner only on mobile - FIXED at bottom */
    @media (max-width: 767px) {
        .bottom-contact-banner {
            display: flex !important;
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
            background-color: #fff !important;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
            z-index: 1000 !important;
            padding: 15px !important;
            margin: 0 !important;
        }
        
        /* Kontakto button container - must be relative for absolute positioning */
        .bottom-contact-banner > div:first-child {
            position: relative !important;
        }
        
        .dropdown-content-bcb {
            z-index: 1001 !important;
            position: absolute !important;
            bottom: calc(100% + 10px) !important;
            left: 0 !important;
            width: 100% !important;
            margin-top: 0 !important;
            margin-bottom: 0 !important;
            display: none !important;
            background-color: #fff !important;
            min-width: 200px !important;
            box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
            border-radius: 8px !important;
            cursor: pointer !important;
            overflow: hidden !important;
        }
        
        .dropdown-content-bcb.show {
            display: block !important;
        }
    }
    
    .dropdown-content-bcb a {
        color: #000 !important;
        padding: 12px 16px !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        transition: background-color 0.2s !important;
        border-bottom: 1px solid #e5e5e5 !important;
    }
    
    .dropdown-content-bcb a:last-child {
        border-bottom: none !important;
    }
    
    .dropdown-content-bcb a:hover {
        background-color: #f1f1f1 !important;
    }
    
    .dropdown-content-bcb a i {
        margin-right: 10px !important;
        font-size: 18px !important;
        width: 20px !important;
        text-align: center !important;
    }
    
    /* Phone number dropdown styles */
    .phone-number-trigger {
        transition: opacity 0.2s;
        position: relative;
    }
    
    .phone-number-trigger:hover {
        opacity: 0.8;
    }
    
    .dropdown-content-phone {
        margin-top: 4px !important; /* Small gap to allow mouse movement */
    }
    
    .dropdown-content-phone a:hover {
        background-color: #f1f1f1 !important;
    }

    /* Kontakto button below phone - hover shows WhatsApp, Viber, Telefono */
    #contact-widget-desktop .contact-widget-kontakto {
        position: relative;
        z-index: 10001;
    }
    #contact-widget-desktop .contact-widget-kontakto:hover .contact-widget-kontakto-dropdown {
        display: block !important;
    }
    #contact-widget-desktop .contact-agent-btn:hover {
        background-color: rgb(253, 163, 17) !important;
    }
    #contact-widget-desktop .contact-widget-kontakto-dropdown a:hover {
        background-color: #f1f1f1 !important;
    }

    /* Email contact form modal (guest) */
    .email-contact-modal-guest {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    .email-contact-modal-overlay-guest {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }
    .email-contact-modal-content-guest {
        position: relative;
        background-color: #fff;
        width: 100%;
        max-width: 480px;
        max-height: 90vh;
        border-radius: 12px;
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    .email-contact-modal-header-guest {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid #e9ecef;
        position: sticky;
        top: 0;
        background-color: #fff;
        z-index: 1;
    }
    .email-contact-modal-header-guest h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }
    .email-contact-close-btn-guest {
        background: none;
        border: none;
        font-size: 20px;
        color: #666;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
    }
    .email-contact-close-btn-guest:hover {
        color: #333;
    }
    .email-contact-modal-body-guest {
        padding: 20px;
        padding-bottom: 32px;
    }
    
    /* Photos and gallery should be below sidebar - FORCE IT */
    .desktop-gallery,
    .desktop-gallery *,
    .desktop-first-image,
    .desktop-first-image *,
    .desktop-right-images,
    .desktop-right-images *,
    .desktop-image-item,
    .desktop-image-item *,
    .view-all-photos-btn,
    .view-all-photos-btn-mobile,
    .carousel-pagination,
    #firstImageOfCarousel,
    #firstImageOfCarousel * {
        z-index: 1 !important;
        position: relative !important;
    }
    
    /* Keep overlay as absolute for proper positioning */
    .view-all-photos-overlay {
        position: absolute !important;
        z-index: 10 !important;
    }
    
    /* Override inline styles on photo elements */
    [class*="desktop-gallery"][style*="z-index"],
    [id*="carousel"][style*="z-index"] {
        z-index: 1 !important;
    }
    
    
    /* Scrolling nav should be below sidebar */
    .scrolling-nav-detail,
    .scrolling-nav-links,
    #scrollingNav-detail,
    #scrollingNav-detail * {
        z-index: 1 !important;
        position: relative !important;
    }
    
    /* Other elements that should be above sidebar but below modals */

    
    /* Specifically target gallery modal elements */
    #fullGalleryModal,
    #fullGalleryModal.show,
    #fullGalleryModal * {
        z-index: 9999 !important;
    }
    
    /* Override any inline styles that might set higher z-index, but exclude mobile menu and dropdowns */
    [style*="z-index"]:not(.tour-booking-modal-overlay):not(.tour-booking-modal):not(.mobile-menu):not(.menu-backdrop):not(.menu-box):not(.dropdown-content):not(.dropdown-content-bcb):not(.bottom-contact-banner):not(.boost-modal-overlay):not(.boost-modal-content):not(.payment-modal-overlay):not(.payment-modal-content):not(.boost-cancel-confirm-overlay):not(.boost-cancel-confirm-card) {
        z-index: 9999 !important;
    }

    /* Reklamo pronën — mbi sticky sidebar (#contact-widget-desktop z-index 10000) */
    .boost-modal-overlay,
    .payment-modal-overlay,
    .boost-cancel-confirm-overlay {
        z-index: 2147483645 !important;
    }
    .boost-modal-content,
    .payment-modal-content,
    .boost-cancel-confirm-card {
        z-index: 2147483646 !important;
    }

    /* While boost/payment modal is open, hide floating/sidebar widgets to prevent any overlap. */
    body:has(.boost-modal-overlay) #sidebarDesktop,
    body:has(.boost-modal-overlay) #sidebarMobile,
    body:has(.boost-modal-overlay) #contact-widget-desktop,
    body:has(.boost-modal-overlay) .bottom-contact-banner,
    body:has(.payment-modal-overlay) #sidebarDesktop,
    body:has(.payment-modal-overlay) #sidebarMobile,
    body:has(.payment-modal-overlay) #contact-widget-desktop,
    body:has(.payment-modal-overlay) .bottom-contact-banner {
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Ensure map stays below header and other elements */
    #map-prop-detail,
    .map-content,
    .wrap-map,
    #location,
    .gm-style,
    .gm-style-cc,
    .gmnoprint,
    .gm-bundled-control,
    .gm-fullscreen-control,
    .gm-style-iw,
    .gm-style-iw-c,
    .gm-style-iw-d {
        z-index: 1 !important;
        position: relative !important;
    }
    
    /* Ensure modal overlay is always visible and on top */
    body:has(.tour-booking-modal-overlay) .tour-booking-modal-overlay,
    .tour-booking-modal-overlay[style*="z-index"] {
        z-index: 2147483647 !important;
    }
    
    /* Ensure these elements stay below modal when modal is open - OVERRIDE ALL INLINE STYLES */
    body:has(.tour-booking-modal-overlay) .back-button-container,
    body:has(.tour-booking-modal-overlay) .share-button-container,
    body:has(.tour-booking-modal-overlay) .carousel-arrow,
    body:has(.tour-booking-modal-overlay) .carousel-arrow.left,
    body:has(.tour-booking-modal-overlay) .carousel-arrow.right,
    body:has(.tour-booking-modal-overlay) .carousel-pagination,
    body:has(.tour-booking-modal-overlay) [class*="back-button-container"],
    body:has(.tour-booking-modal-overlay) [class*="share-button-container"],
    body:has(.tour-booking-modal-overlay) [class*="carousel-arrow"],
    body:has(.tour-booking-modal-overlay) [class*="carousel-pagination"] {
        z-index: 1 !important;
        position: relative !important;
    }

    /* Hide directions button completely when tour-booking modal is open */
    body:has(.tour-booking-modal-overlay) .directions-button,
    body:has(.tour-booking-modal-overlay) [class*="directions-button"] {
        display: none !important;
        z-index: -1 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Also target elements with inline z-index styles when modal is open */
    body:has(.tour-booking-modal-overlay) .back-button-container[style*="z-index"],
    body:has(.tour-booking-modal-overlay) .share-button-container[style*="z-index"],
    body:has(.tour-booking-modal-overlay) .carousel-arrow[style*="z-index"],
    body:has(.tour-booking-modal-overlay) .carousel-pagination[style*="z-index"],
    body:has(.tour-booking-modal-overlay) .directions-button[style*="z-index"] {
        z-index: -1 !important;
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Remove black line at the top of the page */
    html,
    body,
    #wrapper,
    #pagee,
    #header,
    header,
    .main-header,
    .header,
    .header-lower,
    .header-lower * {
        border-top: none !important;
        border-top-width: 0 !important;
    }
    /* Mobile map optimizations */
    @media (max-width: 767px) {
        #map-prop-detail,
        .map-content {
            height: 400px !important;
            width: 100% !important;
            min-height: 400px !important;
            max-height: 400px !important;
            position: relative !important;
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            z-index: 1 !important;
            touch-action: pan-x pan-y !important;
            -webkit-touch-callout: none !important;
            -webkit-user-select: none !important;
            user-select: none !important;
        }
        
        /* Ensure map container is visible and properly sized */
        #location .map-content,
        #location #map-prop-detail {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        /* Leaflet map container optimizations for mobile */
        #map-prop-detail .leaflet-container {
            height: 100% !important;
            width: 100% !important;
            touch-action: pan-x pan-y !important;
        }
        
        /* Ensure map tiles load properly on mobile */
        #map-prop-detail .leaflet-tile-container img {
            max-width: none !important;
            pointer-events: auto !important;
        }
        
        /* Optimize map controls for mobile */
        #map-prop-detail .leaflet-control-zoom {
            touch-action: manipulation !important;
        }
        
        #map-prop-detail .leaflet-control-zoom a {
            min-width: 36px !important;
            min-height: 36px !important;
            font-size: 18px !important;
            line-height: 36px !important;
            touch-action: manipulation !important;
        }
    }
    
    /* Reduce bottom spacing for col-lg-8 on mobile */
    @media (max-width: 767px) {
        .col-lg-8 .bottom-spacing-div {
            margin-bottom: 2em !important;
        }
        
        .col-lg-8 .post {
            margin-bottom: 1em !important;
        }
    }

    /* Similar properties section: do not create stacking context above sidebar */
    section.flat-sale.wg-dream.tf-section,
    .flat-sale.wg-dream .swiper-container2,
    .flat-sale.wg-dream .owl-carousel {
        position: relative;
        z-index: 0;
    }
    
    /* Keep property-card swiper bullets visible on all devices (desktop + mobile). */
    .swiper-pagination2,
    .swiper-pagination2.swiper-pagination-clickable.swiper-pagination-bullets {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .swiper-pagination2 .swiper-pagination-bullet {
        opacity: 1 !important;
    }
    .swiper-pagination2.swiper-pagination-lock,
    .property-card-pagination.swiper-pagination-lock {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    @media (max-width: 1199px) {
        .pagi2 .swiper-pagination2,
        .swiper-pagination2.swiper-pagination-clickable.swiper-pagination-bullets {
            display: block !important;
            opacity: 1 !important;
            visibility: visible !important;
            z-index: 120 !important;
            bottom: 10px !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
        }
        .property-card-pagi2,
        .property-card-pagination,
        .property-card-pagination.swiper-pagination-clickable,
        .property-card-pagination.swiper-pagination-bullets,
        .property-card-pagination.swiper-pagination-lock {
            display: block !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
        }
    }

    /* Rregullimi i strukturës së Owl Carousel që kartat të kenë lartësi të barabartë */
    .flat-sale.wg-dream .owl-stage {
        display: flex; /* Make items equal height */
        padding-bottom: 15px; /* Space for shadow */
    }
    .flat-sale.wg-dream .slide-item {
        flex: 1;
        height: 100%;
        display: flex;
        min-width: 280px;
    }
    /* 3 karta në desktop, 2 në tablet, 1 në mobile – Owl përcakton gjerësinë */
    .flat-sale.wg-dream .owl-item {
        min-width: 280px !important;
    }
    @media (min-width: 992px) {
        .flat-sale.wg-dream .owl-item {
            width: 33.333% !important;
            min-width: 280px !important;
        }
    }
    @media (min-width: 768px) and (max-width: 991px) {
        .flat-sale.wg-dream .owl-item {
            width: 50% !important;
        }
    }
    /* Stilizimi i kutisë së kartës */
    .flat-sale.wg-dream .box-dream {
        width: 100%;
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        margin: 0;
    }
    /* KONTAINERI I FOTOS - Përcaktojmë lartësi fikse */
    .flat-sale.wg-dream .box-dream .image-group {
        width: 100% !important;
        height: 260px !important; /* Lartësia standarde për desktop */
        min-height: 260px !important;
        max-height: 260px !important;
        position: relative !important;
        overflow: hidden !important;
        border-radius: 12px 12px 0 0;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        background-color: #f0f0f0 !important; /* Fallback background */
    }
    /* Swiper container must fill image-group - PLOT FIT */
    .flat-sale.wg-dream .box-dream .image-group .swiper-container,
    .flat-sale.wg-dream .box-dream .image-group .swiper-container.noo,
    .flat-sale.wg-dream .box-dream .image-group .swiper-container.carousel-2,
    .flat-sale.wg-dream .box-dream .image-group .swiper-container.img-style,
    .flat-sale.wg-dream .box-dream .image-group .swiper-container.fixedImageSecondary {
        width: 100% !important;
        height: 100% !important;
        min-height: 260px !important;
        max-height: 260px !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        overflow: hidden !important;
        border-radius: 12px 12px 0 0;
    }
    /* Swiper wrapper */
    .flat-sale.wg-dream .box-dream .image-group .swiper-wrapper {
        width: 100% !important;
        height: 100% !important;
        min-height: 260px !important;
        max-height: 260px !important;
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    /* Swiper slide */
    .flat-sale.wg-dream .box-dream .image-group .swiper-slide {
        width: 100% !important;
        height: 100% !important;
        min-height: 260px !important;
        max-height: 260px !important;
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    /* Picture element must fill slide */
    .flat-sale.wg-dream .box-dream .image-group .swiper-slide picture,
    .flat-sale.wg-dream .box-dream .image-group picture {
        width: 100% !important;
        height: 100% !important;
        min-height: 260px !important;
        max-height: 260px !important;
        display: block !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    /* FOTOJA - PLOT FIT me object-fit: cover */
    .flat-sale.wg-dream .box-dream .image-group img,
    .flat-sale.wg-dream .box-dream .image-group picture img,
    .flat-sale.wg-dream .box-dream .image-group .swiper-slide img,
    .flat-sale.wg-dream .box-dream .image-group .swiper-slide picture img,
    .flat-sale.wg-dream .box-dream .image-group .object-fit-wh {
        width: 100% !important;
        height: 100% !important;
        min-height: 260px !important;
        max-height: 260px !important;
        object-fit: cover !important; /* PLOT FIT - mbush të gjithë hapësirën */
        object-position: center center !important;
        display: block !important;
        transition: transform 0.5s ease;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    /* Efekt zmadhimi kur kalon mausin sipër */
    .flat-sale.wg-dream .box-dream:hover .image-group img {
        transform: scale(1.1);
    }
    /* Rregullime për Mobile dhe Tablet */
    @media (max-width: 991px) {
        .flat-sale.wg-dream .box-dream .image-group {
            height: 240px !important;
            min-height: 240px !important;
            max-height: 240px !important;
        }
        .flat-sale.wg-dream .box-dream .image-group .swiper-container,
        .flat-sale.wg-dream .box-dream .image-group .swiper-container.noo,
        .flat-sale.wg-dream .box-dream .image-group .swiper-container.carousel-2,
        .flat-sale.wg-dream .box-dream .image-group .swiper-container.img-style,
        .flat-sale.wg-dream .box-dream .image-group .swiper-container.fixedImageSecondary {
            min-height: 240px !important;
            max-height: 240px !important;
        }
        .flat-sale.wg-dream .box-dream .image-group .swiper-wrapper {
            min-height: 240px !important;
            max-height: 240px !important;
        }
        .flat-sale.wg-dream .box-dream .image-group .swiper-slide {
            min-height: 240px !important;
            max-height: 240px !important;
        }
        .flat-sale.wg-dream .box-dream .image-group .swiper-slide picture,
        .flat-sale.wg-dream .box-dream .image-group picture {
            min-height: 240px !important;
            max-height: 240px !important;
        }
        .flat-sale.wg-dream .box-dream .image-group img,
        .flat-sale.wg-dream .box-dream .image-group .object-fit-wh {
            min-height: 240px !important;
            max-height: 240px !important;
        }
    }
    @media (max-width: 767px) {
        /* Në mobile e bëjmë foton pak më të vogël në lartësi */
        .flat-sale.wg-dream .box-dream .image-group {
            height: 220px !important;
            min-height: 220px !important;
            max-height: 220px !important;
        }
        .flat-sale.wg-dream .box-dream .image-group .swiper-container,
        .flat-sale.wg-dream .box-dream .image-group .swiper-container.noo,
        .flat-sale.wg-dream .box-dream .image-group .swiper-container.carousel-2,
        .flat-sale.wg-dream .box-dream .image-group .swiper-container.img-style,
        .flat-sale.wg-dream .box-dream .image-group .swiper-container.fixedImageSecondary {
            min-height: 220px !important;
            max-height: 220px !important;
        }
        .flat-sale.wg-dream .box-dream .image-group .swiper-wrapper {
            min-height: 220px !important;
            max-height: 220px !important;
        }
        .flat-sale.wg-dream .box-dream .image-group .swiper-slide {
            min-height: 220px !important;
            max-height: 220px !important;
        }
        .flat-sale.wg-dream .box-dream .image-group .swiper-slide picture,
        .flat-sale.wg-dream .box-dream .image-group picture {
            min-height: 220px !important;
            max-height: 220px !important;
        }
        .flat-sale.wg-dream .box-dream .image-group img,
        .flat-sale.wg-dream .box-dream .image-group .object-fit-wh {
            min-height: 220px !important;
            max-height: 220px !important;
        }
        /* Sigurohemi që të mos ketë padding të çuditshëm */
        .flat-sale.wg-dream .owl-item {
            padding: 0 5px;
        }
    }
    /* -------------------------------------------------------------------------- */
    /* ADDITIONAL FIXES FOR SIMILAR PROPERTIES IMAGES - ENSURE PROPER DISPLAY */
    /* -------------------------------------------------------------------------- */
    
    /* Override padding-top for flat-property-detail */
    .flat-property-detail.property-detail2.style2,
    section.flat-property-detail.property-detail2.style2,
    html body section.flat-property-detail.property-detail2.style2,
    html body .flat-property-detail.property-detail2.style2,
    body section.flat-property-detail.property-detail2.style2[style*="padding-top"],
    section.flat-property-detail.property-detail2.style2[style*="padding-top"],
    html body section.flat-property-detail.property-detail2.style2[style],
    html body .flat-property-detail.property-detail2.style2[style],
    body .container .row section.flat-property-detail.property-detail2.style2,
    html body .container section.flat-property-detail.property-detail2.style2 {
        padding-top: 30px !important;
    }
    
    /* DESKTOP SPECIFIC OVERRIDE - Force 30px on desktop */
    @media (min-width: 768px) {
        .flat-property-detail.property-detail2.style2,
        section.flat-property-detail.property-detail2.style2,
        html body section.flat-property-detail.property-detail2.style2,
        html body .flat-property-detail.property-detail2.style2,
        body section.flat-property-detail.property-detail2.style2[style*="padding-top"],
        section.flat-property-detail.property-detail2.style2[style*="padding-top"],
        html body section.flat-property-detail.property-detail2.style2[style],
        html body .flat-property-detail.property-detail2.style2[style],
        body .container .row section.flat-property-detail.property-detail2.style2,
        html body .container section.flat-property-detail.property-detail2.style2,
        section.flat-property-detail.property-detail2.style2[style] {
            padding-top: 30px !important;
        }
    }
    
    /* MOBILE SPECIFIC OVERRIDE - Force 30px on mobile */
    @media (max-width: 767px) {
        .flat-property-detail.property-detail2.style2,
        section.flat-property-detail.property-detail2.style2,
        html body section.flat-property-detail.property-detail2.style2,
        html body .flat-property-detail.property-detail2.style2,
        body section.flat-property-detail.property-detail2.style2[style*="padding-top"],
        section.flat-property-detail.property-detail2.style2[style*="padding-top"],
        html body section.flat-property-detail.property-detail2.style2[style],
        html body .flat-property-detail.property-detail2.style2[style],
        body .container .row section.flat-property-detail.property-detail2.style2,
        html body .container section.flat-property-detail.property-detail2.style2,
        section.flat-property-detail.property-detail2.style2[style] {
            padding-top: 30px !important;
        }
    }
    
    /* FINAL OVERRIDE OUTSIDE MEDIA QUERY - This must override everything */
    section.flat-property-detail.property-detail2.style2 {
        padding-top: 30px !important;
    }

    /* Fix: Ensure gallery section has proper spacing from top */
    .flat-slider01.style {
        padding-top: 20px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }

    /* Modern, card-style gallery container for desktop & mobile */
    .flat-slider01.style .desktop-gallery,
    .flat-slider01.style .mobile-carousel-wrapper,
    .flat-slider01.style #firstImageOfCarousel {
        border-radius: 16px;
        overflow: hidden;
        background: radial-gradient(circle at top left, #111827, #020617);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
    }

    /* Single-photo desktop card: clean light background, big image */
    .flat-slider01.style .desktop-single-image {
        border-radius: 16px;
        overflow: hidden;
        background: #ffffff;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
        padding: 8px;
    }

    .flat-slider01.style .desktop-first-image,
    .flat-slider01.style .desktop-image-item,
    .flat-slider01.style .mobile-carousel-container {
        background-color: #000;
    }

    .flat-slider01.style .desktop-first-image img,
    .flat-slider01.style .desktop-image-item img {
        transition: transform 0.45s ease-out;
    }

    .flat-slider01.style .desktop-first-image:hover img,
    .flat-slider01.style .desktop-image-item:hover img {
        transform: scale(1.03);
    }

    /* Single-image mobile layout */
    #firstImageOfCarousel {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
    }

    #firstImageOfCarousel img {
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: cover;
        display: block;
    }

    /* Fix: Ensure property detail section starts with proper spacing */
    section.flat-property-detail {
        scroll-margin-top: 100px !important;
    }

    /* Fix: On page load, ensure content is visible below header */
    @media (min-width: 768px) {
        .flat-slider01.style .container {
            padding-top: 0 !important;
        }
        
        /* Ensure gallery is not hidden behind header and keep a strong card look on desktop */
        .flat-slider01.style {
            margin-top: 0 !important;
            margin-bottom: 0 !important;
            padding-top: 20px !important;
        }

        .flat-slider01.style .desktop-gallery {
            max-width: 1400px;
        }
    }

    @media (max-width: 767px) {
        .flat-slider01.style {
            padding-top: 0px !important;
            margin-top: 0 !important;
            margin-bottom: 0 !important;
        }
    }

    /* Fix: Ensure first section (gallery) is fully visible on page load */
    .flat-slider01.style .col-lg-12 {
        min-height: auto !important;
        overflow: visible !important;
    }

    /* Default font për përshkrimin */
.property-description-text,
#description .property-description-text,
.text-1.text-color-2.property-description-text,
#description .text-1.text-color-2 {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 
                 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 
                 'Open Sans', 'Helvetica Neue', sans-serif !important;
    font-weight: 400;           /* ose 500 për pak më të trashë */
    font-size: 15px !important;
    line-height: 1.8 !important;
    letter-spacing: -0.01em;    /* pak më i bukur lexueshmëria */
}

/* Opsionale – titujt brenda përshkrimit mund të jenë më të trashë */
.property-description-text h1,
.property-description-text h2,
.property-description-text h3,
.property-description-text h4,
.property-description-text strong,
.property-description-text b {
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif !important;
}

@media (max-width: 768px) {
    .col-lg-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Payment calculator (was the second inline block). */
                            .payment-calculator-modern {
                                background: #ffffff;
                                border-radius: 8px;
                                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
                                overflow: hidden;
                                border: 1px solid #e5e7eb;
                            }
                            
                            .payment-calculator-header {
                                padding: 20px 24px;
                                border-bottom: 1px solid #e5e7eb;
                                display: flex;
                                justify-content: space-between;
                                align-items: center;
                                background: #ffffff;
                            }
                            
                            .payment-calculator-header h3 {
                                margin: 0;
                                font-size: 20px;
                                font-weight: 600;
                                color: #111827;
                            }
                            
                            .header-actions {
                                display: flex;
                                align-items: center;
                                gap: 12px;
                            }
                            
                            .info-icon-header {
                                color: #6b7280;
                                font-size: 16px;
                                cursor: help;
                            }
                            
                            .reset-btn {
                                background: transparent;
                                border: none;
                                color: #6b7280;
                                padding: 6px 12px;
                                border-radius: 4px;
                                cursor: pointer;
                                font-size: 14px;
                                transition: all 0.2s;
                                font-weight: 500;
                            }
                            
                            .reset-btn:hover {
                                background: #f3f4f6;
                                color: #111827;
                            }
                            
                            .payment-display {
                                padding: 24px;
                                background: #ffffff;
                                border-bottom: 1px solid #e5e7eb;
                            }
                            
                            .payment-display-header {
                                display: flex;
                                justify-content: space-between;
                                align-items: flex-start;
                                margin-bottom: 16px;
                            }
                            
                            .payment-amount {
                                font-size: 36px;
                                font-weight: 700;
                                color: #111827;
                                margin: 0;
                                line-height: 1.2;
                            }
                            
                            .payment-per-month {
                                font-size: 18px;
                                font-weight: 400;
                                color: #6b7280;
                                margin-left: 4px;
                            }
                            
                            .payment-breakdown {
                                padding: 24px;
                                border-bottom: 1px solid #e5e7eb;
                            }
                            
                            .breakdown-bar {
                                height: 6px;
                                background: #e5e7eb;
                                border-radius: 3px;
                                overflow: hidden;
                                margin-bottom: 20px;
                                display: flex;
                            }
                            
                            .breakdown-segment {
                                height: 100%;
                                transition: all 0.3s ease;
                            }
                            
                            .breakdown-items {
                                display: flex;
                                flex-direction: column;
                                gap: 12px;
                            }
                            
                            .breakdown-item {
                                display: flex;
                                align-items: center;
                                padding: 0;
                            }
                            
                            .breakdown-item-dot {
                                width: 10px;
                                height: 10px;
                                border-radius: 50%;
                                margin-right: 12px;
                                flex-shrink: 0;
                            }
                            
                            .breakdown-item-label {
                                flex: 1;
                                color: #374151;
                                font-size: 14px;
                            }
                            
                            .breakdown-item-amount {
                                color: #111827;
                                font-weight: 600;
                                font-size: 14px;
                            }
                            
                            .breakdown-item-add {
                                color: #6b7280;
                                font-size: 14px;
                                cursor: pointer;
                                text-decoration: underline;
                            }
                            
                            .breakdown-item-add:hover {
                                color: #111827;
                            }
                            
                            .calculator-details {
                                padding: 24px;
                                border-bottom: 1px solid #e5e7eb;
                            }
                            
                            .detail-item {
                                display: flex;
                                justify-content: space-between;
                                align-items: center;
                                padding: 12px 0;
                                border-bottom: 1px solid #f3f4f6;
                            }
                            
                            .detail-item:last-child {
                                border-bottom: none;
                            }
                            
                            .detail-label {
                                color: #6b7280;
                                font-size: 14px;
                            }
                            
                            .detail-value {
                                display: flex;
                                align-items: center;
                                gap: 8px;
                                color: #111827;
                                font-size: 14px;
                                font-weight: 500;
                            }
                            
                            .detail-edit-icon {
                                color: #6b7280;
                                font-size: 14px;
                                cursor: pointer;
                            }
                            
                            .detail-edit-icon:hover {
                                color: #111827;
                            }
                            
                            .detail-edit-input {
                                padding: 4px 8px;
                                border: 1px solid #d1d5db;
                                border-radius: 4px;
                                font-size: 14px;
                                width: 150px;
                                color: #000000 !important;
                                background: #ffffff !important;
                            }
                            
                            .detail-edit-input::placeholder {
                                color: #9ca3af !important;
                            }
                            
                            .prequalify-section {
                                padding: 20px 24px;
                                border-bottom: 1px solid #e5e7eb;
                                background: #f9fafb;
                            }
                            
                            .prequalify-text {
                                display: flex;
                                align-items: center;
                                gap: 8px;
                                color: #6b7280;
                                font-size: 14px;
                                margin-bottom: 16px;
                            }
                            
                            .prequalify-btn {
                                width: 100%;
                                background: #374151;
                                color: white;
                                border: none;
                                padding: 12px 24px;
                                border-radius: 6px;
                                font-size: 14px;
                                font-weight: 600;
                                cursor: pointer;
                                transition: all 0.2s;
                            }
                            
                            .prequalify-btn:hover {
                                background: #1f2937;
                            }
                            
                            .expandable-section {
                                padding: 16px 24px;
                                border-bottom: 1px solid #e5e7eb;
                                cursor: pointer;
                                transition: background 0.2s;
                            }
                            
                            .expandable-section:hover {
                                background: #f9fafb;
                            }
                            
                            .expandable-section:last-child {
                                border-bottom: none;
                            }
                            
                            .expandable-header {
                                display: flex;
                                justify-content: space-between;
                                align-items: center;
                            }
                            
                            .expandable-title {
                                color: #111827;
                                font-size: 14px;
                                font-weight: 500;
                            }
                            
                            .expandable-description {
                                color: #6b7280;
                                font-size: 13px;
                                margin-top: 4px;
                            }
                            
                            .expandable-arrow {
                                color: #6b7280;
                                font-size: 12px;
                                transition: transform 0.2s;
                            }
                            
                            .expandable-section.expanded .expandable-arrow {
                                transform: rotate(90deg);
                            }
                            
                            .calculator-inputs {
                                padding: 24px;
                                background: #ffffff;
                            }
                            
                            .input-section {
                                margin-bottom: 24px;
                            }
                            
                            .input-section-title {
                                font-size: 14px;
                                font-weight: 600;
                                color: #111827;
                                margin-bottom: 16px;
                            }
                            
                            .input-group {
                                display: grid;
                                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                                gap: 16px;
                                margin-bottom: 16px;
                            }
                            
                            .input-field {
                                display: flex;
                                flex-direction: column;
                            }
                            
                            .input-field label {
                                font-size: 13px;
                                font-weight: 500;
                                color: #374151;
                                margin-bottom: 6px;
                            }
                            
                            .input-field input,
                            .input-field select {
                                padding: 10px 12px;
                                border: 1px solid #d1d5db;
                                border-radius: 6px;
                                font-size: 14px;
                                transition: all 0.2s;
                                background: white;
                                color: #111827 !important;
                            }
                            
                            .input-field input::placeholder,
                            .input-field select::placeholder {
                                color: #9ca3af;
                            }
                            
                            .input-field input:focus,
                            .input-field select:focus {
                                outline: none;
                                border-color: #3b82f6;
                                box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
                            }
                            
                            .input-field .error {
                                color: #ef4444;
                                font-size: 12px;
                                margin-top: 4px;
                            }
                            
                            @media (max-width: 768px) {
                                .payment-amount {
                                    font-size: 28px;
                                }
                                
                                .input-group {
                                    grid-template-columns: 1fr;
                                }
                                
                                .payment-calculator-header {
                                    padding: 16px;
                                }
                                
                                .payment-calculator-header h3 {
                                    font-size: 18px;
                                }
                            }


                            @media (max-width: 768px) {
    /* The contact button owns the corner. The back-to-top pill sits to its left.
       The open chat is a bottom sheet, so it is not lifted with the button. */
    #scroll-top.button-go,
    #scroll-top.button-go.show {
        bottom: calc(100px + 6px + env(safe-area-inset-bottom, 0px)) !important;
        right: calc(20px + 56px + 12px) !important;
        left: auto !important;
    }
}

@media (max-width: 767px) {
    /* Titulli dhe çmimi në të majtë në mobile */
    .wrap-overview .ttl2.titles,
    .wrap-overview .ttl2.titles .d-flex,
    .wrap-overview #overview.titles {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .wrap-overview .ttl2.titles h3,
    .wrap-overview #overview.titles h3.mobile-style {
        text-align: left !important;
    }

    /* Titulli i listimit: gjerësi e plotë + mbështjellje (shmang prerjen në mobile) */
    .wrap-overview > .titles:first-of-type > .d-flex.align-items-center:first-child,
    .wrap-overview .ttl2.titles > .d-flex.align-items-center:first-child {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .wrap-overview .property-listing-title {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    .titles.d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: center !important;       /* <-- qendërzimi kryesor */
        justify-content: center !important;   /* opsionale, por ndihmon */
        gap: 12px !important;
        text-align: center !important;        /* siguron që teksti të jetë i qendërzuar */
    }
    /* Titulli dhe çmimi përsëri majtas (mbishkruajnë rregullin e përgjithshëm .titles) */
    .wrap-overview .ttl2.titles,
    .wrap-overview #overview.titles {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .titles.d-flex.justify-content-between .widget-tour {
        align-self: stretch !important;       /* ose mund ta heqësh këtë nëse nuk do gjerësi të plotë */
        max-width: 320px !important;          /* opsionale – kufizon gjerësinë maksimale */
        margin: 0 auto !important;            /* ndihmon për qendërzim shtesë */
    }

    .titles.d-flex.justify-content-between .widget-tour a {
        justify-content: center !important;
        width: 100% !important;
        display: flex !important;             /* sigurohemi që është flex për qendërzim të mirë */
    }
}

/* PEL-289: the listing's status badges are Bootstrap's btn-warning / btn-success,
   white on #F0AD4E (1.95:1) and #5CB85C (2.48:1). Dark text clears 7:1 on both. */
.btn-xs.btn-warning,
.btn-xs.btn-success {
    color: #1A1206;
}
