/* Popular Cities Section */
.popular-cities-section {
    position: relative;
    padding: clamp(80px, 8vw, 120px) 0;
    overflow-x: hidden;
    box-sizing: border-box;
    background: var(--bg-surface-primary, #0B0A15);
    z-index: 1; /* Above fixed particles background */
}

.popular-cities-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3vw, 32px);
    margin-bottom: clamp(40px, 5vw, 64px);
    text-align: center;
}

.popular-cities-label {
    display: flex;
    gap: clamp(4px, 0.8vw, 6px);
    align-items: center;
    justify-content: center;
}

.popular-cities-label svg {
    width: 15px;
    height: 17px;
    flex-shrink: 0;
    display: block;
}

.popular-cities-label span {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: clamp(12px, 1.8vw, 14px);
    line-height: clamp(18px, 2.8vw, 21px);
    letter-spacing: 0.1px;
    background: linear-gradient(138.91deg, #ffbfb5 22.107%, #c4b5ff 55.634%, #b5bfff 84.734%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.popular-cities-title {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: clamp(40px, 5.5vw, 64px);
    letter-spacing: 0.196px;
    color: #ebebee;
    text-align: center;
    margin: 0;
    max-width: clamp(300px, 70vw, 822px);
}

.popular-cities-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: clamp(40px, 5vw, 64px);
    overflow: hidden;
}

.popular-cities-slider {
    overflow: hidden;
}

.popular-cities-slider .embla__container {
    display: flex;
    gap: 32px;
    align-items: stretch;
    padding-bottom: 10px;
}

.popular-city-card {
    flex: 0 0 auto;
    width: 550px;
    min-width: 550px;
    max-width: 550px;
    display: flex;
    flex-direction: column;
}

.popular-city-card-link {
    display: flex;
    padding: 24px;
    background: rgba(11, 10, 21, 0.8);
    border: 1px solid rgba(235, 235, 238, 0.05);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 4px 24px 0 rgba(11, 10, 21, 0.4);
    height: 100%;
}

.popular-city-image-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(89deg, rgba(3, 1, 14, 0.00) 66.25%, var(--Colors-Base-Black-60, rgba(11, 10, 21, 0.60)) 77.73%, var(--Colors-Base-Black, #0B0A15) 93.39%);
    pointer-events: none;
    transition: background 0.3s ease;
    border-radius: 12px;
    right: -2px;
}

.popular-city-card-inner {
    display: flex;
    gap: 24px;
    background: transparent;
    height: 100%;
}

.popular-city-card-link:hover {
    background: var(--Mobile-bg-control-rest, linear-gradient(180deg, rgba(232, 232, 235, 0.10) 0%, rgba(232, 232, 235, 0.08) 84.27%));
}

.popular-city-image {
    position: relative;
    width: 224px;
    height: 224px;
    flex-shrink: 0;
    overflow: hidden;
}

.popular-city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    pointer-events: none;
    border-radius: 12px;
}


.popular-city-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
    transition: background 0.3s ease;
}

.popular-city-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
    min-height: 0;
}

.popular-city-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-city-name {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 500;
    font-size: 28px;
    line-height: 28px;
    letter-spacing: 0px;
    margin: 0;
    background: linear-gradient(135.677deg, #fba395 22.107%, #bbc3f4 55.634%, #b5bfff 84.734%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.popular-city-events {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.1px;
    color: #ebebee;
    margin: 0;
}

.popular-city-description {
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.1px;
    color: #ebebee;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-city-tags {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.popular-city-tag {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: linear-gradient(to bottom, rgba(232, 232, 235, 0) 0%, rgba(232, 232, 235, 0.02) 100%);
    border: 1px solid rgba(235, 235, 238, 0.05);
    border-radius: 999px;
    padding: 0 12px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-inter-tight, "Inter Tight", sans-serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.1px;
    color: #9f9cb0;
    white-space: nowrap;
}

.popular-cities-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 2vw, 24px);
    margin-top: 36px;
}

.popular-cities-navigation {
    display: flex;
    gap: 24px;
    align-items: center;
}
.popular-cities-arrow {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    padding: 0;
    border: none;
    background: transparent;
}

.popular-cities-arrow:focus {
    outline: none;
}

.popular-cities-arrow:focus-visible {
    outline: none;
}

/* Rounded button background for arrows using PNG */
/* Arrow button styles are now in shared_arrow_button.css */
/* Specific popular-cities-arrow overrides can be added here if needed */

.popular-cities-arrow:hover {
    opacity: 0.9;
}

.popular-cities-arrow:active {
    opacity: 0.8;
    transform: scale(0.95);
}

/* Pagination dots - hidden on desktop */
.popular-cities-pagination {
    display: none;
}

/* Popular cities all button uses btn-outline-large base styles */
/* Only override width for mobile responsiveness */

/* Mobile Styles for Popular Cities */
@media (max-width: 767px) {
    .popular-cities-section {
        padding: clamp(60px, 10vw, 80px) clamp(16px, 4vw, 24px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .popular-cities-section .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .popular-cities-header {
        gap: clamp(20px, 3vw, 24px);
        margin-bottom: clamp(32px, 5vw, 40px);
    }

    .popular-cities-title {
        font-size: clamp(28px, 6vw, 32px);
        line-height: clamp(36px, 7vw, 40px);
    }

    /* Mobile card layout - vertical design per Figma */
    /* Card fills viewport to show exactly 1 card at a time */
    .popular-city-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    /* Remove gap on mobile for single-card view */
    .popular-cities-slider {
        gap: 0;
        scroll-snap-type: x mandatory;
        scroll-padding: 0;
    }

    .popular-city-card {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* Ensure slider wrapper takes full width and allows proper scrolling */
    .popular-cities-slider-wrapper {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    /* Ensure slider itself takes full width */
    .popular-cities-slider {
        width: 100%;
    }

    .popular-city-card-link {
        padding: 16px;
        flex-direction: column;
    }

    .popular-city-card-inner {
        flex-direction: column;
        gap: 20px;
    }

    .popular-city-image {
        width: 100%;
        height: 140px;
    }

    /* Mobile gradient - rotated 90 degrees */
    .popular-city-image-gradient {
        background: linear-gradient(0deg, var(--Colors-Base-Black, #0B0A15) -3.87%, var(--Colors-Base-Black-60, rgba(11, 10, 21, 0.60)) 15.46%, rgba(3, 1, 14, 0.00) 29.62%);
    }

    .popular-city-content {
        padding: 0 8px;
        gap: 12px;
    }

    .popular-city-text {
        gap: 16px;
    }

    .popular-city-title-group {
        gap: 4px;
    }

    /* Mobile typography */
    .popular-city-name {
        font-size: 24px;
        line-height: 28px;
    }

    .popular-city-events {
        font-size: 14px;
        line-height: 21px;
    }

    .popular-city-description {
        font-size: 14px;
        line-height: 21px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .popular-city-tag {
        height: 26px;
        font-size: 14px;
        line-height: 21px;
        letter-spacing: 0.1px;
    }

    /* Hide arrow navigation on mobile */
    .popular-cities-navigation {
        display: none;
    }

    /* Pagination dots - visible on mobile */
    .popular-cities-pagination {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
        margin: 20px 0;
    }

    .popular-cities-dot {
        width: 8px;
        height: 8px;
        border-radius: 100px;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .popular-cities-dot.active {
        background-color: #c4b5ff;
    }

    .popular-cities-dot:not(.active) {
        background-color: #4b4578;
    }

    /* Mobile "All cities" button */
    .popular-cities-bottom {
        flex-direction: column;
        align-items: center;
        gap: clamp(20px, 3vw, 24px);
        margin-bottom: 2px;
        margin-right: 3px;
    }
    .popular-cities-all-btn {
        width: 90%;
        
    }
}

/* Desktop/Tablet: margin-right */
.popular-cities-all-btn {
    margin-right: 1px;
}
