/* ===========================
   GLOBAL
=========================== */

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    margin: 0 0 10px;
    font-weight: 600;
}

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

.site-header {
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    height: 70px;
    width: auto;
}

.header-text h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.header-text p {
    margin: 2px 0;
}

.announce {
    font-size: 14px;
    color: #444;
}

/* ===========================
   MAIN
=========================== */

.main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

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

.section-title h2 {
    font-size: 26px;
    margin-bottom: 5px;
}

/* ===========================
   PROPERTY GRID
=========================== */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

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

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

.property-image-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}
.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-info {
    padding: 15px;
}

.property-info h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.property-info .street {
    font-size: 14px;
    color: #555;
}

.property-info .meta {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

.property-info .category {
    margin-top: 10px;
    display: inline-block;
    background: #eef3ff;
    color: #2a4dff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* ===========================
   OBJECT PAGE
=========================== */

.object-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .object-content {
        grid-template-columns: 1fr;
    }
}


.object-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.object-box h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.object-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.object-box li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.object-box li:last-child {
    border-bottom: none;
}


.object-main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

.object-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
    font-weight: 700;
}

.object-address {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.object-meta {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* GALLERY */

.object-gallery {
    margin: 25px 0;
}

.object-main-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 25px auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #eee;
}

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

.object-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.object-thumbs img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.object-thumbs img:hover {
    opacity: 1;
}

/* DETAILS */

.object-details ul,
.object-attributes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.object-details li,
.object-attributes li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

/* CONTACT */

.object-contact {
    margin-top: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.object-views {
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background: #eef3ff;
    color: #2a4dff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 6px;
}


/* ===========================
   FOOTER
=========================== */

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #fff;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #555;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }

    .property-image-wrapper {
        height: 150px;
    }

    .object-thumbs img {
        width: 70px;
        height: 55px;
    }
}
