* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #a7a9ac;
    background-color: #000;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #000;
    border-bottom: 2px solid #f3bb44;
    position: relative;
}

.logo img {
    height: 100px;
    max-width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #f3bb44;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001; /* Ensure it's on top */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #a7a9ac;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f3bb44;
}

nav ul li a.active {
    color: #f3bb44;
}

.hero {
    position: relative;
    border-bottom: 2px solid #f3bb44;
    overflow: hidden; /* Clip any overflow */
}

.hero-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    width: 90%;
    padding: 0 10px;
}

.hero-text h1 {
    font-size: clamp(1.5rem, 5vw, 2.5em); /* Scales better across devices */
    margin-bottom: 20px;
    line-height: 1.2;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0 40px 0;
    flex-wrap: wrap; /* Extra wrap safety */
    width: 100%;                 /* Added: full width to resist margin squeeze */
    min-width: 0;                /* Added: helps in flex contexts */
}

.btn {
    display: inline-block;
    padding: 12px 24px; /* Slightly more padding for touch */
    background-color: #f3bb44;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn:hover {
    background-color: #e0a630;
}

.download-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f3bb44;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: #e0a630;
}

.our-team {
    padding: 40px 20px 0;
    background-color: #000;
    text-align: center;
    color: #a7a9ac;
    border-bottom: 2px solid #f3bb44;
}

.our-team h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #f3bb44;
}

.team-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.team-member {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 960px;
    gap: 20px;
    padding-top: 20px;
    margin-bottom: 20px;
}

.team-member:last-child {
    margin-bottom: 10px;
}

.team-image {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
}

.team-details {
    flex: 1;
    max-width: 690px;
    margin: 0 auto;
}

.team-details h3 {
    font-size: 1.8em;
    color: #f3bb44;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: left;
}

.team-details .title {
    font-size: 1.2em;
    color: #a7a9ac;
    margin-bottom: 10px;
    text-align: left;
}

.team-details .contact-details {
    font-size: 1.1em;
    margin: 5px 0;
    text-align: left;
}

.team-details .contact-details a {
    color: #f3bb44;
    text-decoration: none;
}

.team-details .contact-details a:hover {
    color: #e0a630;
}

.team-details .bio {
    font-size: 1em;
    line-height: 1.6;
    margin-top: 15px;
    text-align: justify;
}

.team-details p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.team-details ul {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
    padding-left: 20px;
}

.team-details ul li {
    margin-bottom: 15px;
}

.contact-us {
    padding: 40px 20px 20px;
    background-color: #000;
    text-align: center;
    color: #a7a9ac;
}

.agents-page .contact-us {
    padding: 0 20px 20px;
}

.contact-us h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #f3bb44;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-end;
    min-height: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    order: 1;
}

.contact-info {
    flex: 1;
    min-width: 200px;
    text-align: right;
    order: 2;
}

.contact-info p {
    font-size: 1.1em;
    margin: 10px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #a7a9ac;
    font-weight: bold;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 2px solid #f3bb44;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e0a630;
}

.contact-form .btn {
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: block;
    margin: 0 auto;
}

.blog-index {
    padding: 40px 20px 0;
    background-color: #000;
    text-align: center;
    color: #a7a9ac;
    border-bottom: 2px solid #f3bb44;
}

.blog-container {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-post {
    margin-bottom: 30px;
}

.blog-post h2,
.blog-content h2 {
    font-size: 2em;
    font-weight: bold;
    color: #f3bb44;
    margin: 40px 0 20px 0;
    text-align: center;
    line-height: 1.3;
}

.blog-post h3 {
    font-size: 1.4em;
    color: #a7a9ac;
    margin-bottom: 10px;
    text-align: left;
}

.blog-post h3 a {
    color: #a7a9ac;
    text-decoration: none;
}

.blog-post h3 a:hover {
    color: #e0a630;
}

/* Blog post content links */
.blog-content a,
.blog-post a {
    color: #f3bb44;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content a:hover,
.blog-post a:hover {
    color: #e0a630;
    text-decoration: none;
}

.blog-post p {
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
}

.blog-content {
    padding: 40px 20px 0;
    background-color: #000;
    text-align: center;
    color: #a7a9ac;
    border-bottom: 2px solid #f3bb44;
}

.blog-container p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.blog-index h2 {
    font-size: 2em;
    font-weight: bold;
    color: #f3bb44;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.blog-index h2:first-of-type {
    margin-top: 0;
}

/* AML Content Section Styling */
.aml-content {
    padding: 40px 20px 20px;
    background-color: #000;
    text-align: center;
    color: #a7a9ac;
    position: relative;
}

.aml-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 2px;
    background-color: #f3bb44;
}

.aml-content .content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.aml-content h2 {
    font-size: 2em;
    font-weight: bold;
    color: #f3bb44;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.aml-content h2:first-of-type {
    margin-top: 0;
}

.aml-content p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.aml-content ul {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
    padding-left: 20px;
}

.aml-content ul li {
    margin-bottom: 15px;
}

.aml-content a {
    color: #f3bb44;
    text-decoration: none;
}

.aml-content a:hover {
    color: #e0a630;
}

/* Testimonials Section Styling */
.testimonials {
    padding: 40px 20px 20px;
    background-color: #000;
    text-align: center;
    color: #a7a9ac;
    border-bottom: 2px solid #f3bb44;
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #f3bb44;
}

.testimonials p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
}

.testimonials a {
    color: #f3bb44;
    text-decoration: none;
}

.testimonials a:hover {
    color: #e0a630;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(243, 187, 68, 0.2);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    padding: 30px 20px;
    background-color: #1a1a1a;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.agent-headshot {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f3bb44;
}

.review-content p {
    font-size: 1em;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 15px;
    text-align: center;
}

.review-content h4 {
    font-size: 1.1em;
    color: #f3bb44;
    margin: 0;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(243, 187, 68, 0.8);
    color: #000;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #e0a630;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Appraisal Content Section Styling */
.appraisal-content {
    padding: 60px 20px 40px;
    background-color: #000;
    color: #a7a9ac;
    border-bottom: 2px solid #f3bb44;
    text-align: left;
}

.appraisal-content h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #f3bb44;
}

.appraisal-content h3 {
    font-size: 1.5em;
    margin: 40px 0 20px 0;
    color: #f3bb44;
}

.appraisal-content h3:first-of-type {
    margin-top: 0;
}

.appraisal-content p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 25px;
}

.appraisal-content ul {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-left: 25px;
}

.appraisal-content ul li {
    margin-bottom: 15px;
}

.appraisal-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Current Listings Section Styling */
.current-listings {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #000;
    border-bottom: 2px solid #f3bb44;
    position: relative;
}

.current-listings::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 2px;
    background-color: #f3bb44;
}

.current-listings h2 {
    font-size: 2em;
    margin-bottom: 2rem;
    color: #f3bb44;
    text-align: center;
}

.listings-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.listing-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(243, 187, 68, 0.2);
    transition: transform 0.2s ease;
    background-color: #1a1a1a;
    padding: 1rem 0 0 0;
}

.listing-card:hover {
    transform: translateY(-5px);
}

.listing-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    background-color: #1a1a1a;
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
}

.listing-content {
    padding: 1rem 1rem 1rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.listing-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #f3bb44;
    text-align: center;
}

.property-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    min-height: 140px; /* Ensure consistent height across all listings */
}

.detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #a7a9ac;
    text-align: center;
}

.detail i {
    color: #f3bb44;
    width: 16px;
    flex-shrink: 0;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f3bb44;
    margin-top: auto;
    text-align: center;
}

/* Remove underline from listing card links + enhanced hover feedback */
.listings-container a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.listings-container a:hover {
    text-decoration: none;
}

.listings-container a:hover .listing-card {
    box-shadow: 0 8px 20px rgba(243, 187, 68, 0.3);
    transform: translateY(-5px);
    transition: all 0.25s ease;
}

/* Footer Styles */
.footer {
    width: 100%;
    padding: 1rem 20px;
    border-top: 2px solid #f3bb44;
    background-color: #000;
    color: #a7a9ac;
    box-sizing: border-box;
    font-size: 0.875em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-item {
    flex: none;
}

.footer-left {
    text-align: left;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-right {
    text-align: right;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #e0a630;
}

/* Social Links Styling */
.social-links {
    font-size: 1em;
    margin: 5px 0;
    text-align: right;
}

.social-links a {
    margin-left: 20px;
    color: #f3bb44;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e0a630;
}

.social-links i {
    color: inherit;
}

.btn[href="#contact-us"] {
    min-width: 240px;            /* Ensures enough space for "Contact Us Today" */
    padding: 12px 32px !important; /* More horizontal room */
    overflow: visible !important;
    white-space: nowrap;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 1200px) {
    .btn[href="#contact-us"] {
        min-width: 200px;
        padding: 10px 28px;
    }
}

/* Optional: stronger visibility in dark theme if needed */
.btn[href="#contact-us"] {
    color: #000 !important;      /* force black text on gold bg */
}

.aml-content .buttons:last-of-type {
    width: 100%;
    margin: 40px 0 60px 0;
    padding: 0;
    justify-content: center;
}

.aml-content .btn[href="#contact-us"]:last-of-type {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    /* NO changes to padding, font-size, min-height — keeps original .btn values */
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.aml-content .btn[href="#contact-us"]:last-of-type:hover {
    background-color: #e0a630;
}

/* Mobile — still full width but no other overrides */
@media (max-width: 768px) {
    .aml-content .btn[href="#contact-us"]:last-of-type {
        width: 100% !important;
    }
}

/* ==========================================================================
   Property Slideshow - Specific to property listing pages (e.g. 20-Owai-Avenue.html)
   ========================================================================== */

.property-slideshow {
    padding: 40px 20px;
    background-color: #000;
    text-align: center;
    border-bottom: 2px solid #f3bb44;
}

.property-slideshow h2 {
    font-size: 2.2em;
    color: #f3bb44;
    margin-bottom: 30px;
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(243, 187, 68, 0.15);
}

.slides {
    display: flex;
    transition: transform 0.4s ease;
}

.slide {
    min-width: 100%;
    height: auto;
    display: none;
    object-fit: contain;
    background-color: #111;
}

.slide.active {
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #f3bb44;
    border: none;
    font-size: 28px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev:hover, .next:hover {
    background-color: #f3bb44;
    color: #000;
}

.prev { left: 15px; }
.next { right: 15px; }

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumb:hover,
.thumb.active-thumb {
    opacity: 1;
    transform: scale(1.08);
    border: 2px solid #f3bb44;
}

/* Mobile adjustments for slideshow */
@media (max-width: 768px) {
    .slideshow-container {
        max-width: 100%;
    }
    
    .prev, .next {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .thumb {
        width: 60px;
        height: 60px;
    }
}

/* SUPER BROAD + HIGH SPECIFICITY OVERRIDE - last in file */
.blog-content h2,
.blog-content .blog-container h2,
.blog-content div h2,
.blog-container h2,
section.blog-content h2,
.blog-post h2,
.blog-container > h2,
.blog-content > div > h2,
.blog-content h2:not(.ignore-this) {   /* catch-all */
    color: #f3bb44 !important;
    font-size: 2em !important;
    font-weight: bold !important;
    text-align: center !important;
    margin: 40px 0 20px 0 !important;
    line-height: 1.3 !important;
    padding: 0 !important;
}

/* ==========================================================================
   MOBILE HAMBURGER MENU - Responsive toggle for mobile devices
   ========================================================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Show hamburger icon on mobile */
    }

    nav ul {
        display: none; /* Hide full menu by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 20px 0;
        border-top: 2px solid #f3bb44;
        z-index: 1000;
    }

    nav ul.show {
        display: flex; /* Show menu when .show class is added by JS */
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    nav ul li a {
        font-size: 1.2em;
        padding: 10px 0;
        display: block;
    }

    header {
        position: relative;
        flex-wrap: wrap;
    }
}

/* Optional: Hamburger icon animation to X when menu is open */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        min-height: auto;
    }
    .contact-form, .contact-info {
        flex: none;
        min-width: auto;
        width: 100%;
    }
    .contact-info {
        text-align: center;
        order: 1;
    }
    .contact-form {
        order: 2;
    }
    .social-links {
        text-align: center;
    }
    .form-group input,
    .form-group textarea {
        max-width: none;
    }
    .contact-form .btn {
        max-width: none;
    }
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    .footer-left, .footer-center, .footer-right {
        text-align: center;
    }
}
