/* ---------- General ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
}

a {
    text-decoration: none;
}


/* ---------- Header ---------- */

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.navbar {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: white;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: white;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}


/* ---------- Hero ---------- */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 100px 8%;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("../images/hero.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 720px;
    color: white;
}

.small-title {
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(50px, 7vw, 95px);
    line-height: 0.95;
    font-weight: 500;
    margin-bottom: 30px;
}

.hero h1 span {
    font-style: italic;
}

.hero-text {
    max-width: 500px;
    line-height: 1.8;
    font-size: 17px;
    margin-bottom: 35px;
    color: #e5e5e5;
}

.btn {
    display: inline-block;

    background: white;
    color: black;

    padding: 16px 28px;

    font-size: 14px;
    font-weight: bold;

    transition: 0.3s;
}

.btn:hover {
    background: #111;
    color: white;
}


/* ---------- Featured Properties ---------- */

.featured {
    padding: 100px 7%;
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title p {
    font-size: 12px;
    letter-spacing: 4px;
    color: #777;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 500;
}

.property-container {
    max-width: 1300px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.property-card {
    background: white;
    transition: 0.3s;
}

.property-card:hover {
    transform: translateY(-7px);
}

.property-image {
    height: 330px;
    background: #e8e8e8;
}

.property-info {
    padding: 25px 0;
}

.property-info h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.property-info p {
    color: #777;
    margin-bottom: 12px;
}

.property-info h4 {
    font-size: 18px;
}


/* ---------- About ---------- */

.home-about {
    background: #111111;
    color: white;

    padding: 110px 8%;
}

.about-content {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.about-content > p:first-child {
    letter-spacing: 4px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: 45px;
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 25px;
}

.about-text {
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 35px;
}

.about-btn {
    display: inline-block;

    color: white;

    border: 1px solid #777;

    padding: 15px 30px;

    transition: 0.3s;
}

.about-btn:hover {
    background: white;
    color: black;
}


/* ---------- Footer ---------- */

footer {
    text-align: center;
    padding: 60px 20px;
}

.footer-logo {
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

footer p {
    color: #777;
}

.copyright {
    margin-top: 30px;
    font-size: 13px;
}


/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    .navbar {
        height: 75px;
    }

    .logo {
        font-size: 17px;
    }

    .nav-links {
        gap: 13px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero {
        padding: 100px 6%;
    }

    .hero h1 {
        font-size: 52px;
    }

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

    .property-image {
        height: 280px;
    }

    .featured {
        padding: 70px 6%;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .home-about {
        padding: 80px 6%;
    }

    .about-content h2 {
        font-size: 32px;
    }
}
/* ---------- Properties Page ---------- */

.page-header {
    position: absolute;
    width: 100%;
    z-index: 100;
}

.properties-hero {
    height: 55vh;
    min-height: 420px;
    background: #111;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding-top: 70px;
}

.properties-hero p {
    font-size: 12px;
    letter-spacing: 4px;
    color: #aaa;
    margin-bottom: 15px;
}

.properties-hero h1 {
    font-size: clamp(45px, 6vw, 75px);
    font-weight: 400;
}


/* ---------- Search ---------- */

.property-search {
    padding: 50px 7% 20px;
}

.search-box {
    max-width: 1000px;
    margin: auto;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.search-box input,
.search-box select {
    width: 100%;
    padding: 17px 20px;

    border: 1px solid #ddd;
    background: white;

    font-size: 15px;
    outline: none;
}

.search-box input:focus,
.search-box select:focus {
    border-color: #111;
}


/* ---------- Property Grid ---------- */

.properties-page {
    padding: 40px 7% 100px;
}

.properties-grid {
    max-width: 1300px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.listing-card {
    background: white;
    border: 1px solid #eeeeee;
    transition: 0.3s;
}

.listing-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}


/* ---------- Property Image ---------- */

.listing-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #eee;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.listing-tag {
    position: absolute;
    top: 18px;
    left: 18px;

    background: white;
    color: #111;

    padding: 8px 12px;

    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
}


/* ---------- Property Information ---------- */

.listing-content {
    padding: 25px;
}

.listing-location {
    color: #777;
    font-size: 13px;
    margin-bottom: 8px;
}

.listing-content h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
}

.property-details {
    display: flex;
    gap: 18px;

    padding-bottom: 20px;
    margin-bottom: 20px;

    border-bottom: 1px solid #eee;

    color: #666;
    font-size: 13px;
}

.listing-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.listing-bottom h3 {
    font-size: 18px;
}

.listing-bottom a {
    color: #111;
    font-size: 13px;
    font-weight: bold;
}

.listing-bottom a:hover {
    opacity: 0.6;
}


/* ---------- Properties Mobile ---------- */

@media (max-width: 900px) {

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

@media (max-width: 650px) {

    .properties-hero {
        min-height: 350px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

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

    .listing-image {
        height: 300px;
    }

    .property-details {
        justify-content: space-between;
        gap: 5px;
    }
}

/* ---------- Property Details ---------- */

.details-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.details-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-tag {
    position: absolute;
    bottom: 40px;
    left: 7%;
    background: white;
    color: #111;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.property-details-page {
    max-width: 1300px;
    margin: auto;
    padding: 80px 7%;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 70px;
}

.details-location {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.details-main h1 {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 40px;
}

.details-features {
    display: flex;
    gap: 60px;
    padding: 25px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.details-features div {
    display: flex;
    flex-direction: column;
}

.details-features strong {
    font-size: 25px;
}

.details-features span {
    color: #777;
    margin-top: 5px;
}

.property-description {
    margin-top: 50px;
}

.property-description h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.property-description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.property-contact-box {
    background: #111;
    color: white;
    padding: 40px;
    height: fit-content;
}

.property-contact-box > p:first-child {
    color: #aaa;
    font-size: 13px;
}

.property-contact-box h2 {
    font-size: 35px;
    margin: 10px 0 25px;
}

.property-contact-box hr {
    border: 0;
    border-top: 1px solid #444;
    margin-bottom: 30px;
}

.property-contact-box h3 {
    margin-bottom: 15px;
}

.property-contact-box p {
    line-height: 1.7;
    color: #bbb;
}

.property-contact-btn {
    display: block;
    background: white;
    color: #111;
    text-align: center;
    padding: 16px;
    margin-top: 30px;
    text-decoration: none;
    font-weight: bold;
}

.property-contact-btn:hover {
    opacity: 0.85;
}

.back-properties {
    display: block;
    color: #aaa;
    margin-top: 25px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}


/* ---------- Mobile ---------- */

@media (max-width: 800px) {

    .details-hero {
        height: 55vh;
        min-height: 400px;
    }

    .property-details-page {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 50px;
    }

    .details-main h1 {
        font-size: 36px;
    }

    .details-features {
        justify-content: space-between;
        gap: 15px;
    }

    .property-contact-box {
        padding: 30px;
    }
}


/* =========================
   CONTACT PAGE
========================= */

.contact-page {
    min-height: 85vh;
    padding: 150px 8% 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    background: #f7f7f5;
}

.contact-info {
    max-width: 600px;
}

.section-small-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 25px;
    color: #777;
}

.contact-info h1 {
    font-size: 58px;
    line-height: 1.05;
    font-weight: 500;
    margin-bottom: 30px;
    color: #111;
}

.contact-description {
    font-size: 17px;
    line-height: 1.8;
    color: #666;
    max-width: 520px;
    margin-bottom: 50px;
}

.contact-details {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-details span {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 15px;
    color: #111;
}


/* CONTACT FORM */

.contact-form-box {
    background: #fff;
    padding: 55px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
}

.contact-form-box label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #222;
}

.contact-form-box input,
.contact-form-box textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 14px 0;
    margin-bottom: 30px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.contact-form-box textarea {
    resize: none;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
    border-bottom: 1px solid #111;
}

.contact-form-box button {
    margin-top: 10px;
    border: none;
    background: #111;
    color: white;
    padding: 18px 25px;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form-box button:hover {
    background: #333;
}


/* MOBILE */

@media (max-width: 850px) {

    .contact-page {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 120px 6% 70px;
    }

    .contact-info h1 {
        font-size: 42px;
    }

    .contact-form-box {
        padding: 35px 25px;
    }

    .contact-details {
        flex-direction: column;
        gap: 20px;
    }
}




/* =========================
   LUXURY LIGHT THEME
========================= */

.contact-page {
    background: #F5F1E8;
}

.contact-form-box {
    background: #FBF9F5;
    border: 1px solid #E4DDD0;
    box-shadow: 0 20px 60px rgba(28, 28, 28, 0.08);
}

.section-small-title {
    color: #B89B5E;
}

.contact-info h1 {
    color: #1C1C1C;
}

.contact-description {
    color: #6F6A62;
}

.contact-details span {
    color: #B89B5E;
}

.contact-details p {
    color: #1C1C1C;
}

.contact-form-box label {
    color: #1C1C1C;
}

.contact-form-box input,
.contact-form-box textarea {
    color: #1C1C1C;
    border-bottom: 1px solid #D5C9B3;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
    border-bottom: 1px solid #B89B5E;
}

.contact-form-box button {
    background: #1C1C1C;
    color: #FFFFFF;
}

.contact-form-box button:hover {
    background: #B89B5E;
    color: #FFFFFF;
}

/* Header for light pages */

.page-header {
    background: #1C1C1C;
}

.page-header .logo,
.page-header .nav-links a {
    color: #FFFFFF;
}

.page-header .logo span {
    color: #B89B5E;
}


/* =========================
   ABOUT PAGE
========================= */

.about-page {
    min-height: 85vh;
    padding: 160px 8% 110px;
    background: #F5F1E8;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-content {
    max-width: 720px;
}

.about-content h1 {
    font-size: 58px;
    line-height: 1.08;
    font-weight: 500;
    color: #1C1C1C;
    margin-bottom: 35px;
}

.about-content > p:not(.section-small-title) {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.8;
    color: #6F6A62;
    margin-bottom: 20px;
}

.about-button {
    display: inline-block;
    margin-top: 25px;
    padding: 17px 28px;
    background: #1C1C1C;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.about-button:hover {
    background: #B89B5E;
}

.about-stats {
    background: #FBF9F5;
    padding: 55px;
    border: 1px solid #E4DDD0;
    box-shadow: 0 20px 60px rgba(28, 28, 28, 0.08);
}

.about-stats div {
    padding: 30px 0;
    border-bottom: 1px solid #DDD4C5;
}

.about-stats div:last-child {
    border-bottom: none;
}

.about-stats h2 {
    font-size: 48px;
    font-weight: 500;
    color: #B89B5E;
    margin-bottom: 5px;
}

.about-stats p {
    color: #6F6A62;
    font-size: 14px;
    letter-spacing: 1px;
}

@media (max-width: 850px) {
    .about-page {
        grid-template-columns: 1fr;
        padding: 120px 6% 70px;
        gap: 50px;
    }

    .about-content h1 {
        font-size: 40px;
    }

    .about-stats {
        padding: 30px;
    }
}

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

.property-gallery {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-property-image {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    border-radius: 18px;
}

.main-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 15px;
}
 .gallery-thumbnails img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-thumbnails img:hover {
    transform: translateY(-4px);
    opacity: 0.8;
}

/* Mobile */
@media (max-width: 768px) {

    .main-property-image {
        height: 350px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-thumbnails img {
        height: 90px;
    }
}

#mainPropertyImage {
    transition: opacity 0.2s ease;
}

.gallery-thumbnails img {
    cursor: pointer;
}
/* ---------- Scroll reveal: repeats in both directions ---------- */
/* These classes are added only when JavaScript and the observer are available. */
.nova-reveal {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 700ms ease, translate 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 300ms ease, box-shadow 300ms ease;
    transition-delay: 0ms;
}

.nova-reveal.is-visible,
.nova-reveal:focus-within {
    opacity: 1;
    translate: 0 0;
    transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms;
}

.nova-reveal:focus-within {
    transition-delay: 0ms;
}

/* Keep the home page's text readable against its dark background. */
.home-about .about-content > p:first-child {
    color: #aaa;
}

.home-about .about-content > .about-text {
    color: #bbb;
    margin-inline: auto;
}

@media (max-width: 768px) {
    .nova-reveal {
        --reveal-delay: 0ms !important;
        translate: 0 18px;
        transition-duration: 550ms;
    }

    .nova-reveal.is-visible,
    .nova-reveal:focus-within {
        translate: 0 0;
    }
}

/* Fit the existing navigation on narrow phones. */
@media (max-width: 420px) {
    .navbar {
        height: auto;
        min-height: 90px;
        padding-block: 16px;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
    }

    .nav-links {
        gap: 22px;
    }

    .hero h1 {
        font-size: clamp(40px, 12vw, 52px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nova-reveal,
    .nova-reveal.is-visible {
        opacity: 1;
        translate: none;
        transition: none;
    }
}

@media print {
    .nova-reveal {
        opacity: 1;
        translate: none;
        transition: none;
    }
}

/* Clickable featured properties */
a.property-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
a.property-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
}
.property-card .property-image {
    overflow: hidden;
}
.property-card .property-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .property-card:hover .property-image img {
        transform: scale(1.04);
    }
}

/* Property details: keep gallery below the navigation */
.property-details-body > .page-header {
    position: relative;
}
.gallery-thumbnails img.active {
    outline: 2px solid #B89B5E;
    outline-offset: 3px;
}
