/* ==========================================================================
   IBB Tours – CTA Bar Styles
   Branding:  Dark green #004e1f · Medium green #51823b · White · Navy #0b2134
   ========================================================================== */

/* ---- Bar container ---- */
.ibb-tour-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #ffffff;
    color: #0b2134;
    border-top: 1px solid #b0b0b0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem;
}

.ibb-tour-cta-bar--visible {
    transform: translateY(0);
}

/* ---- Inner flex layout ---- */
.ibb-tour-cta-bar__inner {
    display: flex;
    align-items: stretch;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 58px;
}

/* ---- Tour info block (name + check prices) – desktop only ---- */
.ibb-tour-cta-bar__tour-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 24px;
    flex-shrink: 1;
    min-width: 0;
}

.ibb-tour-cta-bar__tour-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    line-height: 1.3;
    color: #0b2134;
}

.ibb-tour-cta-bar__check-prices {
    font-size: 0.85em;
    font-weight: 600;
    color: #004e1f;
    text-decoration: none;
    line-height: 1.2;
    display: inline-block;
    transition: color 0.15s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.ibb-tour-cta-bar__check-prices:hover,
.ibb-tour-cta-bar__check-prices:focus {
    color: #51823b;
    text-decoration: underline;
}

/* ==========================================================================
   Selector Column – full-height white panel with green text
   ========================================================================== */

.ibb-tour-cta-bar__selector-col {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    margin-left: auto;
}

/* ---- Custom dropdown trigger (green on white) ---- */
.ibb-tour-cta-bar__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 22px;
    background: #ffffff;
    border: none;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    color: #004e1f;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    min-height: 100%;
}

.ibb-tour-cta-bar__dropdown-trigger:hover,
.ibb-tour-cta-bar__dropdown-trigger:focus {
    background: #ffffff;
    outline: none;
}

.ibb-tour-cta-bar__trigger-duration {
    font-weight: 600;
    color: #004e1f;
}

.ibb-tour-cta-bar__trigger-price {
    font-weight: 700;
    color: #0b2134;
}

.ibb-tour-cta-bar__chevron {
    fill: #004e1f;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.ibb-tour-cta-bar__dropdown-trigger[aria-expanded="true"] .ibb-tour-cta-bar__chevron {
    transform: rotate(180deg);
}

/* ---- Dropdown listbox (opens upward, white) ---- */
.ibb-tour-cta-bar__listbox {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #ffffff;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    border-top: 1px solid #b0b0b0;
    border-bottom: 1px solid #d0d0d0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
    z-index: 100000;
}

.ibb-tour-cta-bar__listbox--open {
    display: block;
}

/* ---- Individual option ---- */
.ibb-tour-cta-bar__option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    cursor: pointer;
    color: #0b2134;
    transition: background-color 0.12s ease;
    border-bottom: 1px solid #d0d0d0;
    white-space: nowrap;
}

.ibb-tour-cta-bar__option:last-child {
    border-bottom: none;
}

.ibb-tour-cta-bar__option:hover,
.ibb-tour-cta-bar__option:focus {
    background: #f0f5f0;
    outline: none;
}

.ibb-tour-cta-bar__option .ibb-tour-cta-bar__option-duration,
.ibb-tour-cta-bar__option .ibb-tour-cta-bar__option-price {
    transition: transform 0.15s ease;
}

.ibb-tour-cta-bar__option:hover .ibb-tour-cta-bar__option-duration,
.ibb-tour-cta-bar__option:hover .ibb-tour-cta-bar__option-price,
.ibb-tour-cta-bar__option:focus .ibb-tour-cta-bar__option-duration,
.ibb-tour-cta-bar__option:focus .ibb-tour-cta-bar__option-price {
    transform: translateY(-2px);
}

.ibb-tour-cta-bar__option--active {
    display: none;
}

.ibb-tour-cta-bar__option-duration {
    font-weight: 500;
    color: #004e1f;
}

.ibb-tour-cta-bar__option--active .ibb-tour-cta-bar__option-duration {
    font-weight: 700;
}

.ibb-tour-cta-bar__option-price {
    font-weight: 600;
    color: #0b2134;
    margin-left: auto;
}

/* ---- Static info (single permutation, green on white) ---- */
.ibb-tour-cta-bar__selector-col--single {
    cursor: default;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
}

.ibb-tour-cta-bar__static-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    min-height: 100%;
}

.ibb-tour-cta-bar__static-duration {
    font-weight: 600;
    color: #004e1f;
}

.ibb-tour-cta-bar__static-price {
    font-weight: 700;
    color: #0b2134;
}

/* ---- Responsive text helpers ---- */
.ibb-tour-cta-bar__txt-mobile {
    display: none;
}

/* ---- CTA Button ---- */
.ibb-tour-cta-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    background-color: #004e1f;
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 13px 34px;
    margin: 0 24px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

a.ibb-tour-cta-bar__btn:visited {
    color: #ffffff;
}

.ibb-tour-cta-bar__btn:hover,
.ibb-tour-cta-bar__btn:focus {
    background-color: #51823b;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 78, 31, 0.3);
    outline: none;
}

.ibb-tour-cta-bar__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 78, 31, 0.15);
    background-color: #003d17;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ---- Tablet (<=900px) ---- */
@media (max-width: 900px) {
    .ibb-tour-cta-bar__tour-info {
        display: none;
    }

    .ibb-tour-cta-bar__selector-col {
        margin-left: 0;
        flex: 1 1 auto;
    }

    .ibb-tour-cta-bar__selector-col--single {
        border-left: none;
    }

    .ibb-tour-cta-bar__dropdown-trigger {
        flex: 1;
        justify-content: center;
        border-left: none;
    }

    .ibb-tour-cta-bar__btn {
        margin: 0 14px;
        padding: 12px 24px;
    }

    .ibb-tour-cta-bar__txt-desktop {
        display: none;
    }
    .ibb-tour-cta-bar__txt-mobile {
        display: inline;
    }
}

/* ---- Mobile (<=600px): single row, selector left + CTA right ---- */
@media (max-width: 600px) {
    .ibb-tour-cta-bar__inner {
        min-height: 50px;
    }

    .ibb-tour-cta-bar__tour-info {
        display: none;
    }

    .ibb-tour-cta-bar__selector-col {
        flex: 1 1 auto;
        margin-left: 0;
        min-width: 0;
    }

    .ibb-tour-cta-bar__selector-col--single {
        border-left: none;
    }

    .ibb-tour-cta-bar__dropdown-trigger {
        flex: 1;
        justify-content: flex-start;
        padding: 0 14px;
        gap: 10px;
        border-left: none;
    }


    .ibb-tour-cta-bar__static-info {
        padding: 0 14px;
        gap: 10px;
    }


    .ibb-tour-cta-bar__listbox {
        left: 0;
        /* Extend to full viewport width */
        right: auto;
        width: 100vw;
        position: fixed;
        bottom: 50px;
    }

    .ibb-tour-cta-bar__option {
        padding: 12px 16px;
    }

    .ibb-tour-cta-bar__btn {
        flex-shrink: 0;
        margin: 0;
        border-radius: 0;
        padding: 14px 20px;
    }

    .ibb-tour-cta-bar__txt-desktop {
        display: none;
    }
    .ibb-tour-cta-bar__txt-mobile {
        display: inline;
    }
}
