/* Modern Land Insights Application Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    --panel-bg: rgba(13, 17, 23, 0.95);
    --panel-border: rgba(255, 255, 255, 0.1);
    --panel-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Styles */
.modern-app {
    background: linear-gradient(135deg, #0c1426 0%, #1a1d3a 25%, #2d1b4e 50%, #1a1d3a 75%, #0c1426 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Header */
.hero-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0.1;
    z-index: -1;
}

.hero-header h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Feature Navigation Cards */
.feature-nav-container {
    margin: 3rem 0;
}

.feature-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--panel-shadow);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
}

.feature-card * {
    position: relative;
    z-index: 1;
}

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

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

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-stats .badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
}

/* Workspace Panels */
.analysis-workspace,
.listings-workspace {
    padding: 2rem 0;
}

.workspace-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--panel-shadow);
    overflow: hidden;
    height: 100%;
    backdrop-filter: blur(20px);
}

.panel-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--panel-border);
    background: var(--glass-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.panel-title i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.25rem;
}

.panel-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.panel-content {
    padding: 2rem;
}

.panel-actions {
    display: flex;
    gap: 0.75rem;
}

/* Custom Buttons */
.btn-primary-custom {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Map Workspace */
.map-workspace .panel-content {
    padding: 0;
    height: 600px;
}

.map-container {
    height: 100%;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    overflow: hidden;
}

#map-view-container {
    height: 100%;
    width: 100%;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(102, 126, 234, 0.2);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Error States */
.error-state {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(245, 87, 108, 0.1);
    border: 1px solid rgba(245, 87, 108, 0.2);
    border-radius: var(--border-radius-md);
    color: #f5576c;
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Report Section */
.report-section {
    margin: 3rem 0;
}

.report-workspace {
    margin-bottom: 2rem;
}

/* Search Workspace Specific */
.search-workspace .panel-content {
    min-height: 400px;
}

/* Form Enhancements */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    transition: var(--transition-smooth);
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Card Enhancements */
.card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--panel-shadow);
}

.card-header {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--panel-border);
    padding: 1.5rem 2rem;
}

.card-body {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-header .stats-grid {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .panel-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .panel-content {
        padding: 1.5rem;
    }
    
    .map-workspace .panel-content {
        height: 400px;
    }
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

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

/* Feature Card Click Effects */
.feature-card.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.feature-card.active::before {
    opacity: 0.15;
}

/* Demo Content Styling */
.search-form-demo {
    padding: 1rem 0;
}

.demo-result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-top: 1rem;
}

.listings-demo-content {
    padding: 1rem 0;
}

.search-filters-demo {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.listings-grid {
    margin-top: 2rem;
}

.listing-card-demo {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
}

.listing-card-demo:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}

.listing-image {
    height: 200px;
    overflow: hidden;
}

.listing-image img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.listing-content {
    padding: 1.5rem;
}

.listing-content h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.listing-content .text-primary {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.full-report-demo {
    padding: 1rem 0;
}

.report-section-demo {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.report-section-demo strong {
    color: var(--text-primary);
}

.listings-results-demo {
    min-height: 300px;
}

/* CTA Button Enhancements */
.demo-search-btn,
.demo-listings-btn,
.demo-filter-btn,
.demo-analyze-btn,
.demo-full-report-btn,
.demo-load-more-btn {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.demo-search-btn:hover,
.demo-listings-btn:hover,
.demo-filter-btn:hover,
.demo-analyze-btn:hover,
.demo-full-report-btn:hover,
.demo-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.demo-search-btn::before,
.demo-listings-btn::before,
.demo-filter-btn::before,
.demo-analyze-btn::before,
.demo-full-report-btn::before,
.demo-load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.demo-search-btn:hover::before,
.demo-listings-btn:hover::before,
.demo-filter-btn:hover::before,
.demo-analyze-btn:hover::before,
.demo-full-report-btn:hover::before,
.demo-load-more-btn:hover::before {
    left: 100%;
}

/* Interactive States */
.demo-search-btn:active,
.demo-listings-btn:active,
.demo-filter-btn:active,
.demo-analyze-btn:active,
.demo-full-report-btn:active,
.demo-load-more-btn:active {
    transform: scale(0.98);
}

/* Form Control Enhancements */
.search-filters-demo .form-control,
.search-form-demo .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.search-filters-demo .form-control:focus,
.search-form-demo .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Responsive CTA Layout */
@media (max-width: 768px) {
    .search-filters-demo {
        padding: 1rem;
    }
    
    .search-filters-demo .row {
        gap: 0.75rem;
    }
    
    .listing-card-demo {
        margin-bottom: 1rem;
    }
    
    .listings-demo-content .col-md-4 {
        margin-top: 1rem;
    }
    
    .demo-listings-btn {
        width: 100%;
    }
}

/* Navigation Styling */
.navbar {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--panel-border);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Authentication Elements */
.contact-info {
    animation: fadeIn 0.3s ease;
}

.favorite-btn {
    transition: var(--transition-smooth);
}

.favorite-btn:hover {
    transform: translateY(-1px);
}

/* Modal Styling */
.modal-content {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
}

.modal-header {
    border-bottom: 1px solid var(--panel-border);
}

.modal-body {
    color: var(--text-secondary);
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

/* Form Elements in Modals */
.modal .form-control,
.modal .form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
}

.modal .form-control:focus,
.modal .form-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

.modal .form-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Dropdown Styling */
.dropdown-menu {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
}

.dropdown-item {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

.dropdown-divider {
    border-color: var(--panel-border);
}

/* User Menu Styling */
#user-menu .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--panel-border);
}

#user-menu .btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Email Verification Dashboard */
.verification-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.feature-restriction {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    height: 100%;
    transition: var(--transition-smooth);
}

.feature-restriction:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.restriction-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.feature-restriction h6 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.verification-panel {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.verification-panel .btn {
    transition: var(--transition-smooth);
}

.verification-panel .btn:hover {
    transform: translateY(-1px);
}

.feature-unlocked {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.success-icon {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Verification Status Indicators */
.verification-badge {
    position: relative;
    overflow: hidden;
}

.verification-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.verification-badge:hover::before {
    left: 100%;
}

/* Utilities Information Display */
.utilities-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.75rem;
}

.utility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.utility-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.utility-item i {
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

.utility-item span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Utility Status Colors */
.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-secondary {
    color: #6c757d !important;
}

/* Listing Card Enhancements */
.listing-card-demo {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
}

.listing-card-demo:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.listing-image {
    position: relative;
    overflow: hidden;
}

.listing-image img {
    transition: transform 0.3s ease;
}

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

.listing-content {
    padding: 1rem;
}

/* Property Analysis Enhancements */
.property-analysis-demo {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.demo-result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 1rem;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b5b95 100%);
}