/* home.css */

/* General */
body {
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
.active:after { content: "\2212"; }
.content {
    padding: 0 18px;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background: #fff;
}

/* Newsletter Toast */
#newsletterMessage {
    display: none;
    position: fixed;
    top: 20px; right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 15px;
    z-index: 9999;
}

/* Newsletter Button */
.newsletter-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background-color: #28a745;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex; justify-content: center; align-items: center;
}
.newsletter-btn:hover { background: #218838; transform: scale(1.05); }

/* Clickable Labels */
.clickable-label { cursor: pointer; color: #007bff; margin-right: 5px; }
.clickable-label:hover { text-decoration: underline; }

/* Spinner */
.spinner { margin-left: 10px; animation: rotate 1s linear infinite; }
.spinner circle {
    stroke: #fff; stroke-linecap: round; fill: none;
    stroke-width: 4; stroke-dasharray: 80,200;
    transform-origin: center; animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1,200; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90,150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90,150; stroke-dashoffset: -124; }
}

/* Wrapper */
.siteWraper { width: 100%; margin: 0 auto; padding: 0; }

/* Section Titles */
.sectitle span {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 5px;
}

/* =========================================================
   HOME PROPERTY / BLOG SECTION TITLES
   Keep the existing .sectitle design, but restore a compact
   size and spacing for the three home content sections.
   ========================================================= */

.home-content-section .sectitle,
.featured-properties-container .sectitle,
.latestproperties .sectitle {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
}

/* Featured Properties */
.featured-properties-container {
    margin-top: 0;
    margin-bottom: 28px;
}

.featured-properties-container .sectitle {
    margin-bottom: 12px;
}

/* Latest Properties */
.latestproperties {
    margin-bottom: 28px;
}

.latestproperties .sectitle {
    margin-bottom: 12px;
}

/* Latest From Our Blog
   The blog view uses a row with the .sectitle directly inside it.
   Keep the title compact without changing the global .sectitle rule. */
.home-featured-blogs .sectitle {
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
}

/* When the three sections are wrapped by home.php, reduce the
   excessive vertical separation without affecting other pages. */
.home-content-section {
    margin-bottom: 28px;
}

.home-content-section:last-child {
    margin-bottom: 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .home-content-section .sectitle,
    .featured-properties-container .sectitle,
    .latestproperties .sectitle,
    .home-featured-blogs .sectitle {
        font-size: 21px;
        line-height: 1.25;
        margin-bottom: 11px;
    }

    .featured-properties-container,
    .latestproperties,
    .home-content-section {
        margin-bottom: 25px;
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .home-content-section .sectitle,
    .featured-properties-container .sectitle,
    .latestproperties .sectitle,
    .home-featured-blogs .sectitle {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .featured-properties-container,
    .latestproperties,
    .home-content-section {
        margin-bottom: 22px;
    }

}
