/* Landing Page Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #bdc3c7;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

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

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
    color: rgba(255,255,255,0.9);
    padding: 12px 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.text-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    z-index: 1030; /* Ensure navbar stays on top */
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(44, 62, 80, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}



.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-color);
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    opacity: 0.1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    position: relative;
    z-index: 3;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Features Section */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-light);
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Properties Section */
.property-card {
    background: white !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    min-height: 300px !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

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

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
    position: relative;
    z-index: 2;
}

.property-thumbnail {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.property-thumbnail[src=""] {
    opacity: 0.5;
}

/* Removed shimmer animation to fix image display issues */

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

.property-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.property-location {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-badge {
    background: var(--light-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.property-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.properties-placeholder {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 auto; /* Center the form */
    width: 100%; /* Ensure full width within container */
    max-width: none; /* Remove any max-width constraints */
    transform: translateX(0) !important; /* Prevent any slide animations */
    position: relative; /* Ensure proper positioning */
}

/* Ensure contact section proper alignment */
#contact .col-lg-8 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Fix form alignment on all screen sizes */
#contact .contact-form {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure the message header is also aligned */
#contact .text-center.mb-4.mx-auto {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Contact Info Cards */
.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--shadow-light);
}

.contact-info-card h5 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.contact-info-card .btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}

.contact-info-card .btn-outline-primary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Form Check Elements */
.form-check-container {
    background: var(--light-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-check-container .form-check {
    margin-bottom: 0.5rem !important;
    padding: 0.25rem 0.5rem !important;
    display: flex !important;
    align-items: flex-start !important; /* Override Bootstrap's center alignment */
    gap: 0.5rem !important; /* Use gap instead of margin for better spacing */
}

.form-check-container .form-check-input {
    margin: 0 !important; /* Remove default margins */
    margin-top: 0.125rem !important; /* Small top margin to align with first line of text */
    flex-shrink: 0 !important;
    width: 1rem !important;
    height: 1rem !important;
}

.form-check-container .form-check-input:checked {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.form-check-container .form-check-label {
    font-weight: 400 !important;
    color: var(--text-color) !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important; /* Ensure consistent line height */
    margin: 0 !important; /* Remove any default margins */
}

.form-check-container .form-check-label:hover {
    color: var(--secondary-color) !important;
}

/* Enhanced Form Styling */
.form-control::placeholder,
.form-select option:first-child {
    color: var(--text-muted);
    font-style: italic;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

/* Submit Button Enhancement */
.contact-form .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border-radius: 8px;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Security Notice Styling */
.contact-form .text-muted {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}



/* Footer */
footer {
    background: var(--dark-color) !important;
}



.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 6rem 0 2rem 0; /* Add top padding to account for fixed navbar */
        min-height: calc(100vh - 4rem); /* Adjust min-height */
    }
    
    .hero-content {
        margin-bottom: 2rem;
        padding-top: 2rem; /* Additional padding for better spacing */
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .feature-card,
    .property-card,
    .contact-form {
        margin-bottom: 1.5rem;
    }
    
    .property-actions {
        flex-direction: column;
    }
    
    .property-actions .btn {
        width: 100%;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
    
    .navbar {
        padding: 0.75rem 0; /* Slightly reduce navbar padding on mobile */
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 90vh;
        padding: 7rem 0 1rem 0; /* Increase top padding for smaller screens */
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .feature-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .form-check-container {
        padding: 0.75rem;
    }
    
    .form-check-container .form-check {
        margin-bottom: 0.75rem !important;
        padding: 0.375rem 0.25rem !important; /* Slightly adjust padding for mobile */
        gap: 0.4rem !important; /* Slightly smaller gap on mobile */
    }
    
    .form-check-container .form-check-input {
        width: 1rem !important;
        height: 1rem !important;
        margin-top: 0.1rem !important; /* Adjust top margin for mobile */
    }
    
    .form-check-container .form-check-label {
        font-size: 0.9rem !important; /* Slightly smaller font on mobile */
        line-height: 1.3 !important;
    }
    
    .contact-form .btn-primary {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    /* Ensure contact form stays aligned on mobile */
    #contact .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #contact .col-lg-8 {
        padding-left: 0;
        padding-right: 0;
    }
    
    .contact-form {
        margin: 0 !important;
        padding: 1.5rem !important;
    }
    
    .property-content {
        padding: 1rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #0066cc;
        --text-color: #000000;
        --border-color: #666666;
    }
    
    .btn-primary,
    .btn-accent {
        border: 2px solid currentColor;
    }
    
    .feature-card,
    .property-card,
    .contact-form {
        border: 2px solid var(--border-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-content,
    .hero-image {
        animation: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .modal,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto;
    }
    
    .btn {
        display: none !important;
    }
    
    .feature-card,
    .property-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
} 

/* Override any slide animations specifically for contact form */
.contact-form.slide-in-left {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: none !important;
} 