@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Lato:wght@300;400;700&family=Droid+Serif:wght@400;700&display=swap');

:root {
    --primary-color: #27ae60;
    --primary-dark: #219150;
    --secondary-color: #29333d; /* Updated from user inspection */
    --text-color: #191919; /* Updated from user inspection */
    --light-color: #f4f7f6;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
}

/* Global Reset from User Inspection */
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, caption, canvas, center, cite, code, dd, del, details, dfn, dialog, div, dl, dt, em, embed, fieldset, figcaption, figure, form, footer, header, hgroup, h1, h2, h3, h4, h5, h6, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, tt, table, tbody, textarea, tfoot, thead, time, tr, th, td, u, ul, var, video {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    font-style: inherit;
    vertical-align: baseline;
    white-space: normal;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    height: 100%;
    background: #fff;
    font-size: 16px;
    line-height: 1.75em;
    color: var(--text-color);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

/* --- Top Header --- */
.top-header {
    background-color: #1c242b; /* Differentiated from main navbar */
    color: #ffffff;
    padding: 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .top-header {
        display: none;
    }
}

.top-header .container {
    max-width: 100%;
    padding: 0 50px;
}

.top-header-left {
    padding: 12px 0;
}

.top-header-right {
    display: flex;
    align-items: center;
}

.header-social-item {
    padding: 12px 15px;
    border-left: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.header-social-item:hover {
    color: var(--primary-color);
    background: rgba(255,255,255,0.05);
}


/* --- Navbar --- */
.main-navbar {
    background-color: var(--secondary-color);
    padding: 20px 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.main-navbar .logo {
    max-height: 85px;
    transition: all 0.3s ease;
}

.navbar-scrolled .logo {
    max-height: 60px !important;
}

@media (max-width: 768px) {
    .main-navbar {
        padding: 10px 0 !important;
    }
    .main-navbar .logo {
        max-height: 55px !important;
    }
}

#header-wrap {
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    width: 100%;
    z-index: 1050;
}

#header-wrap.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-scrolled {
    padding: 10px 0 !important;
    background-color: rgba(41, 51, 61, 0.98) !important;
}

.main-navbar .container {
    max-width: 100%;
    padding: 0 50px;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 400;
    margin: 0 15px;
    padding: 10px 0 !important;
    position: relative;
    font-size: 1.3rem;
}

/* Active indicator at the TOP */
.nav-link::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* --- Footer --- */
.main-footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-logo {
    max-height: 60px;
    margin-bottom: 30px;
}

.footer-contact-info p {
    font-size: 0.95rem;
    color: #bdc3c7;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info i {
    width: 25px;
    color: #bdc3c7;
    margin-top: 4px;
}

.footer-social-squares {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.footer-social-squares a {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-squares a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Featured Listing Card in Footer */
.footer-card {
    background: #ffffff;
    color: #2c3e50;
    border-radius: 0;
    overflow: hidden;
}

.footer-card .price-bar {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 10px;
    font-weight: bold;
}

.footer-card .stats-table {
    width: 100%;
    border-collapse: collapse;
}

.footer-card .stats-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #eee;
    font-size: 0.85rem;
}

/* --- Hero Section --- */
.page-hero {
    padding: 180px 0 140px; /* Default desktop padding */
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 60px !important;
    }
}

/* Enquire Form in Footer */
.footer-form input, 
.footer-form textarea {
    border-radius: 0;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.footer-form .btn-send {
    background-color: #34495e;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    border-radius: 0;
    font-weight: bold;
    text-transform: uppercase;
}

.footer-form .btn-send:hover {
    background-color: #2c3e50;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 50px;
    font-size: 0.8rem;
    color: #bdc3c7;
}

/* --- Scroll to Top --- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .nav-link {
        margin: 10px 0;
    }
}
/* --- Search Filter Section --- */
.search-filter-section {
    position: relative;
    padding-top: 40px;
    margin-bottom: 30px;
}

.search-filter-wrapper {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-filter-header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-filter-header h5 {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.search-filter-body {
    background-color: #f1f1f1;
}

.search-filter-body .form-control,
.search-filter-body .form-select {
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: #555;
    background-color: #ffffff;
}

.search-filter-body .form-control:focus,
.search-filter-body .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.btn-search {
    background-color: var(--secondary-color);
    color: #ffffff;
    padding: 12px;
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    width: 100%;
}

.btn-search:hover {
    background-color: #1a2229;
    color: #ffffff;
}

/* Custom 5 column grid for desktop */
@media (min-width: 992px) {
    .col-lg-1-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* --- Welcome Section --- */
.welcome-section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .welcome-section {
        text-align: center;
    }
    .welcome-img-wrapper {
        padding-left: 0 !important;
        margin-top: 30px;
    }
}

.welcome-title {
    color: #00447C;
    font-size: 28px;
    font-family: 'Droid Serif', serif;
    font-weight: 700;
    margin: 32px 0;
    text-align: center;
    display: block;
}

.welcome-text p {
    color: #191919;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    text-align: justify;
    margin-bottom: 20px;
}

.welcome-img {
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.welcome-img:hover {
    transform: translateY(-5px);
}

@media (max-width: 991.98px) {
    .welcome-title {
        font-size: 24px;
        margin: 20px 0;
    }
    .welcome-text p {
        text-align: left;
    }
}

.section-title {
    color: #00447C;
    font-family: 'Droid Serif', serif;
    font-weight: 700;
    font-size: 28px;
    text-align: center;
    margin-bottom: 24px;
}

/* --- Property Grid Section --- */
.property-grid-section {
    background-color: #ffffff;
    padding-top: 0 !important;
}

.property-grid-title {
    color: #00447C;
    font-size: 28px;
    font-family: 'Droid Serif', serif;
    font-weight: 700;
    margin: 32px 0;
    text-align: center;
}

.property-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
}

.property-item img {
    transition: transform 0.5s ease;
}

.property-item:hover img {
    transform: scale(1.1);
}

.property-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background-color: #222222;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.4s ease-in-out;
    z-index: 2;
}

.property-item:hover .property-label {
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Lighter grey shutter overlay */
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hbg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
}

.cta-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
    font-family: 'Lato', sans-serif;
}

@media (max-width: 991.98px) {
    .cta-section {
        padding: 80px 0;
        background-attachment: scroll;
    }
    .cta-title {
        font-size: 2rem;
    }
    .cta-subtitle {
        font-size: 1.1rem;
    }
}

/* --- Featured Listings Section --- */
.featured-header {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.featured-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.property-badge {
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.price-bar {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.property-title {
    font-family: 'Montserrat', sans-serif;
    color: #000 !important;
    font-size: 17px;
}

.property-location {
    color: #878C92;
    font-size: 12px;
}

.property-desc {
    color: #191919;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.property-stats small {
    font-size: 11px;
    text-transform: uppercase;
}

.property-stats span {
    font-size: 14px;
}
/* --- Testimonials Section --- */
.testimonial-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.testimonial-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 15px solid #ffffff; /* White border from latest screenshot */
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-quote {
    font-size: 28px; /* Matched to user inspection */
    font-family: 'Lato', sans-serif;
    color: #191919;
    line-height: 1.4;
    font-weight: 400;
    text-align: center; /* Center-aligned from screenshot */
}

.testimonial-author {
    font-family: 'Montserrat', sans-serif;
    color: #777777;
    font-size: 17px;
    font-weight: 400;
    text-align: center; /* Center-aligned */
    margin-top: 15px;
}

.testimonial-nav-btn {
    background: rgba(24, 25, 27, 0.6);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

.testimonial-nav-btn:hover {
    background: rgba(24, 25, 27, 0.9);
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .testimonial-avatar {
        width: 180px;
        height: 180px;
        border-width: 10px;
    }
    .testimonial-quote {
        font-size: 20px;
    }
    .testimonial-content {
        padding-left: 0 !important;
    }
}

/* --- Partners Section --- */
.partners-badge {
    background-color: #29333D; /* Exact color from screenshot */
    color: #FFFFFF;
    padding: 4px 20px; /* Exact padding from screenshot */
    font-family: 'Montserrat', sans-serif;
    font-size: 17px; /* Exact size from screenshot */
    font-weight: 400;
    letter-spacing: 0.5px;
    border-radius: 0; /* Boxy look from screenshot */
    display: inline-block;
}

.partner-logo {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%) brightness(0.7); /* Added brightness to make them darker */
    opacity: 0.8; /* Increased opacity for better visibility */
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- About Page Styles --- */
.about-text p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #191919;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

.about-text strong {
    color: #191919;
}

.hero-section {
    min-height: 300px !important;
    position: relative;
    overflow: hidden;
}

.breadcrumb-text {
    font-size: 32px;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.breadcrumb-text a:hover {
    color: #00acee !important;
}

.breadcrumb-wrapper {
    padding: 20px 0;
}

/* --- Core Values Custom Styles --- */
.value-card {
    transition: all 0.3s ease;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.stat-overlay {
    z-index: 10;
    transition: all 0.3s ease;
}

.core-values-img-wrap:hover .stat-overlay {
    transform: scale(1.05);
}

/* --- Testimonial Page Styles --- */
.testimonial-card {
    transition: all 0.4s ease;
    border-color: #ddd !important;
    background-color: #f9f9f9 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-color) !important;
}

.testimonial-card:hover .rounded-circle {
    border-color: var(--primary-color) !important;
    transform: scale(1.05);
    transition: all 0.4s ease;
}

/* --- Enquiry Page Styles (Envelope UI) --- */
.enquiry-page-wrapper {
    min-height: 100vh;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.enquiry-outer-box {
    width: 576px;
    min-height: 650px;
    background: #F9F9F9;
    padding: 18px;
    position: relative;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.enquiry-header {
    margin-bottom: 25px;
    position: relative;
    text-align: left;
}

.enquiry-header h2 {
    font-family: 'Lato', sans-serif;
    font-size: 32px;
    color: #000000;
    margin: 0;
    font-weight: 400;
}

.enquiry-content-area {
    background: #e6e6e6; 
    height: 550px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    border-radius: 2px;
}

.inner-form-box {
    background: #d1e8f2; 
    width: 450px;
    padding: 15px 25px 40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.envelope-bottom-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: url('../img/envelope_bottom_cover.png') no-repeat center bottom/cover;
    z-index: 15;
    pointer-events: none;
}

.enquiry-control {
    border-radius: 2px;
    border: 1px solid #a5b8c2;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.4);
    width: 100%;
    margin-bottom: 5px;
    font-family: 'Rambla', sans-serif;
    font-size: 14px;
}

.enquiry-control:focus {
    background: #fff;
    border-color: #00bcd4;
    outline: none;
}

.btn-enquiry-submit {
    background: #3c7f9e;
    color: #fff;
    width: 90px;
    height: 38px;
    border: none;
    border-radius: 4px;
    font-family: 'Rambla', sans-serif;
    font-size: 18px;
    transition: 0.3s;
}

.enquiry-control.is-invalid {
    border-color: red !important;
    background: rgba(255, 0, 0, 0.05);
}

.error-msg {
    position: absolute;
    top: 21px;
    right: 0;
    background: #FF4E5D;
    color: #fff;
    font-size: 10px;
    font-family: 'Rambla', sans-serif;
    padding: 4px 8px;
    z-index: 20;
    display: none;
    pointer-events: none;
    height: 25px;
    line-height: 17px;
}

.enquiry-control.is-invalid + .error-msg {
    display: block;
}

