/* Root Colors & Variables */
:root {
    --primary-gold: #f1c40f;
    --secondary-dark: #2c3e50;
    --accent-orange: #e67e22;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #ddd;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-brand .gold {
    color: var(--primary-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-gold);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline,
.btn-primary {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-outline {
    border: 2px solid var(--primary-gold);
    background-color: transparent;
    color: var(--secondary-dark);
}

.btn-outline:hover {
    background-color: var(--primary-gold);
    color: var(--secondary-dark);
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--secondary-dark);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--bg-white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-gold);
    width: 30px;
    border-radius: 6px;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

/* Search Section */
.search-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.search-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-dark);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-group select,
.form-group input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.1);
}

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

.btn-search:hover {
    background-color: #d4ac0d;
    transform: translateY(-2px);
}

/* Sort Options */
.sort-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.sort-btn:hover,
.sort-btn.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--secondary-dark);
}

/* Results Count */
.results-count {
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-header {
    background: var(--secondary-dark);
    color: var(--bg-white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.card-header p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.branda-badge {
    background: var(--primary-gold);
    color: var(--secondary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

.card-body {
    padding: 1.5rem;
}

.property-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-dark);
}

.property-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.info-value {
    color: var(--secondary-dark);
    font-weight: 600;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.map-btn {
    background: var(--secondary-dark);
    color: var(--bg-white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-btn:hover {
    background: var(--primary-gold);
    color: var(--secondary-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state p {
    font-size: 1.2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.page-btn.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--secondary-dark);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #1a252f 100%);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gold);
}

.footer-section h3 .gold {
    color: var(--primary-gold);
}

.footer-section p {
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    color: #bdc3c7;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    .btn-outline,
    .btn-primary {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

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

    .sort-options {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .nav-buttons {
        width: 100%;
        gap: 0.5rem;
    }

    .btn-outline,
    .btn-primary {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.75rem;
    }

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

    .hero-content p {
        font-size: 0.9rem;
    }

    .search-section {
        padding: 1rem;
    }

    .search-section h2 {
        font-size: 1.3rem;
    }

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

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

    .map-btn {
        width: 100%;
        justify-content: center;
    }
}
