:root {
    --primary-color: #c9a55c;
    /* Gold */
    --primary-hover: #b08d45;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), var(--dark-bg));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
}

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

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Search Section */
.search-section {
    padding: 3rem 5%;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-container {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.search-container input,
.search-container select {
    padding: 12px 20px;
    border-radius: 5px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

.search-container input:focus,
.search-container select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Listings */
.listings-section {
    padding: 4rem 5%;
}

.listings-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

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

.property-card {
    display: block;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

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

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

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

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.price {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

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

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

.card-footer .specs {
    display: flex;
    gap: 1rem;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.card-footer .specs span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-footer .specs i {
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding: 6rem 5%;
    background: linear-gradient(to top, #000, var(--dark-bg));
    text-align: center;
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.contact-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form {
    margin: 2rem 0;
    text-align: left;
}

.contact-web {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal[style*="display: flex"] {
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--primary-color);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
}

.modal[style*="display: flex"] .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
    line-height: 1;
}

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

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-property h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.modal-property p {
    margin: 0.5rem 0;
    color: var(--text-gray);
}

.modal-property .price {
    color: var(--primary-color) !important;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: 'Outfit', sans-serif;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: flex;
    gap: 1rem;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

@media (max-width: 600px) {
    .search-container {
        flex-direction: column;
    }

    .search-container input,
    .search-container select,
    .search-container button {
        width: 100%;
        min-width: unset;
    }

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

    .form-row {
        flex-direction: column;
        gap: 0;
    }

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

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #2d3e54 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.skeleton-img {
    height: 250px;
    width: 100%;
    background: linear-gradient(90deg, #1e293b 25%, #2d3e54 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
    flex: 1;
}

.skeleton-text {
    height: 24px;
    margin-bottom: 1rem;
    width: 80%;
}

.skeleton-text.short {
    width: 40%;
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge.live {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.badge.new {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(201, 165, 92, 0.4);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 107, 0.8);
    }
}