/* =========================================================
   Travel S Helper Custom Footer — v1.2.0
   Editorial, multilingual, reversible Foxiz replacement
   ========================================================= */

/* Hide only known Foxiz footer wrappers while the TSH footer is ready. */
body.tsh-custom-footer-active #site-footer:not(#tsh-site-footer),
body.tsh-custom-footer-active footer#site-footer:not(#tsh-site-footer),
body.tsh-custom-footer-active .footer-wrap:not(.tsh-site-footer),
body.tsh-custom-footer-active footer.footer-wrap:not(.tsh-site-footer),
body.tsh-custom-footer-active .footer-holder:not(.tsh-site-footer),
body.tsh-custom-footer-active footer#footer:not(#tsh-site-footer) {
    display: none !important;
}

.tsh-site-footer,
.tsh-site-footer *,
.tsh-site-footer *::before,
.tsh-site-footer *::after {
    box-sizing: border-box;
}

.tsh-site-footer {
    --tsh-footer-text: #191919;
    --tsh-footer-muted: #686868;
    --tsh-footer-line: #dedbd5;
    --tsh-footer-bg: #f5f3ef;
    --tsh-footer-white: #fff;
    --tsh-footer-dark: #181818;
    --tsh-footer-accent: #e8663f;
    --tsh-footer-max: 1380px;

    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    color: var(--tsh-footer-text);
    background: var(--tsh-footer-bg);
    border-top: 1px solid rgba(0, 0, 0, .07);
    font-family: inherit;
}

.tsh-footer-main {
    padding: 58px 0 54px;
}

.tsh-footer-inner {
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(0, 2.05fr);
    gap: clamp(54px, 6vw, 96px);
    width: min(var(--tsh-footer-max), calc(100% - 48px));
    margin: 0 auto;
}

/* Brand -------------------------------------------------- */
.tsh-footer-brand {
    min-width: 0;
    padding-inline-end: 10px;
}

.tsh-footer-logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: var(--tsh-footer-text) !important;
    text-decoration: none !important;
}

.tsh-footer-logo img {
    display: block;
    width: auto;
    max-width: min(260px, 100%);
    height: 54px;
    object-fit: contain;
}

.tsh-footer-logo-text {
    display: inline-block;
    color: var(--tsh-footer-text);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.03em;
}

.tsh-footer-description {
    max-width: 430px;
    margin: 24px 0 0;
    color: var(--tsh-footer-muted);
    font-size: 15px;
    line-height: 1.72;
    font-weight: 400;
}

.tsh-footer-social-wrap {
    margin-top: 28px;
}

.tsh-footer-social-title {
    display: block;
    margin-bottom: 13px;
    color: #2e2e2e;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.tsh-footer-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.tsh-footer-social-links .tsh-social-link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #222 !important;
    background: rgba(255,255,255,.58) !important;
    border: 1px solid #d7d3cc !important;
    border-radius: 50%;
    text-decoration: none !important;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.tsh-footer-social-links .tsh-social-link:hover,
.tsh-footer-social-links .tsh-social-link:focus-visible {
    color: var(--tsh-footer-accent) !important;
    background: #fff !important;
    border-color: #cfc9c0 !important;
    transform: translateY(-2px);
}

.tsh-footer-social-links svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Navigation -------------------------------------------- */
.tsh-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 62px);
    min-width: 0;
}

.tsh-footer-section {
    min-width: 0;
}

.tsh-footer-section-head {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 35px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tsh-footer-line);
}

.tsh-footer-section-head::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -1px;
    width: 34px;
    height: 2px;
    background: var(--tsh-footer-accent);
}

.tsh-footer-section-title {
    display: inline-block;
    color: var(--tsh-footer-text) !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: color .18s ease;
}

.tsh-footer-section-title:hover,
.tsh-footer-section-title:focus-visible {
    color: var(--tsh-footer-accent) !important;
}

.tsh-footer-section-toggle {
    display: none;
}

.tsh-footer-section-content {
    display: block;
}

.tsh-footer-links {
    display: grid;
    gap: 10px;
    margin: 19px 0 0;
    padding: 0;
    list-style: none;
}

.tsh-footer-links li {
    margin: 0;
    padding: 0;
}

.tsh-footer-link {
    position: relative;
    display: inline-block;
    max-width: 100%;
    color: #4f4f4f !important;
    font-size: 14px;
    line-height: 1.48;
    font-weight: 500;
    text-decoration: none !important;
    transition: color .18s ease, transform .18s ease;
}

.tsh-footer-link:hover,
.tsh-footer-link:focus-visible {
    color: var(--tsh-footer-accent) !important;
    transform: translateX(3px);
}

html[dir="rtl"] .tsh-footer-link:hover,
html[dir="rtl"] .tsh-footer-link:focus-visible {
    transform: translateX(-3px);
}

/* Bottom ------------------------------------------------- */
.tsh-footer-bottom {
    background: var(--tsh-footer-dark);
    color: #d7d7d7;
}

.tsh-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: min(var(--tsh-footer-max), calc(100% - 48px));
    min-height: 66px;
    margin: 0 auto;
    padding: 16px 0;
}

.tsh-footer-copyright {
    margin: 0;
    color: #cfcfcf;
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 500;
}

.tsh-footer-legal:empty {
    display: none;
}

.tsh-footer-legal-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 23px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tsh-footer-legal-menu li {
    margin: 0;
    padding: 0;
}

.tsh-footer-legal-menu a {
    color: #cfcfcf !important;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none !important;
    transition: color .18s ease;
}

.tsh-footer-legal-menu a:hover,
.tsh-footer-legal-menu a:focus-visible {
    color: #fff !important;
}

.tsh-site-footer a:focus-visible,
.tsh-footer-section-toggle:focus-visible {
    outline: 2px solid var(--tsh-footer-accent);
    outline-offset: 3px;
}

/* Medium desktop / tablet ------------------------------- */
@media (max-width: 1100px) {
    .tsh-footer-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .tsh-footer-brand {
        display: grid;
        grid-template-columns: minmax(220px, .7fr) minmax(280px, 1.3fr) auto;
        align-items: center;
        gap: 28px;
        padding-inline-end: 0;
    }

    .tsh-footer-description,
    .tsh-footer-social-wrap {
        margin-top: 0;
    }

    .tsh-footer-social-title {
        text-align: end;
    }

    .tsh-footer-social-links {
        justify-content: flex-end;
    }
}

/* Mobile / compact footer — aligned with the 1100px header breakpoint. */
@media (max-width: 1100px) {
    .tsh-footer-main {
        padding: 38px 0 30px;
    }

    .tsh-footer-inner,
    .tsh-footer-bottom-inner {
        width: min(100% - 36px, var(--tsh-footer-max));
    }

    .tsh-footer-inner {
        display: block;
    }

    .tsh-footer-brand {
        display: block;
        padding: 0 0 31px;
    }

    .tsh-footer-logo img {
        max-width: 230px;
        height: 48px;
    }

    .tsh-footer-description {
        max-width: 520px;
        margin-top: 20px;
        font-size: 14.5px;
        line-height: 1.65;
    }

    .tsh-footer-social-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        margin-top: 22px;
    }

    .tsh-footer-social-title {
        margin: 0;
        font-size: 10.5px;
        text-align: start;
    }

    .tsh-footer-social-links {
        justify-content: flex-end;
    }

    .tsh-footer-social-links .tsh-social-link {
        width: 36px;
        height: 36px;
    }

    .tsh-footer-nav {
        display: block;
        border-top: 1px solid var(--tsh-footer-line);
    }

    .tsh-footer-section {
        border-bottom: 1px solid var(--tsh-footer-line);
    }

    .tsh-footer-section-head {
        min-height: 61px;
        padding: 0;
        border: 0;
    }

    .tsh-footer-section-head::after {
        display: none;
    }

    .tsh-footer-section-title {
        flex: 1 1 auto;
        padding: 20px 0;
        font-size: 16px;
        line-height: 1.25;
        letter-spacing: -.01em;
        text-transform: none;
    }

    .tsh-footer-section-toggle {
        position: relative;
        flex: 0 0 38px;
        display: block;
        width: 38px;
        height: 38px;
        margin-inline-start: 10px;
        padding: 0;
        color: #303030;
        background: transparent;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
    }

    .tsh-footer-section-toggle span::before,
    .tsh-footer-section-toggle span::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 1.5px;
        margin-left: -7px;
        margin-top: -.75px;
        background: currentColor;
        border-radius: 2px;
        transition: transform .2s ease;
    }

    .tsh-footer-section-toggle span::after {
        transform: rotate(90deg);
    }

    .tsh-footer-section.is-open .tsh-footer-section-toggle span::after {
        transform: rotate(0deg);
    }

    .tsh-footer-section-content {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows .25s ease, opacity .2s ease;
    }

    .tsh-footer-section-content > .tsh-footer-links {
        min-height: 0;
        overflow: hidden;
    }

    .tsh-footer-section.is-open .tsh-footer-section-content {
        grid-template-rows: 1fr;
        opacity: 1;
    }

    .tsh-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 24px;
        margin: 0;
        padding: 0 0 22px;
    }

    .tsh-footer-link {
        font-size: 13.5px;
        line-height: 1.42;
    }

    .tsh-footer-link:hover,
    .tsh-footer-link:focus-visible,
    html[dir="rtl"] .tsh-footer-link:hover,
    html[dir="rtl"] .tsh-footer-link:focus-visible {
        transform: none;
    }

    .tsh-footer-bottom-inner {
        display: block;
        min-height: 0;
        padding: 20px 0 22px;
    }

    .tsh-footer-copyright {
        font-size: 12px;
        line-height: 1.55;
    }

    .tsh-footer-legal-menu {
        justify-content: flex-start;
        gap: 10px 18px;
        margin-top: 13px;
    }
}

@media (max-width: 430px) {
    .tsh-footer-inner,
    .tsh-footer-bottom-inner {
        width: calc(100% - 32px);
    }

    .tsh-footer-logo img {
        max-width: 215px;
        height: 45px;
    }

    .tsh-footer-social-wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .tsh-footer-social-links {
        justify-content: flex-start;
    }

    .tsh-footer-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tsh-site-footer *,
    .tsh-site-footer *::before,
    .tsh-site-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   v1.2.1 — Footer visual refinement
   Styling only. Header/menu logic is untouched.
   ========================================================= */

/* Desktop: a little tighter and more editorial. */
@media (min-width: 1101px) {
    .tsh-footer-main {
        padding: 48px 0 42px;
    }

    .tsh-footer-inner {
        grid-template-columns: minmax(300px, .88fr) minmax(0, 2.12fr);
        gap: clamp(56px, 5.4vw, 88px);
        width: min(1340px, calc(100% - 56px));
    }

    .tsh-footer-logo img {
        height: 56px;
        max-width: min(250px, 100%);
    }

    .tsh-footer-description {
        max-width: 390px;
        margin-top: 20px;
        font-size: 14.5px;
        line-height: 1.68;
    }

    .tsh-footer-social-wrap {
        margin-top: 24px;
    }

    .tsh-footer-social-links .tsh-social-link {
        width: 36px;
        height: 36px;
    }

    .tsh-footer-nav {
        gap: clamp(34px, 3.5vw, 54px);
    }

    .tsh-footer-section-head {
        min-height: 32px;
        padding-bottom: 13px;
    }

    .tsh-footer-section-title {
        font-size: 12.5px;
        letter-spacing: .065em;
    }

    .tsh-footer-links {
        gap: 9px;
        margin-top: 17px;
    }

    .tsh-footer-link {
        font-size: 13.5px;
        line-height: 1.45;
    }

    .tsh-footer-bottom-inner {
        width: min(1340px, calc(100% - 56px));
        min-height: 58px;
        padding: 13px 0;
    }
}

/* Tablet/mobile: center the brand block so it no longer feels stretched. */
@media (max-width: 1100px) {
    .tsh-footer-main {
        padding: 32px 0 24px;
    }

    .tsh-footer-inner,
    .tsh-footer-bottom-inner {
        width: min(100% - 40px, 900px);
    }

    .tsh-footer-brand {
        padding: 0 0 24px;
        text-align: center;
    }

    .tsh-footer-logo {
        justify-content: center;
    }

    .tsh-footer-logo img {
        height: 50px;
        max-width: 225px;
    }

    .tsh-footer-description {
        max-width: 620px;
        margin: 16px auto 0;
        font-size: 14px;
        line-height: 1.62;
        text-align: center;
    }

    .tsh-footer-social-wrap {
        display: block;
        margin-top: 19px;
        text-align: center;
    }

    .tsh-footer-social-title {
        display: block;
        margin: 0 0 11px;
        text-align: center;
    }

    .tsh-footer-social-links {
        justify-content: center;
        gap: 10px;
    }

    .tsh-footer-social-links .tsh-social-link {
        width: 37px;
        height: 37px;
    }

    .tsh-footer-nav {
        border-top-color: #ddd9d2;
    }

    .tsh-footer-section {
        border-bottom-color: #ddd9d2;
    }

    .tsh-footer-section-head {
        min-height: 56px;
    }

    .tsh-footer-section-title {
        padding: 17px 0;
        font-size: 16px;
        font-weight: 800;
    }

    .tsh-footer-section-toggle {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .tsh-footer-links {
        gap: 11px 26px;
        padding-bottom: 19px;
    }

    .tsh-footer-bottom-inner {
        padding: 17px 0 18px;
        text-align: center;
    }

    .tsh-footer-copyright {
        font-size: 11.75px;
        line-height: 1.5;
    }

    .tsh-footer-legal-menu {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .tsh-footer-inner,
    .tsh-footer-bottom-inner {
        width: calc(100% - 32px);
    }

    .tsh-footer-main {
        padding-top: 28px;
    }

    .tsh-footer-logo img {
        height: 46px;
        max-width: 210px;
    }

    .tsh-footer-description {
        max-width: 360px;
        font-size: 13.5px;
    }

    .tsh-footer-links {
        grid-template-columns: 1fr;
        gap: 9px;
    }
}


/* Arabic / RTL: wrapper-level fallback for staging installs whose global
 * WordPress locale has not yet been switched to Arabic. */
.tsh-site-footer[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.tsh-site-footer[dir="rtl"] .tsh-footer-link:hover,
.tsh-site-footer[dir="rtl"] .tsh-footer-link:focus-visible {
    transform: translateX(-3px);
}
