/* ==========================================================
   PROPERTY DETAILS PAGE
========================================================== */

.property-details-page {
    --details-navy: #123058;
    --details-dark: #001b3c;

    --details-green: #15803d;
    --details-green-dark: #146c36;

    --details-light: #f7f8ff;
    --details-border: #e2e8f0;

    --details-muted: #64748b;

    background: #f8f8ff;
}


/* ==========================================================
   HEADER POSITION
========================================================== */

.property-details-page .site-header {
    position: relative;

    top: 12px;

    margin-bottom: 12px;
}


.property-details-page .site-header.header-sticky {
    position: fixed;

    top: 10px;
}



/* ==========================================================
   PROPERTY TOP
========================================================== */

.property-detail-top {
    padding: 25px 0 30px;

    background: #f1f3ff;
}


.property-detail-top .container,
.property-gallery-section .container,
.property-information-section .container {
    max-width: 1160px;
}



/* ==========================================================
   BREADCRUMB
========================================================== */

.property-breadcrumb {
    min-height: 42px;

    margin-bottom: 37px;

    padding: 0 15px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border: 1px solid #e1e6ed;

    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(18,48,88,0.035);

    font-size: 9px;
}


.property-breadcrumb > div {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;
}


.property-breadcrumb a {
    color: #64748b;
}


.property-breadcrumb strong {
    color: var(--details-navy);
}


.back-properties {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--details-navy) !important;

    font-weight: 700;
}


.back-properties .material-symbols-outlined {
    font-size: 14px;
}



/* ==========================================================
   HEADING
========================================================== */

.property-heading {
    max-width: 760px;

    margin-bottom: 28px;
}


.property-detail-status {
    width: fit-content;

    margin-bottom: 12px;

    padding: 5px 10px;

    display: inline-block;

    border-radius: 30px;

    background: #bbf7d0;

    color: var(--details-green);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.04em;
}


.property-heading h1 {
    max-width: 760px;

    margin: 0 0 10px;

    color: var(--details-navy);

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.08;

    letter-spacing: -0.045em;
}


.property-heading-location {
    display: flex;

    align-items: center;

    gap: 6px;

    color: #64748b;

    font-size: 11px;
}


.property-heading-location .material-symbols-outlined {
    color: var(--details-green);

    font-size: 17px;
}



/* ==========================================================
   QUICK FACTS
========================================================== */

.property-facts {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 10px;
}


.property-fact {
    min-height: 58px;

    padding: 10px;

    display: flex;

    align-items: center;

    gap: 10px;

    border: 1px solid #e5e9ef;

    border-radius: 5px;

    background: #ffffff;
}


.property-fact-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 4px;

    background: #eef1ff;

    color: var(--details-navy);
}


.property-fact-icon.green {
    background: #dcfce7;

    color: var(--details-green);
}


.property-fact-icon .material-symbols-outlined {
    font-size: 17px;
}


.property-fact small {
    display: block;

    margin-bottom: 1px;

    color: #94a3b8;

    font-size: 8px;
}


.property-fact strong {
    display: block;

    color: var(--details-navy);

    font-size: 11px;

    line-height: 1.3;
}



/* ==========================================================
   GALLERY
========================================================== */

.property-gallery-section {
    padding: 34px 0;

    background: #ffffff;
}


.property-gallery {
    height: 390px;

    display: grid;

    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);

    gap: 11px;
}


.gallery-main,
.gallery-small,
.gallery-wide {
    position: relative;

    min-width: 0;
    min-height: 0;

    padding: 0;

    overflow: hidden;

    border: 0;

    border-radius: 7px;

    background: #e2e8f0;

    cursor: pointer;
}


.gallery-main img,
.gallery-small img,
.gallery-wide img {
    position: absolute;
    inset: 0;
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}


.gallery-main:hover img,
.gallery-small:hover img,
.gallery-wide:hover img {
    transform: scale(1.025);
}


.gallery-side {
    min-width: 0;
    min-height: 0;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    grid-template-rows: repeat(2, minmax(0, 1fr));

    gap: 11px;
}


.gallery-wide {
    grid-column: span 2;
}


.view-all-photos {
    position: absolute;

    right: 12px;
    bottom: 12px;

    padding: 7px 10px;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    border-radius: 5px;

    background: rgba(255,255,255,0.94);

    color: var(--details-navy);

    font-size: 9px;

    font-weight: 700;

    box-shadow:
        0 4px 13px rgba(15,23,42,0.12);
}


.view-all-photos .material-symbols-outlined {
    font-size: 14px;
}



/* ==========================================================
   INFORMATION AREA
========================================================== */

.property-information-section {
    padding: 38px 0 90px;

    background: #f8f8ff;
}


.property-info-grid {
    display: grid;

    grid-template-columns: minmax(0,1.7fr) minmax(300px,.72fr);

    gap: 36px;

    align-items: start;
}



/* ==========================================================
   DESCRIPTION CARD
========================================================== */

.property-description-card {
    min-height: 500px;

    padding: 38px;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 4px 18px rgba(18,48,88,0.035);
}


.property-description-topline {
    margin-bottom: 18px;

    display: flex;

    align-items: center;
}


.property-description-topline span {
    color: var(--details-green);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.055em;
}


.property-description-card h2 {
    margin: 0 0 17px;

    color: var(--details-navy);

    font-size: 27px;

    line-height: 1.2;

    letter-spacing: -0.03em;
}


.property-description-text {
    display: flex;

    flex-direction: column;

    gap: 14px;
}


.property-description-text p {
    margin: 0;

    color: #5f6674;

    font-size: 13px;

    line-height: 1.8;
}



/* ==========================================================
   DETAIL CARDS
========================================================== */

.property-detail-features {
    margin-top: 30px;

    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 10px;
}


.property-detail-feature {
    min-height: 95px;

    padding: 14px;

    border-radius: 4px;

    background: #eef0ff;
}


.property-detail-feature small {
    display: block;

    margin-bottom: 4px;

    color: #64748b;

    font-size: 8px;
}


.property-detail-feature strong {
    display: block;

    margin-bottom: 4px;

    color: var(--details-navy);

    font-size: 13px;

    line-height: 1.3;
}


.property-detail-feature p {
    margin: 0;

    color: #64748b;

    font-size: 8px;

    line-height: 1.4;
}



/* ==========================================================
   INQUIRY CARD
========================================================== */

.property-inquiry-card {
    position: sticky;

    top: 105px;

    padding: 30px 27px;

    border-radius: 7px;

    background:
        linear-gradient(
            160deg,
            #001b3c,
            #082c56
        );

    color: #ffffff;

    box-shadow:
        0 15px 35px rgba(0,27,60,0.16);
}


.inquiry-price {
    display: flex;

    align-items: baseline;

    gap: 6px;

    flex-wrap: wrap;
}


.inquiry-price strong {
    color: #ffffff;

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 30px;

    line-height: 1.15;

    font-weight: 800;
}


.inquiry-price > span {
    color: #9fb5d2;

    font-size: 10px;
}


.property-price-note {
    margin: 6px 0 0;

    color: #b8c7da;

    font-size: 9px;

    line-height: 1.6;
}


.inquiry-divider {
    margin: 22px 0;

    height: 1px;

    background: rgba(255,255,255,0.10);
}


.inquiry-heading {
    margin-bottom: 9px;

    color: #ffffff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 0.035em;
}


.inquiry-description {
    margin: 0 0 15px;

    color: #b8c7da;

    font-size: 9px;

    line-height: 1.65;
}



/* ==========================================================
   WHATSAPP/CALL
========================================================== */

.property-whatsapp-btn,
.property-call-btn {
    width: 100%;

    min-height: 42px;

    margin-top: 8px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    border-radius: 3px;

    color: #ffffff;

    font-size: 10px;

    font-weight: 700;
}


.property-whatsapp-btn {
    background: var(--details-green);
}


.property-whatsapp-btn:hover {
    background: var(--details-green-dark);
}


.property-call-btn {
    background: #163e6e;
}


.property-call-btn:hover {
    background: #1d4b82;
}


.property-whatsapp-btn .material-symbols-outlined,
.property-call-btn .material-symbols-outlined {
    font-size: 16px;
}



/* ==========================================================
   VIEWING FORM
========================================================== */

#viewingForm {
    display: flex;

    flex-direction: column;

    gap: 11px;
}


.viewing-field {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.viewing-field label {
    color: #ffffff;

    font-size: 8px;

    font-weight: 600;
}


.viewing-field input {
    width: 100%;

    min-height: 39px;

    padding: 9px 10px;

    border: 1px solid rgba(255,255,255,0.24);

    border-radius: 2px;

    outline: none;

    background: #ffffff;

    color: #1e293b;

    font-size: 9px;
}


.viewing-field input:focus {
    border-color: #22c55e;
}


.request-slot-button {
    min-height: 42px;

    margin-top: 4px;

    border: 0;

    border-radius: 2px;

    background: var(--details-green);

    color: #ffffff;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;
}


.request-slot-button:hover {
    background: var(--details-green-dark);
}



/* ==========================================================
   LIGHTBOX
========================================================== */

.property-lightbox {
    position: fixed;

    inset: 0;

    z-index: 6000;

    padding: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0,15,35,0.94);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


.property-lightbox.active {
    opacity: 1;
    visibility: visible;
}


.property-lightbox > img {
    max-width: min(1100px, 85vw);
    max-height: 86vh;

    object-fit: contain;

    border-radius: 5px;
}


.lightbox-close {
    position: absolute;

    top: 25px;
    right: 25px;

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border: 1px solid rgba(255,255,255,0.30);

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    color: #ffffff;

    cursor: pointer;
}


.lightbox-arrow {
    position: absolute;

    top: 50%;

    width: 48px;
    height: 48px;

    transform: translateY(-50%);

    display: grid;

    place-items: center;

    border: 1px solid rgba(255,255,255,0.25);

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    color: #ffffff;

    cursor: pointer;
}


.lightbox-prev {
    left: 30px;
}


.lightbox-next {
    right: 30px;
}



/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1000px) {

    .property-facts {
        grid-template-columns: repeat(3,1fr);
    }


    .property-info-grid {
        grid-template-columns: 1fr;
    }


    .property-inquiry-card {
        position: static;

        max-width: 600px;
    }

}



/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .property-breadcrumb {
        align-items: flex-start;

        flex-direction: column;

        padding: 12px;
    }


    .property-heading h1 {
        font-size: 34px;
    }


    .property-facts {
        grid-template-columns: repeat(2,1fr);
    }


    .property-gallery {
        height: auto;

        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }


    .gallery-main {
        height: 310px;
    }


    .gallery-side {
        height: 300px;
    }


    .property-description-card {
        padding: 25px 20px;
    }


    .property-detail-features {
        grid-template-columns: 1fr;
    }


    .property-inquiry-card {
        padding: 25px 20px;
    }


    .lightbox-arrow {
        display: none;
    }

}
