.property-card {
    position: fixed;
    top: 3%;
    right: 2%;
    width: 345px;
    border-radius: 10px;
    background: transparent;
    padding: 1px 0;
    z-index: 8;
    color: white;
    display: none;
}

#property_card {
    background-image: url("../skin/assets/exterior-gallery/Al-Aziziah\ Aerial_II.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Add gradient overlay */
.property-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: #000000a8;
    z-index: 1;
}

/* Keep content above gradient */
.property-card * {
    position: relative;
    z-index: 2;
    color: white;
    /* ensure all text stays visible */
}

.property-card.show {
    opacity: 1;
    transform: translateY(0);
}

.image-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.close-btn {
    background: rgba(146, 131, 131, 0.8);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn img {
    width: 22px;
    filter: invert();
}

.close-btn:hover {
    background: rgb(122, 114, 114);
}

.inner-style {
    padding: 30px;
    border-radius: 16px;
}

.heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.heading {
    font-size: 30px;
    font-weight: 700;
}

.proprty-buttons {
    display: flex;
    gap: 5px;
    justify-content: space-between;
}

.virtual-tour-btn,
.contact-btn,
.share-btn {
    background: #a39161;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1px;
    transition: 0.3s;
}

.virtual-tour-btn:hover,
.contact-btn:hover,
.share-btn:hover {
    background: #b19617;
}

.zone_title {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 2px 0;
    gap: 10px;
}

.details_flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    /* adaptive 2-column grid */
    gap: 8px 8px;
    padding: 10px 1px;
    border-radius: 14px;
    /* background: rgba(0, 0, 0, 0.35); */
    backdrop-filter: blur(10px);
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); */
    /* width: fit-content; */
    color: #fff;
}

.detail-item_flex {
    display: flex;
    flex-direction: column;
    /* stack label over value */
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 6px 10px;
    min-width: 110px;
    transition: all 0.25s ease;
}

.detail-item_flex:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.label_flex {
    font-size: 12px;
    color: #ddd;
    margin-bottom: 3px;
    font-weight: 400;
}

.value_flex {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

#copyTooltip {
    position: absolute;
    display: none;
    left: 120px;
    font-size: 10px;
    background-color: #1d1d1d6f;
    color: white;
    padding: 10px;
}

.background-360 {
    background: transparent;
    border: none;
    text-align: center;
    cursor: pointer;
}

.style-360 {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
}

/* 🔹 Responsive tweak: stack vertically for small screens */
@media (max-width: 400px) {
    .details_flex {
        grid-template-columns: 1fr;
    }
}

/* ---------- Responsive Design ---------- */

/* Laptop screens (1024px – 1440px) */
/* @media (min-width: 1024px) and (max-width: 1440px) {
    .property-card {
        width: 20%;
        right: 35px;
        top: 10%;
    }

    .heading {
        font-size: 28px;
    }

    .contact-btn,
    .share-btn {
        font-size: 14px;
        padding: 8px 14px;
    }

    .inner-style {
        padding: 25px;
    }
} */

/* Extra-large screens (e.g., 1440px and above) */
@media (min-width: 1440px) {
    .property-card {
        width: 345px;
        right: 1%;
        top: 9%;
    }
}

/* Tablets (landscape & portrait, like iPad) */
/* @media (max-width: 1024px) {
    .property-card {
        width: 345px;
        right: 30px;
        top: 6vh;
    }

    .heading {
        font-size: 26px;
    }

    .detail-item_flex {
        min-width: 80px;
    }

    .contact-btn,
    .share-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .inner-style {
        padding: 20px;
    }
} */

/* Landscape sidebar adjustments for Mobile viewports */
@media (max-height: 600px) and (min-width: 500px) and (orientation: landscape) {
    .property-card {
        position: fixed;
        top: 15%;
        right: 2%;
        margin: auto;
        width: 35%;
        height: auto;
        border-radius: 10px;
        transform: scale(0.6);
        transform-origin: top right;
    }

    .fullscreen .property-card {
        top: 10vh;
    }

    .inner-style {
        padding: 10px;
    }

    .contact-btn,
    .share-btn {
        font-size: 12px;
        padding: 6px 10px;
    }


    .price-tag,
    .share-btn,
    .value_flex {
        font-size: 10px;
    }

    .heading {
        font-size: 14px;
        margin-top: 5px;
        margin-bottom: -10px;
    }

    .zone_title {
        font-size: 12px;
        gap: 5px;
        text-align: center;
    }

    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
        position: fixed;
    }

    .details_flex {
        gap: 5px 25px;
    }
}

/* Mobile Landscape (600px - 900px) */
/* @media (max-width: 900px) and (orientation: landscape) {
    .property-card {
        width: 30%;
        top: 10%;
        right: 20px;
    }

    .heading {
        font-size: 16px;
    }

    .contact-btn,
    .share-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
} */

/* Mobile Portrait (below 600px) */
@media (max-width: 600px) {
    .property-card {
        position: fixed;
        top: 7%;
        right: 2%;
        margin: auto;
        width: 264px;
        height: auto;
        border-radius: 10px;
        transform: scale(0.5);
        transform-origin: top right;
    }

    .close-btn {
        position: fixed;
    }

    .inner-style {
        padding: 15px;
    }

    .price-tag,
    .share-btn,
    .value_flex {
        font-size: 10px;
    }

    .heading-row {
        font-size: 12px;
        margin-top: -5px;
        margin-bottom: -20px;
    }

    .zone_title {
        font-size: 12px;
        gap: 5px;
        text-align: center;
    }

    .details_flex {
        grid-template-columns: repeat(2, minmax(75px, 1fr));
    }

    .detail-item_flex {
        min-width: 50px;
    }

    .close-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* iPad Portrait (820px wide) */
@media only screen and (min-device-width: 768px) and (max-device-width: 834px) and (orientation: portrait) {
    .property-card {
        top: 7%;
        width: 45%;
        transform: scale(0.8);
        transform-origin: top right;
    }

    .property-card .close-btn {
        height: 45px !important;
        font-size: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

}

/* iPad Pro Portrait (1024px wide) */
@media only screen and (min-device-width: 1020px) and (max-device-width: 1180px) and (orientation: portrait) {
    .property-card {
        top: 5%;
        width: 40%;
    }

}

/* iPad Landscape (1180px wide) */
@media only screen and (min-device-width: 760px) and (max-device-width: 1194px) and (min-device-height: 450px) and (orientation: landscape) {
    .property-card {
        width: 35%;
        transform: scale(0.8);
        transform-origin: top right;
    }
}