/* Custom styles for Afrisoek */

/* Afrisoek Premium Design System - v1.0.1 - Logo Refresh */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.jumbotron {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s;
}

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

footer {
    margin-top: auto;
}

/* Custom navbar styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    opacity: 0.95;
    transition: opacity 0.2s, color 0.2s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    opacity: 1;
    color: #f8f9fa !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-in;
}

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

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

/* Premium Search Styles */
body {
    background: radial-gradient(circle at top, #1a1b26, #000000);
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
}

.search-hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.search-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.search-input-group {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.search-input {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    border-radius: 3rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(20, 20, 30, 0.6);
    color: #fff;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2), 0 8px 30px rgba(0,0,0,0.4);
    background: rgba(30, 30, 45, 0.8);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.result-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.result-card:hover {
    transform: translateX(5px);
    border-left-color: #60a5fa;
    background: rgba(255, 255, 255, 0.08);
}

.result-url {
    color: #34d399;
    font-size: 0.875rem;
    text-decoration: none;
}

.result-title {
    color: #93c5fd;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0;
    text-decoration: none;
}

.result-title:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.result-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-logo {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(96, 165, 250, 0.4));
    animation: fadeInDown 1s ease-out;
    transition: all 0.5s ease;
}

.search-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(167, 139, 250, 0.6));
}

.search-logo-small {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.3));
    animation: fadeInDown 0.8s ease-out;
}
/* ========================================================
   Afrisoek Business Directory & Leaflet Map Styles
   ======================================================== */
.search-box-wrapper {
    background: rgba(20, 20, 30, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3rem;
    padding: 0.4rem 0.6rem 0.4rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    max-width: 950px;
    margin: 0 auto;
}

.search-box-wrapper:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.search-input-bare {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.15rem;
}

.search-input-bare::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.search-city-select {
    background: rgba(30, 35, 50, 0.85);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 2rem;
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    min-width: 170px;
    max-width: 220px;
}

.search-city-select:focus {
    background: rgba(30, 35, 50, 0.95);
    color: #fff;
    border-color: #60a5fa;
    box-shadow: none;
}

.search-btn-primary {
    border-radius: 2rem;
    padding: 0.65rem 1.6rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    color: white;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.search-btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    color: white;
}

/* Leaflet Map Styling */
.map-sticky-panel {
    position: sticky;
    top: 25px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
}

#business-map {
    height: 520px;
    width: 100%;
    border-radius: 1rem;
    z-index: 10;
}

.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.95) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 0.75rem !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95) !important;
}

.leaflet-popup-content {
    margin: 12px 14px !important;
    line-height: 1.4 !important;
}

/* Quick Filter Pills */
.filter-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: rgba(96, 165, 250, 0.25);
    border-color: #60a5fa;
    color: #fff;
    transform: translateY(-2px);
}

/* Business directory card */
.business-directory-card {
    border-left: 4px solid #3b82f6 !important;
    transition: all 0.25s ease;
}

.business-directory-card:hover {
    border-left-color: #a855f7 !important;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2) !important;
    transform: translateY(-2px);
}

/* Enhanced Area & Business Type Filter Controls */
.search-filter-select {
    background: rgba(26, 32, 48, 0.9) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(147, 197, 253, 0.3) !important;
    border-radius: 2rem !important;
    padding: 0.5rem 1.1rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.search-filter-select:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.25);
}

.search-filter-select:focus {
    background: rgba(30, 38, 60, 0.98) !important;
    color: #fff !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25) !important;
}

.search-filter-row {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    padding: 0.45rem 0.8rem;
    max-width: 950px;
    margin: 0.85rem auto 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filter-btn-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-btn-pill.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
    border-color: transparent !important;
}

.filter-btn-pill:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.filter-btn-pill:not(.active):hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(96, 165, 250, 0.4);
}

.active-area-badge {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #93c5fd;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.active-area-badge a {
    color: #f87171;
    text-decoration: none;
    font-weight: bold;
    margin-left: 0.25rem;
}

.active-area-badge a:hover {
    color: #ef4444;
}

