/* Enhanced Analysis Theater Styles */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --background-color: #FAFAFA;
    --card-background: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.3em;
}

h2 {
    font-size: 3.4210526315789rem;
}

/* Notification Bars */
.notification-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--card-background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s var(--transition-smooth);
}

.notification-bar.top-bar {
    top: 0;
}

@media (max-width: 768px) {
    .notification-bar.top-bar {
        position: fixed; /* Ensure it stays at the top */
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001; /* Ensure it's above other content */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 { /* Target logo container */
        padding-top: 1rem; /* Reduce top padding for logo */
        padding-bottom: 1rem; /* Add bottom padding to separate from heading */
        text-align: center; /* Center logo horizontally */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 img { /* Target logo image */
        display: block; /* Ensure block display for centering */
        margin: 0 auto; /* Center the logo image */
    }

    .search-section {
        flex-direction: column; /* Stack items vertically on mobile */
    }

    .search-section h1 {
        margin-top: 20px; /* Add some space between logo and heading */
    }
}
/* Enhanced Analysis Theater Styles */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --background-color: #FAFAFA;
    --card-background: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.3em;
}

h2 {
    font-size: 3.4210526315789rem;
}

/* Notification Bars */
.notification-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--card-background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s var(--transition-smooth);
}

.notification-bar.top-bar {
    top: 0;
}

@media (max-width: 768px) {
    .notification-bar.top-bar {
        position: fixed; /* Ensure it stays at the top */
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001; /* Ensure it's above other content */
    }
}

.notification-bar.bottom-bar {
    bottom: 0;
    padding: 0.3rem; /* Reduced padding */
    background: #f9fafb; /* Changed background color */
}

.notification-bar.bottom-bar a {
	
	font-size: 13px;
}

.notification-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.notification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem;
}

.notification-content span {
    font-size: 1.125rem;
    color: #3d4145;
}

.notification-cta {
    display: flex;
    gap: 0.5rem; /* Reduced gap for a slimmer profile */
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping to keep buttons on one line */
}

@media (max-width: 768px) {
    .notification-content span {
        display: none; /* Hide the text on mobile */
    }

    .notification-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .notification-cta {
        flex-direction: row; /* Ensure buttons are on one line */
        width: 100%;
    }

    .notification-cta .btn {
        width: auto; /* Allow buttons to size based on content */
    }
}

/* Base Layout */
.analysis-theater {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--background-color);
}

/* Section Container */
.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s var(--transition-smooth);
    overflow-y: auto;
    padding: 2rem;
    background: var(--background-color);
}

.section.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

/* Special handling for quick insights and map analysis */
#quick-insights.visible,
#map-analysis.visible {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

#quick-insights.visible + #map-analysis.visible {
    margin-top: 2rem;
}

/* Initial Section Visibility */
#search-section {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

#search-section.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px);
    z-index: -1;
}

/* Section Content Container */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    transform: translateY(0);
    transition: all 0.6s var(--transition-smooth);
}

.section.active .section-content {
    transform: translateY(0);
    opacity: 1;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: all 0.5s var(--transition-smooth);
    flex: 1;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: #E5E7EB;
    transform: translateY(-50%);
}

.progress-step:last-child::after {
    display: none;
}

.step-indicator {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.5s var(--transition-smooth);
    border: 3px solid #E5E7EB;
    flex-shrink: 0;
}

.step-indicator .step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.5s var(--transition-smooth);
}

.step-indicator.processing {
    border-color: var(--warning-color);
    background: var(--warning-color);
    transform: scale(1.05);
}

.step-indicator.processing .step-number {
    color: white;
}

.step-indicator.complete {
    border-color: var(--success-color);
    background: var(--success-color);
    transform: scale(1.05);
}

.step-indicator.complete .step-number {
    color: white;
}

.step-content {
    opacity: 0.7;
    transition: all 0.3s var(--transition-smooth);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.progress-step.active {
    transform: translateY(-4px);
}

.progress-step.active .step-content {
    opacity: 1;
}

.progress-step.active .step-indicator {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .progress-step {
        width: 100%;
        padding: 1rem;
    }

    .progress-step::after {
        width: 2px;
        height: 2rem;
        top: auto;
        bottom: -2rem;
        left: 2.5rem;
        transform: none;
    }
}

/* Enhanced Search Section */
.search-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
}

@media (max-width: 768px) {
    .search-section {
        padding-top: 80px; /* Increased padding to account for fixed top bar */
        flex-direction: column; /* Stack logo and content vertically */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center text within the section */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 { /* Target logo container */
        margin-top: 0; /* Position logo right after the notification bar */
        padding-top: 0.5rem; /* Minimal top padding */
        padding-bottom: 0.5rem; /* Minimal bottom padding */
        text-align: center; /* Center logo horizontally */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 img { /* Target logo image */
        display: block; /* Ensure block display for centering */
        margin: 0 auto; /* Center the logo image */
        max-width: 120px; /* Further reduce logo size */
        height: auto; /* Maintain aspect ratio */
    }
}
/* Enhanced Analysis Theater Styles */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --background-color: #FAFAFA;
    --card-background: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.3em;
}

h2 {
    font-size: 3.4210526315789rem;
}

/* Notification Bars */
.notification-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--card-background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s var(--transition-smooth);
}

.notification-bar.top-bar {
    top: 0;
}

.notification-bar.bottom-bar {
    bottom: 0;
    padding: 0.3rem; /* Reduced padding */
    background: #f9fafb; /* Changed background color */
}

.notification-bar.bottom-bar a {
	
	font-size: 13px;
}

.notification-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.notification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem;
}

.notification-content span {
    font-size: 1.125rem;
    color: #3d4145;
}

.notification-cta {
    display: flex;
    gap: 0.5rem; /* Reduced gap for a slimmer profile */
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping to keep buttons on one line */
}

@media (max-width: 768px) {
    .notification-content span {
        display: none; /* Hide the text on mobile */
    }

    .notification-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .notification-cta {
        flex-direction: row; /* Ensure buttons are on one line */
        width: 100%;
    }

    .notification-cta .btn {
        width: auto; /* Allow buttons to size based on content */
    }
}

/* Base Layout */
.analysis-theater {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--background-color);
}

/* Section Container */
.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s var(--transition-smooth);
    overflow-y: auto;
    padding: 2rem;
    background: var(--background-color);
}

.section.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

/* Special handling for quick insights and map analysis */
#quick-insights.visible,
#map-analysis.visible {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

#quick-insights.visible + #map-analysis.visible {
    margin-top: 2rem;
}

/* Initial Section Visibility */
#search-section {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

#search-section.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px);
    z-index: -1;
}

/* Section Content Container */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    transform: translateY(0);
    transition: all 0.6s var(--transition-smooth);
}

.section.active .section-content {
    transform: translateY(0);
    opacity: 1;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: all 0.5s var(--transition-smooth);
    flex: 1;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: #E5E7EB;
    transform: translateY(-50%);
}

.progress-step:last-child::after {
    display: none;
}

.step-indicator {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.5s var(--transition-smooth);
    border: 3px solid #E5E7EB;
    flex-shrink: 0;
}

.step-indicator .step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.5s var(--transition-smooth);
}

.step-indicator.processing {
    border-color: var(--warning-color);
    background: var(--warning-color);
    transform: scale(1.05);
}

.step-indicator.processing .step-number {
    color: white;
}

.step-indicator.complete {
    border-color: var(--success-color);
    background: var(--success-color);
    transform: scale(1.05);
}

.step-indicator.complete .step-number {
    color: white;
}

.step-content {
    opacity: 0.7;
    transition: all 0.3s var(--transition-smooth);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.progress-step.active {
    transform: translateY(-4px);
}

.progress-step.active .step-content {
    opacity: 1;
}

.progress-step.active .step-indicator {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .progress-step {
        width: 100%;
        padding: 1rem;
    }

    .progress-step::after {
        width: 2px;
        height: 2rem;
        top: auto;
        bottom: -2rem;
        left: 2.5rem;
        transform: none;
    }
}

/* Enhanced Search Section */
.search-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
}

@media (max-width: 768px) {
    .search-section {
        padding-top: 60px; /* Add padding to account for fixed top bar */
        flex-direction: column; /* Stack logo and content vertically */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center text within the section */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 { /* Target logo container */
        padding-top: 1rem; /* Reduce top padding for logo */
        padding-bottom: 1rem; /* Add bottom padding to separate from heading */
        text-align: center; /* Center logo horizontally */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 img { /* Target logo image */
        display: block; /* Ensure block display for centering */
        margin: 0 auto; /* Center the logo image */
    }
}

.search-section h1 {
    font-size: 3.4210526315789rem;
    font-weight: 600;
    line-height: 1.3em;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 { /* Target logo container */
        z-index: 0; /* Ensure logo is behind notification bar */
        padding-top: 0.5rem; /* Minimal padding */
        padding-bottom: 0.5rem; /* Minimal padding */
        text-align: center; /* Center logo horizontally */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 img { /* Target logo image */
        display: block; /* Ensure block display for centering */
        margin: 0 auto; /* Center the logo image */
        max-width: 150px; /* Reduce logo size */
        height: auto; /* Maintain aspect ratio */
    }

    .search-section h1 {
        font-size: 2rem; /* Reduced font size for mobile */
        margin: 0.5rem 0; /* Minimal spacing */
        text-align: center; /* Center the heading */
    }

    .search-container {
        position: fixed; /* Keep search bar fixed */
        top: 120px; /* Position below notification bar */
        left: 0;
        right: 0;
        margin: 0 auto; /* Center the search bar */
        max-width: 400px; /* Limit width */
        z-index: 1001; /* Ensure it's above other content */
    }

    .search-input {
        width: 100%; /* Ensure search bar takes full width */
    }
}
/* Enhanced Analysis Theater Styles */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --background-color: #FAFAFA;
    --card-background: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.3em;
}

h2 {
    font-size: 3.4210526315789rem;
}

/* Notification Bars */
.notification-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--card-background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s var(--transition-smooth);
}

.notification-bar.top-bar {
    top: 0;
}

@media (max-width: 768px) {
    .notification-bar.top-bar {
        position: fixed; /* Ensure it stays at the top */
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001; /* Ensure it's above other content */
    }
}
/* Enhanced Analysis Theater Styles */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --background-color: #FAFAFA;
    --card-background: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.3em;
}

h2 {
    font-size: 3.4210526315789rem;
}

/* Notification Bars */
.notification-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--card-background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s var(--transition-smooth);
}

.notification-bar.top-bar {
    top: 0;
}

@media (max-width: 768px) {
    .notification-bar.top-bar {
        position: fixed; /* Ensure it stays at the top */
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001; /* Ensure it's above other content */
    }
}

.notification-bar.bottom-bar {
    bottom: 0;
    padding: 0.3rem; /* Reduced padding */
    background: #f9fafb; /* Changed background color */
}

.notification-bar.bottom-bar a {
	
	font-size: 13px;
}

.notification-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.notification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem;
}

.notification-content span {
    font-size: 1.125rem;
    color: #3d4145;
}

.notification-cta {
    display: flex;
    gap: 0.5rem; /* Reduced gap for a slimmer profile */
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping to keep buttons on one line */
}

@media (max-width: 768px) {
    .notification-content span {
        display: none; /* Hide the text on mobile */
    }

    .notification-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .notification-cta {
        flex-direction: row; /* Ensure buttons are on one line */
        width: 100%;
    }

    .notification-cta .btn {
        width: auto; /* Allow buttons to size based on content */
    }
}

/* Base Layout */
.analysis-theater {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--background-color);
}

/* Section Container */
.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s var(--transition-smooth);
    overflow-y: auto;
    padding: 2rem;
    background: var(--background-color);
}

.section.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

/* Special handling for quick insights and map analysis */
#quick-insights.visible,
#map-analysis.visible {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

#quick-insights.visible + #map-analysis.visible {
    margin-top: 2rem;
}

/* Initial Section Visibility */
#search-section {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

#search-section.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px);
    z-index: -1;
}

/* Section Content Container */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    transform: translateY(0);
    transition: all 0.6s var(--transition-smooth);
}

.section.active .section-content {
    transform: translateY(0);
    opacity: 1;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: all 0.5s var(--transition-smooth);
    flex: 1;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: #E5E7EB;
    transform: translateY(-50%);
}

.progress-step:last-child::after {
    display: none;
}

.step-indicator {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.5s var(--transition-smooth);
    border: 3px solid #E5E7EB;
    flex-shrink: 0;
}

.step-indicator .step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.5s var(--transition-smooth);
}

.step-indicator.processing {
    border-color: var(--warning-color);
    background: var(--warning-color);
    transform: scale(1.05);
}

.step-indicator.processing .step-number {
    color: white;
}

.step-indicator.complete {
    border-color: var(--success-color);
    background: var(--success-color);
    transform: scale(1.05);
}

.step-indicator.complete .step-number {
    color: white;
}

.step-content {
    opacity: 0.7;
    transition: all 0.3s var(--transition-smooth);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.progress-step.active {
    transform: translateY(-4px);
}

.progress-step.active .step-content {
    opacity: 1;
}

.progress-step.active .step-indicator {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .progress-step {
        width: 100%;
        padding: 1rem;
    }

    .progress-step::after {
        width: 2px;
        height: 2rem;
        top: auto;
        bottom: -2rem;
        left: 2.5rem;
        transform: none;
    }
}

/* Enhanced Search Section */
.search-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
}

@media (max-width: 768px) {
    .search-section {
        padding-top: 60px; /* Add padding to account for fixed top bar */
        flex-direction: column; /* Stack logo and content vertically */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center text within the section */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 { /* Target logo container */
        padding-top: 1rem; /* Reduce top padding for logo */
        padding-bottom: 1rem; /* Add bottom padding to separate from heading */
        text-align: center; /* Center logo horizontally */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 img { /* Target logo image */
        display: block; /* Ensure block display for centering */
        margin: 0 auto; /* Center the logo image */
    }
}
/* Enhanced Analysis Theater Styles */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --background-color: #FAFAFA;
    --card-background: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.3em;
}

h2 {
    font-size: 3.4210526315789rem;
}

/* Notification Bars */
.notification-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--card-background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s var(--transition-smooth);
}

.notification-bar.top-bar {
    top: 0;
}

.notification-bar.bottom-bar {
    bottom: 0;
    padding: 0.3rem; /* Reduced padding */
    background: #f9fafb; /* Changed background color */
}

.notification-bar.bottom-bar a {
	
	font-size: 13px;
}

.notification-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.notification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem;
}

.notification-content span {
    font-size: 1.125rem;
    color: #3d4145;
}

.notification-cta {
    display: flex;
    gap: 0.5rem; /* Reduced gap for a slimmer profile */
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping to keep buttons on one line */
}

@media (max-width: 768px) {
    .notification-content span {
        display: none; /* Hide the text on mobile */
    }

    .notification-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .notification-cta {
        flex-direction: row; /* Ensure buttons are on one line */
        width: 100%;
    }

    .notification-cta .btn {
        width: auto; /* Allow buttons to size based on content */
    }
}

/* Base Layout */
.analysis-theater {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--background-color);
}

/* Section Container */
.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s var(--transition-smooth);
    overflow-y: auto;
    padding: 2rem;
    background: var(--background-color);
}

.section.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

/* Special handling for quick insights and map analysis */
#quick-insights.visible,
#map-analysis.visible {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

#quick-insights.visible + #map-analysis.visible {
    margin-top: 2rem;
}

/* Initial Section Visibility */
#search-section {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

#search-section.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px);
    z-index: -1;
}

/* Section Content Container */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    transform: translateY(0);
    transition: all 0.6s var(--transition-smooth);
}

.section.active .section-content {
    transform: translateY(0);
    opacity: 1;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: all 0.5s var(--transition-smooth);
    flex: 1;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: #E5E7EB;
    transform: translateY(-50%);
}

.progress-step:last-child::after {
    display: none;
}

.step-indicator {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.5s var(--transition-smooth);
    border: 3px solid #E5E7EB;
    flex-shrink: 0;
}

.step-indicator .step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.5s var(--transition-smooth);
}

.step-indicator.processing {
    border-color: var(--warning-color);
    background: var(--warning-color);
    transform: scale(1.05);
}

.step-indicator.processing .step-number {
    color: white;
}

.step-indicator.complete {
    border-color: var(--success-color);
    background: var(--success-color);
    transform: scale(1.05);
}

.step-indicator.complete .step-number {
    color: white;
}

.step-content {
    opacity: 0.7;
    transition: all 0.3s var(--transition-smooth);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.progress-step.active {
    transform: translateY(-4px);
}

.progress-step.active .step-content {
    opacity: 1;
}

.progress-step.active .step-indicator {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .progress-step {
        width: 100%;
        padding: 1rem;
    }

    .progress-step::after {
        width: 2px;
        height: 2rem;
        top: auto;
        bottom: -2rem;
        left: 2.5rem;
        transform: none;
    }
}

/* Enhanced Search Section */
.search-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
}

@media (max-width: 768px) {
    .search-section {
        padding-top: 60px; /* Add padding to account for fixed top bar */
        flex-direction: column; /* Stack logo and content vertically */
        align-items: center; /* Center items horizontally */
        text-align: center; /* Center text within the section */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 { /* Target logo container */
        padding-top: 80px; /* Reduce top padding for logo */
        padding-bottom: 0.1rem; /* Add bottom padding to separate from heading */
        text-align: center; /* Center logo horizontally */
    }

    .search-section .w-full.max-w-7xl.mx-auto.px-6.pt-8 img { /* Target logo image */
        display: block; /* Ensure block display for centering */
        margin: 0 auto; /* Center the logo image */
    }
}

.search-section h1 {
    font-size: 3.4210526315789rem;
    font-weight: 600;
    line-height: 1.3em;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .search-section h1 {
        font-size: 2.5rem; /* Reduced font size for mobile */
    }
}

@media (max-width: 768px) {
    .search-section h1 {
        font-size: 2.5rem; /* Reduced font size for mobile */
    }
}
/* Enhanced Analysis Theater Styles */
:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;
    --background-color: #FAFAFA;
    --card-background: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.3em;
}

h2 {
    font-size: 3.4210526315789rem;
}

/* Notification Bars */
.notification-bar {
    position: fixed;
    left: 0;
    width: 100%;
    background: var(--card-background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s var(--transition-smooth);
}

.notification-bar.top-bar {
    top: 0;
}

.notification-bar.bottom-bar {
    bottom: 0;
    padding: 0.3rem; /* Reduced padding */
    background: #f9fafb; /* Changed background color */
}

.notification-bar.bottom-bar a {
	
	font-size: 13px;
}

.notification-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.notification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem;
}

.notification-content span {
    font-size: 1.125rem;
    color: #3d4145;
}

.notification-cta {
    display: flex;
    gap: 0.5rem; /* Reduced gap for a slimmer profile */
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping to keep buttons on one line */
}

@media (max-width: 768px) {
    .notification-content span {
        display: none; /* Hide the text on mobile */
    }

    .notification-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .notification-cta {
        flex-direction: row; /* Ensure buttons are on one line */
        width: 100%;
    }

    .notification-cta .btn {
        width: auto; /* Allow buttons to size based on content */
    }
}

/* Base Layout */
.analysis-theater {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--background-color);
}

/* Section Container */
.section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s var(--transition-smooth);
    overflow-y: auto;
    padding: 2rem;
    background: var(--background-color);
}

.section.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

/* Special handling for quick insights and map analysis */
#quick-insights.visible,
#map-analysis.visible {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

#quick-insights.visible + #map-analysis.visible {
    margin-top: 2rem;
}

/* Initial Section Visibility */
#search-section {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

#search-section.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px);
    z-index: -1;
}

/* Section Content Container */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px);
    transform: translateY(0);
    transition: all 0.6s var(--transition-smooth);
}

.section.active .section-content {
    transform: translateY(0);
    opacity: 1;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 4rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: all 0.5s var(--transition-smooth);
    flex: 1;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: #E5E7EB;
    transform: translateY(-50%);
}

.progress-step:last-child::after {
    display: none;
}

.step-indicator {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.5s var(--transition-smooth);
    border: 3px solid #E5E7EB;
    flex-shrink: 0;
}

.step-indicator .step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.5s var(--transition-smooth);
}

.step-indicator.processing {
    border-color: var(--warning-color);
    background: var(--warning-color);
    transform: scale(1.05);
}

.step-indicator.processing .step-number {
    color: white;
}

.step-indicator.complete {
    border-color: var(--success-color);
    background: var(--success-color);
    transform: scale(1.05);
}

.step-indicator.complete .step-number {
    color: white;
}

.step-content {
    opacity: 0.7;
    transition: all 0.3s var(--transition-smooth);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.progress-step.active {
    transform: translateY(-4px);
}

.progress-step.active .step-content {
    opacity: 1;
}

.progress-step.active .step-indicator {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .progress-step {
        width: 100%;
        padding: 1rem;
    }

    .progress-step::after {
        width: 2px;
        height: 2rem;
        top: auto;
        bottom: -2rem;
        left: 2.5rem;
        transform: none;
    }
}

/* Enhanced Search Section */
.search-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
}

.search-section h1 {
    font-size: 3.4210526315789rem;
    font-weight: 600;
    line-height: 1.3em;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .search-section h1 {
        font-size: 2rem; /* Reduced font size for mobile */
    }
    .py-24 {
  padding-top: 1rem;
  padding-bottom: 16rem;
}
.search-section p {
    font-size: 1rem;
}
}

.search-section p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.search-input {
    background: var(--card-background) !important;
    color: var(--text-primary) !important;
}

.search-input::placeholder {
    color: var(--text-secondary) !important;
}

.search-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    transform: scale(1);
    transition: all 0.3s var(--transition-smooth);
}

.search-input-wrapper:focus-within {
    transform: scale(1.02);
}

.search-input {
    width: 100%;
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 1rem;
    background: var(--card-background);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--transition-smooth);
}

.search-input:focus {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* Search Results */
.search-results {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
}

.search-results:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Insight Cards */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.insight-card {
    background: var(--card-background);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--transition-smooth);
    transform: translateY(0);
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.insight-card .score {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
}

/* Tips Loading Section */
.tips-loading {
    background: var(--background-color);
    padding: 4rem 2rem;
    opacity: 0;
    display: none;
    transition: opacity 0.5s var(--transition-smooth);
}

.tips-loading.visible {
    opacity: 1;
    display: block;
}

.tips-loading.hidden {
    display: none;
}

.loading-status {
    max-width: 600px;
    margin: 0 auto;
}

.loading-circle-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.loading-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1.5s linear infinite;
}

.loading-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s ease-out infinite;
}

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

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.2;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}


/* Buttons */
.btn {
    padding: 0.75rem 1.5rem; /* Reduced padding for a slimmer profile */
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 122, 255, 0.2); /* Added shadow for visibility */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -5px rgba(0, 122, 255, 0.3); /* Enhanced hover effect */
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 122, 255, 0.2);
}

/* Tips Slider */
.tips-slider {
    max-width: 800px;
    margin: 4rem auto 0;
    position: relative;
    overflow: hidden;
}

.tips-container {
    display: flex;
    transition: transform 0.5s var(--transition-smooth);
    gap: 2rem;
    padding: 1rem;
}

.tip-card {
    min-width: 100%;
    background: var(--card-background);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(0);
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tip-icon svg {
    color: white;
}

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

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

.tips-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.prev-tip,
.next-tip {
    background: var(--card-background);
    border: none;
    border-radius: 0.75rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.prev-tip:hover,
.next-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

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

.tip-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.3;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
}

.tip-dot.active {
    opacity: 1;
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Map Analysis Section */
.analysis-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.analysis-header h2 {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.analysis-header p {
    display: inline-block;
    color: var(--text-secondary);
}

.map-container {
    width: 100%;
    height: auto; /* Changed to auto for responsiveness */
    min-height: 300px; /* Set a minimum height */
    border-radius: 1.5rem;
    overflow: visible;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--transition-smooth);
    margin: 2rem 0;
    background: var(--card-background);
}

@media (max-width: 768px) {
    .map-container {
        height: auto;
        min-height: 300px;
        margin: 1rem 0;
    }
}

.map-container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.map-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    width: 100%;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.map-legend {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.map-legend h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
}

.map-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.map-legend li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.map-legend .legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.map-legend .legend-color.high {
    background: var(--success-color);
}

.map-legend .legend-color.medium {
    background: var(--warning-color);
}

.map-legend .legend-color.low {
    background: var(--error-color);
}

.map-filters {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.map-filters select {
    width: 100%;
    max-width: 200px;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    background: var(--card-background);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s var(--transition-smooth);
}

.map-filters select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    outline: none;
}

/* Stats Cards */
.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--card-background);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--transition-smooth);
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card .stat-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Recommendations Section */
.recommendations {
    background: var(--card-background);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--transition-smooth);
}

.recommendations:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.recommendations h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.recommendation-list {
    display: grid;
    gap: 1.5rem;
}

.recommendation-item {
    background: var(--background-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s var(--transition-smooth);
}

.recommendation-item:hover {
    transform: translateX(5px);
    background: linear-gradient(to right, var(--background-color), var(--card-background));
}

@media (max-width: 768px) {
    .map-controls {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
        position: static;
        margin: 2rem -1rem;
        width: calc(100% + 2rem);
        border-radius: 0;
    }
    
    .map-legend {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;
    }

    .map-legend ul {
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
    }

    .map-legend li {
        flex: 0 0 auto;
        margin-right: 1rem;
    }
    
    .map-filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    .map-filters select {
        max-width: 100%;
    }
    
    .grid-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

/* Progress Header */
.progress-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-header img {
    margin-right: 0.5rem;
}

.progress-header h2 {
    display: inline-block;
    margin-right: 0.5rem;
}

.progress-header p {
    display: inline-block;
}

/* Insights Header */
.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.insights-text {
    flex: 1;
}

.insights-text h2 {
    margin-bottom: 0.5rem;
    display: inline-block;
    margin-right: 0.5rem;
}

.insights-text p {
    display: inline-block;
}

.insights-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 1rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
    
    .insight-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
}
