/* ========================================
   MODERN SINGLE-COLUMN UTILITY APP DESIGN
   Mobile-First | Airbnb/Google Flights Style
   ======================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.hidden {
    display: none !important;
}

/* ===== STICKY TOP NAVBAR ===== */
.top-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    height: 60px;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0061ff;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.navbar-brand i {
    font-size: 1.25rem;
}

/* Legacy navbar-country removed from HTML */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #0061ff;
    background: #f0f9ff;
}

.bag-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0061ff 0%, #0ea5e9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bag-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.bag-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ===== HERO SEARCH SECTION ===== */
.hero-search {
    background: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
    padding: 40px 20px 32px;
    text-align: center;
}

.hero-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 24px;
}

.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
}

.search-input-hero {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    outline: none;
    transition: box-shadow 0.2s;
}

.search-input-hero:focus {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.search-input-hero::placeholder {
    color: #94a3b8;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
}

.disclaimer-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.disclaimer-text i {
    font-size: 0.75rem;
}

/* ===== HORIZONTAL CATEGORY STRIP ===== */
.category-strip {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-strip-inner {
    display: flex;
    gap: 10px;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-chip:hover {
    background: #0061ff;
    color: white;
    border-color: #0061ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.25);
}

.category-chip.active {
    background: #0061ff;
    color: white;
    border-color: #0061ff;
}

.category-chip i {
    font-size: 0.9rem;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* ===== WELCOME / DEFAULT CONTENT ===== */
.welcome-content {
    animation: fadeIn 0.4s ease-out;
}

/* Info Card - Quick Guide */
.info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-title i {
    color: #0061ff;
}

.info-grid {
    display: grid;
    gap: 16px;
}

.info-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.info-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Popular Searches */
.popular-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.popular-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-tag {
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.popular-tag:hover {
    background: #0061ff;
    color: white;
    border-color: #0061ff;
}

/* Affiliate Section */
.affiliate-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #bae6fd;
}

.affiliate-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.affiliate-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #e0f2fe;
    transition: all 0.2s;
}

.affiliate-link:hover {
    background: #0061ff;
    color: white;
    border-color: #0061ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 97, 255, 0.25);
}

.affiliate-link i {
    color: #0ea5e9;
}

.affiliate-link:hover i {
    color: white;
}

/* ===== CATEGORY LIST PANEL ===== */
.category-list-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #0061ff 0%, #0ea5e9 100%);
    color: white;
}

.panel-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.panel-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.panel-title-group h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.item-count {
    font-size: 0.875rem;
    opacity: 0.9;
}

.category-items-list {
    padding: 16px;
    max-height: 500px;
    overflow-y: auto;
}

/* Category Item Cards */
.category-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-item-card:hover {
    background: #f0f9ff;
    border-color: #0061ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-item-card.active {
    background: #eff6ff;
    border: 2px solid #0061ff;
}

.category-item-name {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    color: #1e293b;
    word-break: break-word;
}

.category-item-status {
    flex-shrink: 0;
}

/* Status Badges */
.status-allowed {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid #bbf7d0;
}

.status-restricted {
    background: #fef9c3;
    color: #854d0e;
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid #fde047;
}

.status-prohibited {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid #fecaca;
}

/* ===== RESULT CARD ===== */
.result-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fecaca;
}

.item-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    padding-right: 50px;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.status-box {
    padding: 24px 16px;
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.status-box:hover {
    transform: translateY(-2px);
}

.status-box:has(.status-value.allowed) {
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
}

.status-box:has(.status-value.prohibited) {
    background: linear-gradient(145deg, #fef2f2, #fee2e2);
    border: 1px solid #fca5a5;
}

.status-box:has(.status-value.restricted) {
    background: linear-gradient(145deg, #fefce8, #fef9c3);
    border: 1px solid #fde047;
}

.status-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: block;
}

.status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 4px;
}

.status-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.status-value.allowed { color: #166534; }
.status-value.prohibited { color: #991b1b; }
.status-value.restricted { color: #854d0e; }

/* Variant Selector */
.variant-selector {
    margin-bottom: 24px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.variant-selector label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.variant-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: #1e293b;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    transition: all 0.2s;
}

.variant-select:focus {
    border-color: #0061ff;
    box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.1);
}

/* Action Buttons */
.action-buttons-row {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.action-btn:active {
    transform: scale(0.98);
}

.amazon-btn {
    background: linear-gradient(to bottom, #f7dfa5, #f0c14b);
    border: 1px solid #a88734;
    color: #111;
}

.amazon-btn:hover {
    background: linear-gradient(to bottom, #f5d78e, #eeb933);
    box-shadow: 0 4px 12px rgba(160, 135, 52, 0.3);
}

.action-btn:not(.amazon-btn) {
    background: linear-gradient(135deg, #475569, #1e293b);
}

.action-btn:not(.amazon-btn):hover {
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.4);
}

.action-btn.saved {
    background: linear-gradient(135deg, #4ade80, #16a34a) !important;
}

/* ===== AD SLOTS ===== */
.ad-inline {
    margin: 24px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    min-height: 280px;
}

.ad-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.ad-slot {
    min-height: 250px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ===== FOOTER ===== */
footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 32px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-note {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 12px;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE STYLES (Default) ===== */
@media (max-width: 639px) {
    .brand-text {
        display: none;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .nav-link {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .search-input-hero {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .category-strip-inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .action-buttons-row {
        flex-direction: column;
    }

    .action-btn {
        min-width: 100%;
    }
}

/* ===== TABLET STYLES ===== */
@media (min-width: 640px) {
    .hero-search {
        padding: 48px 24px 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-input-hero {
        padding: 18px 18px 18px 52px;
        font-size: 1.1rem;
    }

    .main-content {
        padding: 32px 24px 48px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 1024px) {
    .navbar-inner {
        padding: 0 32px;
    }

    .hero-search {
        padding: 56px 32px 48px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .category-strip {
        padding: 20px 0;
    }

    .category-chip {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 40px 32px 60px;
    }

    .info-card {
        padding: 32px;
    }

    .result-card {
        padding: 40px 32px;
    }

    .item-name {
        font-size: 2rem;
    }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .main-content {
        max-width: 900px;
    }
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #0061ff;
    outline-offset: 2px;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== ITEM NOTE ===== */
.item-note {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
}

.item-note ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-note li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.item-note li:last-child {
    border-bottom: none;
}

/* ===== CUSTOMS WARNING ===== */
.customs-warning-banner {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fca5a5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.customs-warning-icon {
    font-size: 1.5rem;
}

.customs-warning-content {
    flex: 1;
    color: #991b1b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== RELATED ITEMS ===== */
.related-items {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.related-items h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.related-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.related-tag:hover {
    background: #0061ff;
    color: white;
    border-color: #0061ff;
}

/* ===== AUTOCOMPLETE ===== */
.autocomplete-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.autocomplete-item:hover {
    background: #f0f9ff;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-icon {
    font-size: 1rem;
}

.autocomplete-name {
    font-weight: 500;
    color: #1e293b;
}

/* ===== COUNTRY RULES SECTION ===== */
.country-rules-section .info-card {
    position: relative;
}

.country-rules-section .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* ===== LEGACY COMPATIBILITY ===== */
/* These ensure app.js selectors still work */

/* Old selectors that may be used by app.js */
.country-section,
.search-section,
.categories-section,
.left-panel,
.three-column-container {
    display: none !important;
}

/* Map old class to new structure */
#rightPanel {
    display: contents;
}

.right-panel {
    display: block;
}

/* Welcome message compatibility */
.welcome-message {
    display: block;
}

.welcome-icon {
    display: none;
}

/* FAB compatibility - hide old FAB styling */
.bag-fab {
    display: none !important;
}

/* Category button compatibility */
.category-btn {
    display: none;
}
.breadcrumb-nav ol {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    font-size: 0.85rem;
    color: #666;
}
.breadcrumb-nav li a {
    text-decoration: none;
    color: #0061ff;
}
.breadcrumb-nav .separator {
    margin: 0 8px;
    color: #ccc;
}

/* =========================================
   PHASE 1: BAGGAGE BRIDGE CARD STYLING
   ========================================= */
.special-baggage-card {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100%;
    box-sizing: border-box;
    /* Override .category-card animation that causes invisibility */
    opacity: 1 !important;
    animation: none !important;
}

.special-baggage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.special-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.special-icon {
    font-size: 1.5rem;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.special-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 4px 0;
}

.special-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
}

.special-arrow {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7) !important;
    flex-shrink: 0;
}

/* =========================================
   PHASE 2: DESTINATION MODAL STYLES
   ========================================= */
.dest-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.dest-btn:hover { background: #e2e8f0; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-header h2 i {
    color: #2563eb;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.close-modal:hover { color: #ef4444; }

.dest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 24px;
}

.dest-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-weight: 500;
    color: #1e293b;
}
.dest-card:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
}
.dest-card .flag { font-size: 1.5rem; }

/* Risk-Level Card Accents */
.dest-veryhigh {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
}
.dest-veryhigh:hover {
    border-color: #dc2626;
    background: #fee2e2;
}
.dest-high {
    border-left: 4px solid #f59e0b;
}
.dest-high:hover {
    border-color: #f59e0b;
}
.dest-medium {
    border-left: 4px solid #22c55e;
}
.dest-medium:hover {
    border-color: #22c55e;
}

.dest-modal { max-width: 450px !important; }

.modal-footer-note {
    padding: 15px 24px;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}
.modal-footer-note p { margin: 0; }

@media (max-width: 639px) {
    .dest-btn span { display: none; }
    .dest-grid { grid-template-columns: 1fr; }
}

/* =========================================
   PHASE 3: DESTINATION REPORT STYLES
   ========================================= */
.dest-report {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.3s ease;
}

.report-header {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.report-header h2 {
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.report-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.risk-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.risk-High { background: #fee2e2; color: #991b1b; }
.risk-Medium { background: #dcfce7; color: #166534; }
.risk-Very-High, .risk-VeryHigh { background: #7f1d1d; color: #ffffff; }

.report-body { padding: 20px; }

/* RED ZONE (Banned) */
.red-zone {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}
.zone-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.red-zone .zone-title { color: #dc2626; }

.banned-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ban-tag {
    background: white;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* BLUE ZONE (Duty Free) */
.blue-zone {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 15px;
}
.blue-zone .zone-title { color: #1d4ed8; }

.duty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duty-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}
.duty-label {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}
.duty-val {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.close-report {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
}
.close-report:hover { color: #ef4444; }

/* =========================================
   PHASE 4: DESTINATION MONETIZATION
   ========================================= */
.monetization-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.aff-btn {
    display: flex;
    width: 100%;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.aff-btn:hover { transform: translateY(-2px); }

/* INSURANCE BUTTON (Red Zone Context) */
.btn-insurance {
    background: white;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.btn-insurance:hover {
    background: #fef2f2;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

/* eSIM BUTTON (Blue Zone Context) */
.btn-esim {
    background: white;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}
.btn-esim:hover {
    background: #eff6ff;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* =========================================
   PHASE 5: SMART CHECKLIST STYLES
   ========================================= */
.compliance-header {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.banned-item-row {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
}

.bag-warning {
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 700;
    margin-top: 4px;
    margin-left: 30px;
}

.bag-main-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-bag-state {
    text-align: center;
    padding: 30px 0;
    color: #64748b;
}

/* =========================================
   UX REFINEMENT: STICKY BAR & VIEW SWITCHING
   ========================================= */

/* Sticky "Mini Mode" Bar */
.dest-sticky-bar {
    position: sticky;
    top: 60px; /* Below Navbar */
    z-index: 90;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid;
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin: 0 20px;
    animation: slideDown 0.3s ease;
}

/* Full themed sticky bar when active */
.dest-sticky-bar.themed {
    background: linear-gradient(to right, var(--theme-bg), white);
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.sticky-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

#stickyFlag {
    font-size: 1.25rem;
}

.sticky-change-btn {
    background: none;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}
.sticky-change-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Browse Button (Inside Report) */
.btn-browse {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-browse:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Dynamic Theme Border for Report */
.dest-report {
    border-width: 2px;
    border-style: solid;
}

/* Mobile adjustments */
@media (max-width: 639px) {
    .dest-sticky-bar {
        padding: 8px 15px;
    }
    .sticky-content {
        font-size: 0.85rem;
    }
}

/* =========================================
   UX CONSOLIDATION: TRAFFIC LIGHT GRID
   ========================================= */

/* BANNED Card - Red Alert */
.card-banned {
    background: #fef2f2 !important;
    border: 2px solid #fca5a5 !important;
    position: relative;
}
.card-banned:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    transform: translateY(-1px);
}

/* SAFE Card - Green Hint */
.card-safe {
    border-left: 4px solid #22c55e;
}
.card-safe:hover {
    background: #f0fdf4;
    border-color: #22c55e;
}

/* RESTRICTED Card - Yellow Hint */
.card-restricted {
    border-left: 4px solid #f59e0b;
}
.card-restricted:hover {
    background: #fffbeb;
    border-color: #f59e0b;
}

/* Ban Banner inside card */
.card-ban-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #fef2f2, #fee2e2);
    color: #991b1b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-bottom: 2px solid #fca5a5;
    text-align: center;
}

/* Adjust card padding when banner present */
.card-banned .category-item-name {
    margin-top: 24px;
}

/* Status badge refinements */
.status-allowed {
    background: #dcfce7;
    color: #166534;
}
.status-prohibited {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}
.status-restricted {
    background: #fef3c7;
    color: #92400e;
}

/* =========================================
   PHASE 4: CATEGORY GRID & CARD ANIMATIONS
   ========================================= */

.category-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: slideUp 0.3s ease-out forwards;
    opacity: 0;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Staggered animation for cards */
.category-card:nth-child(1) { animation-delay: 0ms; }
.category-card:nth-child(2) { animation-delay: 30ms; }
.category-card:nth-child(3) { animation-delay: 60ms; }
.category-card:nth-child(4) { animation-delay: 90ms; }
.category-card:nth-child(5) { animation-delay: 120ms; }
.category-card:nth-child(6) { animation-delay: 150ms; }
.category-card:nth-child(7) { animation-delay: 180ms; }
.category-card:nth-child(8) { animation-delay: 210ms; }
.category-card:nth-child(9) { animation-delay: 240ms; }
.category-card:nth-child(10) { animation-delay: 270ms; }

/* =========================================
   PHASE 4: CONTEXTUAL MONETIZATION CARDS
   ========================================= */

.contextual-ad-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 14px;
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    animation: slideUp 0.4s ease-out forwards;
    border: 2px solid transparent;
}

.contextual-ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

/* Card Variants */
.contextual-ad-card.insurance {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}
.contextual-ad-card.insurance:hover {
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

.contextual-ad-card.protection {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}
.contextual-ad-card.protection:hover {
    box-shadow: 0 12px 30px rgba(8, 145, 178, 0.35);
}

.contextual-ad-card.travel-bag {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}
.contextual-ad-card.travel-bag:hover {
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.35);
}

.contextual-ad-card.baby-gear {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
}
.contextual-ad-card.baby-gear:hover {
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

.contextual-ad-card.camping {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}
.contextual-ad-card.camping:hover {
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35);
}

.contextual-ad-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contextual-ad-content {
    flex: 1;
}

.contextual-ad-content h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
}

.contextual-ad-content p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.contextual-ad-arrow {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: transform 0.2s;
}

.contextual-ad-card:hover .contextual-ad-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.contextual-ad-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #fbbf24;
    color: #78350f;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   STICKY FOOTER AD
   ========================================= */

.sticky-footer-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

.sticky-footer-ad.hidden {
    display: none;
}

.sticky-footer-ad .ad-close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f5f9;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sticky-footer-ad .ad-close-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Add bottom padding to body when sticky ad is visible */
body.has-sticky-ad {
    padding-bottom: 70px;
}

/* Hide on very small screens */
@media (max-width: 400px) {
    .sticky-footer-ad {
        padding: 8px;
    }
}
