/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --gold: #D4AF37;
    --gold-hover: #b5952f;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f9f9f9;
    --gray: #888888;
    --light-gray: #e0e0e0;
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography & Global Styles
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.dark-bg {
    background-color: var(--darker);
}

.text-center {
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.line {
    width: 60px;
    height: 2px;
    background-color: var(--gold);
    margin: 15px 0 20px;
}

.text-center .line {
    margin: 15px auto 20px;
}

.mt-2 {
    margin-top: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--darker);
    transform: translateY(-3px);
}

.btn-link {
    background: none;
    border: none;
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Glassmorphism Utility
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* ==========================================================================
   Loading Animation
   ========================================================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 5px;
    color: var(--gold);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gold);
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(10,10,10,0.9));
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ==========================================================================
   Search & Filter Section
   ========================================================================== */
.search-section {
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-glass {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.search-inputs {
    display: flex;
    gap: 20px;
}

.search-inputs input,
.search-inputs select {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-body);
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.search-inputs input:focus,
.search-inputs select:focus {
    border-color: var(--gold);
}

.search-inputs select option {
    background-color: var(--darker);
    color: var(--white);
}

.search-btn {
    padding: 15px 40px;
}

/* ==========================================================================
   Featured Properties
   ========================================================================== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.property-card {
    background: var(--darker);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

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

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

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

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--gold);
    color: var(--darker);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 2px;
}

.property-info {
    padding: 25px;
}

.property-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.location {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.location i {
    color: var(--gold);
}

.details {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--light-gray);
}

.details i {
    color: var(--gold);
    margin-right: 5px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
}

/* ==========================================================================
   Categories Section
   ========================================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.category-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.cat-overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.category-card:hover .cat-overlay h3 {
    color: var(--gold);
}

/* ==========================================================================
   About & Stats
   ========================================================================== */
.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--light-gray);
    margin-bottom: 20px;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item .counter {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
    font-weight: 700;
}

.stat-item .plus {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
}

.stat-item p {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 50px auto 30px;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    text-align: center;
    animation: fadeEffect 1s;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.quote-icon {
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.2);
    margin-bottom: 20px;
}

.review {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--white);
    line-height: 1.8;
}

.testimonial-slide h4 {
    color: var(--gold);
    margin-bottom: 5px;
}

.role {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-dots {
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--gray);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background-color: var(--gold);
    transform: scale(1.2);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-list {
    margin: 30px 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--light-gray);
}

.contact-list i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
}

.map-placeholder {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.map-overlay span {
    background: var(--gold);
    color: var(--darker);
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.contact-form {
    padding: 40px;
}

.contact-form h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-body);
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background-color: var(--darker);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--darker);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

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

.footer-brand p {
    color: var(--gray);
    margin-bottom: 20px;
    max-width: 300px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--darker);
}

.footer-links h3, .footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--gray);
}

.footer-links ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--gray);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-right: none;
    color: var(--white);
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    padding: 0 20px;
    background: var(--gold);
    color: var(--darker);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--gold-hover);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-legal a {
    margin-left: 20px;
}

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

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    position: relative;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--gold);
    color: var(--darker);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

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

.modal-info {
    padding: 40px;
}

.modal-price {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 600;
    margin: 10px 0;
}

.modal-location {
    color: var(--gray);
    margin-bottom: 20px;
}

.modal-specs {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.modal-info h3 {
    margin-bottom: 15px;
}

.amenities-list {
    margin-bottom: 30px;
}

.amenities-list li {
    margin-bottom: 10px;
    color: var(--light-gray);
}

.amenities-list i {
    color: var(--gold);
    margin-right: 10px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--darker);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    background: var(--gold-hover);
}

.floating-contact {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--darker);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-contact:hover {
    background: var(--gold);
    color: var(--darker);
    animation: none;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .about-flex { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .modal-body { grid-template-columns: 1fr; }
    .modal-gallery { height: 300px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        box-shadow: -10px 0 20px rgba(0,0,0,0.5);
    }
    
    .nav-links.active { right: 0; }
    
    .search-inputs { flex-direction: column; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .footer-grid { grid-template-columns: 1fr; }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
