@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #f0f4f8 100%);
    min-height: 100vh;
    color: #0f172a;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    padding: 14px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: 64px;
    position: relative;
}

.logo-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-btn:hover {
    transform: scale(1.04);
}

.logo-btn:active {
    transform: scale(0.97);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.nav-right-primary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    background: none;
    border: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    text-decoration: none;
}

.nav-link:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    transform: translateY(-1px);
}

.nav-link:active {
    transform: translateY(0px) scale(0.98);
}

.nav-action-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: #fff;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 10px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.nav-action-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25);
}

.nav-action-btn:hover::before {
    left: 100%;
}

.nav-auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-btn-outline {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    border: 2px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-btn-outline:hover {
    border-color: rgba(15, 23, 42, 0.25);
    background: rgba(15, 23, 42, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-btn-primary {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
}

.nav-btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn-logout:hover {
    border-color: rgba(15, 23, 42, 0.25);
    background: rgba(15, 23, 42, 0.04);
}

/* ===== CONTAINER & SECTIONS ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 36px);
    margin: 16px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section h2 {
    color: #0f172a;
    margin-bottom: 18px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== SEARCH & FILTER ===== */
.search-filter-section {
    background: rgba(255, 255, 255, 0.94);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

.search-container {
    margin-bottom: 18px;
}

.search-input {
    width: 100%;
    padding: 16px 22px;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-weight: 500;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    background: white;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid rgba(30, 64, 175, 0.2);
    border-top: none;
    border-radius: 0 0 14px 14px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.15);
}

.suggestion-category {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
    color: #0f172a;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.suggestion-item:hover {
    background: rgba(30, 64, 175, 0.08);
    padding-left: 20px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.filter-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    font-weight: 500;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #1e40af;
    outline: none;
    background: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
}

.filter-toggles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 18px;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: #1e40af;
    background: rgba(30, 64, 175, 0.05);
    color: #1e40af;
}

.filter-btn.active {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: white;
    border-color: #1e40af;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

/* ===== BUSINESS GRID & CARDS ===== */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 18px;
    animation: fadeIn 0.5s ease-out;
}

.business-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(30, 64, 175, 0.2);
}

.business-card:active {
    transform: translateY(-4px);
}

.business-images-container {
    position: relative;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
}

.image-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.image-carousel::-webkit-scrollbar {
    display: none;
}

.business-card-image {
    flex: 0 0 100%;
    width: 100%;
    height: clamp(180px, 40vw, 300px);
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
    scroll-snap-align: start;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.carousel-nav.prev {
    left: 12px;
}

.carousel-nav.next {
    right: 12px;
}

.image-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    display: none;
    z-index: 5;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 6px;
    z-index: 4;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.carousel-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

.business-name {
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    word-wrap: break-word;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.3px;
}

.business-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    color: #1e40af;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.business-hours {
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #15803d;
    margin: 10px 0;
    border-left: 3px solid #22c55e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-hours.closed {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left-color: #ef4444;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.open {
    background: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.status-badge.closed {
    background: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.business-info {
    color: #64748b;
    margin: 8px 0;
    font-size: 0.9rem;
    word-break: break-word;
}

.business-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 2px solid rgba(30, 64, 175, 0.3);
}

.business-link:hover {
    color: #0f4fa0;
    border-bottom-color: #1e40af;
}

.distance-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.business-description {
    color: #64748b;
    margin-top: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.favorite-btn:hover {
    transform: scale(1.15);
}

.favorite-btn.favorited {
    animation: heartbeat 0.3s ease-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.show-more-btn {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 2px solid rgba(30, 64, 175, 0.2);
    color: #1e40af;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    min-height: 40px;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.18) 0%, rgba(59, 130, 246, 0.12) 100%);
    border-color: rgba(30, 64, 175, 0.4);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.15);
    transform: translateY(-2px);
    color: #0f4fa0;
}

.business-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    min-height: 44px;
    font-family: 'Inter', sans-serif;
}

.edit-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.edit-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.25);
}

.delete-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.25);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    animation: fadeIn 0.3s ease-in;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    max-width: 540px;
    margin: 20px auto;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal h2 {
    color: #0f172a;
    margin-bottom: 28px;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    padding-right: 40px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #cbd5e1;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 50%;
}

/* ===== CONFIRM MODAL ===== */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    animation: fadeIn 0.3s ease-in;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.confirm-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    max-width: 400px;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    text-align: center;
}

.confirm-content h3 {
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.confirm-content p {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.action-btn.edit-btn {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.2);
}

.action-btn.edit-btn:hover {
    background: rgba(15, 23, 42, 0.15);
    border-color: rgba(15, 23, 42, 0.3);
    transform: translateY(-2px);
}

.action-btn.delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.action-btn.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

/* ===== CHECKBOX STYLING ===== */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1e40af;
}

.form-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.always-open-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1e40af;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    color: #0f172a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: rgba(15, 23, 42, 0.15);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
    letter-spacing: 0.5px;
    min-height: 48px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== FILE UPLOAD ===== */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: block;
    padding: 22px;
    border: 2px dashed rgba(30, 64, 175, 0.3);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(30, 64, 175, 0.03);
    font-family: 'Inter', sans-serif;
}

.file-input-label:hover,
.file-input-label:active {
    border-color: #1e40af;
    color: #0f172a;
    background: rgba(30, 64, 175, 0.08);
}

.preview-container {
    position: relative;
    display: inline-block;
}

.image-preview {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.remove-image:hover {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
.atlas-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: #fff;
    width: 100%;
    padding: 28px 0 20px 0;
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    z-index: 1100;
    margin-top: auto;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

.atlas-footer .footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: normal;
    word-wrap: break-word;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-text {
    color: #e0e7ff;
    letter-spacing: 0.3px;
}

/* ===== BOTTOM NAVIGATION (Mobile) ===== */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 2px solid rgba(229, 231, 235, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    z-index: 1000;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    gap: 4px;
}

.bottom-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    font-weight: 600;
}

.bottom-nav-btn:active, .bottom-nav-btn:focus {
    background: rgba(30, 64, 175, 0.08);
    color: #1e40af;
}

.bottom-nav-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.bottom-nav-label {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* ===== IMAGE MODAL ===== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2500;
    animation: fadeIn 0.3s ease-in;
    padding: 20px;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.image-modal img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

.image-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2501;
    backdrop-filter: blur(4px);
}

.image-nav-prev {
    left: 16px;
}

.image-nav-next {
    right: 16px;
}

.image-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.image-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.image-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2501;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(30, 64, 175, 0.3); }
    50% { box-shadow: 0 0 20px rgba(30, 64, 175, 0.5); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 16px;
        height: 60px;
    }

    .nav-right {
        display: none !important;
    }

    .nav-center {
        display: none !important;
    }

    .section {
        padding: clamp(20px, 4vw, 28px);
        margin: 16px 0;
        border-radius: 18px;
    }

    .business-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
        gap: 14px;
    }

    .search-filter-section {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
    }

    .bottom-nav {
        display: flex;
    }

    .atlas-footer {
        margin-bottom: 68px;
    }

    .footer-logo {
        display: none;
    }

    .atlas-footer .footer-content {
        flex-direction: column;
        gap: 10px;
        padding: 0 16px;
    }

    .modal-content {
        margin: 60px auto 20px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
    }

    .search-input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .business-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .business-card {
        padding: 16px;
    }

    .submit-btn,
    .action-btn {
        padding: 12px 16px;
    }
}

/* Loading state */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #64748b;
}

.spinner {
    border: 3px solid rgba(30, 64, 175, 0.1);
    border-top: 3px solid #1e40af;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 500;
    animation: slideUp 0.3s ease-out;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-left: 4px solid #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Toggle form */
.toggle-form {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-weight: 500;
}

.toggle-form a {
    color: #1e40af;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.toggle-form a:hover {
    color: #0f4fa0;
}

/* Profile Page */
.profile-page {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.profile-header {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 40px 30px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.profile-header h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e40af;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 8px;
}

.back-btn {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.back-btn:hover {
    background: rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.2);
}

/* Professional Description Formatting */
.description-section {
    background: rgba(255, 255, 255, 0.96);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(30, 64, 175, 0.08);
    margin-bottom: 24px;
}

.description-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(30, 64, 175, 0.15);
}

/* Description Text Formatting */
.description-text {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.description-text p {
    margin-bottom: 14px;
    color: #475569;
}

.description-text p:first-child {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
}

/* Lists and Grouping */
.description-text ul,
.description-text ol {
    margin: 16px 0 16px 24px;
    padding: 0;
}

.description-text li {
    margin-bottom: 8px;
    color: #475569;
    line-height: 1.6;
}

.description-text strong {
    color: #1e40af;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.description-text em {
    color: #2d5a8c;
    font-style: italic;
    font-weight: 500;
}

/* Highlight Elements */
.highlight-phone {
    background: rgba(59, 130, 246, 0.08);
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.highlight-time {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.highlight-location {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.highlight-price {
    background: rgba(236, 211, 77, 0.15);
    color: #b45309;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Section Separators */
.section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid #1e40af;
    display: block;
}

.section-heading:first-child {
    margin-top: 0;
}

/* Subsection Styling */
.subsection {
    margin-left: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(30, 64, 175, 0.02);
    border-left: 3px solid rgba(30, 64, 175, 0.2);
}

/* Accessibility */
.skip-link {
    display: none;
}

/* Compression Status */
.compression-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 8px;
    color: #1e40af;
    font-weight: 500;
}

.compression-status .spinner {
    width: 20px;
    height: 20px;
    margin: 0;
}

/* Loading Skeleton */
.loading-skeleton {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #64748b;
}

.loading-skeleton .spinner {
    width: 50px;
    height: 50px;
}

.loading-skeleton p {
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Fade-in Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.business-card {
    animation: fadeIn 0.3s ease-out;
}

.alert {
    animation: fadeIn 0.2s ease-out;
}

.modal {
    animation: fadeIn 0.2s ease-out;
}
