/* ========================================
   EXPLORE CATALOG CSS
   Styles for the power-user tour catalog
   Based on wireframe-minimalist.html
   Fonts: DM Serif Display + Inter
   ======================================== */

/* This file assumes explore-base.css is loaded */

/* ===== HEADER WITH SEARCH ===== */
.header {
    background: white;
    border-bottom: 1px solid var(--color-border-gray);
    padding: 24px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--color-text-light-mode);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header__logo:hover {
    opacity: 0.7;
}

.header__logo svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-gold);
    flex-shrink: 0;
}

.header__logo span {
    color: var(--color-text-light-mode);
}

/* SEARCH BOX - elegant minimal */
.header__search {
    flex: 1;
    max-width: 540px;
}

.search-box {
    display: flex;
    border-bottom: 1px solid var(--color-text-light-mode);
    transition: border-color var(--transition);
}

.search-box:focus-within {
    border-bottom: 2px solid var(--color-text-light-mode);
}

.search-box input {
    flex: 1;
    padding: 12px 0;
    border: none;
    font-size: 1rem;
    font-weight: 300;
    outline: none;
    background: transparent;
    letter-spacing: -0.01em;
    color: var(--color-text-light-mode);
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    padding: 12px 0;
    background: transparent;
    color: var(--color-text-light-mode);
    border: none;
    cursor: pointer;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    transition: opacity var(--transition-fast);
}

.search-box button:hover {
    opacity: 0.6;
}

.header__stats {
    font-size: 0.8rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ===== MAIN LAYOUT ===== */
.main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 40px;
}

/* ===== INSPIRATION SECTION ===== */
.inspiration {
    background: transparent;
    padding: 0;
    margin-bottom: 80px;
}

.inspiration__title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.inspiration__scroll {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}

.inspiration__scroll::-webkit-scrollbar {
    height: 2px;
}

.inspiration__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.inspiration__scroll::-webkit-scrollbar-thumb {
    background: #e0e0e0;
}

/* Inspiration card fade-in animation */
@keyframes inspirationFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.inspiration-card {
    flex: 0 0 320px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: 12px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06);
    animation: inspirationFadeIn 0.5s ease-out backwards;
}

/* Staggered animation delays for inspiration cards */
.inspiration-card:nth-child(1) { animation-delay: 0ms; }
.inspiration-card:nth-child(2) { animation-delay: 80ms; }
.inspiration-card:nth-child(3) { animation-delay: 160ms; }
.inspiration-card:nth-child(4) { animation-delay: 240ms; }
.inspiration-card:nth-child(5) { animation-delay: 320ms; }
.inspiration-card:nth-child(n+6) { animation-delay: 400ms; }

.inspiration-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.12);
}

.inspiration-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.inspiration-card:hover img {
    transform: scale(1.05);
}

.inspiration-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
}

.inspiration-card__label {
    font-size: 0.65rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
    font-weight: 400;
}

.inspiration-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

/* ===== QUICK FILTERS ===== */
.quick-filters {
    background: transparent;
    padding: 0;
    margin-bottom: 80px;
}

.quick-filters__title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
    margin-bottom: 24px;
    font-weight: 400;
}

.quick-filters__row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Filter chip fade-in animation */
@keyframes chipFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-chip {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--color-text-light-mode);
    animation: chipFadeIn 0.4s ease-out backwards;
}

/* Staggered animation for filter chips */
.filter-chip:nth-child(1) { animation-delay: 0ms; }
.filter-chip:nth-child(2) { animation-delay: 40ms; }
.filter-chip:nth-child(3) { animation-delay: 80ms; }
.filter-chip:nth-child(4) { animation-delay: 120ms; }
.filter-chip:nth-child(5) { animation-delay: 160ms; }
.filter-chip:nth-child(6) { animation-delay: 200ms; }
.filter-chip:nth-child(7) { animation-delay: 240ms; }
.filter-chip:nth-child(8) { animation-delay: 280ms; }
.filter-chip:nth-child(n+9) { animation-delay: 320ms; }

.filter-chip:hover {
    border-bottom: 1px solid var(--color-text-light-mode);
}

.filter-chip.active {
    border-bottom: 2px solid var(--color-text-light-mode);
    font-weight: 400;
}

.filter-chip__count {
    font-size: 0.7rem;
    margin-left: 8px;
    color: #999;
    font-weight: 300;
}

/* ===== VIEW CONTROLS & TABS ===== */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border-gray);
}

.view-tabs {
    display: flex;
    gap: 40px;
}

.view-tab {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 300;
    font-size: 0.95rem;
    color: #999;
    transition: color var(--transition);
    position: relative;
    letter-spacing: 0.02em;
}

.view-tab:hover {
    color: var(--color-text-light-mode);
}

.view-tab.active {
    color: var(--color-text-light-mode);
    font-weight: 400;
}

.view-tab.active::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-text-light-mode);
}

.results-count {
    font-size: 0.85rem;
    color: #666;
    font-weight: 300;
}

.results-count strong {
    font-weight: 400;
    color: var(--color-text-light-mode);
}

/* ===== CONTENT AREA WITH SIDEBAR ===== */
.content {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 80px;
}

/* ===== SIDEBAR FILTERS ===== */
.sidebar {
    background: transparent;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 140px;
}

.filter-group {
    margin-bottom: 48px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group__title {
    font-weight: 400;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.filter-group__clear {
    font-size: 0.7rem;
    color: #999;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-fast);
    font-weight: 300;
}

.filter-group__clear:hover {
    color: var(--color-text-light-mode);
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color var(--transition-fast);
}

.filter-option:hover {
    color: #666;
}

.filter-option input {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-option__count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #ccc;
}

/* Duration slider */
.duration-slider {
    margin-top: 16px;
}

.duration-slider input[type="range"] {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.duration-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--color-text-light-mode);
    cursor: pointer;
    border-radius: 50%;
}

.duration-slider input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--color-text-light-mode);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.duration-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #999;
    margin-top: 8px;
    font-weight: 300;
}

/* ===== TOUR GRID ===== */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 340px);
    gap: 28px;
    justify-content: start;
}

/* ===== TOUR CARD - MATCHING DESIGN SCREENSHOT ===== */
.tour-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.03),
        0 6px 16px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    display: block;
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.1);
}

.tour-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f0f0;
}

.tour-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tour-card:hover .tour-card__image img {
    transform: scale(1.03);
}

.tour-card__country-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(55, 55, 55, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 6px;
}

.tour-card__content {
    padding: 18px 20px 20px;
}

.tour-card__city {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: 500;
}

.tour-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

/* KEY INFO - matching screenshot layout */
.tour-card__meta {
    display: flex;
    align-items: flex-end;
    gap: 0;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-item__value {
    font-weight: 400;
    font-size: 0.95rem;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.meta-item__label {
    font-size: 0.7rem;
    color: #999;
    font-weight: 400;
    text-transform: capitalize;
}

/* No separator dots - clean look */
.meta-item:not(:last-child)::after {
    display: none;
}

.tour-card__actions {
    display: flex;
    gap: 16px;
}

.tour-card__btn {
    flex: 1;
    padding: 14px 20px;
    font-weight: 300;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all var(--transition);
    border: none;
    background: transparent;
}

.tour-card__btn--primary {
    color: #fff;
    background: var(--color-text-light-mode);
}

.tour-card__btn--primary:hover {
    background: #333;
}

.tour-card__btn--secondary {
    color: var(--color-text-light-mode);
    border-bottom: 1px solid #e0e0e0;
}

.tour-card__btn--secondary:hover {
    border-bottom: 1px solid var(--color-text-light-mode);
}

/* ===== MAP VIEW ===== */
.map-view {
    display: none;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--color-border-gray-light);
    min-height: 500px;
}

.map-view.active {
    display: block;
}

.catalog-map {
    height: 100%;
    min-height: 500px;
    width: 100%;
    z-index: 1;
}

/* Leaflet marker styles */
.tour-marker,
.city-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.2s ease;
}

.marker-pin:hover {
    transform: scale(1.1);
}

/* Leaflet popup styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 250px;
}

.leaflet-popup-tip {
    background: white;
}

.map-popup-content {
    padding: 16px;
    font-family: var(--font-body);
}

.map-popup-content .popup-city {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.map-popup-content .popup-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.map-popup-content .popup-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.map-popup-content .popup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.map-popup-content .meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #666;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.map-popup-content .meta-badge svg {
    flex-shrink: 0;
}

.map-popup-content .popup-link {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: var(--color-text-light-mode);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.map-popup-content .popup-link:hover {
    background: #333;
}

/* ===== CITY GROUPS VIEW ===== */
.city-groups {
    display: none;
}

.city-groups.active {
    display: block;
}

/* Country section fade-in animation */
@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-section {
    margin-bottom: 80px;
    animation: sectionFadeIn 0.5s ease-out backwards;
}

/* Staggered animation for country sections */
.country-section:nth-child(1) { animation-delay: 0ms; }
.country-section:nth-child(2) { animation-delay: 100ms; }
.country-section:nth-child(3) { animation-delay: 200ms; }
.country-section:nth-child(4) { animation-delay: 300ms; }
.country-section:nth-child(n+5) { animation-delay: 400ms; }

.country-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border-gray);
}

.country-header__flag {
    font-size: 1.5rem;
}

.country-header__name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.country-header__count {
    font-size: 0.8rem;
    color: #999;
    font-weight: 300;
    margin-left: auto;
}

.city-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

/* City groups view */
.city-groups {
    display: none;
}

.city-groups.active {
    display: block;
}

/* City card fade-in animation */
@keyframes cityCardFadeIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.city-card {
    display: block;
    background: transparent;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border-gray-light);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    animation: cityCardFadeIn 0.4s ease-out backwards;
}

/* Staggered animation for city cards */
.city-card:nth-child(1) { animation-delay: 50ms; }
.city-card:nth-child(2) { animation-delay: 100ms; }
.city-card:nth-child(3) { animation-delay: 150ms; }
.city-card:nth-child(4) { animation-delay: 200ms; }
.city-card:nth-child(5) { animation-delay: 250ms; }
.city-card:nth-child(n+6) { animation-delay: 300ms; }

.city-card:hover {
    border-bottom: 1px solid var(--color-text-light-mode);
}

.city-card__name {
    font-weight: 400;
    margin-bottom: 6px;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.city-card__tours {
    font-size: 0.75rem;
    color: #999;
    font-weight: 300;
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 100px 20px;
    color: #999;
}

.no-results__icon {
    font-size: 3rem;
    margin-bottom: 24px;
    opacity: 0.3;
}

.no-results__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: #666;
    letter-spacing: -0.02em;
}

/* ===== CARD ANIMATIONS ===== */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tour-card {
    animation: cardFadeIn 0.4s ease-out backwards;
}

/* Staggered animation delays for cards */
.tour-card:nth-child(1) { animation-delay: 0ms; }
.tour-card:nth-child(2) { animation-delay: 50ms; }
.tour-card:nth-child(3) { animation-delay: 100ms; }
.tour-card:nth-child(4) { animation-delay: 150ms; }
.tour-card:nth-child(5) { animation-delay: 200ms; }
.tour-card:nth-child(6) { animation-delay: 250ms; }
.tour-card:nth-child(7) { animation-delay: 300ms; }
.tour-card:nth-child(8) { animation-delay: 350ms; }
.tour-card:nth-child(9) { animation-delay: 400ms; }
.tour-card:nth-child(n+10) { animation-delay: 450ms; }

/* ===== RESPONSIVE ===== */

/* 2 columns for medium screens */
@media (max-width: 1100px) {
    .tour-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .sidebar {
        order: -1;
        position: static;
    }
}

/* Tablet and mobile breakpoint - 768px */
@media (max-width: 768px) {
    /* Hide header stats on tablets and mobile */
    .header__stats {
        display: none;
    }

    /* Add bottom padding for fixed sidebar */
    .main {
        padding: 32px 20px 100px;
    }

    /* Tour grid - 2 columns on tablet */
    .tour-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Content area - single column for mobile */
    .content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Compact cards for tablet */
    .tour-card {
        border-radius: 14px;
    }

    .tour-card__content {
        padding: 14px 16px 16px;
    }

    .tour-card__city {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .tour-card__title {
        font-size: 1.05rem;
        margin-bottom: 12px;
        min-height: auto;
    }

    .tour-card__meta {
        padding-top: 12px;
    }

    .meta-item__value {
        font-size: 0.85rem;
    }

    .meta-item__label {
        font-size: 0.6rem;
    }

    /* Sidebar as collapsible bottom panel */
    .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 100;
        height: 52px;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        border-top: 1px solid #e8e8e8;
    }

    .sidebar.sidebar--expanded {
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
    }

    .sidebar__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 52px;
        padding: 0 20px;
        background: white;
        border: none;
        font-weight: 500;
        cursor: pointer;
        font-size: 0.85rem;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .sidebar__toggle-icon {
        transition: transform 0.3s ease;
    }

    .sidebar.sidebar--expanded .sidebar__toggle-icon {
        transform: rotate(180deg);
    }

    /* Compact filter groups for mobile - all visible without scroll */
    .sidebar .filter-group {
        padding: 0 20px;
        margin-bottom: 16px;
    }

    .sidebar .filter-group:first-of-type {
        padding-top: 16px;
    }

    .sidebar .filter-group:last-of-type {
        padding-bottom: 20px;
        margin-bottom: 0;
    }

    .sidebar .filter-group__title {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .sidebar .filter-option {
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .sidebar .filter-option input {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }

    /* Compact duration slider */
    .sidebar .duration-slider {
        margin-top: 8px;
    }

    .sidebar .duration-labels {
        margin-top: 6px;
        font-size: 0.65rem;
    }

    /* Inspiration section mobile */
    .inspiration {
        margin-bottom: 40px;
    }

    .inspiration__title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Inspiration cards sizing for tablets */
    .inspiration-card {
        flex: 0 0 240px;
    }

    .inspiration-card img {
        height: 160px;
    }

    .inspiration-card__title {
        font-size: 1.2rem;
    }

    .inspiration-card__overlay {
        padding: 16px;
    }

    /* Quick filters mobile */
    .quick-filters {
        margin-bottom: 32px;
    }

    /* View controls mobile */
    .view-controls {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    /* Hide map tab on mobile - use FAB instead */
    .view-tab[data-view="map"] {
        display: none;
    }

    /* Map FAB button */
    .map-fab {
        display: flex;
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: var(--color-text-light-mode);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        cursor: pointer;
        z-index: 90;
        border: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .map-fab:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    }

    .map-fab svg {
        width: 24px;
        height: 24px;
        color: white;
    }

    /* Map modal fullscreen */
    .map-modal {
        display: none;
        position: fixed;
        inset: 0;
        background: white;
        z-index: 200;
        flex-direction: column;
    }

    .map-modal.active {
        display: flex;
    }

    .map-modal__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e8e8e8;
        background: white;
        flex-shrink: 0;
    }

    .map-modal__title {
        font-family: var(--font-display);
        font-size: 1.25rem;
        font-weight: 500;
    }

    .map-modal__close {
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.2s ease;
    }

    .map-modal__close:hover {
        background: #f5f5f5;
    }

    .map-modal__content {
        flex: 1;
        position: relative;
    }

    .map-modal__content .catalog-map-modal {
        width: 100%;
        height: 100%;
    }
}

/* Show toggle button only on mobile, hide on desktop */
@media (min-width: 769px) {
    .sidebar__toggle {
        display: none;
    }
}

/* Hide quick filters toggle chip above 600px */
@media (min-width: 601px) {
    .filter-chip--toggle {
        display: none !important;
    }

    /* Hide FAB and modal on desktop */
    .map-fab,
    .map-modal {
        display: none !important;
    }
}

/* Mobile breakpoint - 600px and below */
@media (max-width: 600px) {
    .header {
        padding: 16px 20px;
    }

    .header__inner {
        flex-wrap: wrap;
        gap: 16px;
    }

    .header__search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .main {
        padding: 24px 16px 100px;
    }

    /* Single column on small phones */
    .tour-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Card adjustments for mobile */
    .tour-card {
        border-radius: 12px;
    }

    .tour-card__image {
        aspect-ratio: 16/10;
    }

    .tour-card__content {
        padding: 14px 16px 16px;
    }

    .tour-card__city {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .tour-card__title {
        font-size: 1.1rem;
        margin-bottom: 14px;
        min-height: auto;
    }

    .tour-card__country-badge {
        padding: 5px 10px;
        font-size: 0.6rem;
        top: 12px;
        right: 12px;
    }

    .tour-card__meta {
        padding-top: 14px;
    }

    .meta-item__value {
        font-size: 0.9rem;
    }

    .meta-item__label {
        font-size: 0.65rem;
    }

    /* Map responsive - on mobile use modal, hide inline map */
    .map-view {
        display: none !important;
    }

    .map-popup-content .popup-image {
        height: 100px;
    }

    /* Inspiration section */
    .inspiration {
        margin-bottom: 32px;
    }

    .inspiration__title {
        font-size: 1.35rem;
        margin-bottom: 16px;
    }

    .inspiration-card {
        flex: 0 0 200px;
    }

    .inspiration-card img {
        height: 140px;
    }

    .inspiration-card__title {
        font-size: 1.1rem;
    }

    .inspiration-card__label {
        font-size: 0.6rem;
    }

    /* Quick filters - compact on mobile, no counts */
    .quick-filters {
        margin-bottom: 24px;
    }

    .quick-filters__row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .filter-chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* Hide tour counts on mobile - cleaner look */
    .filter-chip__count {
        display: none;
    }

    /* Show/hide countries - show first 5 (All + 4 countries), but not toggle */
    .filter-chip:nth-child(n+6):not(.filter-chip--toggle) {
        display: none;
    }

    .quick-filters.quick-filters--expanded .filter-chip:nth-child(n+6) {
        display: inline-flex;
    }

    /* Show more/less toggle as a chip - subtle style */
    .filter-chip--toggle {
        display: inline-flex;
        align-items: center;
        background: transparent;
        color: #999;
        border-bottom: 1px dashed #ccc;
        font-weight: 400;
    }

    .filter-chip--toggle:hover {
        background: transparent;
        color: #666;
        border-bottom-color: #999;
    }

    .filter-chip--toggle svg {
        width: 11px;
        height: 11px;
        transition: transform 0.2s ease;
        margin-left: 4px;
        opacity: 0.6;
    }

    .filter-chip--toggle:hover svg {
        opacity: 1;
    }

    .quick-filters.quick-filters--expanded .filter-chip--toggle svg {
        transform: rotate(180deg);
    }

    .content {
        gap: 24px;
    }

    /* View controls - tabs and count in one row */
    .view-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .view-tabs {
        gap: 16px;
        padding-bottom: 0;
        border-bottom: none;
    }

    .view-tab {
        font-size: 0.85rem;
    }

    .view-tab.active::after {
        bottom: -12px;
    }

    .results-count {
        font-size: 0.75rem;
        color: #888;
        white-space: nowrap;
    }

    .country-header__name {
        font-size: 1.5rem;
    }

    /* ===== CITIES VIEW - MOBILE COMPACT ===== */
    .country-section {
        margin-bottom: 32px;
    }

    .country-header {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .country-header__flag {
        font-size: 1.1rem;
    }

    .country-header__name {
        font-size: 1.2rem;
    }

    .country-header__count {
        font-size: 0.7rem;
    }

    /* Compact city list - 2 columns on mobile */
    .city-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    /* Compact inline city cards */
    .city-card {
        padding: 10px 8px;
        display: flex;
        align-items: baseline;
        gap: 6px;
        border-bottom: none;
        border-radius: 6px;
    }

    .city-card:hover {
        background: #f8f8f8;
        border-bottom: none;
    }

    .city-card__name {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .city-card__tours {
        font-size: 0.7rem;
        color: #bbb;
    }
}

/* Small mobile breakpoint - 480px and below */
@media (max-width: 480px) {
    /* Header logo smaller on small screens */
    .header__logo {
        font-size: 1.2rem;
    }

    .header__logo svg {
        width: 22px;
        height: 22px;
    }

    .header {
        padding: 14px 16px;
    }

    .main {
        padding: 20px 14px 100px;
    }

    /* Inspiration cards even smaller */
    .inspiration-card {
        flex: 0 0 180px;
    }

    .inspiration-card img {
        height: 120px;
    }

    .inspiration-card__overlay {
        padding: 12px;
    }

    .inspiration-card__title {
        font-size: 1rem;
    }

    /* Tour card adjustments */
    .tour-card {
        border-radius: 10px;
    }

    .tour-card__title {
        font-size: 1.1rem;
        -webkit-line-clamp: 2;
    }

    .tour-card__content {
        padding: 12px 14px 14px;
    }

    /* Sidebar - even more compact */
    .sidebar__toggle {
        font-size: 0.8rem;
        height: 48px;
    }

    .sidebar .filter-group {
        margin-bottom: 12px;
    }

    .sidebar .filter-group:first-of-type {
        padding-top: 12px;
    }

    .sidebar .filter-option {
        padding: 6px 0;
        font-size: 0.8rem;
    }

    .sidebar .filter-option input {
        width: 16px;
        height: 16px;
    }

    .sidebar .filter-group__title {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
}
