:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-dark: rgba(15, 23, 42, 0.85);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.4);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    --radius: 20px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg-glass: rgba(15, 23, 42, 0.75);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

body,
html,
#app {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Positioning context for absolute children */
}

#map {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Floating Search Bar */
.floating-search {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 432px;
    height: 48px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    z-index: 8000;
    display: flex;
    align-items: center;
    padding: 0 8px;
    transition: var(--transition);
}

[data-theme="dark"] .floating-search {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    color: white;
}

.floating-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0 12px;
    background: transparent;
    color: inherit;
}

.search-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.search-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

[data-theme="dark"] .search-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-actions {
    display: flex;
    align-items: center;
}

.divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
    margin: 0 4px;
}

[data-theme="dark"] .divider {
    background: #475569;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 54px;
    /* Height of search bar + a little gap */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    z-index: 2001;
}

[data-theme="dark"] .search-dropdown {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

.search-dropdown.active {
    display: flex;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

[data-theme="dark"] .search-result-item {
    border-bottom: 1px solid #334155;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
}

/* Profile Section Styles */
.profile-container {
    position: relative;
    margin-left: 8px;
}

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.profile-btn:hover {
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.profile-menu {
    position: absolute;
    top: 52px;
    right: 0;
    width: 300px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 5000;
    border: 1px solid var(--border);
    /* animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1); */
}

.profile-menu.active {
    display: flex;
}

[data-theme="dark"] .profile-menu {
    background: #1e293b;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.profile-menu-header .large-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.profile-info strong {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
}

.profile-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.profile-menu-items {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.menu-item-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.menu-item-btn i {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.menu-item-btn:hover i {
    color: var(--primary);
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #3c4043;
    transition: all 0.2s ease;
    width: 100%;
    margin: 8px 0;
}

.google-login-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-login-btn svg {
    flex-shrink: 0;
}

[data-theme="dark"] .google-login-btn {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .google-login-btn:hover {
    background: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

#google-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 8px 0;
}


/* Sidebar */
.info-sidebar {
    position: absolute;
    left: -400px;
    top: 0;
    bottom: 0;
    width: 380px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9000;
    box-shadow: 5px 0 15px var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border-right: 1px solid var(--border);
}

.info-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.user-profile-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.user-actions-sidebar {
    display: flex;
    gap: 8px;
}

.welcome-section h1 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.welcome-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.featured-locations h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.location-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

[data-theme="dark"] .location-card {
    background: rgba(30, 41, 59, 0.5);
}

.location-card:hover {
    background: rgba(99, 102, 241, 0.1);
}

.location-info strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 4px;
}

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


/* Place Details Card */
.place-details-card {
    position: absolute;
    bottom: -500px;
    /* Hidden */
    left: 20px;
    width: 380px;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    z-index: 7000;
    transition: var(--transition);
    overflow: hidden;
}

.place-details-card.active {
    bottom: 24px;
}

.place-details-content {
    padding: 20px;
}

.place-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.place-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0;
}

.place-address {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.place-actions {
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 10px;
    border-radius: 12px;
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.action-btn.visited {
    color: #10b981;
}

/* Save Options Dropdown */
.save-container {
    position: relative;
    flex: 1;
}

.save-options-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 200px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    z-index: 7001;
}

[data-theme="dark"] .save-options-dropdown {
    background: #1e293b;
}

.save-options-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: left;
}

.save-options-dropdown button:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.action-btn.saved {
    color: var(--primary);
}

/* Saved Places List Styles */
.saved-place-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.saved-place-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.saved-place-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.saved-place-info {
    flex: 1;
    overflow: hidden;
}

.saved-place-info strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    color: var(--text-main);
}

.saved-place-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 0;
}

/* Media Queries (Mobile Fixes) */
@media (max-width: 768px) {
    .floating-search {
        width: calc(100% - 24px);
        left: 12px;
        top: calc(12px + env(safe-area-inset-top, 0px));
        padding: 0 4px;
    }

    .directions-btn,
    .floating-search .divider:nth-of-type(2),
    .floating-search .search-icon-btn:nth-of-type(2) {
        display: none;
    }

    .info-sidebar {
        width: 100%;
        left: -100%;
        z-index: 9000;
        height: 100%;
    }

    .info-sidebar.active {
        left: 0;
    }

    .place-details-card {
        width: calc(100% - 24px);
        left: 12px;
        z-index: 1500;
        bottom: -600px;
    }

    .place-details-card.active {
        bottom: 12px;
    }

    .profile-menu {
        position: fixed;
        top: 70px;
        left: 12px;
        width: calc(100% - 24px);
        right: auto;
        z-index: 11000;
        transform: none;
        /* override any transform */
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Custom Map Markers */
.saved-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 32px;
    height: 32px;
    background: var(--marker-color);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.2);
}

.marker-pin i {
    transform: rotate(45deg);
    width: 16px !important;
    height: 16px !important;
    color: white;
}

[data-theme="dark"] .marker-pin {
    border-color: #1e293b;
}

/* Marker Animations */
@keyframes markerPulse {
    0% {
        transform: rotate(-45deg) scale(1);
    }

    50% {
        transform: rotate(-45deg) scale(1.1);
    }

    100% {
        transform: rotate(-45deg) scale(1);
    }
}

.bucket-marker .marker-pin {
    animation: markerPulse 2s infinite ease-in-out;
}

/* Utility & Icons */
.icon-btn,
.icon-btn-small {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.custom-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

/* My Location Blinking Dot */
.my-location-dot {
    width: 14px;
    height: 14px;
    background: #4285f4;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(66, 133, 244, 0.6);
    position: relative;
}

.my-location-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.18);
    animation: locPulse 2s ease-out infinite;
}

@keyframes locPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* ============================================================
   HOME PAGE — layout when data-page="home"
   ============================================================ */

/* Allow the #root to scroll vertically on home page */
#app[data-page="home"],
#app[data-page="profile"] {
    overflow: hidden;
}

/* Hide the map on pages other than map and explore */
[id="app"]:not([data-page="map"]):not([data-page="explore"]) #map {
    display: none !important;
}

/* #root covers the full screen on home/profile/login pages */
[id="app"]:not([data-page="map"]):not([data-page="explore"]) #root {
    position: absolute;
    inset: 0;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Explore page #root overlay rules */
[id="app"][data-page="explore"] #root {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

[id="app"]:not([data-page="map"]):not([data-page="explore"]) #root::-webkit-scrollbar {
    display: none;
}

/* Home page root wrapper */
.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Search bar wrapper sitting over the map area */
.home-search-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 8000;
    pointer-events: none;
}

.home-search-wrapper>* {
    pointer-events: all;
}

/* Keep floating-search absolute positioning within fixed wrapper */
.home-search-wrapper .floating-search {
    position: absolute;
}

/* Travel Content */
.home-content {
    background: var(--bg-home, #f8fafc);
    padding: 68px 16px 220px;
    flex: 1;
}

[data-theme="dark"] .home-content {
    background: #0f172a;
}

.home-section-header {
    margin-bottom: 24px;
}

.home-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.home-section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Travel Cards Grid */
.travel-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.travel-card {
    border-radius: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .travel-card {
    background: #1e293b;
    border-color: #334155;
}

.travel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.travel-card-emoji {
    font-size: 2.2rem;
    padding: 16px 16px 8px;
    line-height: 1;
    border-bottom: 3px solid var(--card-accent, var(--primary));
}

.travel-card-body {
    padding: 12px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.travel-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--card-accent, var(--primary));
}

.travel-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.travel-card-body p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Travel Tips */
.travel-tips-section {
    margin-bottom: 28px;
}

.travel-tips-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
}

.tips-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.4;
}

[data-theme="dark"] .tip-card {
    background: #1e293b;
    border-color: #334155;
}

.tip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Footer note */
.home-footer-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    justify-content: center;
    padding-top: 8px;
}

.home-footer-note i {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================================
   SIDEBAR NAV
   ============================================================ */

.sidebar-nav {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-nav-btn i {
    width: 16px;
    height: 16px;
}

.sidebar-nav-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    border-color: var(--primary);
}

.sidebar-nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sidebar-nav-btn.active i {
    color: white;
}

/* ============================================================
   MOBILE — home page adjustments
   ============================================================ */

@media (max-width: 768px) {
    .travel-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .travel-card-emoji {
        font-size: 1.8rem;
        padding: 12px 12px 6px;
    }

    .travel-card-body {
        padding: 8px 10px 12px;
    }

    .travel-card-body h3 {
        font-size: 0.85rem;
    }

    .travel-card-body p {
        display: none;
        /* keep cards compact on mobile */
    }

    .home-content {
        padding: 20px 12px 60px;
    }

    .home-section-header h2 {
        font-size: 1.25rem;
    }
}

.leaflet-control-attribution {
    background: #838383;
}

/* ============================================================
   Offline Maps Styles
   ============================================================ */
.offline-manager {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
    font-family: 'Outfit', sans-serif;
}

.offline-badge-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
}

.download-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .download-panel {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.download-panel h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.estimation-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.warning-text {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.download-action-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.region-name-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-color);
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
}

.region-name-input:focus {
    border-color: var(--primary);
}

.download-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.download-btn-submit:hover:not(:disabled) {
    background: var(--primary-hover, #4f46e5);
}

.download-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress bar styles */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

[data-theme="dark"] .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.2s ease-out;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cancel-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-weight: 600;
    padding: 2px 5px;
}

/* Saved regions list */
.saved-regions-list {
    margin-top: 10px;
}

.saved-regions-list h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.no-regions {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 15px;
}

.region-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.region-item-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.region-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.region-meta strong {
    font-size: 0.85rem;
    color: var(--text-color);
}

.region-meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.region-actions {
    display: flex;
    gap: 6px;
}

.action-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-app);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.action-icon-btn i {
    width: 14px;
    height: 14px;
}

.action-icon-btn.fly-to:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-icon-btn.delete:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ==========================================================================
   Login Page & Three.js Shooting Star Background Styles
   ========================================================================== */

#app[data-page="login"] #map,
#app[data-page="playground"] #map {
    display: none;
}

.login-page-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    user-select: none;
    transition: background 0.5s ease;
}

[data-theme="light"] .login-page-container {
    background: radial-gradient(circle at 50% 30%, #312e81 0%, #1e293b 60%, #0f172a 100%);
}

.login-nav-header {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.login-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.login-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.login-nav-btn i {
    width: 18px;
    height: 18px;
}

.login-card-wrapper {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-glass-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    padding: 32px 24px 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45),
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: loginCardFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .login-glass-card {
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

@keyframes loginCardFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-brand-header {
    margin-bottom: 24px;
}

.login-logo-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.login-logo-icon i {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.login-brand-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.login-tagline {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.login-subtitle {
    margin-bottom: 20px;
}

.login-subtitle h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.login-subtitle p {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.google-btn-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0 16px;
    min-height: 44px;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: #94a3b8;
    font-size: 0.78rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.login-divider span {
    padding: 0 12px;
}

.login-action-btn {
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.login-action-btn.primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.9));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-action-btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 10px;
}

.login-action-btn.guest {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.login-action-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.login-user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.login-user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(99, 102, 241, 0.6);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}

.login-user-profile h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.login-user-email {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.login-actions {
    width: 100%;
}

.login-footer-hint {
    margin-top: 20px;
    font-size: 0.76rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-footer-hint i {
    width: 14px;
    height: 14px;
    color: #fbbf24;
}

@media (max-width: 480px) {
    .login-glass-card {
        padding: 24px 18px 20px;
        border-radius: 24px;
    }
}

/* Wanderlust Dark Theme — Glassmorphism Design System */
.wl-page {
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(180deg, rgb(11 13 16 / 57%) 0%, rgba(11, 13, 16, 0.88) 100%),
        url(/assets/home/im1.webp) center / cover no-repeat fixed #0b0d10;
    color: #ffffff;
    /* padding: 16px 16px 85px; */
    font-family: 'Outfit', sans-serif;
    position: relative;
    box-sizing: border-box;
    overflow-y: auto;
}

.wl-body {
    padding: 16px 16px 85px;
}

/* Base Glassmorphism Card (for non-image cards) */
.wl-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.wl-card {
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.wl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Header */
.wl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 16px;
}

.wl-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wl-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wl-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.wl-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #93c5fd;
    letter-spacing: -0.01em;
    margin: 0;
}

.wl-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.wl-icon-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Search Bar */
.wl-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 18px;
}

.wl-search-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}

.wl-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
}

.wl-search-input::placeholder {
    color: #64748b;
}

/* Travel Stats Card */
.wl-stats-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.wl-stats-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wl-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wl-green-circle {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.wl-card-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.wl-card-sub {
    font-size: 0.78rem;
    color: #94a3b8;
}

.wl-stats-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wl-stats-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.wl-stats-lbl {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-top: 2px;
}

/* Travel Memories Card */
.wl-memories-card {
    background: linear-gradient(242deg, rgb(45 20 75 / 39%) 0%, rgb(13 6 24 / 85%) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(168, 85, 247, 0.22);
    padding: 20px 22px;
    margin-bottom: 24px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wl-memories-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.wl-memories-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.wl-icon-btn-ghost {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wl-memories-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.wl-memories-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Section Header */
.wl-section {
    margin-bottom: 24px;
}

.wl-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 14px;
}

.wl-section-title i {
    width: 20px;
    height: 20px;
    color: #a5b4fc;
}

/* Friends' Travels */
.wl-scroll-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.wl-scroll-row::-webkit-scrollbar {
    display: none;
}

.wl-friend-card {
    min-width: 240px;
    max-width: 240px;
    padding: 12px;
    flex-shrink: 0;
}

.wl-friend-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e2e8f0;
}

.wl-friend-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.wl-friend-img-box {
    position: relative;
    width: 100%;
    height: 135px;
    border-radius: 14px;
    overflow: hidden;
}

.wl-friend-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wl-img-pill {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
}

/* Travel Dispatches */
.wl-dispatches-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 12px;
}

.wl-dispatches-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wl-dispatches-left .wl-dispatch-card {
    height: 145px;
}

.wl-dispatch-card {
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    height: 180px;
    border: 1px solid rgb(138 181 145 / 55%);
}

.wl-dispatch-tall {
    height: 302px;
}

.wl-dispatch-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.88) 100%);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wl-badge-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
}

.wl-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    align-self: center;
    margin: auto 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wl-dispatch-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 2px;
}

/* Explore More 2x2 Grid */
.wl-explore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wl-explore-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
}

.wl-category-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wl-amber {
    background: rgba(180, 83, 9, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f59e0b;
}

.wl-blue {
    background: rgba(30, 58, 138, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #60a5fa;
}

.wl-green {
    background: rgba(6, 78, 59, 0.35);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
}

.wl-red {
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #f87171;
}

/* Combined Masonry Section */
.wl-masonry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.wl-masonry-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.wl-masonry-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(167, 139, 250, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3f3f3;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.wl-masonry-icon-badge i {
    width: 16px;
    height: 16px;
}

.wl-masonry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wl-masonry-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wl-mcard {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wl-mcard:active,
.wl-mcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.wl-mcard-overlay {
    position: absolute;
    inset: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.85) 100%);
}

.wl-mcard-overlay.top-heavy {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.65) 100%);
}

.wl-mcard-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wl-mcard-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.wl-mcard-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.wl-mcard-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.wl-mcard-user-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
}

.wl-mcard-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.wl-mcard-title-lg {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.wl-mcard-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 4px;
}

.wl-mcard-pill {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-transform: uppercase;
}

/* Bottom Nav Bar */
.wl-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 13, 16, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px 10px;
    z-index: 100;
    box-sizing: border-box;
    pointer-events: auto;
}

.wl-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.wl-nav-item i {
    width: 18px;
    height: 18px;
}

.wl-nav-active-pill {
    background: rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 999px;
    width: 48px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
}

.wl-nav-item.active {
    background: transparent;
    color: #60a5fa;
    font-weight: 600;
}

/* Profile Page Custom Styles */
.wl-profile-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 16px 90px;
}

.wl-profile-main-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
}

.wl-profile-avatar-wrapper {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.wl-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wl-profile-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.wl-profile-handle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.wl-profile-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: #cbd5e1;
    flex-wrap: wrap;
    justify-content: center;
}

.wl-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wl-profile-meta-item i {
    width: 15px;
    height: 15px;
    color: #94a3b8;
}

.wl-profile-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wl-profile-info-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    min-height: 125px;
    border-radius: 20px;
}

.wl-profile-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.wl-arrow-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.wl-email-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #0b0d10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wl-email-circle i {
    width: 18px;
    height: 18px;
}

.wl-fb-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #0b0d10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wl-fb-circle i {
    width: 18px;
    height: 18px;
}

.wl-profile-info-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 12px;
}

.wl-profile-text-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.wl-profile-text-sub {
    font-size: 0.8rem;
    color: #94a3b8;
}

.wl-profile-map-row {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 12px;
    align-items: stretch;
}

.wl-profile-pillar {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wl-profile-map-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #14171a;
}

.wl-profile-list-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
}

.wl-profile-list-card {
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 210px;
}

.wl-profile-list-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.82) 100%);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wl-list-circle {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #0b0d10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wl-list-circle i {
    width: 18px;
    height: 18px;
}

.wl-profile-list-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 6px 0 4px;
}

.wl-profile-ol {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 16px;
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.wl-profile-thumb-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wl-profile-thumb-card {
    flex: 1;
    min-height: 98px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.wl-thumb-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}

.wl-profile-insta-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    min-height: 110px;
    border-radius: 20px;
}
