/* ============================================
   NP Booking Platform - Custom Styles
   Colors based on NP Brand
   ============================================ */

:root {
    /* NP Brand Colors */
    --np-black: #000000;
    --np-white: #FFFFFF;
    --np-primary: #1a1a1a;
    --np-secondary: #333333;
    --np-accent: #FF6B35;
    --np-accent-light: #FF8F66;
    
    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Spacing */
    --container-max: 1280px;
    --mobile-padding: 1rem;
    --desktop-padding: 2rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--np-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--gray-50);
    color: var(--np-primary);
}

/* ============================================
   NP Logo Styles
   ============================================ */

.np-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -0.05em;
    color: var(--np-black);
    text-transform: uppercase;
}

.np-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.np-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--np-black) 0%, var(--np-secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
    font-size: 1.5rem;
    letter-spacing: -2px;
}

/* ============================================
   Country Selector
   ============================================ */

.country-selector {
    position: relative;
    z-index: 100;
}

.country-button {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.country-button:hover {
    border-color: var(--np-accent);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.flag-icon {
    font-size: 20px;
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 200px;
    z-index: 50;
}

.country-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.country-option {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
}

.country-option:hover {
    background: var(--gray-50);
    color: var(--np-primary);
}

/* ============================================
   Mobile App-Like Design
   ============================================ */

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--gray-200);
        padding: 0.75rem 0;
        display: flex;
        justify-content: space-around;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 1rem;
        text-decoration: none;
        color: var(--gray-500);
        transition: all 0.2s ease;
    }
    
    .mobile-nav-item.active {
        color: var(--np-accent);
    }
    
    .mobile-nav-item i {
        font-size: 1.5rem;
    }
    
    .mobile-nav-item span {
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    /* Mobile Hero */
    .mobile-hero {
        padding: 1rem;
        padding-top: 5rem;
        padding-bottom: 6rem;
    }
    
    /* Mobile Search Box */
    .mobile-search {
        position: fixed;
        top: 4rem;
        left: 1rem;
        right: 1rem;
        z-index: 50;
        background: white;
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        padding: 1rem;
    }
    
    /* Mobile Cards */
    .mobile-card {
        background: white;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    /* Pull to Refresh Indicator */
    .pull-indicator {
        text-align: center;
        padding: 1rem;
        color: var(--gray-400);
        font-size: 0.875rem;
    }
}

/* ============================================
   Modern Search Box with Map
   ============================================ */

.search-container {
    position: relative;
}

.search-box-advanced {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease;
    display: grid !important;
    grid-template-columns: 1fr 1fr auto auto !important;
    gap: 1rem !important;
    align-items: center !important;
}

@media (max-width: 768px) {
    .search-box-advanced {
        grid-template-columns: 1fr !important;
    }
}

.search-box-advanced:focus-within {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-button {
    white-space: nowrap;
}

.view-toggle {
    white-space: nowrap;
}

.view-toggle.active {
    background: linear-gradient(135deg, var(--np-primary) 0%, var(--np-secondary) 100%);
}

.search-input-group {
    position: relative !important;
}

.search-input-group i {
    position: absolute !important;
    left: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--gray-400) !important;
    font-size: 1.125rem !important;
}

.search-input {
    width: 100% !important;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem !important;
    border: 2px solid var(--gray-200) !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.search-input:focus {
    outline: none !important;
    border-color: var(--np-accent);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suggestion-item:hover {
    background: var(--gray-50);
}

.suggestion-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--np-accent);
}

/* ============================================
   Map Container
   ============================================ */

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: 500px;
    margin-top: 2rem;
}

#map {
    width: 100%;
    height: 100%;
}

.map-marker-custom {
    background: var(--np-accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

/* ============================================
   Business Cards
   ============================================ */

.business-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.business-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--np-primary) 0%, var(--np-secondary) 100%);
    overflow: hidden;
}

.business-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--np-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Category Cards
   ============================================ */

.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--np-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--np-accent) 0%, var(--np-accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--np-primary);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ============================================
   Business Card Content
   ============================================ */

.business-card-content {
    padding: 1.5rem;
}

.business-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--np-primary);
    margin-bottom: 0.5rem;
}

.business-card-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn-np-primary {
    background: linear-gradient(135deg, var(--np-black) 0%, var(--np-secondary) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-np-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-np-accent {
    background: linear-gradient(135deg, var(--np-accent) 0%, var(--np-accent-light) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-np-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   Responsive Utilities
   ============================================ */

@media (max-width: 640px) {
    .np-logo {
        font-size: 1.5rem;
    }
    
    .np-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .map-container {
        height: 400px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .mobile-nav,
    .country-selector,
    .search-container {
        display: none;
    }
}
