/* RideVie V8.3.10.86.66 — language dropdown, contrast (WCAG AA) and legibility fixes.
   Loaded after app.css on public and admin layouts. */

/* ---------- Language switch: [VN VI][UK EN] + "Other languages" ---------- */
.lang-flag { display: block; flex: 0 0 auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.header-actions .language-switch.lang-flags {
    gap: 2px; padding: 3px; border: 1px solid #d6e5df; border-radius: 999px; background: #fff;
}
.header-actions .language-switch.lang-flags a {
    display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: 32px; padding: 0 11px;
    border-radius: 999px; color: #2c4a40; font-size: 13px; font-weight: 800; letter-spacing: .02em;
    transition: background-color .15s ease, color .15s ease;
}
.header-actions .language-switch.lang-flags a:hover { background: #f1f7f4; }
.header-actions .language-switch.lang-flags a.active { background: #e4f1ec; color: #075c49; box-shadow: inset 0 0 0 1px #c5ddd3; }
.other-language-menu.lang-other > summary {
    gap: 7px; min-height: 40px; padding: 0 14px; border-color: #d6e5df; color: #2c4a40; font-size: 13px; font-weight: 700;
}
.other-language-menu.lang-other > summary.active { color: #075c49; border-color: #8db9aa; background: #f2faf6; }
.lang-other-dot { width: 7px; height: 7px; border-radius: 50%; background: #1f6fd1; box-shadow: 0 0 0 3px rgba(31, 111, 209, .15); flex: 0 0 7px; }
.other-language-menu.lang-other > summary.active .lang-other-dot { background: #075c49; box-shadow: 0 0 0 3px rgba(7, 92, 73, .15); }
.lang-other-caret { opacity: .7; transition: transform .15s ease; }
.other-language-menu.lang-other[open] .lang-other-caret { transform: rotate(180deg); }
.other-language-menu a.active, .mobile-other-language-panel a.active { background: #e4f1ec; color: #075c49; }
@media (max-width: 1180px) {
    .header-actions .language-switch.lang-flags a { padding: 0 8px; gap: 4px; }
    .other-language-menu.lang-other > summary { padding: 0 11px; }
}
/* Mobile: compact flags */
.mobile-header-languages.lang-flags-mobile > a { display: inline-flex !important; align-items: center; gap: 3px; min-width: 0 !important; padding: 0 5px !important; }
.mobile-header-languages.lang-flags-mobile .lang-flag { width: 16px; height: 11px; }
.mobile-header-languages.lang-flags-mobile > a span { font-size: 11px; }
@media (max-width: 380px) {
    .mobile-header-languages.lang-flags-mobile > a span { display: none; }
}

/* Footer language links: crawlable VI/EN alternates + no-JS fallback. */
.footer-languages { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.footer-languages a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-languages a[aria-current="true"] { font-weight: 700; text-decoration: none; }

/* ---------- Contrast fixes (Lighthouse / axe color-contrast) ---------- */
:root { --muted: #56665f; }
.feature-number { color: #7a5600 !important; }
.featured-news-card small,
.news-card-body small,
.home-news-card small { color: #56665f !important; }
.featured-news-card small { font-size: 12px !important; }
.site-footer .map-credit,
.footer-bottom .map-credit { color: rgba(255, 255, 255, .78) !important; }
.contact-whatsapp { background: #128243 !important; }
.partner-strip i { color: #8a6200 !important; }
.professional-form label small,
.flight-field-optional { color: #56665f !important; }
.help-article-meta b { color: #7a5300 !important; }

/* Admin › Header & Footer › auto-translated languages (multi-select) */
.lang-multiselect { position: relative; max-width: 560px; }
.lang-multiselect > summary {
    display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 40px 8px 14px; cursor: pointer; list-style: none;
    border: 1px solid #cfdfd8; border-radius: 12px; background: #fff; position: relative;
}
.lang-multiselect > summary::-webkit-details-marker { display: none; }
.lang-multiselect > summary::after {
    content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
    border-right: 2px solid #4b6a60; border-bottom: 2px solid #4b6a60; transform: rotate(45deg); transition: transform .15s ease;
}
.lang-multiselect[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.lang-multiselect-count { font-weight: 800; color: #12352b; white-space: nowrap; }
.lang-multiselect-names { color: #56665f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lang-multiselect-panel {
    position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px); max-height: 340px; overflow: auto;
    padding: 8px; border: 1px solid #cfdfd8; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(7, 45, 36, .18);
}
.lang-multiselect-tools { display: flex; gap: 8px; padding: 2px 4px 8px; border-bottom: 1px solid #edf3f0; margin-bottom: 6px; }
.lang-multiselect-tools button { border: 1px solid #cfdfd8; background: #f6faf8; border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.lang-multiselect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px; }
.lang-multiselect .lang-multiselect-item {
    display: flex !important; flex-direction: row !important; align-items: center !important; gap: 8px !important;
    margin: 0 !important; padding: 6px 8px !important; border-radius: 8px; font-weight: 500; font-size: 13px; cursor: pointer;
}
.lang-multiselect .lang-multiselect-item:hover { background: #f2f8f5; }
.lang-multiselect .lang-multiselect-item input[type="checkbox"] {
    width: 16px !important; height: 16px !important; min-width: 16px; margin: 0 !important; padding: 0 !important; flex: 0 0 16px;
    appearance: auto !important; -webkit-appearance: checkbox !important; position: static !important; opacity: 1 !important;
}
.lang-multiselect .lang-multiselect-item small { color: #6b7a74; margin-left: auto; font-size: 11px; }
.lang-multiselect-help { margin: 6px 0 0; color: #56665f; font-size: 13px; max-width: 560px; }
.lang-multiselect .lang-multiselect-item { min-height: 0 !important; height: auto !important; line-height: 1.3 !important; }
.lang-multiselect .lang-multiselect-item span { font-weight: 600; }

/* "Other languages" menu: flag + name list (2 columns desktop, 2 columns mobile sheet) */
.other-language-menu.lang-other > div { width: 380px; gap: 2px 6px; padding: 10px; }
.other-language-menu.lang-other > div > a,
.mobile-other-language-panel > a {
    display: flex !important; align-items: center; gap: 9px; min-width: 0;
    padding: 9px 10px !important; border-radius: 10px; font-size: 13px; font-weight: 700; color: #1f3a32; line-height: 1.25;
}
.other-language-menu.lang-other > div > a span,
.mobile-other-language-panel > a span { min-width: 0; overflow-wrap: anywhere; }
.other-language-menu.lang-other > div > a .lang-flag,
.mobile-other-language-panel > a .lang-flag { width: 21px; height: 14px; object-fit: cover; }
.lang-multiselect .lang-multiselect-item .lang-flag { width: 20px; height: 13px; object-fit: cover; }

/* V8.3.10.86.66: the HTML `hidden` attribute must always win. Several components
   (e.g. .booking-fare-loading "Calculating route…") set display:flex, which kept
   them visible after the fare had already been calculated. */
[hidden] { display: none !important; }

/* Service landing pages: steps, related links, FAQ */
.service-steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; }
.service-steps li { line-height: 1.55; }
.service-related-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.service-related-links a { display: block; padding: 10px 12px; border: 1px solid #d9e6e1; border-radius: 10px; font-weight: 700; color: #075c49; }
.service-related-links a:hover { background: #f2f8f5; }
.service-faq-section h2 { margin-bottom: 14px; }
.service-faq-list { display: grid; gap: 10px; max-width: 860px; }
.service-faq { border: 1px solid #d9e6e1; border-radius: 12px; background: #fff; padding: 0 16px; }
.service-faq > summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; }
.service-faq > summary::-webkit-details-marker { display: none; }
.service-faq > summary::after { content: "+"; float: right; font-weight: 800; color: #075c49; }
.service-faq[open] > summary::after { content: "−"; }
.service-faq p { margin: 0 0 14px; color: #3c524a; line-height: 1.6; }

/* V8.3.10.86.66h — Admin › News: date range filter (from – to) + quick presets */
.admin-body .ntq-news-filter.has-date-range {
    grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr) minmax(130px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) auto !important;
}
.news-filter-form .news-date-presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.news-date-presets > span { color: #56665f; font-weight: 700; }
.news-date-presets a {
    display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid #cfdfd8; border-radius: 999px;
    background: #fff; color: #1f3a32; font-weight: 700; text-decoration: none;
}
.news-date-presets a:hover { background: #f2f8f5; }
.news-date-presets a.active { background: #075c49; border-color: #075c49; color: #fff; }
.news-date-presets a.news-filter-reset { border-style: dashed; color: #8a2b2b; }
.news-date-presets .news-filter-count { margin-left: auto; color: #56665f; font-size: 13px; font-weight: 600; }
@media (max-width: 1180px) {
    .admin-body .ntq-news-filter.has-date-range { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .admin-body .ntq-news-filter.has-date-range > label:first-child { grid-column: 1 / -1 !important; }
    .admin-body .ntq-news-filter.has-date-range .button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 560px) {
    .admin-body .ntq-news-filter.has-date-range { grid-template-columns: 1fr !important; }
    .news-date-presets .news-filter-count { margin-left: 0; width: 100%; }
}

/* V8.3.10.86.66j — one system font stack everywhere (public + admin), incl. form controls. */
:root { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
html, body { font-family: var(--font); }
button, input, select, textarea, optgroup { font-family: inherit; }

/* V8.3.10.86.66k — homepage sign-up block with only one card enabled */
.access-section-single .access-card-grid { grid-template-columns: minmax(0, 640px) !important; justify-content: center; }
.admin-card-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #f2f8f5; color: #3c524a; font-size: 13px; line-height: 1.5; }

/* V8.3.10.86.66k — Account › My details */
.account-profile-panel { margin: 0 0 18px; padding: 0; overflow: hidden; }
.account-profile-panel > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.account-profile-panel > summary::-webkit-details-marker { display: none; }
.account-profile-panel > summary > span { font-size: 22px; }
.account-profile-panel > summary div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.account-profile-panel > summary small { color: #56665f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-profile-panel > summary em { font-style: normal; font-weight: 800; color: #075c49; border: 1px solid #cfdfd8; border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.account-profile-panel[open] > summary em { display: none; }
.account-profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 4px 18px 18px; border-top: 1px solid #edf3f0; }
.account-profile-form input[readonly] { background: #f4f7f6; color: #56665f; }
.account-profile-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.account-profile-actions a { font-weight: 700; color: #075c49; }
@media (max-width: 720px) { .account-profile-form { grid-template-columns: 1fr; } }

/* ======================================================================
   V8.3.10.86.67 — Header: globe-only language menu + compact account dropdown.
   Both menus are fixed-size icon buttons whose long (auto-translated) content
   lives in a dropdown panel, so translated text can never push the header wide.
   ====================================================================== */
.header-actions { min-width: 0; flex-wrap: nowrap; }
.header-actions > * { flex: 0 0 auto; }
.header-actions .header-cta { flex: 0 1 auto; display: block; min-width: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; line-height: 1.6; }

.header-actions .other-language-menu.lang-other > summary,
.header-actions .account-menu > summary {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 3px;
    height: 40px; min-height: 40px; padding: 0; border: 1px solid #d6e5df; border-radius: 999px; background: #fff;
    color: #2c4a40; cursor: pointer; list-style: none; user-select: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.header-actions .other-language-menu.lang-other > summary { width: 40px; min-width: 40px; }
.header-actions .account-menu > summary { min-width: 52px; padding: 0 9px 0 11px; }
.header-actions .other-language-menu.lang-other > summary::-webkit-details-marker,
.header-actions .account-menu > summary::-webkit-details-marker { display: none; }
.header-actions .other-language-menu.lang-other > summary:hover,
.header-actions .account-menu > summary:hover { background: #f1f7f4; border-color: #b9d3c9; }
.header-actions .other-language-menu.lang-other > summary:focus-visible,
.header-actions .account-menu > summary:focus-visible { outline: 2px solid #075c49; outline-offset: 2px; }
.header-actions .other-language-menu.lang-other[open] > summary,
.header-actions .account-menu[open] > summary { border-color: #8db9aa; background: #f2faf6; color: #075c49; box-shadow: 0 0 0 3px rgba(7, 92, 73, .08); }
.header-actions .other-language-menu.lang-other > summary.active { color: #075c49; border-color: #8db9aa; background: #f2faf6; }
.lang-globe, .account-menu-icon { display: block; flex: 0 0 auto; }
.account-menu-caret { opacity: .7; transition: transform .15s ease; flex: 0 0 auto; }
.account-menu[open] .account-menu-caret { transform: rotate(180deg); }

/* The text label is kept for screen readers / the translator bridge only. */
.header-actions .other-language-menu .other-language-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.header-actions .other-language-menu.lang-other > summary .lang-other-dot {
    display: none; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; flex: none;
    background: #075c49; box-shadow: 0 0 0 2px #fff;
}
.header-actions .other-language-menu.lang-other > summary.active .lang-other-dot { display: block; }

/* Dropdown panels: viewport-bounded, scroll inside, never wider than the screen. */
.header-actions .other-language-menu.lang-other > .other-language-panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 1300;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px;
    width: min(360px, calc(100vw - 24px)); max-height: min(62vh, 440px); overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: contain; padding: 10px; box-sizing: border-box;
    border: 1px solid #d6e5df; border-radius: 16px; background: #fff; box-shadow: 0 18px 48px rgba(7, 45, 36, .2);
}
.other-language-panel .other-language-title {
    grid-column: 1 / -1; padding: 4px 8px 8px; margin-bottom: 4px; border-bottom: 1px solid #edf3f0;
    color: #12352b; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.header-actions .other-language-panel > a { min-width: 0; }
.header-actions .other-language-panel > a:hover { background: #edf7f3; color: #075c49; }

.header-actions .account-menu { position: relative; z-index: 1200; }
.header-actions .account-menu > .account-menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 1300;
    display: flex; flex-direction: column; gap: 2px; box-sizing: border-box;
    width: max-content; min-width: 168px; max-width: min(260px, calc(100vw - 24px));
    padding: 6px; border: 1px solid #d6e5df; border-radius: 14px; background: #fff; box-shadow: 0 18px 48px rgba(7, 45, 36, .2);
}
.header-actions .account-menu-panel > a {
    display: flex !important; align-items: center; min-width: 0; padding: 10px 12px; border-radius: 10px;
    color: #1f3a32; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; text-decoration: none;
}
.header-actions .account-menu-panel > a:hover,
.header-actions .account-menu-panel > a:focus-visible { background: #edf7f3; color: #075c49; outline: none; }
.header-actions .account-menu-panel > a.header-register { font-weight: 600; color: #3f5a51; }
@media (max-width: 1180px) {
    .header-actions .account-menu > summary { min-width: 48px; padding: 0 8px 0 10px; }
}
