:root {
    /* SevaSaathi Brand Colors */
    --primary: #0d6efd;
    /* Bright Blue */
    --primary-hover: #0b5ed7;
    /* Darker Blue */
    --secondary: #6c757d;
    /* Gray */
    --success: #198754;
    /* Green for status */

    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    /* Very light gray for contrast sections */
    --bg-dark: #212529;
    /* Footer/Dark areas */

    /* Typography */
    --text-heading: #343a40;
    /* Dark Gray */
    --text-body: #212529;
    /* Almost Black */
    --text-muted: #6c757d;
    --text-white: #ffffff;

    /* Shapes & Effects */
    --font-family: 'Poppins', sans-serif;
    --radius-pill: 50rem;
    /* Signature Pill Shape */
    --radius-card: 6px;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    /* App Specific */
    --header-height: 80px;
    --controls-height: 100px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-body);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* App-like feel */
}

/* --- Header --- */
.navbar {
    height: var(--header-height);
    background-color: var(--bg-body);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-heading);
    margin: 0;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: var(--radius-pill);
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 36px;
}

.lang-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.lang-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    background: transparent;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-family);
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link i.fa-chevron-down {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    background-color: rgba(13, 110, 253, 0.05);
    /* very light blue tint */
}

.nav-item:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-link.active {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item:hover {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary);
    padding-left: 1.25rem;
}

.dropdown-item .slide-num {
    font-size: 0.75rem;
    opacity: 0.5;
    font-weight: 400;
}

.btn {
    font-family: var(--font-family);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* --- Main Stage --- */
.presentation-stage {
    flex: 1;
    position: relative;
    background-color: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slide-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Background Images */
/* Background Media */
/* Background Media */
.slide-bg-img,
.background-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide-bg-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    /* Slight zoom for parallax feel effect */
    transition: transform 6s ease;
}

.background-video-container {
    pointer-events: none;
}

/* Force iframe to always cover the container */
.background-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio based on width */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio based on height */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* If screen is taller than 16:9, scale by height to avoid gaps */
@media (max-aspect-ratio: 16/9) {
    .background-video-container iframe {
        width: 177.78vh;
        height: 100vh;
    }
}

.slide.active .slide-bg-img {
    transform: scale(1.0);
}

/* Content Overlay & Layout */
.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 45%, transparent 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 3rem 5rem;
    padding-bottom: 2rem;
    /* Reduced because controls are now outside */
}

.content-overlay.minimal {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 20%);
    align-items: flex-end;
    padding: 1.5rem;
}

.slide-info-badge {
    background: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.loader-container i {
    color: var(--primary);
}

/* Dark Mode Overlay for specific slides */
.content-overlay.dark-mode {
    background: linear-gradient(to right, rgba(13, 27, 42, 0.95) 0%, rgba(13, 27, 42, 0.8) 50%, transparent 100%);
    color: white;
}

.content-overlay.dark-mode .slide-header h2,
.content-overlay.dark-mode .slide-header p,
.content-overlay.dark-mode .lc-text h4,
.content-overlay.dark-mode .lc-text p {
    color: white;
}

.content-overlay.gradient-blue {
    background: linear-gradient(to bottom, rgba(13, 110, 253, 0.95), rgba(13, 110, 253, 0.8));
    justify-content: center;
    flex-direction: column;
}

/* --- Rich Slides Improvements --- */
.index-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.index-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.index-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    border: 1px solid transparent;
}

.index-item:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.index-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.index-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-heading);
}

.map-slide-container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 2rem;
}

.text-card {
    flex: 0 0 400px;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 5;
    overflow-y: auto;
    max-height: 100%;
}

.map-canvas {
    flex: 1;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.leaflet-container {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-view-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    background: white;
    padding: 4px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.view-btn {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* 3D Tilt Effect - Optimized for Interactivity */
.map-canvas.v3d {
    perspective: 1200px;
    background: #000;
}

.map-canvas.v3d .leaflet-container {
    transform: rotateX(30deg);
    transform-origin: center bottom;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure controls stay visible */
.map-canvas.v3d .map-view-toggle {
    transform: translateZ(50px);
}

.map-canvas.v3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 40%);
    pointer-events: none;
    z-index: 10;
}

.project-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.spec-label {
    color: var(--text-muted);
}

.spec-val {
    font-weight: 600;
    color: var(--text-heading);
}

/* --- Plan Viewer & Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    height: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.plan-viewer-layout {
    display: flex;
    gap: 2rem;
    width: 100%;
    height: 100%;
}

.plan-sidebar {
    width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plan-main {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.plan-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.stat-pill {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid var(--primary);
}

.stat-pill label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-pill span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* --- Shared Slide Styles --- */
.slide-header {
    margin-bottom: 0;
}

.slide-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.slide-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.white-text h2,
.white-text p {
    color: white !important;
}

/* --- Slide 1: Vision --- */
.vision-content {
    max-width: 650px;
    animation: fadeInRight 1s ease forwards;
}

.badge-pill {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.display-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--primary);
    background: linear-gradient(120deg, transparent 0%, rgba(13, 110, 253, 0.1) 100%);
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 0;
}

.vision-stats {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: fit-content;
}

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

.v-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.v-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.v-divider {
    width: 1px;
    background: #e9ecef;
}

/* --- Slide 2: Location --- */
.location-grid-detailed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
}

.loc-card-detail {
    background: rgba(255, 255, 255, 0.05);
    /* Glassmorphism on Dark */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform 0.2s;
}

.loc-card-detail:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.loc-card-detail i {
    font-size: 2rem;
    color: #60a5fa;
    /* Lighter blue for dark mode visibility */
}

.lc-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.lc-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
}

/* --- Slide 3: Master Plan --- */
.split-layout-detailed {
    display: flex;
    width: 100%;
    max-width: 1300px;
    gap: 4rem;
    align-items: center;
}

.text-side-detailed {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.sub-heading {
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-list li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--success);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.visual-side-detailed {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.plan-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    width: 320px;
    height: 320px;
    transform: rotateX(10deg) rotateY(-10deg);
    transition: transform 0.5s;
    backdrop-filter: blur(5px);
}

.plan-card:hover {
    transform: rotateX(0) rotateY(0);
}

.tower-label {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.park-label {
    grid-column: span 2;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.plan-legend {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.residential {
    background: var(--primary);
}

.dot.green {
    background: var(--success);
}

.dot.amenity {
    background: #ffc107;
}

/* --- Slide 4: Amenities --- */
.amenities-scroller {
    display: flex;
    gap: 2rem;
    justify-content: center;
    width: 100%;
}

.amt-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.amt-card:hover {
    transform: translateY(-10px);
}

.amt-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.amt-info {
    padding: 1.5rem;
    text-align: center;
}

.amt-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.amt-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Slide 5: Contact --- */
.contact-split {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-box {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    animation: fadeInUp 0.8s ease forwards;
}

.contact-methods {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cm-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: background 0.2s;
}

.cm-item:hover {
    background: #f8f9fa;
}

.cm-icon {
    width: 42px;
    height: 42px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.mini-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.mini-form input {
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-family: var(--font-family);
    outline: none;
}

.mini-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
    font-weight: 600;
    padding: 0.8rem;
}

/* --- Controls --- */
.controls-bar {
    height: var(--controls-height);
    background: #111;
    /* Solid dark for clear separation */
    position: relative;
    width: 100%;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 3rem;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}

.control-actions {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    padding-bottom: 0.5rem;
}

.primary-controls {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.secondary-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.control-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.play-pause-btn {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    background: var(--primary);
    border-color: var(--primary);
}

.play-pause-btn:hover {
    background: var(--primary-hover);
}

.slide-counter {
    color: var(--text-white);
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}


/* --- Chatbot --- */
.chatbot-container {
    position: fixed;
    bottom: calc(var(--controls-height) + 1.5rem);
    right: 2rem;
    width: 400px;
    height: 500px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    z-index: 201;
    overflow: visible;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-container.collapsed {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.chat-header {
    background: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
    margin-top: -1px;
    /* Align with border */
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    padding-right: 60px;
    /* Space for the avatar overhang */
}

/* New Floating Avatar Group */
.header-profile-group {
    position: absolute;
    top: -30px;
    right: -15px;
    width: 90px;
    height: 90px;
}

.chat-avatar-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.close-chat {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0d6efd;
    /* Blue badge color */
    color: white;
    border: 2px solid white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    z-index: 2;
}

.close-chat:hover {
    background: #0b5ed7;
    transform: scale(1.1);
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot {
    background: white;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.message.user {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-footer {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}

#chatInput {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    outline: none;
    font-family: var(--font-family);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

#chatInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#chatInput:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.send-btn,
.mic-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mic-btn {
    background: rgba(255, 255, 255, 0.1);
}

.mic-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mic-btn.listening {
    background: #dc3545;
    animation: pulse 1.5s infinite;
}

.send-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Surroundings Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    height: 85%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 2100;
    line-height: 1;
}

.modal-body-img {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid #eee;
}

.modal-footer h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.modal-footer p {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Compact Surroundings List */
.surroundings-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.surroundings-list .index-item {
    padding: 0.5rem 0.75rem;
    gap: 0.6rem;
    margin-bottom: 0;
}

.surroundings-list .index-num {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

.surroundings-list .index-text {
    font-size: 0.9rem;
}

/* Map Popup Styling */
.leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 280px !important;
}

.surroundings-popup-content img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.surroundings-popup-info {
    padding: 1rem;
}

.surroundings-popup-info h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.surroundings-popup-info p {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
}

/* --- Slide 7: Dynamic Master Layout Blueprint --- */
.blueprint-wrapper {
    display: flex;
    gap: 2rem;
    width: 100%;
    height: 100%;
}

.blueprint-text {
    flex: 0 0 350px;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    /* justify-content: center; Removed to allow scroll */
    z-index: 5;
    overflow-y: auto;
    max-height: 100%;
}

.blueprint-visual {
    flex: 1;
    background: #1e293b;
    /* Dark Blueprint Blue/Slate */
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #334155;
}

/* Grid Background Effect */
.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(20deg) translateY(-50px) translateZ(-50px);
    animation: gridPan 60s linear infinite;
}

@keyframes gridPan {
    0% {
        transform: perspective(500px) rotateX(20deg) translateY(0) translateZ(-50px);
    }

    100% {
        transform: perspective(500px) rotateX(20deg) translateY(-40px) translateZ(-50px);
    }
}

.plot-boundary {
    position: relative;
    width: 60%;
    height: 70%;
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.plot-label {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #1e293b;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Building Shapes */
.b-group {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.b-group:hover {
    transform: scale(1.1);
    z-index: 10;
}

.b-shape {
    width: 60px;
    height: 60px;
    background: rgba(13, 110, 253, 0.2);
    border: 2px solid #0d6efd;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
    position: relative;
    transition: all 0.3s;
}

.b-group:hover .b-shape {
    background: rgba(13, 110, 253, 0.6);
    box-shadow: 0 0 25px rgba(13, 110, 253, 0.6);
}

.b-label {
    margin-top: 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0.7;
}

.b-group:hover .b-label {
    opacity: 1;
}

/* Clover Shape Logic */
.clover-shape {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.clover-leaf {
    position: absolute;
    width: 35px;
    height: 35px;
    background: rgba(13, 110, 253, 0.3);
    border: 2px solid #0d6efd;
    border-radius: 50%;
}

.clover-leaf:nth-child(1) {
    transform: translateY(-15px);
}

.clover-leaf:nth-child(2) {
    transform: translate(12px, 10px);
}

.clover-leaf:nth-child(3) {
    transform: translate(-12px, 10px);
}

.clover-center {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    z-index: 2;
    position: relative;
    box-shadow: 0 0 10px white;
}

/* Tenant Buildings (Square/Rect) */
.tenant-shape {
    background: rgba(25, 135, 84, 0.2);
    border: 2px solid #198754;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(25, 135, 84, 0.3);
}

.b-group:hover .tenant-shape {
    background: rgba(25, 135, 84, 0.6);
    box-shadow: 0 0 25px rgba(25, 135, 84, 0.6);
}

/* Layout Positioning */
.pos-sale-1 {
    top: 20%;
    right: 20%;
}

.pos-sale-2 {
    bottom: 20%;
    right: 25%;
}

.pos-tenant-1 {
    top: 25%;
    left: 20%;
}

.pos-tenant-2 {
    bottom: 25%;
    left: 20%;
}

.central-green {
    width: 120px;
    height: 120px;
    background: rgba(13, 253, 109, 0.05);
    border: 2px dashed rgba(13, 253, 109, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseGreen 4s infinite;
}

@keyframes pulseGreen {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.legend-box {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.l-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.l-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-sale {
    background: #0d6efd;
    box-shadow: 0 0 8px #0d6efd;
}

.dot-tenant {
    background: #198754;
    box-shadow: 0 0 8px #198754;
}

.dot-open {
    background: rgba(13, 253, 109, 0.5);
    border: 1px dashed white;
}

/* --- Slide 7: Project Brief Dashboard --- */
.dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    /* Dark overlay on blueprint */
    backdrop-filter: blur(8px);
    z-index: 20;
    transition: all 0.4s ease;
}

.dashboard-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.dash-title h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.dash-title span {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-tabs {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem;
    border-radius: var(--radius-pill);
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.dash-content {
    flex: 1;
    overflow-y: auto;
    display: none;
    /* Hidden by default, JS toggles active */
}

.dash-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.data-table th {
    text-align: left;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.t-num {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #a5f3fc;
}

.t-total {
    background: rgba(13, 110, 253, 0.1);
    font-weight: 700;
}

.t-total td {
    color: white;
    border-top: 2px solid var(--primary);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.sum-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sum-card label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.sum-card .val {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.sum-card .sub-val {
    color: var(--success);
    font-size: 0.9rem;
}

.toggle-dash-btn {
    width: 100%;
    margin-top: 1rem;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.toggle-dash-btn:hover {
    background: var(--primary);
    color: white;
}