/* ============================================
   OFFER BAR CONTAINER
   ============================================ */

.offer-bar-container {
    position: relative;
    z-index: 998;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin: 0 0 1.5rem 0;
}

.offer-bar-container.is-stuck {
    position: fixed;
    top: 196px; /* header 116px + filters 80px */
    left: 0;
    right: 0;
    margin: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   WRAPPER
   ============================================ */

.offer-bar-wrapper {
    display: flex;
    align-items: stretch;
    height: 56px;
}

.offer-bar-container.is-stuck .offer-bar-wrapper {
    border-bottom: 2px solid var(--color-light-gray);
}

/* ============================================
   SCROLL BUTTONS — identyczne z .filters-container
   ============================================ */

.offer-bar-scroll-btn {
    flex-shrink: 0;
    width: 40px;
    height: 100%;
    background: white;
    border: 2px solid var(--color-light-gray);
    color: var(--color-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.offer-bar-scroll-btn:hover:not(:disabled) {
    background: var(--color-primary);
    border-color: var(--color-primary) !important;
    color: var(--color-white);
}

.offer-bar-scroll-btn:disabled {
    color: var(--color-light-gray);
    cursor: not-allowed;
}

.offer-bar-scroll-btn svg {
    width: 20px;
    height: 20px;
}

.offer-bar-scroll-btn.scroll-left {
    border-radius: 8px 0 0 8px;
    border-right: 2px solid var(--color-light-gray);
}

.offer-bar-scroll-btn.scroll-right {
    border-radius: 0 8px 8px 0;
    border-left: 2px solid var(--color-light-gray);
}

.offer-bar-container.is-stuck .offer-bar-scroll-btn {
    border: none;
    border-radius: 0;
}

.offer-bar-container.is-stuck .offer-bar-scroll-btn.scroll-left {
    border-right: 2px solid var(--color-light-gray);
}

.offer-bar-container.is-stuck .offer-bar-scroll-btn.scroll-right {
    border-left: 2px solid var(--color-light-gray);
}

.offer-bar-container.is-stuck .offer-bar-scroll-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--color-white);
}

.offer-bar-container.is-stuck .offer-bar-scroll-btn:disabled {
    background: transparent;
    color: var(--color-light-gray);
}

.offer-bar-container.is-stuck .offer-bar-subscribe {
    border-left: 2px solid var(--color-light-gray);
    border-bottom: none;
    border-top: none;
    border-radius: 0;
}

/* ============================================
   SCROLLABLE AREA
   ============================================ */

.offer-bar-scrollable {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: auto;
    scrollbar-width: none;
    flex: 1;
    padding: 0 10px;
    border-top: 2px solid var(--color-light-gray);
    border-bottom: 2px solid var(--color-light-gray);
}

.offer-bar-scrollable::-webkit-scrollbar {
    display: none;
}

.offer-bar-scrollable.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.offer-bar-scrollable.is-dragging * {
    cursor: grabbing;
}

.offer-bar-scrollable a {
    -webkit-user-drag: none;
}

.offer-bar-container.is-stuck .offer-bar-scrollable {
    border-top: none;
    border-bottom: none;
}

/* ============================================
   CHIPS — styl jak industry/country chips
   ============================================ */

.offer-bar-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    border: 2px solid var(--color-light-gray);
    border-radius: 8px;
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary);
    text-decoration: none;
    background: white;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.offer-bar-chip svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.offer-bar-chip:hover:not(.is-active):not(.offer-bar-chip--guest) {
    border-color: var(--color-primary);
}

.offer-bar-chip.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}

.offer-bar-chip.is-active svg {
    color: var(--color-white);
}

.offer-bar-chip-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 500;
    color: #999;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 2px 6px;
    line-height: 1.4;
    margin-left: 2px;
}

.offer-bar-chip.is-active .offer-bar-chip-badge {
    color: var(--color-white);
    background: var(--color-primary-dark);
}

/* mapa bez przycisku subskrybuj — pełne obramowanie i zaokrąglenie */
.offer-bar-map.offer-bar-map--standalone {
    border-left: 2px solid var(--color-light-gray);
    border-radius: 8px;
}

.offer-bar-container.is-stuck .offer-bar-map.offer-bar-map--standalone {
    border-left: 2px solid var(--color-light-gray);
    border-radius: 0;
}

/* ============================================
   CHIP GUEST — nieaktywny wizualnie
   ============================================ */

.offer-bar-chip--guest {
    opacity: 0.45;
    cursor: pointer;
}

/* ============================================
   PRAWA STRONA — subskrybuj + mapa
   ============================================ */

.offer-bar-right {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    margin-left: 8px;
}

.offer-bar-subscribe {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    background: transparent;
    border-radius: 8px 0 0 8px;
    border: 2px solid var(--color-light-gray);
    font-family: var(--font-condensed);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    outline: none;
}

.offer-bar-subscribe svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.offer-bar-subscribe:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.offer-bar-container.is-stuck .offer-bar-right {
    margin-left: 0;
}

.offer-bar-container.is-stuck .offer-bar-subscribe {
    border-radius: 0;
}

.offer-bar-container.is-stuck .offer-bar-subscribe:hover {
    border-color: var(--color-primary) !important;
}

.offer-bar-map {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: transparent;
    border: 2px solid var(--color-light-gray);
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    outline: none;
}

.offer-bar-map svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.offer-bar-map:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.offer-bar-container.is-stuck .offer-bar-map {
    border-top: none;
    border-bottom: none;
    border-right: none;
    border-radius: 0;
}

.offer-bar-container.is-stuck .offer-bar-map:hover {
    border-color: var(--color-primary) !important;
}

.offer-bar-right:has(.offer-bar-map:hover) .offer-bar-subscribe {
    border-right-color: var(--color-primary);
}

.offer-bar-container.is-stuck .offer-bar-wrapper:has(.offer-bar-subscribe:hover) .offer-bar-scroll-btn.scroll-right {
    border-right-color: var(--color-primary);
}

/* ============================================
   SWITCH
   ============================================ */

.offer-bar-switch-track {
    width: 32px;
    height: 18px;
    background: var(--color-light-gray);
    border-radius: 9px;
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.offer-bar-switch-track.is-on {
    background: var(--color-primary);
}

.offer-bar-switch-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.2s ease;
}

.offer-bar-switch-track.is-on .offer-bar-switch-thumb {
    left: 17px;
}

.offer-bar-map:hover .offer-bar-switch-track:not(.is-on) {
    background: rgba(255, 255, 255, 0.4);
}

.offer-bar-map:hover .offer-bar-switch-track.is-on {
    background: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVE — < 768px
   ============================================ */

@media (max-width: 767px) {
    .offer-bar-subscribe-label,
    .offer-bar-map-label {
        display: none;
    }
    .offer-bar-chip {
        font-size: 13px;
    }
}

/* ============================================
   GUEST HINT — dymek dla niezalogowanych
   ============================================ */

.offer-bar-hint {
    position: fixed;
    z-index: 9999;
    width: 400px;
    max-width: 95%;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.offer-bar-hint.is-visible {
    opacity: 1;
    visibility: visible;
}

.offer-bar-hint__text {
    margin: 0 0 12px 0;
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
}

.offer-bar-hint__actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.offer-bar-hint__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: #fff;
    font-family: var(--font-condensed);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.offer-bar-hint__btn span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-bar-hint__btn:first-child {
    flex-shrink: 0;
}

.offer-bar-hint__btn:last-child {
    flex: 1;
    min-width: 0;
}

.offer-bar-hint__btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.offer-bar-hint__arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.offer-bar-hint.arrow-down .offer-bar-hint__arrow {
    bottom: -8px;
    border-top: 8px solid var(--color-secondary);
    border-bottom: none;
}

.offer-bar-hint.arrow-up .offer-bar-hint__arrow {
    top: -8px;
    border-bottom: 8px solid var(--color-secondary);
    border-top: none;
}