/* Custom CSS for Applegate REITs */

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --warning-color: #f97316;
    --success-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 0; /* Remove padding since navbar is now transparent */
}

.main-content {
    min-height: 100vh;
}

/* Transparent Navbar Styles */
.navbar-transparent {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-transparent:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Enhanced navbar for better visibility over slideshow */
.navbar-transparent.over-slideshow {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.2);
}

/* Text shadow for better readability */
.navbar-nav .nav-link {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.navbar-brand {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.8));
}

.navbar-logo-large {
    height: 80px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.navbar-logo {
    height: 40px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.navbar-logo-large:hover,
.navbar-logo:hover {
    transform: scale(1.05);
}

/* Mobile Navbar Toggler */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem;
    border-radius: 8px;
    background-color: rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(59, 130, 246, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.navbar-nav .nav-link {
    font-weight: 700;
    color: #2c3e50 !important;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem !important;
    text-shadow: none;
    border-radius: 0;
    margin: 0 0.25rem;
    font-size: 1rem;
    position: relative;
    background-color: transparent;
}

.navbar-nav .nav-link:hover {
    color: #1e40af !important;
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: none;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: transparent;
    font-weight: 800;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
    padding-left: 2rem;
}

.dropdown-item i {
    transition: all 0.3s ease;
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

/* Property Slideshow Styles */
.slideshow-hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
    position: relative;
}

.slide-background-pure {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    text-align: left;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    padding: 3rem 0;
}

.carousel-caption-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption-overlay p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
}

.carousel-caption-overlay .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-caption-overlay .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    margin: 0 5px;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 80px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 3;
    cursor: pointer;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* REIT Details Page Styles */
.gallery-container {
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    border-radius: 0 0 2rem 2rem;
}

.gallery-main-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-main-image:hover {
    transform: scale(1.02);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

.cursor-pointer {
    cursor: pointer;
}

.z-index-high {
    z-index: 10;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9) !important;
}

.gallery-nav-btn,
.modal-nav-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover,
.modal-nav-btn:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.gallery-thumbnails .thumbnail-item {
    cursor: pointer;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-thumbnail {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.property-details-card,
.property-description-card,
.property-specs-card,
.property-features-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.property-details-card:hover,
.property-description-card:hover,
.property-specs-card:hover,
.property-features-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.property-title {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.property-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.property-info-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.property-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.investment-summary {
    border-radius: 1rem !important;
    overflow: hidden;
}

.summary-item {
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trust-indicators .trust-item {
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.trust-indicators .trust-item:hover {
    transform: translateY(-2px);
}

.trust-indicators i {
    font-size: 1.5rem;
}

/* Image Modal Styles */
#imageModal .modal-content {
    background: transparent !important;
}

#imageModal .modal-body {
    border-radius: 1rem;
    overflow: hidden;
}

#modalImage {
    max-height: 80vh;
    border-radius: 1rem;
}

/* Property Specifications Grid */
.property-info-item .fw-semibold {
    color: #2c3e50;
    font-size: 1rem;
}

.property-info-item .text-muted {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        height: 40vh;
        min-height: 300px;
    }
    
    .property-title {
        font-size: 2rem !important;
    }
    
    .gallery-nav-btn,
    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .investment-summary {
        position: relative !important;
        top: auto !important;
    }
}

/* Chart container styles */
.chart-container {
    position: relative;
    overflow: hidden;
}

.chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Animation for cards */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-details-card,
.property-description-card,
.property-specs-card,
.property-features-card {
    animation: cardSlideIn 0.6s ease-out;
}

/* Stagger the animations */
.property-description-card {
    animation-delay: 0.1s;
}

.property-specs-card {
    animation-delay: 0.2s;
}

.property-features-card {
    animation-delay: 0.3s;
}

/* Footer Styles */
.footer {
    margin-top: auto;
    background-color: #1a1a1a !important;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.footer h5,
.footer h6 {
    color: white !important;
}

.footer p {
    color: #b0b0b0 !important;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #b0b0b0 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

/* User Dropdown Navigation */
.navbar-nav .dropdown-toggle {
    color: #2c3e50 !important;
    font-weight: 700;
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: none !important;
}

.navbar-nav .dropdown-toggle:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: none !important;
}

.navbar-nav .dropdown-toggle i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-logo-large {
        height: 50px;
    }
    
    .navbar-nav .btn {
        margin: 0.25rem 0;
        width: 100%;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.1rem 0;
        text-align: center;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(59, 130, 246, 0.15);
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(59, 130, 246, 0.3);
    }
    
    /* Mobile navbar background for better contrast */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(59, 130, 246, 0.2);
    }
    
    .carousel-caption-overlay h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption-overlay p {
        font-size: 1rem;
    }
    
    .carousel-caption-overlay .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .slideshow-hero-section {
        height: 70vh;
    }
    
    .carousel-item {
        height: 70vh;
    }
    
    .carousel-caption-overlay {
        padding: 2rem 0;
    }
}

/* Auth Pages Styles */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.auth-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Dashboard Styles */
.dashboard-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

/* Recent Activity Styles */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    transition: background-color 0.2s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.activity-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.activity-item:last-child {
    border-bottom: none !important;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-title {
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.activity-description {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
}

.activity-amount {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Typography */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem !important;
}

.navbar {
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

/* Login/Register Button Styles */
.navbar-nav .btn {
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
    border: 2px solid transparent;
}

.navbar-nav .btn-outline-primary {
    color: #2c3e50 !important;
    border-color: var(--primary-color);
    background-color: transparent;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.navbar-nav .btn-outline-primary:hover {
    color: white !important;
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.navbar-nav .btn-primary {
    color: white !important;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.navbar-nav .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #1e40af !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 0;
}

.hero-buttons .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* REIT Cards */
.reit-types-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.section-title {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-description {
    color: #6c757d;
    line-height: 1.7;
}

.modern-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.card-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.02), rgba(0, 123, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.modern-card:hover .card-gradient-overlay {
    opacity: 1;
}

.reit-icon-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.modern-card:hover .reit-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

.reit-card {
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.reit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reit-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.reit-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.reit-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.reit-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #495057;
    display: flex;
    align-items: center;
}

.reit-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-action {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-card:hover .card-action {
    color: #0056b3;
    transform: translateX(5px);
}

.reit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
}

.reit-stats .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Features Section */
.features-section {
    background-color: var(--light-color);
}

.feature-item {
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Investment Cards */
.investment-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.investment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.investment-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.investment-card:hover .card-img-top {
    transform: scale(1.05);
}

.investment-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.investment-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.investment-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.investment-stats .stat-item i {
    color: var(--primary-color);
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid #e5e7eb;
}

.property-features .feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Image Gallery */
.property-gallery {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.gallery-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: var(--primary-color);
}

/* Image Navigation Controls */
#imageNavigation .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

#imageNavigation .btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

#imageCounter {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Property Details */
.property-details-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.property-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.property-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
}

.property-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 400px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    display: none; /* Hidden by default */
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-body {
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8fafc;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    max-width: 80%;
}

.chat-message.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.chat-message.agent {
    background: white;
    color: var(--dark-color);
    border: 1px solid #e5e7eb;
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    gap: 0.5rem;
}

.chat-input .btn-attach {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.chat-input .btn-attach:hover {
    color: var(--primary-color);
}

.chat-input input[type="text"] {
    flex: 1;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    outline: none;
}

.chat-input input[type="text"]:focus {
    border-color: var(--primary-color);
}

.chat-input button:not(.btn-attach) {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-input button:not(.btn-attach):hover {
    background: var(--primary-dark);
}

.file-preview {
    padding: 0.75rem 1rem;
    margin: 0.5rem 1rem;
    border-top: 1px solid #e5e7eb;
}

.file-message {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 250px;
}

.file-message img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    cursor: pointer;
}

.file-message a {
    color: inherit;
    text-decoration: none;
    word-break: break-all;
}

.file-message a:hover {
    text-decoration: underline;
}

.chat-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
}

.chat-fab:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* Chat Login Modal */
.chat-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    backdrop-filter: blur(5px);
}

.chat-login-modal {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chat-login-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-login-header h5 {
    margin: 0;
    font-weight: 600;
}

.chat-login-header .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.chat-login-header .btn-close:hover {
    opacity: 1;
}

.chat-login-header .btn-close::before {
    content: '×';
}

.chat-login-body {
    padding: 2rem;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background-color: var(--dark-color) !important;
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: 1rem;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .chat-widget {
        width: 100%;
        height: calc(100% - 80px); /* Account for navbar height */
        bottom: 0;
        right: 0;
        top: 80px; /* Start below the navbar */
        border-radius: 0;
    }
    
    .property-info-grid {
        grid-template-columns: 1fr;
    }
    
    .investment-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .property-features {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    /* Additional mobile chat adjustments */
    .chat-widget {
        width: 100vw !important;
        height: calc(100vh - 70px) !important; /* Account for smaller navbar on mobile */
        top: 70px !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
        z-index: 1050; /* Ensure it's above other elements */
    }
    
    .chat-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .chat-messages {
        padding: 0.75rem;
    }
    
    .chat-message {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-custom-lg {
    box-shadow: var(--shadow-lg);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}