/* 
   Theme: Premium Red/Black/White Real Estate 
   Font: Outfit
*/

:root {
    --primary: #D32F2F;
    /* Premium Red */
    --primary-dark: #B71C1C;
    --primary-light: #FFCDD2;
    --secondary: #212121;
    /* Dark Black/Grey */
    --accent: #E53935;
    /* Bright Red Accent */

    --text-main: #333333;
    --text-light: #757575;
    --bg-white: #FFFFFF;
    --bg-off-white: #F8F9FA;
    --bg-dark: #121212;

    --width-container: 1400px;
    --radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);

    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --text-main: #f0f0f0;
    --text-light: #cccccc;
    --bg-white: #121212;
    --bg-off-white: #1e1e1e;
    --bg-dark: #000000;
    --secondary: #ffffff;
    /* In dark mode, secondary color often flips to white for contrast */
    --shadow-sm: 0 4px 6px rgba(255, 255, 255, 0.05);
    --shadow-md: 0 10px 15px rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 20px 25px rgba(255, 255, 255, 0.15);
}

/* Specific Dark Mode overrides for elements that might need it */
[data-theme="dark"] .navbar {
    background: rgba(18, 18, 18, 0.95);
}

[data-theme="dark"] .listing-card,
[data-theme="dark"] .content-section,
[data-theme="dark"] .filter-section,
[data-theme="dark"] .contact-wrapper,
[data-theme="dark"] .contact-info {
    background: #1e1e1e;
}

[data-theme="dark"] .search-box {
    background: #1e1e1e;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: #2c2c2c;
    /* Slightly lighter than card bg */
    color: white;
    border-color: #444;
}

[data-theme="dark"] .search-item input,
[data-theme="dark"] .search-item select {
    background: transparent;
    color: white;
}

[data-theme="dark"] .search-item {
    border-right-color: #444;
}

[data-theme="dark"] .modal-content {
    background-color: #1e1e1e;
    color: #f0f0f0;
}

[data-theme="dark"] .close-modal {
    color: #f0f0f0;
}

[data-theme="dark"] .detail-item {
    background: #2c2c2c;
}

[data-theme="dark"] .social-links a {
    background: #2c2c2c;
    color: white;
}

[data-theme="dark"] th {
    background-color: #2c2c2c;
    color: white;
}

[data-theme="dark"] td,
[data-theme="dark"] th {
    border-color: #444;
}

[data-theme="dark"] .service-card {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .location i,
[data-theme="dark"] .features {
    color: #cccccc;
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .logo-text,
[data-theme="dark"] .nav-link,
[data-theme="dark"] .card-title {
    color: white;
}

/* Ensure secondary buttons look good in dark mode */
[data-theme="dark"] .btn-secondary {
    color: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .btn-secondary:hover {
    color: white;
}

[data-theme="dark"] .search-btn {
    color: var(--bg-dark);
    /* Black text on white (secondary) background */
}

[data-theme="dark"] .tag.rent,
[data-theme="dark"] .price-tag.rent {
    background-color: #ffffff;
    color: #000000;
}

[data-theme="dark"] .view-btn {
    background-color: var(--primary);
    /* Use primary color for background */
    color: white;
    /* White text */
}

[data-theme="dark"] .view-btn:hover {
    background-color: white;
    color: var(--primary);
}

[data-theme="dark"] .page-header {
    background-color: #000000;
    /* Keep header dark so white text remains visible */
    border-bottom: 1px solid #333;
}

[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.95);
}



[data-theme="dark"] .footer {
    background-color: #000000;
    border-top: 1px solid #333;
}

[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-links a {
    color: #aeaeae;
}

[data-theme="dark"] .footer-links a:hover {
    color: white;
}


/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.announcement-bar {
    position: fixed;
    top: 80px;
    /* Directly below the 80px navbar */
    left: 0;
    width: 100%;
    height: 48px;
    background: #f0f0f0;
    /* Slightly darker than white */
    z-index: 990;
    /* Below navbar (1000) */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.announcement-bar.hidden {
    transform: translateY(-100%);
    /* Slide up behind navbar */
}

/* Ensure content on bar is styled */
.announcement-link {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.announcement-link:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

[data-theme="dark"] .announcement-bar {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid #333;
}

.bg-alt {
    background-color: #f0f0f0;
}

[data-theme="dark"] .bg-alt {
    background-color: var(--bg-off-white);
    /* Uses the dark mode variable for off-white (usually dark grey) */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.kw-logo {
    display: none;
}

@media (min-width: 901px) {
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        justify-content: unset;
    }

    .logo {
        justify-self: start;
    }

    .nav-menu {
        justify-self: center;
    }

    .kw-logo {
        display: block;
        justify-self: end;
    }

    .kw-logo img {
        height: 50px;
        width: auto;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img,
.logo-img-dark {
    display: none;
    height: 70px;
    width: auto;
    object-fit: contain;
}

.logo-img {
    display: block;
    /* Show light logo by default */
}

[data-theme="dark"] .logo-img {
    display: none;
    /* Hide light logo in dark mode */
}

[data-theme="dark"] .logo-img-dark {
    display: block;
    /* Show dark logo in dark mode */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-link.btn-primary {
    color: white !important;
}

.nav-link.btn-primary::after {
    display: none;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-title .text-gradient {
    /* For dark background, gradient might be tricky, let's use solid white/red or specialized gradient */
    background: linear-gradient(45deg, #FFEBEE, #FFCDD2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    display: flex;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.search-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 1rem;
    border-right: 1px solid #eee;
}

.search-item:last-child {
    border: none;
}

.search-item i {
    color: var(--primary);
}

.search-item input,
.search-item select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    font-family: inherit;
}

.search-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--primary);
}

/* Stats */
.hero-stats {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-light);
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.listing-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.listing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .card-image img {
    transform: scale(1.1);
}

.tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.tag.rent {
    background: var(--secondary);
}

.price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    z-index: 2;
}

.price-tag.rent {
    background: var(--secondary);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.listing-card:hover .card-overlay {
    opacity: 1;
}

.view-btn {
    background: white;
    color: var(--secondary);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: var(--transition);
}

.listing-card:hover .view-btn {
    transform: translateY(0);
}

.card-content {
    padding: 1.5rem;
}

.location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.location i {
    color: var(--primary);
    margin-right: 5px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.features i {
    margin-right: 5px;
}

.center-btn {
    text-align: center;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 5px solid white;
    box-shadow: var(--shadow-md);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Services */
.dark-bg {
    background-color: var(--bg-dark);
    color: white;
}

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

.service-card {
    background: #1e1e1e;
    padding: 2.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid #333;
}

.service-card:hover {
    background: var(--primary);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover i {
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #aeaeae;
    margin-bottom: 1.5rem;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-info {
    padding: 4rem 2rem;
    background: white;
    width: 100%;
}

.contact-details {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.c-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    justify-content: center;
    text-align: left;
    align-items: center;
}

.c-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.social-links img {
    width: 20px;
    height: auto;
    transition: var(--transition);
}

.social-links a:hover img {
    filter: brightness(0) invert(1);
}

.contact-form-box {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.submit-btn {
    width: 100%;
    background: var(--secondary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-brand .logo-text {
    color: white;
}

.footer-links a {
    color: #888;
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
        position: relative;
        z-index: 1;
    }

    .nav-menu {
        z-index: 1001;
        /* Ensure nav menu is above everything */
    }

    .search-box {
        flex-direction: column;
    }

    .search-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 1rem 0;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
        max-width: 300px;
        /* Limit width of buttons */
        margin: 0 auto;
    }

    .hero-actions a {
        width: 100%;
        /* Make buttons full width */
        margin-right: 0 !important;
        /* Override inline style */
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        z-index: 1001;
        /* Explicitly set z-index here too */
    }

    /* Dark mode background for mobile menu */
    [data-theme="dark"] .nav-menu {
        background: rgba(0, 0, 0, 0.95);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }

    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
    background: white;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-gallery {
    flex: 1.5;
    background: #f0f0f0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 300px;
}

.main-image-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    object-fit: cover;
    border: 2px solid transparent;
}

.thumb:hover,
.thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.modal-details {
    flex: 1;
    padding: 2rem;
    min-width: 300px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.modal-location {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    background: #f9f9f9;
    padding: 0.8rem;
    border-radius: 8px;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.detail-value {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.contact-agent-btn {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}