/*
Theme Name: Hawaii UA 2026
Theme URI: https://hawaiiua.com
Author: Hawaii UA
Description: Нова тема Hawaii UA 2026 для сайту українських турів на Гаваях.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: hawaii-ua-2026
*/

/* =========================================================
   HAWAII UA 2026 — GLOBAL
   ========================================================= */

:root {
    --hua-dark: #063f4b;
    --hua-teal: #087b83;
    --hua-orange: #f26a2e;
    --hua-cream: #fffaf1;
    --hua-white: #ffffff;
    --hua-text: #183642;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--hua-cream);
    color: var(--hua-text);
}


/* =========================================================
   HEADER — DESKTOP
   ========================================================= */

.hua-header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    background: transparent;
    border-bottom: 0;

    z-index: 1000;
}

.hua-header__inner {
    width: min(1180px, calc(100% - 80px));
    min-height: 76px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}


/* LOGO */

.hua-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    text-decoration: none;
}

.hua-header__logo img {
    display: block;
    width: 205px;
    max-width: 100%;
    height: auto;
}


/* DESKTOP NAVIGATION */

.hua-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 32px;

    margin-left: auto;
}

.hua-header__nav a {
    position: relative;

    color: var(--hua-dark);
    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        opacity 0.25s ease;
}

.hua-header__nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--hua-orange);

    transition: width 0.25s ease;
}

.hua-header__nav a:hover {
    color: var(--hua-orange);
}

.hua-header__nav a:hover::after {
    width: 100%;
}


/* RIGHT ACTIONS */

.hua-header__actions {
    display: flex;
    align-items: center;

    gap: 14px;

    flex-shrink: 0;
}


/* SEARCH */

.hua-header__search {
    width: 38px;
    height: 38px;

    padding: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: var(--hua-dark);

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.hua-header__search svg {
    width: 22px;
    height: 22px;
}

.hua-header__search:hover {
    color: var(--hua-orange);
    background: rgba(242, 106, 46, 0.08);
}


/* CONTACT BUTTON */

.hua-header__contact {
    min-height: 42px;
    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--hua-orange);
    color: var(--hua-white);

    border-radius: 999px;

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.035em;

    white-space: nowrap;

    box-shadow: 0 8px 20px rgba(242, 106, 46, 0.20);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.hua-header__contact:hover {
    color: var(--hua-white);
    background: #dc5924;

    transform: translateY(-2px);

    box-shadow: 0 11px 24px rgba(242, 106, 46, 0.27);
}


/* MOBILE MENU BUTTON — HIDDEN ON DESKTOP */

.hua-header__menu-button {
    display: none;

    width: 44px;
    height: 44px;

    padding: 10px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.hua-header__menu-button span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: var(--hua-dark);

    border-radius: 5px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* MOBILE NAVIGATION — HIDDEN ON DESKTOP */

.hua-mobile-nav {
    display: none;
}


/* =========================================================
   WORDPRESS ADMIN BAR FIX
   ========================================================= */

.admin-bar .hua-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .hua-header {
        top: 46px;
    }
}


/* =========================================================
   HEADER — TABLET
   ========================================================= */

@media (min-width: 601px) and (max-width: 1100px) {

    .hua-header__inner {
        width: calc(100% - 40px);
        min-height: 72px;

        gap: 14px;
    }

    .hua-header__logo img {
        width: 160px;
    }

    .hua-header__nav {
        gap: 18px;
    }

    .hua-header__nav a {
        font-size: 11px;
        letter-spacing: 0.01em;
    }

    .hua-header__actions {
        gap: 9px;
    }

    .hua-header__search {
        width: 32px;
        height: 32px;
        padding: 5px;
    }

    .hua-header__search svg {
        width: 18px;
        height: 18px;
    }

    .hua-header__contact {
        min-height: 36px;
        padding: 0 14px;

        font-size: 10px;
    }
}


/* =========================================================
   HEADER — PHONE
   ========================================================= */

@media (max-width: 600px) {

    .hua-header {
        position: absolute;
        top: 0;
        left: 0;

        width: 100%;

        background: transparent;
        border-bottom: 0;

        z-index: 9999;
    }

    .hua-header__inner {
        width: calc(100% - 28px);
        min-height: 68px;
        margin: 0 auto;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 16px;
    }

    .hua-header__logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .hua-header__logo img {
        display: block;
        width: 145px;
        max-width: 100%;
        height: auto;
    }

    .hua-header__nav,
    .hua-header__search,
    .hua-header__contact {
        display: none;
    }

    .hua-header__menu-button {
        width: 44px;
        height: 44px;

        padding: 9px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        border: 0;
        border-radius: 50%;

        background: transparent;

        cursor: pointer;
    }

    .hua-header__menu-button:hover {
        background: rgba(6, 63, 75, 0.06);
    }

    .hua-header__menu-button span {
        display: block;

        width: 23px;
        height: 2px;

        margin: 3px 0;

        background: var(--hua-dark);

        border-radius: 10px;

        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }

    .hua-header__menu-button.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hua-header__menu-button.is-open span:nth-child(2) {
        opacity: 0;
    }

    .hua-header__menu-button.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    /* MOBILE MENU */

    .hua-mobile-nav {
        display: block;

        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;

        padding: 0 20px;

        background: var(--hua-cream);

        border-top: 1px solid rgba(6, 63, 75, 0.06);
        border-bottom: 1px solid rgba(6, 63, 75, 0.10);

        box-shadow: 0 14px 30px rgba(6, 63, 75, 0.10);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        pointer-events: none;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .hua-mobile-nav.is-open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }

    .hua-mobile-nav a {
        display: flex;
        align-items: center;

        min-height: 54px;

        padding: 0 4px;

        color: var(--hua-dark);

        text-decoration: none;

        font-family: Arial, Helvetica, sans-serif;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;

        border-bottom: 1px solid rgba(6, 63, 75, 0.08);

        transition:
            color 0.2s ease,
            padding-left 0.2s ease;
    }

    .hua-mobile-nav a:hover {
        color: var(--hua-orange);
        padding-left: 8px;
    }

    .hua-mobile-nav a:last-child {
        border-bottom: 0;
    }

    .hua-mobile-nav .hua-mobile-nav__contact {
        min-height: 48px;

        margin: 14px 0 18px;
        padding: 0 20px;

        justify-content: center;

        background: var(--hua-orange);
        color: var(--hua-white);

        border: 0;
        border-radius: 999px;

        box-shadow: 0 8px 20px rgba(242, 106, 46, 0.18);
    }

    .hua-mobile-nav .hua-mobile-nav__contact:hover {
        padding-left: 20px;

        color: var(--hua-white);
        background: #dc5924;
    }

    body.hua-menu-open {
        overflow: hidden;
    }
}


/* =========================================================
   HEADER — VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .hua-header__inner {
        width: calc(100% - 22px);
        min-height: 64px;
    }

    .hua-header__logo img {
        width: 132px;
    }

    .hua-header__menu-button {
        width: 40px;
        height: 40px;
    }

    .hua-mobile-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hua-mobile-nav a {
        min-height: 52px;
        font-size: 14px;
    }
}


/* =========================================================
   FOOTER — DESKTOP
   ========================================================= */

.hua-footer {
    width: 100%;

    background: #073f46;
    color: #ffffff;
}

.hua-footer__inner {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
    padding: 72px 0 60px;

    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1fr;
    gap: 80px;
    align-items: start;
}


/* FOOTER BRAND */

.hua-footer__brand {
    max-width: 390px;
}

.hua-footer__logo {
    display: inline-block;
    margin-bottom: 26px;
}

.hua-footer__logo img {
    display: block;
    width: 220px;
    height: auto;
}

.hua-footer__description {
    margin: 0 0 20px;

    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;

    color: rgba(255, 255, 255, 0.82);
}

.hua-footer__islands {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #ff7a38;
}


/* FOOTER COLUMNS */

.hua-footer__column {
    min-width: 0;
}

.hua-footer__title {
    margin: 4px 0 24px;

    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.14em;

    color: #ff7a38;
}


/* FOOTER NAVIGATION + CONTACTS */

.hua-footer__nav,
.hua-footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 14px;
}

.hua-footer__nav a,
.hua-footer__contacts a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.hua-footer__nav a:hover,
.hua-footer__contacts a:hover {
    color: #ff7a38;
    transform: translateX(3px);
}


/* FOOTER CONTACT BUTTON */

.hua-footer__contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 28px;

    min-height: 46px;
    padding: 0 28px;

    border-radius: 999px;

    background: #ff7135;
    color: #ffffff;

    text-decoration: none;

    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.05em;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hua-footer__contact-button:hover {
    background: #ff824b;

    transform: translateY(-2px);

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}


/* FOOTER BOTTOM BAR */

.hua-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hua-footer__bottom-inner {
    width: min(1180px, calc(100% - 80px));
    min-height: 74px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.hua-footer__bottom p {
    margin: 0;

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;
    line-height: 1.4;
}

.hua-footer__bottom a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;

    font-size: 12px;
    line-height: 1.4;

    transition: color 0.2s ease;
}

.hua-footer__bottom a:hover {
    color: #ff7a38;
}


/* =========================================================
   FOOTER — TABLET
   ========================================================= */

@media (min-width: 601px) and (max-width: 1024px) {

    .hua-footer__inner {
        width: calc(100% - 48px);
        max-width: 900px;
        margin: 0 auto;
        padding: 48px 0 44px;

        display: grid;
        grid-template-columns: 1fr 1fr;

        column-gap: 50px;
        row-gap: 36px;

        align-items: start;
    }

    .hua-footer__brand {
        grid-column: 1 / -1;

        width: 100%;
        max-width: 430px;
    }

    .hua-footer__logo {
        margin-bottom: 20px;
    }

    .hua-footer__logo img {
        width: 180px;
        height: auto;
    }

    .hua-footer__description {
        margin: 0 0 16px;

        font-size: 14px;
        line-height: 1.6;
    }

    .hua-footer__column {
        width: 100%;
        min-width: 0;
    }

    .hua-footer__title {
        margin: 0 0 18px;
    }

    .hua-footer__nav,
    .hua-footer__contacts {
        gap: 11px;
    }

    .hua-footer__nav a,
    .hua-footer__contacts a {
        font-size: 14px;
    }

    .hua-footer__contact-button {
        width: auto;

        min-height: 44px;

        margin-top: 20px;
        padding: 0 26px;
    }

    .hua-footer__bottom-inner {
        width: calc(100% - 48px);
        max-width: 900px;

        min-height: 68px;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 24px;

        padding: 0;
    }
}


/* =========================================================
   FOOTER — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .hua-footer__inner {
        width: calc(100% - 40px);
        padding: 48px 0 40px;

        display: grid;
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .hua-footer__brand {
        max-width: none;
    }

    .hua-footer__logo {
        margin-bottom: 22px;
    }

    .hua-footer__logo img {
        width: 175px;
    }

    .hua-footer__description {
        margin-bottom: 18px;

        font-size: 14px;
        line-height: 1.6;
    }

    .hua-footer__title {
        margin: 0 0 18px;
    }

    .hua-footer__nav,
    .hua-footer__contacts {
        gap: 12px;
    }

    .hua-footer__nav a,
    .hua-footer__contacts a {
        font-size: 15px;
    }

    .hua-footer__contact-button {
        width: 100%;

        min-height: 48px;

        margin-top: 24px;
    }

    .hua-footer__bottom-inner {
        width: calc(100% - 40px);

        min-height: auto;

        padding: 24px 0 28px;

        flex-direction: column;
        align-items: flex-start;

        gap: 10px;
    }
}


/* =========================================================
   HEADER — DESKTOP FINAL ALIGNMENT
   ========================================================= */

@media (min-width: 1101px) {

    .hua-header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .hua-header__logo {
        justify-self: start;
    }

    .hua-header__nav {
        justify-self: center;
        margin-left: 0;
    }

    .hua-header__actions {
        justify-self: end;
    }

}


/* =========================================================
   HEADER — CONTACT BUTTON FINAL
   ========================================================= */

.hua-header__contact,
.hua-header__contact:visited,
.hua-header__contact:hover,
.hua-header__contact:focus,
.hua-header__contact:active {
    color: #ffffff;
}

.hua-header__contact:hover {
    background: var(--hua-orange);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(242, 106, 46, 0.20);
}


/* =========================================================
   HEADER — MOBILE MENU ICON FIX
   ========================================================= */

@media (max-width: 600px) {

    .hua-header__menu-button {
        position: relative;

        width: 44px;
        height: 44px;

        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        border: 0;
        border-radius: 50%;

        background: var(--hua-teal);
        color: #ffffff;

        cursor: pointer;

        appearance: none;
        -webkit-appearance: none;

        box-shadow: none;
        outline: none;
    }

    .hua-header__menu-button:hover,
    .hua-header__menu-button:focus,
    .hua-header__menu-button:active {
        background: var(--hua-teal);
        color: #ffffff;
    }

    .hua-header__menu-button span {
        position: absolute;
        left: 50%;

        display: block;

        width: 22px;
        height: 2px;

        margin: 0;
        padding: 0;

        background: #ffffff;
        border: 0;
        border-radius: 999px;

        opacity: 1;

        transform-origin: center center;

        transition:
            transform 0.25s ease,
            opacity 0.20s ease,
            background-color 0.20s ease;
    }

    .hua-header__menu-button span:nth-child(1) {
        top: 50%;
        transform: translate(-50%, -7px);
    }

    .hua-header__menu-button span:nth-child(2) {
        top: 50%;
        transform: translate(-50%, -1px);
    }

    .hua-header__menu-button span:nth-child(3) {
        top: 50%;
        transform: translate(-50%, 5px);
    }

    .hua-header__menu-button.is-open {
        background: var(--hua-orange);
    }

    .hua-header__menu-button.is-open:hover,
    .hua-header__menu-button.is-open:focus,
    .hua-header__menu-button.is-open:active {
        background: var(--hua-orange);
    }

    .hua-header__menu-button.is-open span:nth-child(1) {
        top: 50%;
        transform: translate(-50%, -1px) rotate(45deg);
    }

    .hua-header__menu-button.is-open span:nth-child(2) {
        opacity: 0;
        transform: translate(-50%, -1px) scaleX(0);
    }

    .hua-header__menu-button.is-open span:nth-child(3) {
        top: 50%;
        transform: translate(-50%, -1px) rotate(-45deg);
    }
}

@media (max-width: 380px) {

    .hua-header__menu-button {
        width: 40px;
        height: 40px;
    }

    .hua-header__menu-button span {
        width: 20px;
    }
}


/* =========================================================
   GROUP TOURS — DESKTOP + TABLET + MOBILE
   ========================================================= */

/* Спільний desktop-блок під усіма п’ятьма картками */
#toursInfo {
    display: none;
}

/* Внутрішні блоки для tablet/mobile ніколи не показуються на desktop */
.tour-mobile-info {
    display: none;
}

/* Активна кнопка картки — працює на всіх пристроях */
.tour-toggle.is-active .elementor-button,
.tour-toggle.is-active button,
.tour-toggle.is-active > a {
    background: var(--hua-orange);
    border-color: var(--hua-orange);
    color: #ffffff;
}

.tour-toggle.is-active .elementor-button-icon {
    display: none;
}

.tour-toggle.is-active .elementor-button-text {
    color: #ffffff;
}

/* Уся площа кнопок закриття клікабельна */
#toursInfo .tour-info-close,
#toursInfo .tour-info-close .elementor-button,
#toursInfo .tour-info-close button,
#toursInfo .tour-info-close > a,
.tour-mobile-close,
.tour-mobile-close .elementor-button,
.tour-mobile-close button,
.tour-mobile-close > a {
    cursor: pointer;
}

/* ---------- DESKTOP ---------- */
@media (min-width: 1101px) {

    #toursInfo.is-open {
        display: flex;
        animation: huaToursInfoOpen 0.28s ease both;
    }

    #toursInfo .tour-info-content {
        display: none;
        width: 100%;
    }

    #toursInfo .tour-info-content.is-active {
        display: flex;
        animation: huaTourContentOpen 0.24s ease both;
    }

    /* Страховка: mobile-info на desktop не відкривається ніколи */
    .tour-card .tour-mobile-info,
    .tour-card .tour-mobile-info.is-active {
        display: none;
    }
}

/* ---------- TABLET + MOBILE ---------- */
@media (max-width: 1100px) {

    /* Спільний desktop-блок на tablet/mobile не використовується */
    #toursInfo,
    #toursInfo.is-open {
        display: none;
    }

    /* Інформація живе всередині конкретної картки */
    .tour-card .tour-mobile-info {
        display: none;
        width: 100%;
    }

    .tour-card .tour-mobile-info.is-active {
        display: block;
        width: 100%;
        visibility: visible;
        opacity: 1;
        height: auto;
        max-height: none;
        overflow: visible;
        animation: huaTourMobileInfoOpen 0.24s ease both;
    }
}

@keyframes huaToursInfoOpen {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes huaTourContentOpen {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes huaTourMobileInfoOpen {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   OTHER TOURS — TOURS INFO
   DESKTOP ONLY
   ========================================================= */

/*
 * Спільний інформаційний блок секції "ІНШІ ФОРМАТИ"
 * використовується тільки на desktop.
 * Tablet/mobile матимуть окремі внутрішні блоки.
 */
#otherTours {
    display: none;
    width: 100%;
}

/* ---------- DESKTOP ---------- */
@media (min-width: 1101px) {

    /* JS додає клас is-open головному контейнеру */
    body #otherTours.is-open {
        display: block;
        width: 100%;
        animation: huaOtherToursInfoOpen 0.28s ease both;
    }

    /* Усі три інформаційні блоки за замовчуванням приховані */
    body #otherTours .other-tour-info-content {
        display: none;
        width: 100%;
    }

    /* Показується тільки той блок, якому JS додав is-active */
    body #otherTours.is-open .other-tour-info-content.is-active {
        display: block;
        width: 100%;
        visibility: visible;
        opacity: 1;
        height: auto;
        max-height: none;
        overflow: visible;
        animation: huaOtherTourContentOpen 0.24s ease both;
    }
}

/* ---------- TABLET + MOBILE ---------- */
@media (max-width: 1100px) {

    /*
     * Жорстка страховка: desktop-блок не може з'явитися
     * навіть якщо клас is-open випадково залишився в DOM.
     */
    body #otherTours,
    body #otherTours.is-open {
        display: none !important;
    }

    body #otherTours .other-tour-info-content,
    body #otherTours .other-tour-info-content.is-active {
        display: none !important;
    }
}

/* Активна кнопка картки */
body .other-tour-toggle.is-active .elementor-button,
body .other-tour-toggle.is-active button,
body .other-tour-toggle.is-active > a {
    background: var(--hua-orange);
    border-color: var(--hua-orange);
    color: #ffffff;
}

/* Якщо Elementor виводить окрему іконку — ховаємо її,
   бо JS уже замінює текст кнопки на × */
body .other-tour-toggle.is-active .elementor-button-icon {
    display: none;
}

body .other-tour-toggle.is-active .elementor-button-text {
    color: #ffffff;
}

/* Кнопки закриття всередині інформаційних блоків */
body #otherTours .other-tour-info-close,
body #otherTours .other-tour-info-close .elementor-button,
body #otherTours .other-tour-info-close button,
body #otherTours .other-tour-info-close > a {
    cursor: pointer;
}

@keyframes huaOtherToursInfoOpen {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes huaOtherTourContentOpen {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================================================
   EXCURSION INFO — ALL DEVICES
   ========================================================= */

#excursion .excursion-info-content {
    display: none;
    width: 100%;
}

#excursion .excursion-info-content.is-active {
    display: block;
    width: 100%;
    visibility: visible;
    opacity: 1;
    height: auto;
    max-height: none;
    overflow: visible;
    animation: huaExcursionInfoOpen 0.24s ease both;
}

#excursion .excursion-info-close,
#excursion .excursion-info-close .elementor-button,
#excursion .excursion-info-close button,
#excursion .excursion-info-close > a {
    cursor: pointer;
}

@keyframes huaExcursionInfoOpen {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   GROUP TOURS — TABLET / MOBILE INLINE INFO
   ========================================================= */

/* DESKTOP — мобільна інформація ніколи не показується */
@media (min-width: 1101px) {

    .tour-card .tour-mobile-info {
        display: none;
    }

}


/* TABLET + MOBILE */
@media (max-width: 1100px) {

    /* За замовчуванням інформація прихована */
    .tour-card .tour-mobile-info:not(.is-active) {
        display: none;
    }

    /* Після кліку JS додає is-active */
    .tour-card .tour-mobile-info.is-active {
        display: block;
        width: 100%;

        animation: huaTourMobileOpen 0.25s ease both;
    }

    .tour-mobile-close,
    .tour-mobile-close a,
    .tour-mobile-close button {
        cursor: pointer;
    }

}


@keyframes huaTourMobileOpen {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================================
   SCHEDULE — ANTI-FLASH
   Ховаємо блок до того, як JS визначить його стан.
   display не чіпаємо, щоб зберегти Elementor layout.
   ========================================================= */

.schedule-info {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

body.schedule-open .schedule-info {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* =========================================================
   SCHEDULE — MOBILE MODAL
   ========================================================= */

@media (max-width: 767px) {

    /*
     * Вікно розкладу на телефоні.
     * Розташовується нижче Header і має власний вертикальний scroll.
     */
    body.schedule-open .schedule-info {
        position: fixed !important;

        top: 84px !important;
        left: 12px !important;
        right: 12px !important;
        bottom: auto !important;

        transform: none !important;

        width: auto !important;
        max-width: none !important;

        height: calc(100dvh - 96px) !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 96px) !important;

        margin: 0 !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;

        z-index: 9000 !important;

        border-radius: 14px;
        box-sizing: border-box !important;
    }


    /*
     * Elementor не повинен стискати внутрішні елементи,
     * коли вміст вищий за доступну висоту вікна.
     */
    body.schedule-open .schedule-info > * {
        flex-shrink: 0 !important;
    }


    /* Сама таблиця */
    body.schedule-open .schedule-info .schedule-table {
        position: relative !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;

        overflow: visible !important;

        flex-shrink: 0 !important;
    }


    /* Рядки таблиці */
    body.schedule-open .schedule-info .schedule-table .row {
        width: 100% !important;
        max-width: 100% !important;

        flex-shrink: 0 !important;
    }


    /* Коли розклад відкритий — сайт позаду не скролиться */
    body.schedule-open {
        overflow: hidden !important;

        width: 100% !important;
        height: 100dvh !important;

        overscroll-behavior: none;
    }
}

/* =========================================================
   СПІВПРАЦЯ З БЛОГЕРАМИ
   ========================================================= */

#cooperation.is-open {
    animation: huaCooperationOpen 0.25s ease both;
}


/* Кнопка закриття */

#cooperation .cooperation-close-button,
#cooperation .cooperation-close-button .elementor-button,
#cooperation .cooperation-close-button button,
#cooperation .cooperation-close-button a {
    cursor: pointer;
}


/* Плавне відкривання */

@keyframes huaCooperationOpen {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}