/* ==================== ROOT VARIABLES ==================== */
:root {
    /* Colors */
    --color-primary: #C8B8A8;
    --color-primary-dark: #A89080;
    --color-secondary: #5B6B7C;
    --color-dark: #2C3E50;
    --color-dark-blue: #34495E;
    --color-white: #ffffff;
    --color-light: #F5F5F5;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #E0E0E0;
    --color-highlight: #f1dac4;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ==================== GLOBAL RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==================== DIAGONAL BACKGROUND PATTERN ==================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(165deg, var(--color-light) 0%, var(--color-light) 60%, rgba(200, 184, 168, 0.15) 60%, rgba(200, 184, 168, 0.15) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ==================== BUTTON STYLES ==================== */
.btn-details {
    padding: 10px 20px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-details:hover {
    background-color: var(--color-dark-blue);
    gap: 10px;
}

/* ==================== HEADER & NAVIGATION ==================== */
.property-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transition: all var(--transition-normal);
}

.property-header.scrolled {
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.property-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.property-nav-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.property-nav-brand:hover {
    transform: scale(1.05);
}

.property-brand-logo {
    width: 120px;
    height: 50px;
}

.property-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.property-brand-tagline {
    font-size: 0.7rem;
    color: var(--color-light);
    letter-spacing: 2px;
    font-weight: 400;
    margin-top: 2px;
}

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

.property-nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 1rem;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

.property-nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.property-hero {
    min-height: 50vh;
    background-image: url(images/property-banner-background.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 60px;
}

.property-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.97) 0%, rgba(52, 73, 94, 0.52) 100%);
}

.property-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

.property-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.property-hero-title .highlight {
    color: var(--color-highlight);
}

.property-hero-desc {
    font-size: 1.2rem;
    color: var(--color-light);
    margin-bottom: 2rem;
}

/* ==================== SEARCH & FILTER SECTION ==================== */
.property-search-section {
    padding: var(--spacing-lg) 5%;
    background-color: transparent;
}

.property-search-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Bar */
.property-search-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.property-search-box {
    position: relative;
    width: 100%;
}

.property-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--color-text-light);
}

.property-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 55px;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-white);
    transition: all var(--transition-fast);
}

.property-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200, 184, 168, 0.1);
}

/* Autocomplete Suggestions */
.property-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 100;
}

.property-suggestions.show {
    display: block;
}

.property-suggestion-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--color-border);
}

.property-suggestion-item:last-child {
    border-bottom: none;
}

.property-suggestion-item:hover {
    background-color: var(--color-light);
}

.property-suggestion-title {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.3rem;
}

.property-suggestion-location {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Filter Controls */
.property-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Category Filter */
.property-category-filter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.property-category-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-white);
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.property-category-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.property-category-btn.active {
    background-color: var(--color-primary);
    color: var(--color-dark);
    border-color: var(--color-primary);
}

/* Sort Dropdown */
.property-sort-wrapper {
    position: relative;
}

.property-sort-select {
    padding: 0.75rem 3rem 0.75rem 1.5rem;
    background-color: var(--color-white);
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    appearance: none;
    transition: all var(--transition-fast);
}

.property-sort-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.property-sort-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-text-light);
}

/* Property Count */
.property-count-wrapper {
    padding: 1rem 0;
    border-top: 2px solid var(--color-border);
}

.property-count {
    font-size: 1rem;
    color: var(--color-text-light);
}

#property-count-number {
    font-weight: 700;
    color: var(--color-primary);
}

/* ==================== PROPERTIES LISTING ==================== */
.property-listing {
    padding: 0 5% var(--spacing-xl);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.property-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.property-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
}

.property-card-badge-plot {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.property-card-badge-combo {
    background-color: #4caf50;
    color: var(--color-white);
}

.property-card-location {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-dark);
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.8rem;
}

.property-card-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.property-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.property-card-price {
    font-size: 1.4rem;
    color: var(--color-secondary);
    font-weight: 700;
}

/* No Results Message */
.property-no-results {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.property-no-results i {
    font-size: 4rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.property-no-results h3 {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.property-no-results p {
    color: var(--color-text-light);
}

/* ==================== FOOTER DIVIDER ==================== */
.property-footer-divider {
    height: 120px;
    background: linear-gradient(to bottom right, var(--color-light) 0%, var(--color-light) 49%, var(--color-dark) 50%, var(--color-dark) 100%);
}

/* ==================== FOOTER ==================== */
.property-footer {
    background-color: var(--color-dark);
    padding: var(--spacing-lg) 5% var(--spacing-md);
    color: var(--color-light);
}

.property-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.property-footer-brand {
    grid-column: span 1;
}

.property-footer-logo {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.property-footer-desc {
    color: var(--color-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.property-footer-social-label {
    font-size: 0.9rem;
    color: var(--color-light);
    margin-bottom: 0.8rem;
}

.property-social-icons {
    display: flex;
    gap: 1rem;
}

.property-social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(200, 184, 168, 0.15);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.property-social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.property-footer-heading {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.property-footer-links li,
.property-footer-locations li {
    margin-bottom: 0.8rem;
}

.property-footer-links a {
    color: var(--color-light);
    transition: all var(--transition-fast);
}

.property-footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.property-footer-locations li {
    color: var(--color-light);
    font-size: 0.95rem;
}

.property-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.property-footer-contact i {
    color: var(--color-primary);
    margin-top: 4px;
    font-size: 1.1rem;
}

.property-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(200, 184, 168, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-footer-bottom p {
    color: var(--color-light);
    font-size: 0.9rem;
}

.property-footer-legal {
    display: flex;
    gap: 2rem;
}

.property-footer-legal a {
    color: var(--color-light);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.property-footer-legal a:hover {
    color: var(--color-primary);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media (max-width: 968px) {
    .property-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: auto;
        min-height: fit-content;
        background-color: var(--color-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 30px;
        gap: 2rem;
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 0 20px;
    }

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

    .property-nav-toggle {
        display: block;
    }

    .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .property-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .property-category-filter {
        justify-content: center;
    }

    .property-footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    body::before {
        background: linear-gradient(155deg, var(--color-light) 0%, var(--color-light) 70%, rgba(200, 184, 168, 0.15) 70%, rgba(200, 184, 168, 0.15) 100%);
    }

    .property-nav {
        padding: 1rem 4%;
    }

    .property-brand-logo {
        width: 100px;
        height: 40px;
    }

    .property-brand-tagline {
        font-size: 0.6rem;
    }

    .property-hero {
        padding: 120px 4% 40px;
    }

    .property-search-section,
    .property-listing {
        padding: var(--spacing-md) 4%;
    }

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

    .property-category-btn {
        flex: 1;
        text-align: center;
    }

    .property-footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .property-footer-bottom {
        text-align: center;
    }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
    .property-nav-menu {
        width: 85%;
    }
}
