/* index.css - Dedicated premium styles for Smega redesigned index page */

:root {
    --bg-main: #f8fafc;
    /* Beautiful soft slate gray */
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #64748b;
    /* Slate 500 */
    --border-color: #f1f5f9;
    /* Slate 100 */
    --border-card: #e2e8f0;
    /* Slate 200 */
    --accent-purple: #6366f1;
    /* Indigo 500 */
    --accent-purple-light: #e0e7ff;
    /* Indigo 100 */
    --accent-purple-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-blue: #0b1c46;
    /* Dark Blue */
    --accent-blue-hover: #07122e;
    /* Dark Blue Hover */
    --accent-green: #10b981;
    /* Emerald 500 */
    --accent-green-light: #d1fae5;
    /* Emerald 100 */
    --accent-red: #ef4444;
    /* Red 500 */
    --accent-red-light: #fee2e2;
    /* Red 100 */
    --accent-orange: #f97316;
    /* Orange 500 */
    --accent-orange-light: #ffedd5;
    /* Orange 100 */
    --header-height: 72px;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header styling */
.main-header {
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-emoji {
    font-size: 1.4rem;
}

/* Redesigned Premium Search Bar */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 680px;
    margin: 0 2rem;
}

.search-bar-redesigned {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 99px;
    padding: 4px 6px 4px 16px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.search-bar-redesigned:focus-within {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.search-field {
    display: flex;
    align-items: center;
    flex: 1.2;
    gap: 0.5rem;
}

.search-field.location {
    flex: 0.8;
    border-left: 1px solid var(--border-color);
    padding-left: 1rem;
}

.search-icon-inline {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.search-input-inline {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
}

.search-input-inline::placeholder {
    color: #94a3b8;
}

.location-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    width: 100%;
}

.location-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caret-icon {
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: 0.5rem;
}

.search-submit-btn-new {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-purple);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-submit-btn-new:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

/* Header Right Options */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.language-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.language-btn:hover {
    background: var(--bg-main);
}

.business-dash-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border-card);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.business-dash-btn:hover {
    background: var(--bg-main);
    border-color: #cbd5e1;
}

/* Custom Header Auth Pill Buttons (Dark Blue) */
.business-dash-btn.header-login-btn {
    border: none;
    background: none;
    font-weight: 700;
    color: var(--accent-blue);
    transition: all 0.2s ease;
}

.business-dash-btn.header-login-btn:hover {
    background: none;
    color: var(--accent-blue-hover);
    transform: translateY(-1px);
}

.business-dash-btn.header-signup-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.15);
}

.business-dash-btn.header-signup-btn:hover {
    background: var(--accent-blue-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -1px rgba(30, 58, 138, 0.25);
}

.business-dash-btn.header-signup-btn:active {
    transform: translateY(0);
}


.user-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.user-avatar-btn:hover {
    border-color: var(--accent-purple);
}

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

/* Main Layout Grid */
.home-layout {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem 3rem 0;
    /* Flush against left edge, padding on right */
    gap: 2rem;
    min-width: 0;
}

/* Left Sidebar - Live Updates */
.live-megas-sidebar {
    width: 460px;
    /* Wider sidebar for live updates */
    flex-shrink: 0;
    /* Prevent sidebar from shrinking to 0 width */
    background: #ffffff;
    border-radius: 0;
    border-top: none;
    border-right: 1px solid var(--border-color);
    /* Border on the right */
    border-bottom: none;
    border-left: none;
    /* Flush on left edge */
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-self: stretch;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    max-height: calc(100vh - var(--header-height));
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02);
    /* Shadow cast to the right */
    z-index: 10;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-badge {
    background: var(--accent-purple);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
}

.sidebar-collapse-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.sidebar-collapse-btn:hover {
    color: var(--text-primary);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-right: 4px;
}

/* Scrollbar customization for list */
.sidebar-list::-webkit-scrollbar {
    width: 4px;
}

.sidebar-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 99px;
}

.sidebar-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-item:hover {
    background: var(--bg-main);
}

.sidebar-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

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

.sidebar-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-item-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sidebar-item-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.sidebar-item-image {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-item:hover .sidebar-item-image img {
    transform: scale(1.04);
}

.sidebar-item-tag {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    margin-top: 0.25rem;
}

/* Tag colors based on type */
.sidebar-item-tag.nightlife {
    background: #e0e7ff;
    color: #4338ca;
}

.sidebar-item-tag.deal {
    background: var(--accent-green-light);
    color: #047857;
}

.sidebar-item-tag.live-music {
    background: #f3e8ff;
    color: #7e22ce;
}

.sidebar-item-tag.food {
    background: #e0f2fe;
    color: #0369a1;
}

.view-all-megas-btn {
    width: 100%;
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.view-all-megas-btn:hover {
    color: var(--accent-purple);
}

/* Right Content Column */
.main-content-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1.5rem;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

/* Upper Horizontal block: Hero Card + Map merged - Now full-width Map Banner */
.hero-map-section {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-card);
    overflow: hidden;
    height: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Left side: Hero Details */
.hero-details-card {
    flex: 1.1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #fdfeff 100%);
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.hero-title span {
    background: var(--accent-purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 420px;
}

.hero-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f8fafc;
    border: 1px solid var(--border-card);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.filter-pill.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

.filter-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
}

.hero-popular-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.popular-label {
    font-weight: 600;
    color: var(--text-primary);
}

.popular-tag {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.popular-tag:hover {
    color: var(--accent-purple);
}

.popular-tag::after {
    content: "  ";
}

/* Right side: Map Container - NOW full-width map banner */
.hero-map-wrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
}

.map-floating-search-container {
    position: absolute;
    top: 1.25rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.map-floating-search-btn {
    pointer-events: auto;
    /* Stays above Leaflet overlay */
    background: #ffffff;
    border-radius: 99px;
    padding: 10px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.map-floating-search-btn:hover {
    background: #f8fafc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    color: #4f46e5;
}

.map-floating-search-btn:active {
    transform: translateY(1px) scale(0.98);
}

#map-new {
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Esri World Street Map - natural crisp styling */
.modern-map-tiles {
    filter: none;
}

/* Custom Map Markers */
.map-marker-container {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-outer {
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    border: 2px solid #ffffff;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marker-outer.standard:hover {
    transform: scale(1.15);
}

.marker-outer.featured {
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 183, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.marker-inner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-inner.standard {
    background: #64748b;
}

.marker-inner.featured {
    background: #f59e0b;
}

/* Category-specific Marker Colors */
.marker-inner.marker-cat-nightlife {
    background: #6366f1;
}
.marker-inner.marker-cat-deal,
.marker-inner.marker-cat-promo {
    background: #10b981;
}
.marker-inner.marker-cat-live-music {
    background: #8b5cf6;
}
.marker-inner.marker-cat-food,
.marker-inner.marker-cat-restaurant,
.marker-inner.marker-cat-cafe {
    background: #f97316;
}
.marker-inner.marker-cat-retail,
.marker-inner.marker-cat-shopping {
    background: #ec4899;
}
.marker-inner.marker-cat-entertainment {
    background: #ef4444;
}
.marker-inner.marker-cat-health {
    background: #14b8a6;
}

/* Category-specific Premium Shadows for Featured/Glowing markers */
.marker-outer.marker-cat-nightlife.featured {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}
.marker-outer.marker-cat-deal.featured,
.marker-outer.marker-cat-promo.featured {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}
.marker-outer.marker-cat-live-music.featured {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}
.marker-outer.marker-cat-food.featured,
.marker-outer.marker-cat-restaurant.featured,
.marker-outer.marker-cat-cafe.featured {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}
.marker-outer.marker-cat-retail.featured,
.marker-outer.marker-cat-shopping.featured {
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}
.marker-outer.marker-cat-entertainment.featured {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}
.marker-outer.marker-cat-health.featured {
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Leaflet Popup Overrides */
.leaflet-popup-content-wrapper {
    background: #ffffff;
    color: #0f172a;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 0.25rem;
}

.leaflet-popup-content {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0.75rem 1rem;
    color: #475569;
}

.leaflet-popup-content b {
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.35rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.leaflet-popup-tip {
    background: #ffffff;
}

/* Premium Leaflet zoom controls styling */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid var(--border-card) !important;
    font-weight: 700 !important;
    transition: background 0.2s, color 0.2s !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
    background-color: var(--bg-main) !important;
    color: var(--primary) !important;
}

/* Section Header Styling */
.section-header-redesigned {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title-new {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.view-all-link:hover {
    color: var(--accent-purple);
}

/* Trending Now Section */
.trending-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.5rem;
    min-width: 0;
    max-width: 100%;
}

.trending-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-width: 0;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
}

.trending-carousel::-webkit-scrollbar {
    height: 6px;
    display: block;
}

.trending-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 99px;
}

.trending-carousel::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 99px;
    transition: background 0.2s ease;
}

.trending-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

.trending-card {
    flex-shrink: 0;
    min-width: 280px;
    height: 180px;
    border-radius: 20px;
    background: var(--card-gradient, #e2e8f0);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.trending-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.trending-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    z-index: 1;
}

.trending-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.trending-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0.25rem;
}

.trending-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.trending-card-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.trending-people {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 99px;
}

/* Bottom Grid - Single Column */
.bottom-three-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

/* Column 2: Live Updates */
.column-megas-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.column-mega-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: var(--bg-main);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.column-mega-item:hover {
    background: #f1f5f9;
}

.column-mega-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.column-mega-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.column-mega-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.column-mega-details {
    display: flex;
    flex-direction: column;
}

.column-mega-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.column-mega-text {
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 600;
}

.column-mega-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Column 3: Own a local business promotion card */
.business-promo-card {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    width: 50%;
    justify-self: start;
}

@media (max-width: 768px) {
    .business-promo-card {
        width: 100%;
    }
}

.business-promo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 60%;
    position: relative;
    z-index: 5;
}

.business-promo-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #312e81;
}

.business-promo-desc {
    font-size: 0.85rem;
    color: #4f46e5;
    line-height: 1.4;
    font-weight: 500;
}

.business-promo-btns {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    position: relative;
    z-index: 5;
}

.promo-btn-primary {
    background: var(--accent-purple);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.promo-btn-primary:hover {
    background: #4f46e5;
}

.promo-btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-card);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.promo-btn-secondary:hover {
    background: var(--bg-main);
}

/* Megaphone / Shop Illustration inside Promo Card */
.business-promo-illustration {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    width: 140px;
    height: 140px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Refined single-row modern footer styles */
.footer-modern {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-slogan {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-center-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-purple);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-icon {
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
}

.footer-social-icon:hover {
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Media Queries for Responsive Layout */
@media (max-width: 1100px) {
    .main-header {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .header-center {
        order: 3;
        margin: 0;
        max-width: 100%;
        flex: 1 1 100%;
    }

    .header-right {
        margin-left: auto;
    }

    .home-layout {
        flex-direction: column;
        padding: 1.5rem;
    }

    .live-megas-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        border-radius: 16px;
        border: 1px solid var(--border-card);
        height: auto;
        box-shadow: none;
    }

    .main-content-column {
        padding-top: 0;
    }

    .bottom-three-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-map-section {
        flex-direction: column;
        height: auto;
    }

    .hero-details-card {
        padding: 1.5rem;
    }

    .hero-map-wrapper {
        height: 400px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@keyframes spin-custom {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-spin-custom {
    animation: spin-custom 0.8s linear infinite;
}

/* User Account Display in Header */
.header-user-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 99px;
}

.header-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.header-user-wrapper:hover .header-user-name {
    color: var(--accent-purple);
}

.header-user-wrapper:hover .user-avatar-btn {
    border-color: var(--accent-purple);
}

/* Premium Lightbox Image Viewer Modal */
.image-viewer-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(15, 23, 42, 0.9); /* Dark background matching text-primary */
    backdrop-filter: blur(12px); /* Beautiful premium glassmorphism blur */
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-viewer-modal.show {
    display: flex;
    opacity: 1;
}

.image-viewer-content-container {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-viewer-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.image-viewer-caption {
    margin: auto;
    display: block;
    width: 100%;
    text-align: center;
    color: #f1f5f9;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 16px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: fit-content;
}

.image-viewer-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #94a3b8;
    font-size: 32px;
    font-weight: 300;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1;
    user-select: none;
}

.image-viewer-close:hover,
.image-viewer-close:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* MapLibre Styling Overrides */
.map-marker-container {
    cursor: pointer;
}

.maplibregl-popup-content {
    background: #ffffff !important;
    color: #0f172a !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid rgba(0,0,0,0.05);
}

.maplibregl-popup-tip {
    border-top-color: #ffffff !important;
    border-bottom-color: #ffffff !important;
}

.maplibregl-popup-close-button {
    font-size: 16px !important;
    padding: 4px 8px !important;
    color: #94a3b8 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 12px 0 0 !important;
    top: 4px !important;
    right: 4px !important;
}

.maplibregl-popup-close-button:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}