:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    height: 70px;
    flex-shrink: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 2000;
    display: flex;
    align-items: center;
    padding: 0 30px;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
}

.header-brand i {
    font-size: 1.5rem;
}

.header-brand h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.header-nav a:hover, .header-nav a.active {
    color: var(--primary-color);
}

/* Main Content */
.app-main {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Map Container */
#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Footer */
.app-footer {
    height: 40px;
    flex-shrink: 0;
    background: var(--text-main);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 2000;
}

.footer-container p {
    margin: 0;
}

/* UI Overlay */
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to the map */
    z-index: 1000;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glass);
    pointer-events: auto; /* Enable clicks on the panel */
}

.floating-basemap {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.main-panel {
    width: 350px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Panel Header */
.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
}

.logo-box {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.panel-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.panel-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Panel Content */
.panel-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.panel-content::-webkit-scrollbar {
    width: 6px;
}
.panel-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.card-header i {
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.empty-state {
    text-align: center;
    padding: 20px 10px;
}

.pulse-icon {
    width: 40px;
    height: 40px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Dynamic Location Info */
.location-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.location-desc {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 10px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    font-size: 0.85rem;
}
.data-row:last-child {
    border-bottom: none;
}
.data-label {
    color: var(--text-muted);
    font-weight: 500;
}
.data-value {
    font-weight: 600;
    color: var(--text-main);
}

/* Layer Control */
.layer-control h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.basemap-options {
    display: flex;
    gap: 8px;
}

.basemap-btn {
    flex: 1;
    padding: 8px 0;
    border: 1px solid rgba(0,0,0,0.1);
    background: white;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.basemap-btn:hover {
    background: #f8f9fa;
    border-color: rgba(0,0,0,0.2);
}

.basemap-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

/* Panel Footer */
.panel-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.panel-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Leaflet Customizations */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 0;
}
.leaflet-popup-content {
    margin: 15px;
    font-family: 'Outfit', sans-serif;
}
.leaflet-popup-content h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.leaflet-popup-content p {
    margin: 0;
    color: var(--text-main);
    font-size: 0.9rem;
}
.leaflet-container .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 10px 0 0 0;
    padding: 2px 8px;
    font-family: 'Outfit', sans-serif;
}

/* Map Markers */
.custom-marker-wrapper {
    background: transparent;
    border: none;
}
.custom-marker-wrapper div:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    .app-header {
        height: auto;
        padding: 15px;
    }
    .main-panel {
        width: 100%;
        max-height: 50vh;
        margin-top: auto;
    }
    .ui-overlay {
        justify-content: flex-end;
        padding: 10px;
    }
    .leaflet-control-zoom {
        display: none; /* Hide zoom controls on small screens to save space */
    }
}

/* Ultra Premium About Us Design */
.app-main[style*="background-color: #f8f9fa;"] {
    background: #fbfbfc !important;
}
.about-hero {
    padding: 80px 20px 50px 20px;
    text-align: center;
    position: relative;
}
.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111827;
    letter-spacing: -1px;
}
.about-hero p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    color: #6b7280;
    line-height: 1.7;
}
.about-container {
    max-width: 1100px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}
.team-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    width: 100%;
}
.team-member {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.team-member::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.team-member.leader-card::before {
    background: #f72585;
}
.team-member:hover::before {
    opacity: 1;
}
.team-member.leader-card {
    max-width: 380px;
    width: 100%;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.team-member.leader-card:hover {
    transform: translateY(-8px) scale(1.02);
}
.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.08);
    margin: 0 auto 25px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 38px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.leader-card .member-avatar {
    background: rgba(247, 37, 133, 0.08);
    color: #f72585;
    width: 120px;
    height: 120px;
    font-size: 48px;
}
.team-member:hover .member-avatar {
    transform: scale(1.1) rotate(5deg);
}
.member-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.member-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.leader-card .member-role {
    color: #f72585;
}
.member-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.member-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}
.member-socials a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}
.leader-card .member-socials a:hover {
    background: #f72585;
}

/* Developer Section */
.developer-section {
    margin-top: 40px;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2rem;
    color: #111827;
    font-weight: 800;
}
.section-title .divider {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}
.dev-card {
    background: #111827;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.2);
    color: white;
    overflow: hidden;
    position: relative;
}
.dev-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.dev-avatar {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), #4cc9f0);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: white;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4);
    z-index: 1;
    flex-shrink: 0;
}
.dev-info {
    z-index: 1;
}
.dev-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.dev-role {
    color: #4cc9f0;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.dev-desc {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 1.05rem;
    max-width: 600px;
}
@media (max-width: 768px) {
    .dev-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
}
