* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #222;
    background: #fff;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

/* Properties Page */
.container {
    width: min(1200px, 90%);
    margin-inline: auto;
}

.property-archive {
    padding: 80px 0;
}

.archive-header {
    margin-bottom: 40px;
}

.archive-header h1 {
    margin-bottom: 10px;
}

.property-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 24px;
    padding: 24px;
    margin-bottom: 40px;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
}

.property-filter__search {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.property-filter__search label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.property-filter__search input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font: inherit;
}

.property-filter__group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-filter__group h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.property-filter__check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    cursor: pointer;
    font-size: 15px;
}

.property-filter__check input {
    width: 18px;
    height: 18px;
    accent-color: #111;
    cursor: pointer;
}

.property-filter__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    grid-column: 1 / -1;
}

.property-filter__clear {
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

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

/* Property Cards */

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

.property-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.property-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.property-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f3f3f3;
    overflow: hidden;
}

.property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.property-card__status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 10px;
    background: #fff;
    color: #111;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.property-card__content {
    padding: 22px;
}

.property-card__type {
    display: block;
    margin-bottom: 8px;
    color: #777;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.property-card h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: 20px;
    line-height: 1.3;
}

.property-card__address {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
}

.property-card__price {
    margin: 0 0 18px;
    color: #111;
    font-size: 22px;
    font-weight: 700;
}

.property-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #555;
    font-size: 13px;
}

.property-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.property-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 14px;
    color: #222;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.property-pagination a.page-numbers:hover {
    border-color: #111;
    color: #111;
}

.property-pagination .current {
    background: #111;
    border-color: #111;
    color: #fff;
}

@media (max-width: 768px) {

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

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

    .property-card__content {
        padding: 18px;
    }

}

/* Single Property */
.single-property {
    padding: 60px 0 100px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.property-header h1 {
    margin: 8px 0;
    font-size: 42px;
}

.property-type {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.property-address {
    margin: 0;
}

.property-status {
    padding: 8px 14px;
    background: #f2f2f2;
    border-radius: 6px;
    font-weight: 600;
}

.property-featured-image {
    height: 550px;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 40px;
    position: relative;
}

.property-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-image-caption {
    position: absolute;
    z-index: 999;
    left: 0;
    bottom: 0;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 5px;
}

.property-image-caption > * {
    color: white;
}

.property-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

.property-price {
    font-size: 32px;
    margin-bottom: 30px;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid #ddd;
    padding: 25px 0;
    margin-bottom: 40px;
}

.property-details div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.property-details strong {
    font-size: 22px;
}

.property-details span {
    font-size: 13px;
}

.property-description h2,
.property-map-section h2 {
    margin-bottom: 20px;
}

.property-map {
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f6f6f6;
}

.property-map iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
}

.property-agent {
    align-self: start;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-top: 30px;
}

.property-agent h2 {
    margin-top: 0;
    font-size: 22px;
}

.property-agent__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.property-agent__action span {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 768px) {

    .property-header {
        flex-direction: column;
    }

    .property-header h1 {
        font-size: 32px;
    }

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

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

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

}


/* Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e5e5;
    backdrop-filter: blur(4px);
}

.site-header__inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
}

.site-navigation ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-navigation a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.site-navigation a:hover {
    color: #666;
}

.header-contact {
    padding: 11px 18px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 768px) {

    .site-header__inner {
        min-height: 70px;
        flex-wrap: wrap;
        padding-block: 15px;
    }

    .site-navigation {
        order: 3;
        width: 100%;
    }

    .site-navigation ul {
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .header-contact {
        display: none;
    }

}

/* ========================================
   Homepage
======================================== */

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    background-color: #f3f5f7;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero__content {
    max-width: 680px;
    color: #fff;
}

.front-page-content {
    padding: 60px 0 0;
}

.front-page-content .container > :first-child {
    margin-top: 0;
}

.front-page-content .container > :last-child {
    margin-bottom: 0;
}

.hero__eyebrow,
.section-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 20px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    color: #fff;
}

.hero p {
    max-width: 550px;
    margin-bottom: 30px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}


/* Buttons */

.button {
    display: inline-block;
    padding: 14px 24px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.button:hover {
    opacity: .85;
}


/* Sections */

.featured-properties,
.why-propertyhub {
    padding: 100px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 45px;
}

.section-heading h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.15;
}

.section-heading > a {
    color: #111;
    font-weight: 600;
}


/* Features */

.why-propertyhub {
    background: #f7f7f7;
}

.section-heading.centered {
    display: block;
    max-width: 650px;
    margin-inline: auto;
    margin-bottom: 60px;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.feature h3 {
    margin-bottom: 10px;
    font-size: 21px;
}

.feature p {
    margin: 0;
    color: #555;
}


/* CTA */

.home-cta {
    padding: 100px 0;
    text-align: center;
    background: #111;
    color: #fff;
}

.home-cta h2 {
    margin-bottom: 15px;
    font-size: 40px;
}

.home-cta p {
    margin-bottom: 30px;
}

.button-light {
    background: #fff;
    color: #111;
}

@media (max-width: 768px) {

    .hero {
        min-height: 520px;
    }

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

    .section-heading {
        display: block;
    }

    .section-heading > a {
        display: inline-block;
        margin-top: 15px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .featured-properties,
    .why-propertyhub,
    .home-cta {
        padding: 70px 0;
    }

}