/* =========================================================
   JONIMAX COMMERCIAL AGENCY
   PROPERTY DETAIL PAGE
   ========================================================= */

:root {
    --primary: #0c513f;
    --primary-dark: #07372b;
    --secondary: #c49a54;

    --dark: #18201d;
    --text: #5d6661;
    --muted: #8b938e;

    --cream: #f5f2eb;
    --light: #faf9f6;
    --white: #ffffff;

    --border: #e5e5e1;

    --shadow: 0 15px 45px rgba(0, 0, 0, .08);

    --container: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: "DM Sans", Arial, sans-serif;

    color: var(--text);

    background: var(--light);

    line-height: 1.7;
}


img {
    display: block;

    max-width: 100%;
}


a {
    color: inherit;

    text-decoration: none;
}


.container {
    width: min(92%, var(--container));

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.property-header {
    padding: 25px 0;

    background: var(--white);

    border-bottom: 1px solid var(--border);
}


.property-header a {
    color: var(--primary);

    font-size: 13px;

    font-weight: 700;
}


.property-header a:hover {
    color: var(--secondary);
}


/* =========================================================
   MAIN PROPERTY AREA
   ========================================================= */

.property-detail {
    padding: 45px 0 90px;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px;

    gap: 12px;

    margin-bottom: 45px;
}


.gallery-main {
    height: 560px;

    overflow: hidden;

    background: #e9e9e5;

    border-radius: 7px;
}


.gallery-main img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.gallery-main .no-image {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--muted);

    background: #ecece8;

    font-size: 14px;
}


.gallery-thumbnails {
    display: flex;

    flex-direction: column;

    gap: 12px;

    max-height: 560px;

    overflow-y: auto;
}


.gallery-thumbnails img {
    width: 100%;

    height: 105px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 5px;

    cursor: pointer;

    opacity: .7;

    transition:
        opacity .2s ease,
        transform .2s ease;
}


.gallery-thumbnails img:hover {
    opacity: 1;

    transform: scale(1.02);
}


/* =========================================================
   PROPERTY LAYOUT
   ========================================================= */

.property-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        350px;

    gap: 60px;

    align-items: start;
}


/* =========================================================
   PROPERTY HEADING
   ========================================================= */

.property-heading {
    margin-bottom: 25px;
}


.property-heading .property-type {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.7px;

    text-transform: uppercase;
}


.property-heading h1 {
    margin-bottom: 10px;

    color: var(--dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(38px, 5vw, 55px);

    line-height: 1.08;
}


.property-heading .location {
    color: var(--text);

    font-size: 14px;
}


/* =========================================================
   PRICE BOX
   ========================================================= */

.price-box {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 40px;

    padding: 20px 0;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}


.price-box strong {
    color: var(--primary);

    font-size: 27px;

    font-weight: 800;
}


.price-box span {
    padding: 5px 10px;

    color: var(--primary);

    background: rgba(12, 81, 63, .08);

    border-radius: 3px;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.property-main h2 {
    margin-bottom: 20px;

    color: var(--dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: 29px;

    line-height: 1.2;
}


/* =========================================================
   PROPERTY DETAILS
   ========================================================= */

.property-details {
    margin-bottom: 45px;
}


.details-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border: 1px solid var(--border);

    background: var(--white);

    border-radius: 6px;

    overflow: hidden;
}


.details-grid > div {
    padding: 18px;

    border-right: 1px solid var(--border);
}


.details-grid > div:last-child {
    border-right: 0;
}


.details-grid span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .8px;
}


.details-grid strong {
    color: var(--dark);

    font-size: 14px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.description {
    margin-bottom: 45px;
}


.description p {
    margin-bottom: 14px;

    color: var(--text);

    font-size: 15px;
}


/* =========================================================
   FEATURES
   ========================================================= */

.features {
    margin-bottom: 45px;
}


.feature-grid {
    display: grid;

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

    gap: 10px;
}


.feature-grid div {
    padding: 12px 15px;

    color: var(--dark);

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 4px;

    font-size: 13px;
}


/* =========================================================
   MAP
   ========================================================= */

.map-section {
    margin-bottom: 20px;
}


#property-map {
    width: 100%;

    height: 380px;

    background: #e7e7e2;

    border-radius: 7px;

    overflow: hidden;
}


/* =========================================================
   CONTACT CARD
   ========================================================= */

.contact-card {
    position: sticky;

    top: 25px;

    padding: 30px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 8px;

    box-shadow: var(--shadow);
}


.contact-card > span {
    display: block;

    margin-bottom: 10px;

    color: var(--secondary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.contact-card h2 {
    margin-bottom: 12px;

    color: var(--dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: 30px;

    line-height: 1.2;
}


.contact-card > p {
    margin-bottom: 25px;

    color: var(--text);

    font-size: 13px;
}


/* =========================================================
   WHATSAPP BUTTON
   ========================================================= */

.whatsapp-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 52px;

    margin-bottom: 10px;

    padding: 12px 15px;

    color: var(--white);

    background: #168c4b;

    border-radius: 5px;

    font-size: 13px;

    font-weight: 800;

    text-align: center;

    transition:
        background .2s ease,
        transform .2s ease;
}


.whatsapp-button:hover {
    background: #11783f;

    transform: translateY(-2px);
}


/* =========================================================
   CALL BUTTON
   ========================================================= */

.call-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 52px;

    padding: 12px 15px;

    color: var(--primary);

    background: transparent;

    border: 1px solid var(--primary);

    border-radius: 5px;

    font-size: 13px;

    font-weight: 800;

    transition:
        background .2s ease,
        color .2s ease;
}


.call-button:hover {
    color: var(--white);

    background: var(--primary);
}


/* =========================================================
   PROPERTY REFERENCE
   ========================================================= */

.contact-note {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    font-size: 11px;
}


.contact-note strong {
    color: var(--dark);
}


.contact-note span {
    color: var(--muted);

    font-family: monospace;
}


/* =========================================================
   RELATED PROPERTIES
   ========================================================= */

.related {
    padding: 80px 0 100px;

    background: var(--cream);
}


.related h2 {
    margin-bottom: 35px;

    color: var(--dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: 38px;
}


.related .property-grid {
    display: grid;

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

    gap: 25px;
}


.related .property-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 7px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.related .property-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 40px rgba(0,0,0,.08);
}


.related .property-card img {
    width: 100%;

    height: 220px;

    object-fit: cover;
}


.related .property-card > a > div {
    padding: 20px;
}


.related .property-card span {
    color: var(--primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.related .property-card h3 {
    margin: 7px 0;

    color: var(--dark);

    font-family: "Playfair Display", Georgia, serif;

    font-size: 21px;

    line-height: 1.2;
}


.related .property-card p {
    margin-bottom: 12px;

    font-size: 12px;
}


.related .property-card strong {
    color: var(--primary);

    font-size: 16px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .gallery {
        grid-template-columns: 1fr;
    }


    .gallery-main {
        height: 500px;
    }


    .gallery-thumbnails {
        flex-direction: row;

        max-height: none;

        overflow-x: auto;

        overflow-y: hidden;
    }


    .gallery-thumbnails img {
        width: 120px;

        height: 85px;
    }


    .property-layout {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .contact-card {
        position: static;
    }


    .details-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .details-grid > div:nth-child(2) {
        border-right: 0;
    }


    .details-grid > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }


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


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .property-detail {
        padding: 25px 0 60px;
    }


    .gallery {
        margin-bottom: 30px;
    }


    .gallery-main {
        height: 330px;
    }


    .gallery-thumbnails img {
        width: 90px;

        height: 65px;
    }


    .property-heading h1 {
        font-size: 38px;
    }


    .price-box {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }


    .price-box strong {
        font-size: 24px;
    }


    .property-main h2 {
        font-size: 26px;
    }


    .details-grid {
        grid-template-columns: 1fr;
    }


    .details-grid > div {
        border-right: 0;

        border-bottom: 1px solid var(--border);
    }


    .details-grid > div:last-child {
        border-bottom: 0;
    }


    .feature-grid {
        grid-template-columns: 1fr;
    }


    #property-map {
        height: 300px;
    }


    .contact-card {
        padding: 24px;
    }


    .related {
        padding: 60px 0 70px;
    }


    .related h2 {
        font-size: 32px;
    }


    .related .property-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .container {
        width: 94%;
    }


    .gallery-main {
        height: 280px;
    }


    .property-heading h1 {
        font-size: 33px;
    }


    .contact-card h2 {
        font-size: 27px;
    }
}