/*
Theme Name:   UAROUTES Child
Theme URI:    https://uaroutes.com
Description:  Child theme для GeneratePress. Реєстрація CPT, таксономій, ACF Local JSON, Polylang конфігурація для туристичного сайту UAROUTES.
Author:       UAROUTES
Author URI:   https://uaroutes.com
Template:     generatepress
Version:      0.10.3
Text Domain:  uaroutes
License:      GPL v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
*/

/* GeneratePress auto-enqueues this file as `generate-child-css`. Rules below
   are appended incrementally per substep; full UAROUTES design-system CSS
   lands in a later phase. */

/* ─── Lang switcher (9.6.6 → 9.6.8 move from inline) ───────────── */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 14px;
    /* Push the switcher to the far right of GP's .inside-navigation
       flex container (Step 11.2). `order: 99` places it last in the
       flex order regardless of DOM position; `margin-left: auto`
       claims the remaining axis space so the menu stays left. */
    order: 99;
    margin-left: auto;
}
.lang-switcher__item {
    padding: 0 4px;
    text-decoration: none;
}
.lang-switcher__item.lang-switcher__current {
    text-decoration: underline;
    text-underline-offset: 4px;
    pointer-events: none;
}
.lang-switcher__sep {
    color: #999;
}

/* ─── 16c.1: Force full-width content + hide sidebar on portal pages ─ */
.post-type-archive-article .site-content .content-area,
.post-type-archive-hotel .site-content .content-area,
.post-type-archive-destination .site-content .content-area,
.single-article .site-content .content-area,
.single-destination .site-content .content-area,
.tax-article_type .site-content .content-area {
    width: 100%;
}
.post-type-archive-article #right-sidebar,
.post-type-archive-hotel #right-sidebar,
.post-type-archive-destination #right-sidebar,
.single-article #right-sidebar,
.single-destination #right-sidebar,
.tax-article_type #right-sidebar {
    display: none;
}

/* ─── 16c.5: Portal footer (4-column) ───────────────────────────── */

/* Hide GP's own .site-info everywhere we have the portal footer */
body:not(.single-hotel) .site-info {
    display: none !important;
}

.ua-portal-footer {
    border-top: 0.5px solid #D4D8DC;
    background: #FFFFFF;
}

/* 4-column grid */
.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 48px 40px 40px;
    border-bottom: 0.5px solid #D4D8DC;
}

.footer-col__heading {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    color: #0A0A0A;
    margin: 0 0 14px;
}
.footer-col__heading a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-col__heading a:hover { color: #1F4D5C; }

.footer-col__list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.footer-col__list li { margin-bottom: 8px; }
.footer-col__list a {
    font-family: 'Source Serif 4', serif;
    font-size: 14px;
    line-height: 1.4;
    color: #7A7A7A;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-col__list a:hover { color: #1F4D5C; }

.footer-col__about {
    font-family: 'Source Serif 4', serif;
    font-size: 13px;
    line-height: 1.5;
    color: #9CA3A8;
    margin: 0;
}

/* Bottom bar: copyright + lang switcher */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom__copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #9CA3A8;
}

/* Lang switcher already styled in style.css via .lang-switcher */
.footer-bottom .lang-switcher {
    order: 0;
    margin-left: 0;
    font-size: 12px;
}

@media (max-width: 900px) {
    .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 36px 24px 28px; }
}
@media (max-width: 540px) {
    .footer-cols { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; }
    .footer-bottom { padding: 16px 20px; }
}
