/* GRID */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* CARD */
.listing-card {
    cursor: pointer;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* LINK RESET */
.listing-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* IMAGE */
.listing-image {
    position: relative;
    width: 100%;
    height: 240px; /* 🔥 REQUIRED */
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* ZOOM EFFECT */
.listing-card:hover .listing-image {
    transform: scale(1.05);
}

/* GRADIENT OVERLAY */
.listing-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.25) 40%,
        rgba(0,0,0,0) 70%
    );
}

/* OVERLAY CONTENT */
.listing-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 2;
}

/* PRICE */
.listing-price {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* CONTENT */
.listing-content {
    padding: 16px 18px 18px;
}

/* ADDRESS */
.listing-content h3 {
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 600;
}

/* LOCATION */
.listing-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

/* META */
.listing-meta {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2a7ae2;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 3;
}

/* SINGLE PROPERTY */

.single-property {
    max-width: 1200px;
    margin: auto;
    font-family: Arial, sans-serif;
}

.sp-header h1 {
    margin-bottom: 5px;
}

.sp-location {
    color: #777;
}

.sp-price {
    font-size: 32px;
    font-weight: bold;
    margin: 15px 0;
}

/* GALLERY */
.sp-gallery {
    margin-bottom: 30px;
}

.sp-main-image {
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.sp-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}

.sp-thumb {
    width: 100px;
    height: 70px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-radius: 4px;
}

/* DETAILS */
.sp-stats {
    display: flex;
    gap: 25px;
    margin: 20px 0;
    font-size: 18px;
}

.sp-description {
    margin-top: 20px;
}

/* FEATURES GRID */
.sp-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.sp-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* MAP */
.sp-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    margin-top: 30px;
    border-radius: 8px;
}

/* CTA */
.sp-cta {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.sp-btn-primary {
    background: #0073aa;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.sp-btn-secondary {
    background: #444;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* FORM */
.sp-form input,
.sp-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}

/* MORTGAGE */
.sp-mortgage {
    margin-top: 40px;
}

.mc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mc-result {
    margin-top: 15px;
    font-size: 20px;
}

/* SIMILAR */
.sp-similar {
    margin-top: 50px;
}
