:root {
    /* Colors */
    --primary: #365B90;
    --primary-light: #496382;
    --accent: #365B90;
    --accent-hover: #2a4a75;
    --text: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 10px -2px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Layout */
    --container-max: 1200px;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-light);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.main-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand span {
    color: var(--accent);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a {
        margin: 0;
        width: 100%;
        padding: 0.5rem 0;
    }
    .nav-menu a[style*="background"] {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 1rem;
    background: var(--primary);
    color: white;
    overflow: hidden;
    text-align: center;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Box */
.search-container {
    background: white;
    padding: 0.5rem;
    border-radius: 100px;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    max-width: 900px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-right: 1px solid var(--border);
}

.search-field:last-of-type {
    border-right: none;
}

.search-field select, 
.search-field input {
    border: none;
    padding: 1rem 0.5rem;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Property Grid */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Modern Property Card */
.prop-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.prop-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.badge-featured {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

.badge-status {
    top: 1.25rem;
    right: 1.25rem;
    left: auto;
    background: rgba(15, 23, 42, 0.8);
    color: white;
}

.prop-img-container {
    height: 240px;
    position: relative;
    background: #cbd5e1;
    overflow: hidden;
}

.prop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.prop-content {
    padding: 1.75rem;
    flex-grow: 1;
}

.prop-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.prop-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.prop-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Property Details Page */
.prop-header-section {
    background: white;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.prop-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.prop-breadcrumb {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.prop-main-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main {
    grid-column: span 2;
    height: 500px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    user-select: none;
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 1.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 2001;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.prop-details-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    box-shadow: var(--card-shadow);
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 120px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 100px;
    font-weight: 700;
    margin-top: 2rem;
    transition: transform 0.2s;
}

.contact-btn:hover {
    transform: scale(1.02);
}

.contact-btn.whatsapp {
    background: #25d366;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 5rem 0 3rem;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .prop-main-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 1rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .search-container { 
        flex-direction: column; 
        border-radius: var(--radius);
        padding: 1rem;
    }
    .search-field { 
        border-right: none; 
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 0;
    }
    .search-btn {
        width: 100%;
        padding: 1rem;
        margin-top: 0.5rem;
    }
    .grid-cards { 
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-main {
        height: 300px;
        grid-column: span 1;
    }
    .gallery-item {
        height: 200px;
    }
    
    .prop-header-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .prop-header-grid div:last-child {
        text-align: left;
        width: 100%;
    }
    
    .prop-details-card {
        padding: 1.5rem;
    }
    .prop-details-card div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .sidebar-card {
        position: static;
        margin-top: 2rem;
    }
}
