/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

/*Add your own styles here:*/
.g-cols.via_flex.type_default {
    margin: 0 -1rem;
}

.g-cols.via_flex.type_default>div>.vc_column-inner {
    padding-left: 1rem;
    padding-right: 1rem;
}

.w-gallery-item {
    overflow: hidden;
    border-radius: var(--site-border-radius);
    position: relative;
}

.w-gallery-item:before {
    content: '';
    opacity: 0;
    display: block;
    padding: 16px;
    background-image: url(./image/zooming.svg);
    background-repeat: no-repeat;
    background-size: 32px;
    background-position: center;
    position: absolute;
    left: calc(50% - 16px);
    top: calc(50% - 16px);
    transition: .3s;
    z-index: 1;
}

.w-gallery-item img {
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.w-gallery-item:hover img {
    transform: scale(1.03);
}

.w-gallery-item:hover::before {
    opacity: 1;
}

.w-gallery.action_popup_image .w-gallery-item-link {
    cursor: pointer;
}





.w-tabs-section-control {
    background: #f0f9ff;
    border-radius: 100px;
    width: 28px;
    height: 28px;
    color: #0077c8;
}

.w-tabs.accordion.toggle_style_2>div>.w-tabs-section {
    background: #fff;
}

.w-tabs-sections.icon_plus>div>.w-tabs-section-header .w-tabs-section-control:before {
    top: calc(50% - 5px);
    left: 50%;
    height: 11px;
    width: 1px;
}

.w-tabs-sections.icon_plus>div>.w-tabs-section-header .w-tabs-section-control:after {
    top: 50%;
    left: calc(50% - 5px);
    height: 1px;
    width: 11px;
}

.w-tabs-section-title {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
}

.no-touch .w-tabs.accordion.toggle_style_2 .w-tabs-section-header:hover {
    background: var(--color-content-secondary) !important;
}

.play-pulse-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--color-content-primary);
    /* Золотисто-оранжевый акцент */
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

/* Две расходящиеся волны пульсации */
.play-pulse-btn::before,
.play-pulse-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    animation: play-pulse 2.4s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

.play-pulse-btn::after {
    animation-delay: 1.2s;
}

/* Иконка Play (оптически сдвинута на 2px вправо) */
.play-pulse-btn__icon {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    transform: translateX(3px);
    transition: transform 0.3s ease;
}

.play-pulse-btn:hover .play-pulse-btn__icon {
    transform: translateX(3px) scale(1.1);
}

/* Состояния */
.play-pulse-btn:hover {
    transform: scale(1.08);
    background: #fbbf24;
}

.play-pulse-btn:hover .play-pulse-btn__icon {
    transform: translateX(2px) scale(1.1);
}

.play-pulse-btn:active {
    transform: scale(0.96);
}

.play-pulse-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 6px;
}

@keyframes play-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.95);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .play-pulse-btn::before,
    .play-pulse-btn::after {
        animation: none;
        opacity: 0.3;
        transform: scale(1.2);
    }
}






/* Карточка формы */
.quick-booking {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    box-sizing: border-box;
    border: 1px solid var(--color-content-border);
}

.quick-booking--column {
    padding: 0;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcf7-form-control-wrap {
    margin-top: 0;
    position: relative;
}

.wpcf7-not-valid-tip {
    position: absolute;
    font-size: 12px;
    bottom: -2px;
}

.wpcf7-response-output {
    text-align: center;
    border-radius: 3px;
    color: #fff;
    line-height: 1.3;
    padding: .6em 1em !important;
    margin: 2em 0 0 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #dc3232;
    background: #dc3232;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    background: #46b450;
}

.wpcf7-spinner {
    position: absolute;
    margin: 0;
    top: calc(50% - 12px);
    left: calc(50% - 12px);
}

.polit {
    font-size: 13px;
    line-height: 1.3;
    color: var(--color-content-heading);
    margin-top: 20px;
    display: flex;
    gap: 6px;
}

.quick-booking--column .polit {
    margin-top: 0;
}

.polit .wpcf7-list-item {
    width: 100%;
    display: flex;
    margin: 0;
}

.polit .wpcf7-form-control-wrap {
    width: unset !important;
}

.forma-polit-error {
    color: #ff3333;
    font-size: 13px;
    margin-top: 10px;
    display: none;
    line-height: 1.3;
}

.quick-booking--column .forma-polit-error {
    margin-top: 0;
}


input[type=checkbox] {
    border-radius: 4px;
}

.forma-popup .w-popup-box-content>p {
    display: none;
}

/* Десктоп (> 1150px): все 4 поля и кнопка в один ряд */
.quick-booking__grid {
    display: grid;
    grid-template-columns: minmax(190px, 1.3fr) minmax(150px, 0.9fr) minmax(165px, 0.95fr) minmax(175px, 1.05fr) auto;
    gap: 16px;
    align-items: end;
}

.quick-booking__grid>br {
    display: none;
}

.quick-booking__field,
.quick-booking__action {
    min-width: 0;
}

/* Лейбл с иконкой (white-space: nowrap не даст "Количество человек" перенестись на 2 строки на десктопе) */
.quick-booking__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
}

.quick-booking__icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.quick-booking__icon--blue {
    color: #0284c7;
}

.quick-booking__icon--green {
    color: #16a34a;
}

.quick-booking__icon--orange {
    color: #f59e0b;
}

/* Обёртка CF7 вокруг каждого поля */
.quick-booking .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    position: relative;
}

.quick-booking .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    box-sizing: border-box;
}

/* Фикс спиннера CF7 и сообщений валидации, чтобы сетка не прыгала */
.quick-booking__action {
    position: relative;
}

.quick-booking__action button {
    width: 100%;
}
/* 
.quick-booking .wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: -28px;
    margin: 0;
    transform: translateY(-50%);
} */

.quick-booking .wpcf7-not-valid-tip {
    position: absolute;
    left: 4px;
    top: calc(100% + 4px);
    font-size: 11px;
    line-height: 1.2;
}

.wpcf7 form .quick-booking~.wpcf7-response-output {
    margin: 14px 0 0;
    border-radius: 12px;
}




.cart-ex__list .repeater-row {
    display: flex;
    gap: 8px;
}

.cart-ex__list .repeater {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-ex__list .repeater-row:before {
    content: '';
    width: 18px;
    min-width: 18px;
    height: 18px;
    background-image: url(/wp-content/uploads/2026/11/badgecheck.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
}

.tour-details__subtitle {
    font-weight: bold;
    font-size: 20px;
}

.tour-details__gallery {
    margin-bottom: 24px;
}

.tour-details__highlight {
    background: var(--color-content-secondary);
    border-radius: var(--site-border-radius);
    border: 1px solid var(--color-content-border);
    padding: 24px;
    margin: 30px 0;
}

.tour-details__highlight p {
    margin-bottom: 8px;
}

.tour-details__desc ul {
    list-style: none;
    margin: 0;
}

.tour-details__desc ul li {
    padding-left: 30px;
    position: relative;
}

.tour-details__desc ul li:before {
    content: '';
    width: 18px;
    min-width: 18px;
    height: 18px;
    position: absolute;
    left: 0;
    top: 5px;
    background-image: url(/wp-content/uploads/2026/11/badgecheck.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
}

.tour-img-wrap {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* Изолирует z-index градиента, чтобы он не перекрыл соседний заголовок */
}

.tour-img-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Чтобы градиент не мешал кликать по картинке */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.28) 68%,
            rgba(0, 0, 0, 0.78) 100%);
}

/* На случай, если заголовок лежит ВНУТРИ этой же обёртки */
.tour-img-wrap .post_title,
.tour-img-wrap h2,
.tour-img-wrap h3 {
    position: relative;
    z-index: 2;
}

.l-header .w-socials-item-link {
    height: 2em;
}

.fa-facebook {
    display: flex!important;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.fa-facebook:before {
    content: '';
    background-image: url(./image/Max_logo.svg);
    width: 14px;
    height: 14px;
    display: block;
    background-repeat: no-repeat;
}

.w-socials-item.facebook .w-socials-item-link-hover {
    background: #7c3aed;
}

.w-socials-item.facebook {
    min-height: 48px;
    display: inline-flex;
}

.page-ex .tour-details__highlight {
    background: #fff;
}

select.wpcf7-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center; /* Отступ стрелки от правого края */
  background-size: 15px 15px;
}


.w-toplink:not(.w-btn) {
    border-radius: 100px;
}


.w-toplink:not(.w-btn):hover {
    background: #ffae00!important;
}










/* ================= АДАПТИВ ================= */

/* Планшеты и небольшие ноутбуки: 4 поля сеткой 2x2 + кнопка снизу на всю ширину */
@media (max-width: 1024px) {
    .quick-booking {
        padding: 24px;
    }

    .quick-booking__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 16px;
    }

    .quick-booking__action {
        grid-column: 1 / -1;
    }

    .quick-booking__action .w-btn {
        width: 100%;
        justify-content: center;
    }

    .hero .l-section-overlay {
        background: rgba(8, 41, 94, 0.73) !important;
    }
}

/* Смартфоны: 1 колонка, всё на всю ширину */
@media (max-width: 600px) {
    .quick-booking {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .quick-booking.quick-booking--column {
        padding: 0;
    }

    .quick-booking__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quick-booking__action {
        grid-column: auto;
        margin-top: 4px;
    }

    .quick-booking__label {
        white-space: normal;
        margin-bottom: 8px;
    }

    .quick-booking .wpcf7-not-valid-tip {
        position: static;
        margin-top: 4px;
    }

    .quick-booking .wpcf7-spinner {
        position: static;
        display: block;
        margin: 10px auto 0;
        transform: none;
    }

    .play-pulse-btn {
        width: 75px;
        height: 75px;
    }

    .tour-details__subtitle {
        font-size: 14px;
    }

    .tour-details .w-btn {
        width: 100%;
    }

    .tour-details__highlight {
        padding: 16px;
    }
}