/* assets/css/style.css */
:root {
    --primary: #BD710D;
    --primary-dark: #9A5A0A;
    --primary-light: #E6A557;
    --text-dark: #1A1A1A;
    --text-gray: #4A4A4A;
    --bg-light: #FDF8F2;
    --bg-white: #FFFFFF;
    --border-light: #E8E0D8;
    --success: #2E7D32;
    --error: #C62828;
    --warning: #ED6C02;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 24px;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
}

.logo i {
    font-size: 2rem;
}

.nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.whatsapp-icon {
    background: #25D366;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.whatsapp-icon:hover {
    transform: scale(1.05);
    background: #128C7E;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #2C2418 0%, #1A1612 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.search-filter {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(189,113,13,0.2);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-reset {
    background: #e0e0e0;
    color: var(--text-dark);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.btn-reset:hover {
    background: #c0c0c0;
}

/* ===== PROPERTIES SECTION ===== */
.properties-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.125rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.property-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-badge-group {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-listing {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary);
    color: white;
}

.badge-listing.rent {
    background: #2E7D32;
}
.badge-listing.lease {
    background: #1976D2;
}
.badge-listing.sale {
    background: #ED6C02;
}

.badge-price-updated {
    background: #FF9800;
    color: #1A1A1A;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.badge-sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    z-index: 3;
    letter-spacing: 4px;
}

.card-image {
    height: 220px;
    background: #f0f0f0;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .card-image img {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-gray);
    background: #F5F5F5;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 8px 0;
}

.details {
    display: flex;
    gap: 16px;
    margin: 12px 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.details i {
    width: 18px;
    color: var(--primary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 12px;
}

.btn-outline {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
    text-align: center;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.whatsapp-link {
    background: #25D366;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-link:hover {
    transform: scale(1.1);
}

.no-results {
    text-align: center;
    grid-column: 1 / -1;
    padding: 60px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
}

.no-results i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

/* ===== SINGLE PROPERTY PAGE (Basic) ===== */
.property-main {
    padding: 60px 0;
    min-height: 60vh;
}

.property-header {
    margin-bottom: 32px;
}

.property-header h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-badge.available {
    background: #E8F5E9;
    color: #2E7D32;
}
.status-badge.sold {
    background: #FFEBEE;
    color: #C62828;
}
.status-badge.leased {
    background: #E3F2FD;
    color: #1565C0;
}

.price-large {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.property-details {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ===== FOOTER ===== */
.footer {
    background: #1A1A1A;
    color: #D0D0D0;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info .logo {
    margin-bottom: 16px;
}
.footer-info .logo a {
    color: white;
}
.footer-info p {
    line-height: 1.6;
    margin-bottom: 16px;
}
.contact-info p {
    margin: 8px 0;
}
.contact-info i {
    width: 28px;
    color: var(--primary);
}

.footer-links h4,
.footer-social h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.125rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #D0D0D0;
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary);
}
.social-icons {
    display: flex;
    gap: 20px;
}
.social-icons a {
    background: rgba(255,255,255,0.1);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}
.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .nav {
        display: none;
        width: 100%;
    }
    .nav.show {
        display: block;
    }
    .nav ul {
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
    .search-filter {
        flex-direction: column;
    }
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .contact-info i {
        width: auto;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }
    .property-card {
        margin: 0;
    }
    .price-large {
        font-size: 1.25rem;
    }
}