.desert-booking-city-carousel,
.desert-booking-city-carousel * {
    box-sizing: border-box;
}

.hide-container[data-db-related-departures-empty="true"] {
    display: none !important;
}

.desert-booking-city-carousel {
    --desert-booking-location-border-width: 1px;
    --desert-booking-font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --desert-booking-primary: #0A2A92;
    --desert-booking-primary-hover: #2F4F33;
    --desert-booking-ring: #0A2A92;
    --desert-booking-surface: #fff;
    --desert-booking-border: #dcd9d9;
    --desert-booking-muted: #605d62;
    --desert-motion-duration-fast: 140ms;
    --desert-motion-ease-standard: cubic-bezier(0.2, 0, 0, 1);
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #1c1b1b;
    font-family: var(--desert-booking-font-family);
}

.desert-booking-flow__city-links {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.desert-booking-flow__city-links-heading {
    display: grid;
    gap: 4px;
    margin: 0 0 24px;
}

.desert-booking-flow__city-links-title {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #1c1b1b !important;
    font-family: var(--desert-booking-font-family);
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

.desert-booking-city-carousel .desert-booking-flow__city-links-heading {
    margin-bottom: 32px;
}

.desert-booking-related-departures__title {
    font-family: var(--e-global-typography-56dafac-font-family), Sans-serif;
    font-size: 32px !important;
    font-weight: var(--e-global-typography-56dafac-font-weight);
    text-transform: var(--e-global-typography-56dafac-text-transform);
    line-height: var(--e-global-typography-56dafac-line-height);
    letter-spacing: var(--e-global-typography-56dafac-letter-spacing);
    color: var(--e-global-color-text);
}

.desert-booking-flow__city-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
}

.desert-booking-flow__city-carousel--with-controls {
    --desert-booking-city-control-offset: 52px;
}

.desert-booking-flow__city-carousel--with-controls:not(.is-scrollable) > .desert-booking-flow__city-carousel-button {
    display: none !important;
}

:is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    color: #fff !important;
    background: var(--desert-booking-ring) !important;
    border: 1px solid var(--desert-booking-ring) !important;
    border-radius: 10px !important;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color var(--desert-motion-duration-fast) var(--desert-motion-ease-standard),
        border-color var(--desert-motion-duration-fast) var(--desert-motion-ease-standard),
        transform var(--desert-motion-duration-fast) var(--desert-motion-ease-standard);
}

:is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel-button--prev {
    left: calc(var(--desert-booking-city-control-offset) * -1);
}

:is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel-button--next {
    right: calc(var(--desert-booking-city-control-offset) * -1);
}

:is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel-button:hover {
    background: var(--desert-booking-primary-hover) !important;
    border-color: var(--desert-booking-primary-hover) !important;
}

:is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel-button:focus-visible {
    outline: 3px solid rgba(10, 42, 146, 0.25);
    outline-offset: 2px;
}

:is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel-button:disabled {
    color: #a7b0c0 !important;
    background: #f5f7fa !important;
    border-color: #d6dce8 !important;
    cursor: not-allowed;
    opacity: 1;
    transform: translateY(-50%);
}

:is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel-button svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    pointer-events: none;
}

.desert-booking-flow__city-grid {
    --desert-booking-city-gap: 12px;
    display: flex;
    gap: var(--desert-booking-city-gap);
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.desert-booking-flow__city-grid::-webkit-scrollbar {
    display: none;
}

.desert-booking-flow__city-card {
    display: flex;
    flex: 0 0 calc((100% - var(--desert-booking-city-gap)) / 2);
    align-items: center;
    gap: 24px;
    min-height: 90px;
    min-width: 0;
    padding: 12px;
    color: #1c1b1b;
    text-decoration: none;
    background: var(--desert-booking-surface);
    border: var(--desert-booking-location-border-width) solid var(--desert-booking-border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    font-weight: 400;
    scroll-snap-align: start;
    transition:
        border-color var(--desert-motion-duration-fast) var(--desert-motion-ease-standard),
        color var(--desert-motion-duration-fast) var(--desert-motion-ease-standard);
}

.desert-booking-city-carousel .desert-booking-flow__city-card {
    flex-basis: calc((100% - var(--desert-booking-city-gap) - var(--desert-booking-city-gap)) / 3);
}

.desert-booking-city-carousel [data-item-count="1"] .desert-booking-flow__city-card {
    flex-basis: 100%;
}

.desert-booking-city-carousel [data-item-count="2"] .desert-booking-flow__city-card {
    flex-basis: calc((100% - var(--desert-booking-city-gap)) / 2);
}

.desert-booking-flow__city-card:hover {
    border-color: var(--desert-booking-primary);
}

.desert-booking-flow__city-card:focus-visible {
    outline: 3px solid rgba(10, 42, 146, 0.25) !important;
    outline-offset: 3px;
}

.desert-booking-flow__city-card-media {
    display: block;
    flex: 0 0 64px;
    width: 64px !important;
    height: 64px !important;
    overflow: hidden;
    background: #f2f6fd;
    border-radius: 8px;
}

.desert-booking-flow__city-card-image {
    display: block;
    width: 64px !important;
    height: 64px !important;
    object-fit: cover;
}

.desert-booking-flow__city-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--desert-booking-muted);
    background: linear-gradient(135deg, #f2f6fd, #eef1f5);
}

.desert-booking-flow__city-card-fallback svg {
    display: block;
    width: 40px;
    height: 40px;
}

.desert-booking-flow__city-card-content {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
}

.desert-booking-flow__city-card-city,
.desert-booking-flow__city-card-meta {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-family: var(--desert-booking-font-family);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desert-booking-flow__city-card-city {
    color: #1c1b1b;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    transition: color var(--desert-motion-duration-fast) var(--desert-motion-ease-standard);
}

.desert-booking-flow__city-card-meta {
    color: var(--desert-booking-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
}

.desert-booking-flow__city-card-icon {
    display: flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #c5c5d5;
    transition: color var(--desert-motion-duration-fast) var(--desert-motion-ease-standard);
}

.desert-booking-flow__city-card-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.desert-booking-flow__city-card:hover .desert-booking-flow__city-card-city,
.desert-booking-flow__city-card:focus-visible .desert-booking-flow__city-card-city,
.desert-booking-flow__city-card:hover .desert-booking-flow__city-card-icon,
.desert-booking-flow__city-card:focus-visible .desert-booking-flow__city-card-icon {
    color: var(--desert-booking-ring);
}

@media (prefers-reduced-motion: reduce) {
    :is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-grid {
        scroll-behavior: auto;
    }

    :is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-card,
    :is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel-button {
        transition-duration: 1ms !important;
    }
}

@media (max-width: 1100px) {
    .desert-booking-city-carousel .desert-booking-flow__city-card {
        flex-basis: calc((100% - var(--desert-booking-city-gap)) / 2);
    }

    .desert-booking-city-carousel [data-item-count="1"] .desert-booking-flow__city-card {
        flex-basis: 100%;
    }

    .desert-booking-flow__city-carousel--with-controls.is-scrollable {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        align-items: center;
        gap: 12px;
    }

    .desert-booking-flow__city-carousel--with-controls.is-scrollable > .desert-booking-flow__city-grid {
        grid-column: 2;
        grid-row: 1;
    }

    :is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel--with-controls.is-scrollable > .desert-booking-flow__city-carousel-button {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
    }

    :is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel--with-controls.is-scrollable > .desert-booking-flow__city-carousel-button:disabled {
        transform: none;
    }

    .desert-booking-flow__city-carousel--with-controls.is-scrollable > .desert-booking-flow__city-carousel-button--prev {
        grid-column: 1;
        grid-row: 1;
    }

    .desert-booking-flow__city-carousel--with-controls.is-scrollable > .desert-booking-flow__city-carousel-button--next {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 900px) {
    .desert-booking-flow__city-card,
    .desert-booking-city-carousel .desert-booking-flow__city-card,
    .desert-booking-city-carousel [data-item-count="2"] .desert-booking-flow__city-card {
        flex-basis: 100%;
    }

    .desert-booking-flow__city-carousel--with-controls.is-scrollable {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 8px;
    }

    :is(.desert-booking-flow, .desert-booking-city-carousel) .desert-booking-flow__city-carousel-button {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 1024px) {
    .desert-booking-related-departures__title {
        font-size: 22px !important;
    }
}

@media (max-width: 768px) {
    .desert-booking-related-departures__title {
        font-size: 20px !important;
    }
}
