body.pf-device-mobile .luxe-property-detail,
body.pf-device-tablet .luxe-property-detail {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px) + 16px);
}

body.pf-device-mobile .luxe-property-detail .luxe-back-btn,
body.pf-device-tablet .luxe-property-detail .luxe-back-btn {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

body.pf-device-mobile .luxe-property-detail .container-wide,
body.pf-device-tablet .luxe-property-detail .container-wide {
    padding-left: 16px;
    padding-right: 16px;
}

body.pf-device-mobile .luxe-property-detail .luxe-property-topbar,
body.pf-device-tablet .luxe-property-detail .luxe-property-topbar {
    display: none;
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-desktop,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-desktop {
    display: none !important;
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile {
    display: block !important;
    margin: 0 0 0.85rem;
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile.is-gallery-fallback .swiper-container,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile.is-gallery-fallback .swiper-container {
    min-height: 220px;
    background: linear-gradient(135deg, #0f1622 0%, #3d3320 100%);
}

body.pf-device-mobile .luxe-property-detail .luxe-property-layout,
body.pf-device-mobile .luxe-property-detail .luxe-content-grid,
body.pf-device-tablet .luxe-property-detail .luxe-property-layout,
body.pf-device-tablet .luxe-property-detail .luxe-content-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile .swiper-container,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile .swiper-container {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(44, 37, 24, 0.16);
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile .swiper-button-next,
body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile .swiper-button-prev,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile .swiper-button-next,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile .swiper-button-prev {
    display: none;
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile .swiper-pagination,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile .swiper-pagination {
    bottom: 14px !important;
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-fallback-panel,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-fallback-panel {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: end;
    padding: 1.2rem;
    background:
        radial-gradient(circle at top right, rgba(183, 165, 106, 0.28), transparent 32%),
        linear-gradient(180deg, rgba(8, 13, 20, 0.55), rgba(8, 13, 20, 0.92));
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-fallback-panel::before,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-fallback-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(183, 165, 106, 0.12), transparent 45%),
        linear-gradient(180deg, transparent 0%, rgba(8, 13, 20, 0.45) 100%);
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-fallback-copy,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-fallback-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.35rem;
    color: #fff9ef;
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-fallback-copy strong,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-fallback-copy strong {
    font-size: 1.4rem;
    line-height: 1.05;
}

body.pf-device-mobile .luxe-property-detail .luxe-gallery-fallback-copy span,
body.pf-device-tablet .luxe-property-detail .luxe-gallery-fallback-copy span {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 249, 239, 0.76);
}

body.pf-device-mobile .luxe-property-detail .luxe-property-title-section,
body.pf-device-mobile .luxe-property-detail .luxe-property-price-section,
body.pf-device-mobile .luxe-property-detail .luxe-content-card,
body.pf-device-mobile .luxe-property-detail .luxe-agent-card,
body.pf-device-mobile .luxe-property-detail .luxe-contact-card,
body.pf-device-mobile .luxe-property-detail .luxe-location-card,
body.pf-device-tablet .luxe-property-detail .luxe-property-title-section,
body.pf-device-tablet .luxe-property-detail .luxe-property-price-section,
body.pf-device-tablet .luxe-property-detail .luxe-content-card,
body.pf-device-tablet .luxe-property-detail .luxe-agent-card,
body.pf-device-tablet .luxe-property-detail .luxe-contact-card,
body.pf-device-tablet .luxe-property-detail .luxe-location-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(44, 37, 24, 0.08);
    box-shadow: 0 18px 36px rgba(44, 37, 24, 0.1);
}

body.pf-device-mobile .luxe-property-detail .luxe-property-title-section,
body.pf-device-mobile .luxe-property-detail .luxe-property-price-section,
body.pf-device-mobile .luxe-property-detail .luxe-content-card,
body.pf-device-tablet .luxe-property-detail .luxe-property-title-section,
body.pf-device-tablet .luxe-property-detail .luxe-property-price-section,
body.pf-device-tablet .luxe-property-detail .luxe-content-card {
    padding: 1.1rem;
}

body.pf-device-mobile .luxe-property-detail .luxe-property-title,
body.pf-device-tablet .luxe-property-detail .luxe-property-title {
    font-size: 1.6rem;
    line-height: 1.08;
}

body.pf-device-mobile .luxe-property-detail .luxe-property-meta,
body.pf-device-tablet .luxe-property-detail .luxe-property-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

body.pf-device-mobile .luxe-property-detail .luxe-features-grid,
body.pf-device-mobile .luxe-property-detail .luxe-details-grid,
body.pf-device-mobile .luxe-property-detail .luxe-amenities-grid,
body.pf-device-tablet .luxe-property-detail .luxe-features-grid,
body.pf-device-tablet .luxe-property-detail .luxe-details-grid,
body.pf-device-tablet .luxe-property-detail .luxe-amenities-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

body.pf-device-mobile .luxe-property-detail .luxe-sidebar-column,
body.pf-device-tablet .luxe-property-detail .luxe-sidebar-column {
    position: static;
    width: 100%;
}

body.pf-device-mobile .luxe-property-detail .luxe-map-embed,
body.pf-device-tablet .luxe-property-detail .luxe-map-embed {
    min-height: 300px;
    border-radius: 18px;
}

body.pf-device-mobile .luxe-property-detail .luxe-mobile-bottom-bar,
body.pf-device-tablet .luxe-property-detail .luxe-mobile-bottom-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 78px;
    padding: 0.75rem;
    border-radius: 24px;
    background: rgba(255, 251, 244, 0.94);
    border: 1px solid rgba(44, 37, 24, 0.12);
    box-shadow: 0 20px 42px rgba(44, 37, 24, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.pf-device-mobile .luxe-property-detail .luxe-back-btn,
body.pf-device-tablet .luxe-property-detail .luxe-back-btn {
    flex: 0 0 46px;
}

body.pf-device-mobile .luxe-property-detail .luxe-agent-mini,
body.pf-device-tablet .luxe-property-detail .luxe-agent-mini {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: auto;
}

body.pf-device-mobile .luxe-property-detail .luxe-agent-mini-link,
body.pf-device-tablet .luxe-property-detail .luxe-agent-mini-link,
body.pf-device-mobile .luxe-property-detail .luxe-agent-mini-info,
body.pf-device-tablet .luxe-property-detail .luxe-agent-mini-info {
    min-width: 0;
}

body.pf-device-mobile .luxe-property-detail .luxe-agent-mini-info h4,
body.pf-device-tablet .luxe-property-detail .luxe-agent-mini-info h4 {
    font-size: 0.86rem;
}

body.pf-device-mobile .luxe-property-detail .luxe-agent-mini-info p,
body.pf-device-tablet .luxe-property-detail .luxe-agent-mini-info p {
    font-size: 0.66rem;
}

body.pf-device-mobile .luxe-property-detail .luxe-similar-section,
body.pf-device-tablet .luxe-property-detail .luxe-similar-section {
    padding-top: 0.25rem;
}

body.pf-device-mobile .luxe-property-detail .luxe-property-image,
body.pf-device-tablet .luxe-property-detail .luxe-property-image {
    position: relative;
    background: linear-gradient(135deg, #ddd5c4 0%, #b7a56a 100%);
}

body.pf-device-mobile .luxe-property-detail .luxe-property-image img[src*="picture.svg"],
body.pf-device-mobile .luxe-property-detail .luxe-property-image img[src*="placeholder.svg"],
body.pf-device-tablet .luxe-property-detail .luxe-property-image img[src*="picture.svg"],
body.pf-device-tablet .luxe-property-detail .luxe-property-image img[src*="placeholder.svg"] {
    opacity: 0;
}

body.pf-device-mobile .luxe-property-detail .luxe-property-image:has(img[src*="picture.svg"])::after,
body.pf-device-mobile .luxe-property-detail .luxe-property-image:has(img[src*="placeholder.svg"])::after,
body.pf-device-tablet .luxe-property-detail .luxe-property-image:has(img[src*="picture.svg"])::after,
body.pf-device-tablet .luxe-property-detail .luxe-property-image:has(img[src*="placeholder.svg"])::after {
    content: "Luxora";
    position: absolute;
    inset: auto 14px 14px 14px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(8, 13, 20, 0.78);
    color: #fff9ef;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.pf-device-mobile .luxe-property-detail .luxe-mobile-actions-group,
body.pf-device-tablet .luxe-property-detail .luxe-mobile-actions-group {
    flex: 1 1 auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.45rem;
}

body.pf-device-mobile .luxe-property-detail .luxe-mobile-actions-group .luxe-action-btn,
body.pf-device-tablet .luxe-property-detail .luxe-mobile-actions-group .luxe-action-btn {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 16px;
}

@media (max-width: 575.98px) {
    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile {
        margin-bottom: 0.5rem;
    }

    body.pf-device-mobile .luxe-property-detail .luxe-property-title,
    body.pf-device-tablet .luxe-property-detail .luxe-property-title {
        font-size: 1.42rem;
    }
}

@media (max-width: 1024px) {
    body.pf-device-mobile .luxe-property-detail .luxe-gallery-section,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-section {
        margin: 0.45rem 0 0.95rem !important;
        width: 100% !important;
    }

    body.pf-device-mobile .luxe-property-detail .luxe-property-layout,
    body.pf-device-tablet .luxe-property-detail .luxe-property-layout {
        display: block;
    }

    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile,
    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile-static,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile-static {
        margin: 0.45rem 0 0.95rem !important;
        width: 100%;
        overflow: hidden;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile .swiper-container,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile .swiper-container,
    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile-static,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile-static {
        width: 100%;
        aspect-ratio: 16 / 11;
        border-radius: 28px;
        box-shadow: 0 22px 44px rgba(44, 37, 24, 0.16);
    }

    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile .swiper-wrapper,
    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile .swiper-slide,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile .swiper-wrapper,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile .swiper-slide {
        height: 100%;
    }

    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile .swiper-slide img,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    body.pf-device-mobile .luxe-property-detail .luxe-gallery-fallback-panel,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-fallback-panel {
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0;
        align-items: stretch;
        background:
            radial-gradient(circle at top right, rgba(183, 165, 106, 0.28), transparent 32%),
            linear-gradient(160deg, rgba(8, 13, 20, 0.94), rgba(61, 51, 32, 0.88));
    }

    body.pf-device-mobile .luxe-property-detail .luxe-gallery-fallback-copy,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-fallback-copy {
        display: none !important;
    }

    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile .swiper-button-next,
    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile .swiper-button-prev,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile .swiper-button-next,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile .swiper-button-prev {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: rgba(8, 13, 20, 0.58);
        color: #fff9ef;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile:not(.has-gallery-navigation) .swiper-button-next,
    body.pf-device-mobile .luxe-property-detail .luxe-gallery-mobile:not(.has-gallery-navigation) .swiper-button-prev,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile:not(.has-gallery-navigation) .swiper-button-next,
    body.pf-device-tablet .luxe-property-detail .luxe-gallery-mobile:not(.has-gallery-navigation) .swiper-button-prev {
        display: none !important;
    }

    body.pf-device-mobile .luxe-property-detail .luxe-contact-card,
    body.pf-device-tablet .luxe-property-detail .luxe-contact-card {
        display: none !important;
    }
}
