/* ========================================
   booking.list Component Styles
   Extracted from mainstyle.css (2026-03-03)
   Issue: #45 — mainstyle.css refactoring
   ======================================== */

/* Render container */
.render__offers {
    font-family: "PT Sans", Arial, Tahoma, sans-serif;
    background: #eee;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 400px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
}

.booking-container {
    margin: 30px 0;
}

/* Offers list */
.offers__h1 {
    text-align: center;
    font-size: 22px;
    margin: 10px 0;
}

.offers__h2 {
    margin: 0;
    font-size: 18px;
    text-align: left;
}

.offers__list {
    padding-left: 0;
    list-style-type: none;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    -moz-transition: 0.2s;
    overflow-y: auto;
    transition: 0.2s;
}

.offers__item {
    width: 100%;
    background: #f5f5f5;
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 15px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    border: 2px solid #fff;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    -moz-transition: 0.2s;
    transition: 0.2s;
}

.offers__item.select {
    border-color: #ff7f00;
    background: #fff;
}

.offers__item-el {
    width: 25%;
    text-align: center;
}

.offers__item-vrmid {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.offers__item-el-big {
    width: 50%;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -moz-box-orient: horizontal;
    -moz-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: space-around;
}

/* Photo */
.offers__photo {
    display: flex;
    align-items: center;
    text-align: left;
}

.offers__photo img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 5px;
}

.offers__photo img:not(:first-child) {
    display: none;
}

.offers__item-el.offers__photo {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

/* Tour button */
.offers__tour-button {
    background: #ff7f00;
    color: #fff;
    font-size: 16px;
    width: 200px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 30px;
    outline: 0;
    cursor: pointer;
    border: 2px solid #ff7f00;
    -moz-border-radius: 8px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
}

.offers__tour-button:hover {
    background: transparent;
    color: #ff7f00;
}

/* Description */
.offers__desc {
    display: block;
    margin: 10px 0 0;
    text-align: left;
    font-size: 14px;
}

.offers__desc-content {
    overflow: hidden;
    transition: 1s;
    height: 0;
}

.offers__desc-content.active {
    height: auto;
}

.offers__desc-btn {
    margin-top: 10px;
    padding: 0;
    border: none;
    border-bottom: 1px solid transparent;
    background: unset;
    color: #ff7f00;
    transition: 0.3s;
    cursor: pointer;
}

.offers__desc-btn:hover {
    border-color: #ff7f00;
}

/* Count controls */
.offers__count {
    display: flex;
    align-items: center;
}

.offers__count-value {
    margin: 0 15px;
    font-weight: 700;
    user-select: none;
}

.offers__count-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 22px;
    transition: 0.2s;
    user-select: none;
    cursor: pointer;
}

.offers__count-control:hover {
    color: #fff;
    background: #ff7f00;
}

/* Price & Button */
.offers__price {
    margin: 0;
}

.offers__price-btn {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.offers__price-btn-wrap {
    position: relative;
}

.offers__button {
    float: right;
    cursor: pointer;
    position: relative;
    top: 0;
    right: 3px;
    background-color: #ff7f00;
    border: 1px solid #ff7f00;
    width: 150px;
    height: 35px;
    font-size: 18px;
    color: #fff;
    text-align: center;
    -moz-border-radius: 18px;
    border-radius: 18px;
    line-height: 35px;
    font-family: Arial, Tahoma, sans-serif;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    -moz-transition: 0.3s;
    transition: 0.3s;
}

.offers__button:hover {
    background-color: transparent;
    color: #ff7f00;
}

.offers__button-addprice {
    background-color: transparent;
    border: 1px solid #ff7f00;
    color: #ff7f00;
}

/* Footer */
.offers__footer-wrapper {
    z-index: 8;
    position: sticky;
    left: 0;
    right: 0;
    bottom: 0 !important;
    width: 100%;
}

@media screen and (min-width: 991px) {
    .offers__footer-wrapper.is-seccond {
        background: #fff;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -moz-border-radius: 5px;
        border-radius: 5px;
        padding: 15px;
    }
}

.offers__footer-wrapper.is-third + .err-privacy__wrap {
    margin-top: 20px;
}

.offers__footer-wrapper.bottom {
    bottom: 75px;
}

.offers__footer-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background: #f5f5f5;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
}

/* Total */
.offers__total {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -moz-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.offers__total-title {
    font-weight: 700;
    margin: 0 20px 0 0;
}

.offers__total-value-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0;
    font-size: 20px;
    white-space: nowrap;
}

/* Promo */
.offers__promo-label {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
}

.offers__promo-tit {
    margin-right: 10px;
    margin-bottom: 0;
}

.offers__promo-input {
    padding-left: 5px;
    position: relative;
    width: 100%;
    text-align: right;
}

.offers__promo-input-def {
    color: #000;
}

.offers__promo-input-success {
    color: green;
}

.offers__promo-input-success:after {
    content: "+";
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 0;
}

.offers__promo-input-error {
    color: red;
}

.offers__promo-input-error:after {
    content: "-";
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 0;
}

/* Messages */
.offers__msg {
    width: 100%;
}

/* Privacy error */
.err-privacy {
    padding: 5px;
    background: #e83e8c45;
    color: #b40254;
    border-radius: 5px;
    width: auto;
    max-width: max-content;
    margin: 10px auto 0;
    text-align: center;
}

.err-privacy.err-privacy__hidden {
    display: none;
}

/* ========================================
   Responsive: Tablet & Mobile
   ======================================== */

@media screen and (max-width: 991px) {
    .offers__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-height: unset;
    }

    .offers__item {
        flex-direction: column;
    }

    .offers__item-el {
        width: 100%;
    }

    .offers__photo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 0 15px;
    }

    .offers__h2 {
        text-align: center;
    }

    .offers__desc {
        margin-bottom: 15px;
        text-align: left;
    }

    .offers__item-el-big {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: auto;
    }

    .offers__count {
        margin-right: 45px;
    }

    .offers__price-btn {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .offers__price {
        margin: 0 0 0 5px;
    }

    .offers__price-btn-wrap {
        width: 80%;
        margin-top: 15px;
    }

    .offers__button {
        float: unset;
        right: unset;
        top: unset;
        width: 100%;
    }
}

@media screen and (max-width: 575px) {
    .offers__item-el-big {
        flex-direction: column;
    }

    .offers__count {
        margin: 0 0 17px;
    }

    .offers__price-btn-wrap {
        margin-top: 20px;
    }
}

@media screen and (max-width: 767px) {
    .offers__photo img {
        max-height: 150px;
    }

    .offers__list {
        grid-template-columns: 1fr;
    }
}
