/* =========================================
   GLOBAL STYLES & TYPOGRAPHY
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* =========================================
   NAVIGATION
========================================= */
/* =========================================
   PREMIUM NAVBAR
========================================= */

nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

nav a {
    position: relative;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.96rem;
    transition: 0.25s ease;
    padding-bottom: 6px;
}

nav a:hover {
    color: #3498db;
}

/* animated underline */

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #3498db;
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

/* active page */

.active-nav {
    color: #3498db;
}

.active-nav::after {
    width: 100%;
}

/* =========================================
   LISTINGS GALLERY (GRID)
========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 30px 40px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    grid-column: 1 / -1;
}

/* =========================================
   PROPERTY CARDS
========================================= */
.property-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

/* Image & Badges */
.image-container {
    position: relative; /* Crucial for positioning badges */
    width: 100%;
    height: 220px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge, .featured-badge {
    position: absolute;
    top: 15px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
}

.badge {
    left: 15px;
    background-color: rgba(44, 62, 80, 0.9);
}

.featured-badge {
    right: 15px;
    background-color: #e74c3c;
}

/* Card Content */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #27ae60;
    margin-bottom: 10px;
}

.address, .location {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.mini-specs {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #34495e;
    font-weight: 500;
}

/* Buttons */
.view-btn {
    display: block;
    text-align: center;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: 600;
    transition: background 0.2s;
}

.view-btn:hover {
    background-color: #2980b9;
}

/* =========================================
   SINGLE PROPERTY DETAIL PAGE
========================================= */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.price-large {
    font-size: 2.5rem;
    color: #27ae60;
}

.specs-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 1.1rem;
}

.specs-bar .badge {
    position: static; /* Removes absolute positioning for the detail page */
}

.text-muted {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.description-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    margin: 30px 0;
    line-height: 1.8;
}

.description-box h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Gallery inside Detail Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.gallery-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* =========================================
   LIGHTBOX (Pop-up Gallery)
========================================= */
.lightbox {
    display: none; /* Hidden until clicked */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}





/* oya */

/* =========================================
   HOMEPAGE STYLES
========================================= */

/* HERO */

.hero-section {
    position: relative;
    height: 88vh;
    min-height: 700px;
    background-image:
        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0,0,0,0.55)
        ),
        url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    margin-top: -30px;
}

.hero-content {
    max-width: 850px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: rgba(255,255,255,0.9);
}

/* HERO BUTTONS */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s ease;
    display: inline-block;
}

.primary-btn {
    background: #3498db;
    color: white;
}

.primary-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* SECTION WRAPPER */

.home-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 30px;
}

/* SECTION TITLES */

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 2.7rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.section-heading p {
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ABOUT GRID */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 14px;
    height: 550px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

.about-content p {
    margin-bottom: 25px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* STATS */

.stats-section {
    background: white;
    padding: 70px 30px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    transition: 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.stat-card h2 {
    font-size: 2.8rem;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-card p {
    color: #7f8c8d;
    font-weight: 600;
}

/* SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 14px;
    padding: 40px 30px;
    border: 1px solid #e1e4e8;
    transition: 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.service-card h3 {
    margin-bottom: 18px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* FEATURED SECTION */

.featured-section {
    background: #ffffff;
    padding: 100px 30px;
}

/* CTA */

.cta-section {
    background:
        linear-gradient(
            rgba(44,62,80,0.9),
            rgba(44,62,80,0.92)
        ),
        url('https://images.unsplash.com/photo-1568605114967-8130f3a36994?q=80&w=1800&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 120px 30px;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 35px auto;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

/* TESTIMONIALS */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #e1e4e8;
    padding: 35px;
    transition: 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.testimonial-card p {
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    color: #2c3e50;
}

/* FOOTER */

.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 30px;
    text-align: center;
}

.footer h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.footer p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 8px;
}

/* RESPONSIVE */

@media (max-width: 992px) {

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-section {
        min-height: 600px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }
}


.active-nav {
    color: #3498db;
}


/* smooth appearance */

.property-card,
.service-card,
.stat-card,
.testimonial-card {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        padding: 18px 20px;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }

    nav a {
        font-size: 0.9rem;
    }
}

/* =========================================
   ABOUT PAGE HERO FIX
========================================= */

.about-hero {
    position: relative;
    min-height: 520px;
    background-image:
        linear-gradient(
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.65)
        ),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1800&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
}

.about-hero-overlay {
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-hero-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
    color: white;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.about-hero-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.9);
    max-width: 760px;
    margin: 0 auto;
}

.hero-subtitle {
    margin-bottom: 18px;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

/* mobile */

@media (max-width: 768px) {

    .about-hero-content h1 {
        font-size: 2.3rem;
    }

    .about-hero {
        min-height: 420px;
    }
}

/* =========================================
   BOTTOM CTA
========================================= */

.bottom-cta {
    background: #ffffff;
    text-align: center;
    padding: 110px 30px;
}

.bottom-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.bottom-cta p {
    max-width: 720px;
    margin: 0 auto 35px auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* mobile */

@media (max-width: 768px) {

    .bottom-cta h2 {
        font-size: 2.2rem;
    }

    .bottom-cta {
        padding: 80px 25px;
    }
}



/* =========================================
   TEAM PAGE (NEW ADDITION)
========================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.team-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.team-card-content {
    padding: 20px;
}

.team-card-content h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.team-role {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-bio {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.badge.sold {
    background-color: #fb0606; /* Gray for sold */
    color: white;
}

/* =========================================================
   PAGINATION STYLES
   ========================================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
}

.pagination-container button {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-container button:hover:not([disabled]) {
    background-color: #0056b3; /* Change this to match your brand color */
    color: white;
    border-color: #0056b3;
}

.pagination-container button.active-page {
    background-color: #0056b3; /* Change this to match your brand color */
    color: white;
    border-color: #0056b3;
    font-weight: bold;
}

.pagination-container button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}