/* HERO — CLEAN, BALANCED, MATCHES VILLA STYLE */
.forsale-hero {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    padding-top: 120px; /* FIX: push hero below sticky header */
    color: #fff;
}

/* DARK OVERLAY FOR READABILITY */
.forsale-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);  /* Same overlay as villa hero */
    z-index: 1;
}

/* TEXT CONTAINER */
.forsale-hero .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;              /* Prevents text stretching too wide */
}

/* HERO TEXT — PURE WHITE + SHADOW */
.forsale-hero h1,
.forsale-hero p,
.forsale-hero .hero-inner * {
    color: #ffffff !important;
    text-shadow: 0 3px 8px rgba(0,0,0,0.55) !important;
    font-weight: 600;
}

/* MOBILE RESPONSIVE HERO */
@media (max-width: 768px) {
    .forsale-hero {
        height: 200px;             /* Smaller hero on mobile */
        padding: 20px;
    }
    .forsale-hero h1 {
        font-size: 1.8rem;
    }
    .forsale-price {
        font-size: 1.3rem;
    }
}

/* TWO COLUMN LAYOUT */
.forsale-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    margin: 40px auto;
    max-width: 1400px;
}

/* FLOATING SIDEBAR */
.forsale-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* GALLERY */
.forsale-gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1200px) {
    .forsale-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .forsale-gallery { grid-template-columns: repeat(2, 1fr); }
}
.forsale-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

/* MAP */
.forsale-map {
    height: 350px;
    margin-top: 20px;
}

/* BASIC TYPOGRAPHY */
.forsale-price {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 10px 0 20px;
}
.forsale-location,
.forsale-summary,
.forsale-description,
.forsale-terms {
    margin-bottom: 30px;
}

/* PAGE WIDTH */
.forsale-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    margin: 40px auto;
    max-width: 1200px; /* FIXED WIDTH */
    padding: 0 20px;   /* PREVENT EDGE CROPPING */
}

/* FLOATING SIDEBAR */
.forsale-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* FORCE HERO TEXT TO PURE WHITE */
.forsale-hero h1,
.forsale-hero p,
.forsale-hero .hero-inner * {
    color: #ffffff !important;
    text-shadow: 0 3px 8px rgba(0,0,0,0.55) !important;
    font-weight: 600;
}

/* SIDEBAR BOX */
.forsale-enquiry-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    border: 1px solid #e5e5e5;
}

/* HEADER */
.enquiry-heading {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* FORM FIELDS */
.forsale-enquiry-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

.forsale-enquiry-form input,
.forsale-enquiry-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.forsale-enquiry-form button {
    width: 100%;
    background: #0077cc;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
}

.forsale-enquiry-form button:hover {
    background: #005fa3;
}

/* SUCCESS MESSAGE */
.enquiry-success {
    background: #e8f8e8;
    border: 1px solid #b6e3b6;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #2d7a2d;
}

/* FINAL HERO FIX — MUST BE LAST */
.forsale-hero {
    background: none !important;
    background-image: unset !important;
    background-color: transparent !important;

    /* Restore correct hero behaviour */
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
}
/* Responsive video container */
.villa-description-text iframe {
    width: 100%;
    max-width: 640px;   /* laptop size */
    height: 360px;
    display: block;
    margin: 20px auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .villa-description-text iframe {
        max-width: 100%;
        height: 220px;   /* smaller height for mobiles */
    }
}
