/* ============================================================
   Shoppi Local — City-Based SEO Directory
   Premium dark design with map & local discovery aesthetics
   ============================================================ */

:root {
    --local-bg: #080b11;
    --local-surface: #0f131a;
    --local-card: #141923;
    --local-accent: #ff4b6e;
    --local-accent-soft: rgba(255, 75, 110, 0.12);
    --local-accent-glow: rgba(255, 75, 110, 0.25);
    --local-secondary: #f97316;
    --local-text: #f1f5f9;
    --local-text-muted: #94a3b8;
    --local-border: rgba(255, 255, 255, 0.07);
    --local-glass: rgba(255, 255, 255, 0.04);
    --local-radius: 20px;
    --local-radius-sm: 14px;
    --local-radius-xs: 10px;
}

body.shoppi-local {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--local-bg);
    color: var(--local-text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.shoppi-local h1,
.shoppi-local h2,
.shoppi-local h3,
.shoppi-local h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

/* ─── Navbar ─── */
.local-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--local-border);
    padding: 16px 0;
}

.local-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.local-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.local-nav-brand img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.local-nav-brand .badge-local {
    background: var(--local-accent-soft);
    color: var(--local-accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.local-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.local-search-bar {
    background: var(--local-glass);
    border: 1px solid var(--local-border);
    border-radius: 50px;
    padding: 8px 18px;
    color: var(--local-text);
    font-size: 0.85rem;
    width: 260px;
    outline: none;
    transition: all 0.3s ease;
}

.local-search-bar:focus {
    border-color: var(--local-accent);
    box-shadow: 0 0 0 3px var(--local-accent-glow);
}

/* ─── Hero Section ─── */
.local-hero {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--local-bg) 0%, #0d1529 50%, var(--local-surface) 100%);
    overflow: hidden;
    text-align: center;
}

.local-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, var(--local-accent-glow) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
}

.local-hero .map-icon {
    font-size: 3.5rem;
    color: var(--local-accent);
    margin-bottom: 20px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        text-shadow: 0 0 20px var(--local-accent-glow);
    }

    50% {
        text-shadow: 0 0 40px var(--local-accent-glow), 0 0 80px rgba(16, 185, 129, 0.15);
    }
}

.local-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 30%, var(--local-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.local-hero .hero-sub {
    font-size: 1.15rem;
    color: var(--local-text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ─── City Grid ─── */
.local-section {
    padding: 60px 0;
}

.local-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.local-section-sub {
    color: var(--local-text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.city-card {
    background: var(--local-card);
    border: 1px solid var(--local-border);
    border-radius: var(--local-radius);
    padding: 28px;
    text-decoration: none;
    color: var(--local-text);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--local-accent), var(--local-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.city-card:hover {
    border-color: var(--local-accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--local-accent-glow);
    color: var(--local-text);
    text-decoration: none;
}

.city-card:hover::before {
    opacity: 1;
}

.city-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--local-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--local-accent);
    flex-shrink: 0;
}

.city-card-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.city-card-info .country-tag {
    font-size: 0.78rem;
    color: var(--local-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.city-card-info .business-count {
    font-size: 0.75rem;
    color: var(--local-accent);
    font-weight: 600;
    margin-top: 8px;
}

/* ─── City Detail Page ─── */
.city-header {
    padding: 50px 0 30px;
    background: linear-gradient(180deg, var(--local-bg) 0%, var(--local-surface) 100%);
}

.city-header .breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.city-header .breadcrumb a {
    color: var(--local-accent);
    text-decoration: none;
}

.city-header .breadcrumb a:hover {
    text-decoration: underline;
}

.city-header .breadcrumb .sep {
    color: var(--local-text-muted);
    margin: 0 8px;
}

.city-header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.city-header .city-meta {
    color: var(--local-text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.city-header .city-meta i {
    color: var(--local-accent);
}

/* ─── Category Pills ─── */
.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px 0;
    overflow-x: auto;
}

.category-pill {
    background: var(--local-card);
    border: 1px solid var(--local-border);
    color: var(--local-text-muted);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-pill:hover,
.category-pill.active {
    background: var(--local-accent);
    color: #0a0e1a;
    border-color: var(--local-accent);
    transform: scale(1.05);
}

/* ─── Business Listing Cards ─── */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 400px));
    gap: 24px;
    justify-content: center;
}


.business-card {
    background: var(--local-card);
    border: 1px solid var(--local-border);
    border-radius: var(--local-radius);
    overflow: hidden;
    transition: all 0.35s ease;
    text-decoration: none;
    color: var(--local-text);
}

.business-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    color: var(--local-text);
    text-decoration: none;
}

.business-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--local-glass);
}

.business-card-img.fallback-gradient {
    background: linear-gradient(135deg, #1a2236, #2d3a5c);
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-card-body {
    padding: 24px;
}

.business-card-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.biz-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--local-glass);
    color: var(--local-accent);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.biz-contact-link:hover {
    background: var(--local-accent);
    color: #fff;
    transform: scale(1.1);
}

.biz-category {
    font-size: 0.78rem;
    color: var(--local-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.business-card-body .biz-desc {
    font-size: 0.88rem;
    color: var(--local-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.business-card-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--local-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--local-text-muted);
}

.business-card-footer .rating {
    color: #fbbf24;
    font-weight: 600;
}

/* ─── Map Embed ─── */
.map-embed-wrapper {
    border-radius: var(--local-radius);
    overflow: hidden;
    border: 1px solid var(--local-border);
    margin-bottom: 40px;
    aspect-ratio: 16/7;
    background: var(--local-card);
}

.map-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* ─── Loading Skeleton ─── */
.skeleton {
    background: linear-gradient(90deg, var(--local-card) 25%, rgba(255, 255, 255, 0.06) 50%, var(--local-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--local-radius-xs);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--local-text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--local-accent);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
}

/* ─── Footer CTA ─── */
.local-cta {
    background: linear-gradient(135deg, #0d1529 0%, #1a103d 100%);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--local-border);
}

.local-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.local-cta p {
    color: var(--local-text-muted);
    max-width: 500px;
    margin: 0 auto 30px;
}

.btn-local-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--local-accent);
    color: #0a0e1a;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-local-primary:hover {
    background: #34d399;
    transform: scale(1.05);
    box-shadow: 0 8px 30px var(--local-accent-glow);
    color: #0a0e1a;
}

.btn-local-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--local-text);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--local-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-local-outline:hover {
    border-color: var(--local-accent);
    color: var(--local-accent);
}

/* ─── Merchant Detail ─── */
.merchant-description {
    line-height: 1.8;
}

.merchant-description h2 {
    color: #fff;
}

.merchant-description p {
    color: var(--local-text-muted);
}

.category-pill i {
    margin-right: 4px;
}

/* Smooth link transition */
.shoppi-local a {
    transition: color 0.2s ease;
}

/* Page fade-in */
.shoppi-local section {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .local-hero h1 {
        font-size: 2.2rem;
    }

    .city-grid {
        grid-template-columns: 1fr;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .local-search-bar {
        width: 160px;
    }

    .city-header h1 {
        font-size: 1.8rem;
    }

    .category-pills {
        flex-wrap: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .category-pills::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .local-hero {
        padding: 50px 0 40px;
    }

    .local-hero h1 {
        font-size: 1.8rem;
    }

    .local-hero .hero-sub {
        font-size: 0.95rem;
    }

    .local-nav-brand .badge-local {
        display: none;
    }
}

/* ============================================================
   Dark Mode Header & Category Pill Overrides for Shoppi Local
   ============================================================ */
.shoppi-local .shoppi-global-header {
    background: rgba(8, 11, 17, 0.8) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.shoppi-local .shoppi-logo-area {
    color: #ffffff !important;
}

.shoppi-local .shoppi-logo-area img {
    filter: brightness(0) invert(1) !important;
}

.shoppi-local .shoppi-logo-area span#header-subdomain-label {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--local-accent) !important;
}

.shoppi-local .shoppi-nav-links a {
    color: var(--local-text-muted) !important;
    font-weight: 500 !important;
}

.shoppi-local .shoppi-nav-links a:hover,
.shoppi-local .shoppi-nav-links a.active {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.shoppi-local .shoppi-auth-area select {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--local-text) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.shoppi-local .shoppi-auth-area select option {
    background: #141923 !important;
    color: #ffffff !important;
}

.shoppi-local .shoppi-auth-area .shoppi-btn-link {
    color: var(--local-text-muted) !important;
}

.shoppi-local .shoppi-auth-area .shoppi-btn-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.shoppi-local .shoppi-btn-primary {
    background: var(--local-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(255, 75, 110, 0.3) !important;
    border: none !important;
}

.shoppi-local .shoppi-btn-primary:hover {
    background: #ff6b8b !important;
    box-shadow: 0 6px 20px rgba(255, 75, 110, 0.5) !important;
    transform: translateY(-1px) !important;
}

.shoppi-local .shoppi-hamburger span {
    background-color: #ffffff !important;
}

.shoppi-local .shoppi-mobile-menu {
    background: rgba(8, 11, 17, 0.98) !important;
    backdrop-filter: blur(10px) !important;
}

.shoppi-local .shoppi-mobile-nav a {
    color: #ffffff !important;
}

.shoppi-local .shoppi-mobile-nav a:hover,
.shoppi-local .shoppi-mobile-nav a.active {
    color: var(--local-accent) !important;
}

.shoppi-local .shoppi-mobile-auth .shoppi-btn-link {
    color: var(--local-text-muted) !important;
}

.shoppi-local .shoppi-mobile-auth .shoppi-btn-link:hover {
    color: #ffffff !important;
}

/* Category Pill enhanced styling */
.shoppi-local .category-pill:hover,
.shoppi-local .category-pill.active {
    background: linear-gradient(135deg, var(--local-accent) 0%, var(--local-secondary) 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 75, 110, 0.3);
}

/* Dark Mode Overrides for sections and footer */
.shoppi-local .local-section {
    background: var(--local-bg) !important;
}

.shoppi-local .shoppi-global-footer {
    background: #080b11 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--local-text-muted) !important;
}

.shoppi-local .shoppi-global-footer .footer-col h4 {
    color: #ffffff !important;
}

.shoppi-local .shoppi-global-footer .footer-col ul li a {
    color: var(--local-text-muted) !important;
}

.shoppi-local .shoppi-global-footer .footer-col ul li a:hover {
    color: var(--local-accent) !important;
}

.shoppi-local .shoppi-global-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--local-text-muted) !important;
}

.shoppi-local .shoppi-global-footer img.footer-logo {
    filter: brightness(0) invert(1) !important;
}

.shoppi-local .shoppi-global-footer .footer-col p {
    color: var(--local-text-muted) !important;
}