/* MY DUBAI — נגישות: הפאנל וההתאמות (ת"י 5568 / WCAG 2.1 AA).
   נטען אחרי components.css בכל עמוד (וגם בפורטל), ולכן לא נשען על מחלקות משם.
   ההתאמות עצמן הן מחלקות על <html> שמציב a11y-boot.js לפני הציור הראשון. */

/* ===================== שורש: גודל טקסט =====================
   ‼️ זה התיקון לבאג "הגדלת טקסט לא עובדת" (שי, 1.10.2026). הגרסה הקודמת שינתה
   את font-size של <body>, בעוד שכל רכיב באתר מוגדר ב-rem (יחסי ל-<html>) או ב-px —
   ולכן כמעט שום טקסט לא גדל. עכשיו משנים את <html> עצמו: כל rem באתר גדל,
   וכך גם הגדלת "גודל גופן" בדפדפן (שמשנה את אותו בסיס). */
html { font-size: calc(100% * var(--a11y-scale, 1)); }

/* כשהטקסט גדל, הסרגל העליון נשבר לשתי שורות במקום לגלוש לרוחב (WCAG 1.4.10) */
.site-header .container { flex-wrap: wrap; row-gap: var(--s-2); }
html.a11y-size .site-header .container { padding-block: var(--s-2); }
html.a11y-size .nav a, html.a11y-size .header-wa { white-space: normal; }

/* כרטיסים בנייד: בגודל רגיל שתי עמודות עם כותרת מקוצרת (עיצוב של שי, 28.9). בטקסט
   מוגדל — עמודה אחת ובלי קיצוץ, אחרת הכותרת והתגית נחתכות ל"…" (WCAG 1.4.4/1.4.10).
   שני מסלולים: מדרגה בתפריט (a11y-size), או גודל גופן מוגדל בדפדפן — שאותו מודדים
   ב-em של media query, כי em שם נמדד מול גודל הגופן של הדפדפן ולא מול px. */
@media (max-width: 640px) {
  html.a11y-size .cards, html.a11y-size .with-side .cards { grid-template-columns: minmax(0, 1fr) !important; }
  html.a11y-size .card__kicker { white-space: normal; overflow: visible; }
  html.a11y-size .cards .card .card__title { display: block; -webkit-line-clamp: unset; overflow: visible; }
}
@media (max-width: 22em) {
  .cards, .with-side .cards { grid-template-columns: minmax(0, 1fr) !important; }
  .card__kicker { white-space: normal !important; overflow: visible !important; }
  .cards .card .card__title { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
}

/* כותרת רצועה + "לכל ה..." + חיצים: נשברת לשורה נוספת במקום לגלוש (נמצא ב-/en/ בטקסט 200%) */
.rail__head { flex-wrap: wrap; }
.rail__head > :first-child { min-inline-size: 0; }
.rail__nav { flex-wrap: wrap; }

/* ===================== מיקוד מקלדת: בסיס לכל האתר (WCAG 2.4.7 / 1.4.11) =====================
   טבעת המיקוד הכללית (#7d5b28) מגיעה ל-2.4:1 בלבד על האזורים הכהים (סרגל, פוטר, הירו,
   רצועות כהות) — מתחת ל-3:1. שם היא בהירה (#e6c27e: 8.9:1 על #16130e). */
:is(.site-header, .site-footer, .nl, .season, .notice, .cta-band, .hero-x, .md-alert, .why--full, .wa-bar,
    .pt-top, .pt-auth__art, .pt-hero, .pt-tabbar, .pt-offer, .pt-voucher__top) :focus-visible { outline-color: #e6c27e; }
/* שדות שבהם ה-outline בוטל לטובת הילה של 18% זהב — כמעט בלתי נראית. מוסיפים טבעת מלאה */
.wa .field input:focus-visible, .csel__btn:focus-visible, .csel__search:focus-visible,
.filters__search input:focus-visible, .pf :is(input, select, textarea):focus-visible,
.pt-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--c-gold-text, #7d5b28) !important; outline-offset: 2px; }
.nl__row input:focus-visible { outline: 2px solid #e6c27e; outline-offset: 2px; }

/* מטרות מגע ≥24px (WCAG 2.5.8): קישורי השורה המשפטית בפוטר היו בגובה 22px */
.footer-legal a, .footer-legal button { display: inline-flex; align-items: center; min-block-size: 24px; }

/* רצועת שמות נעה: עוצרת במעבר עכבר ובפוקוס (WCAG 2.2.2) */
.partners__row:hover .partners__belt, .partners__row:focus-within .partners__belt { animation-play-state: paused; }

/* ===================== הכפתור (ללא שינוי במראה) ===================== */
.a11y { position: fixed; inset-block-end: 96px; inset-inline-start: 14px; z-index: 120; font-family: var(--f-body, system-ui, sans-serif); }
.a11y--open { z-index: 2147483000; }
.a11y__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--c-gold, #b0874a);
  background: var(--c-night, #16130e); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 10px 26px -10px rgba(29,26,22,.7); transition: transform .2s, background .2s;
}
.a11y__btn:hover { transform: scale(1.06); background: #221d16; }
.a11y__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.a11y__btn svg circle { fill: currentColor; stroke: none; }
.a11y__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--c-night, #16130e); }
@media (max-width: 640px) { .a11y { inset-block-end: 88px; inset-inline-start: 10px; } }

.a11y-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* ===================== הפאנל ===================== */
.a11y__panel {
  position: fixed; inset-block: 12px; inset-inline-start: 12px; inline-size: min(25.5rem, calc(100vw - 24px));
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: #1d1a16; border: 1px solid rgba(29,26,22,.35); border-radius: 18px;
  box-shadow: 0 30px 80px -24px rgba(22,19,14,.6); text-align: start;
  font-size: 1rem; line-height: 1.45; letter-spacing: normal; word-spacing: normal;
}
.a11y__panel[hidden] { display: none !important; }
.a11y__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 14px 20px; background: #16130e; color: #fff; border-block-end: 2px solid #b0874a;
  position: sticky; inset-block-start: 0; z-index: 1;
}
.a11y__title { margin: 0; font: 700 1.25rem/1.2 var(--f-body, system-ui, sans-serif); color: #fff; letter-spacing: .02em; }
.a11y__x {
  flex: none; inline-size: 44px; block-size: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.a11y__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.a11y__x:hover { background: rgba(255,255,255,.12); border-color: #e6c27e; }
.a11y__x:focus-visible { outline: 3px solid #e6c27e; outline-offset: 2px; }

.a11y__body { flex: 1 0 auto; padding: 4px 16px 8px; }
.a11y__sec { padding-block: 14px 16px; border-block-end: 1px solid rgba(29,26,22,.14); }
.a11y__sec:last-child { border-block-end: 0; }
.a11y__h { margin: 0 0 10px; font: 700 .8125rem/1.3 var(--f-body, system-ui, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: #7d5b28; }
.a11y__lab { display: block; padding: 0; margin: 0 0 6px; font-size: .9375rem; font-weight: 700; color: #1d1a16; }

/* גודל טקסט */
.a11y__size { margin-block-end: 12px; }
.a11y__sizectl { display: flex; align-items: center; gap: 10px; }
.a11y__sz {
  flex: none; min-inline-size: 48px; min-block-size: 44px; padding: 0 10px; border-radius: 12px;
  border: 1px solid rgba(29,26,22,.45); background: #faf6ee; color: #1d1a16; font: 700 1.0625rem/1 var(--f-body, system-ui, sans-serif); cursor: pointer;
}
.a11y__sz:hover { background: #f3ebdd; border-color: #16130e; }
.a11y__sz[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.a11y__dots { flex: 1 1 auto; display: flex; gap: 5px; align-items: center; justify-content: center; }
.a11y__dots i { flex: 1 1 0; max-inline-size: 28px; block-size: 6px; border-radius: 3px; background: rgba(29,26,22,.18); }
.a11y__dots i.on { background: #b0874a; }
.a11y__val { flex: none; min-inline-size: 3.4em; text-align: center; font-weight: 700; font-size: .9375rem; color: #1d1a16; font-variant-numeric: tabular-nums; }

/* קבוצות רדיו מפולחות */
.a11y__set { border: 0; margin: 0 0 12px; padding: 0; min-inline-size: 0; }
.a11y__set--nolegend > legend { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a11y__seg { display: flex; flex-wrap: wrap; gap: 6px; }
.a11y__opt, .a11y__tog { position: relative; display: block; cursor: pointer; }
.a11y__seg .a11y__opt { flex: 1 1 5.5em; }
.a11y__in { position: absolute; inset-block-start: 50%; inset-inline-start: 12px; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.a11y__face {
  display: flex; align-items: center; gap: 10px; min-block-size: 44px; padding: 8px 12px;
  border: 1px solid rgba(29,26,22,.4); border-radius: 12px; background: #faf6ee; color: #1d1a16;
  font-size: .9375rem; font-weight: 600; transition: background .15s, border-color .15s, color .15s;
}
.a11y__seg .a11y__face { justify-content: center; text-align: center; }
.a11y__face svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a11y__txt { flex: 1 1 auto; min-inline-size: 0; overflow-wrap: anywhere; }
.a11y__opt:hover .a11y__face, .a11y__tog:hover .a11y__face { border-color: #16130e; background: #f3ebdd; }
.a11y__in:checked + .a11y__face { background: #16130e; border-color: #16130e; color: #fff; }
.a11y__in:focus-visible + .a11y__face { outline: 3px solid #7d5b28; outline-offset: 2px; }

/* מתג ב-toggle — המצב גלוי גם בלי צבע (עיגול זז + סימון) */
.a11y__grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-block-end: 12px; }
.a11y__sec .a11y__grid:last-child { margin-block-end: 0; }
.a11y__sw { flex: none; position: relative; inline-size: 38px; block-size: 22px; border-radius: 11px; background: #fff; border: 2px solid #4a4238; }
.a11y__sw::after { content: ""; position: absolute; inset-block-start: 2px; inset-inline-start: 2px; inline-size: 14px; block-size: 14px; border-radius: 50%; background: #4a4238; transition: inset-inline-start .15s; }
.a11y__in:checked + .a11y__face .a11y__sw { background: #e6c27e; border-color: #e6c27e; }
.a11y__in:checked + .a11y__face .a11y__sw::after { inset-inline-start: 18px; background: #16130e; }

/* אריחי ניגודיות */
.a11y__set--tiles .a11y__seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.a11y__set--tiles .a11y__face { justify-content: flex-start; text-align: start; }
.a11y__swatch { flex: none; inline-size: 22px; block-size: 22px; border-radius: 50%; border: 2px solid #1d1a16; }
.a11y__swatch--none { background: linear-gradient(135deg, #f3ebdd 50%, #b0874a 50%); }
.a11y__swatch--dark { background: linear-gradient(135deg, #000 50%, #ffeb3b 50%); }
.a11y__swatch--light { background: linear-gradient(135deg, #fff 50%, #000 50%); }
.a11y__swatch--invert { background: linear-gradient(135deg, #0c1422 50%, #f3ebdd 50%); }
.a11y__swatch--gray { background: linear-gradient(135deg, #fff 0%, #777 50%, #111 100%); }
.a11y__swatch--lowsat { background: linear-gradient(135deg, #d8d2c8 50%, #9a9488 50%); }
.a11y__in:checked + .a11y__face .a11y__swatch { border-color: #fff; }

.a11y__foot { flex: none; padding: 12px 16px 14px; border-block-start: 1px solid rgba(29,26,22,.14); background: #faf6ee; display: grid; gap: 8px; }
.a11y__reset {
  min-block-size: 44px; border-radius: 12px; border: 2px solid #16130e; background: #fff; color: #16130e;
  font: 700 .9375rem/1.2 var(--f-body, system-ui, sans-serif); cursor: pointer;
}
.a11y__reset:hover { background: #16130e; color: #fff; }
.a11y__reset:focus-visible, .a11y__decl:focus-visible, .a11y__sz:focus-visible { outline: 3px solid #7d5b28; outline-offset: 2px; }
.a11y__decl { justify-self: center; padding: 4px 6px; font-size: .9375rem; font-weight: 600; color: #7d5b28; text-decoration: underline; text-underline-offset: 3px; }
.a11y__note { margin: 0; font-size: .8125rem; color: #4a4238; text-align: center; }

/* נייד: גיליון בגובה מלא */
@media (max-width: 640px) {
  .a11y__panel { inset: 0; inline-size: 100%; max-inline-size: 100vw; border-radius: 0; border: 0; }
  .a11y__set--tiles .a11y__seg { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-height: 560px) { .a11y__panel { inset-block: 6px; } }
@media (prefers-reduced-motion: reduce) { .a11y__btn, .a11y__face, .a11y__sw::after { transition: none; } }

/* ===================== ההתאמות עצמן ===================== */
/* מחוץ לפאנל: כל אלמנט באתר, חוץ מהפאנל עצמו (שנשאר קריא בכל מצב) */

/* גובה שורה וריווח (WCAG 1.4.12: שורה 1.5, אותיות 0.12em, מילים 0.16em) */
html.a11y-lh1 body *:not(.a11y):not(.a11y *) { line-height: 1.85 !important; }
html.a11y-lh2 body *:not(.a11y):not(.a11y *) { line-height: 2.25 !important; }
html.a11y-lh1 body p:not(.a11y *), html.a11y-lh2 body p:not(.a11y *) { margin-block-end: .5em; }
html.a11y-sp1 body *:not(.a11y):not(.a11y *) { letter-spacing: .06em !important; word-spacing: .1em !important; }
html.a11y-sp2 body *:not(.a11y):not(.a11y *) { letter-spacing: .12em !important; word-spacing: .16em !important; }
/* ‼️ ריווח אותיות שובר את חיבור האותיות בערבית — שם מרווחים רק מילים */
html[lang="ar"].a11y-sp1 body *:not(.a11y):not(.a11y *), html[lang="ar"].a11y-sp2 body *:not(.a11y):not(.a11y *) { letter-spacing: normal !important; }
html.a11y-sp1 body *:not(.a11y *), html.a11y-sp2 body *:not(.a11y *) { overflow-wrap: anywhere; }

/* גופן קריא: גופן מערכת ללא תגיות במקום גופן התצוגה */
html.a11y-readable body *:not(.a11y):not(.a11y *):not(svg):not(svg *) {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, "Noto Sans Hebrew", "Noto Sans Arabic", sans-serif !important;
}

/* ניגודיות גבוהה כהה */
html.a11y-c-dark, html.a11y-c-dark body { background: #000 !important; color: #fff !important; }
html.a11y-c-dark body *:not(.a11y):not(.a11y *):not(svg *):not(img):not(video) {
  background-color: #000 !important; color: #fff !important; border-color: #fff !important;
  text-shadow: none !important; box-shadow: none !important;
}
html.a11y-c-dark body *:not(.a11y):not(.a11y *):not(img):not(video) { background-image: none !important; }
html.a11y-c-dark body *:not(.a11y *)::before, html.a11y-c-dark body *:not(.a11y *)::after { background-image: none !important; box-shadow: none !important; }
html.a11y-c-dark a:not(.a11y *), html.a11y-c-dark a:not(.a11y *) * { color: #ffeb3b !important; }
html.a11y-c-dark a:not(.a11y *) { text-decoration: underline !important; }
html.a11y-c-dark :is(button, .btn, input, select, textarea, summary):not(.a11y *) { border: 1px solid #fff !important; }
html.a11y-c-dark ::placeholder { color: #ccc !important; opacity: 1; }

/* ניגודיות גבוהה בהירה */
html.a11y-c-light, html.a11y-c-light body { background: #fff !important; color: #000 !important; }
html.a11y-c-light body *:not(.a11y):not(.a11y *):not(svg *):not(img):not(video) {
  background-color: #fff !important; color: #000 !important; border-color: #000 !important;
  text-shadow: none !important; box-shadow: none !important;
}
html.a11y-c-light body *:not(.a11y):not(.a11y *):not(img):not(video) { background-image: none !important; }
html.a11y-c-light body *:not(.a11y *)::before, html.a11y-c-light body *:not(.a11y *)::after { background-image: none !important; box-shadow: none !important; }
html.a11y-c-light a:not(.a11y *), html.a11y-c-light a:not(.a11y *) * { color: #0000c8 !important; }
html.a11y-c-light a:not(.a11y *) { text-decoration: underline !important; }
html.a11y-c-light :is(button, .btn, input, select, textarea, summary):not(.a11y *) { border: 1px solid #000 !important; }
/* הלוגו בהיר במקור — על לבן הוא נעלם */
html.a11y-c-light .logo img { filter: brightness(0) !important; }

/* מסננים על השורש: לפי Filter Effects, filter על <html> לא שובר position:fixed */
html.a11y-c-invert { filter: invert(1) hue-rotate(180deg); background: #fff; }
html.a11y-c-invert :is(img, video, iframe) { filter: invert(1) hue-rotate(180deg); }
html.a11y-c-gray { filter: grayscale(1); }
html.a11y-c-lowsat { filter: saturate(.35); }

/* הדגשת קישורים וכותרות */
html.a11y-links a:not(.a11y *) {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .2em !important;
  outline: 2px dashed currentColor; outline-offset: 2px;
}
html.a11y-headings :is(h1, h2, h3, h4, h5, h6, [role="heading"]):not(.a11y *) {
  outline: 3px solid #b0874a !important; outline-offset: 4px; border-radius: 2px;
  background-color: rgba(255, 214, 0, .22) !important;
}

/* מיקוד מקלדת בולט: טבעת דו-גונית שנראית על כל רקע */
html.a11y-focus *:focus-visible {
  outline: 3px solid #000 !important; outline-offset: 2px !important;
  box-shadow: 0 0 0 6px #ffd400 !important; border-radius: 4px;
}

/* סמן גדול */
html.a11y-cur-dark, html.a11y-cur-dark * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7-6 1.6L9.6 18z' fill='%23000' stroke='%23fff' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}
html.a11y-cur-light, html.a11y-cur-light * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7-6 1.6L9.6 18z' fill='%23fff' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}
html.a11y-cur-dark :is(a, button, summary, label, select, [role="button"]), html.a11y-cur-dark :is(a, button, summary, label, select, [role="button"]) * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7-6 1.6L9.6 18z' fill='%23000' stroke='%23ffd400' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, pointer !important;
}
html.a11y-cur-light :is(a, button, summary, label, select, [role="button"]), html.a11y-cur-light :is(a, button, summary, label, select, [role="button"]) * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7-6 1.6L9.6 18z' fill='%23fff' stroke='%23b0874a' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, pointer !important;
}

/* עצירת תנועה: אנימציות, מעברים, רצועות נעות, פרלקסה */
html.a11y-nomotion { --t-fast: 0ms; --t-med: 0ms; --t-slow: 0ms; scroll-behavior: auto !important; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-nomotion .fx { --p: .5 !important; }
html.a11y-nomotion .partners__belt { transform: none !important; flex-wrap: wrap; width: auto; }

/* הסתרת תמונות: הטקסט החלופי מוצג ככיתוב (a11y.js מוסיף .a11y-alt) */
html.a11y-noimg :is(img, video, picture, iframe):not(.a11y *) { display: none !important; }
html.a11y-noimg body *:not(.a11y):not(.a11y *) { background-image: none !important; }
html.a11y-noimg body *:not(.a11y *)::before, html.a11y-noimg body *:not(.a11y *)::after { background-image: none !important; }
html.a11y-noimg :is(.hero-x, .hero, .hero-x__media, .feature, .cta-band, .why--full) { background-color: var(--c-night, #16130e) !important; }
.a11y-alt {
  display: block; max-inline-size: 100%; padding: .4em .7em; margin: .25em 0;
  border: 1px dashed currentColor; border-radius: 6px; font: 600 .875rem/1.4 var(--f-body, system-ui, sans-serif); font-style: italic;
  color: inherit; background: rgba(127, 127, 127, .12); overflow-wrap: anywhere; position: static !important;
}

/* סרגל ומסכת קריאה */
.a11y-guide {
  position: fixed; inset-inline: 0; inset-block-start: 0; block-size: 14px; pointer-events: none; z-index: 2147482000;
  background: rgba(255, 214, 0, .35); border-block: 3px solid #16130e; will-change: transform;
}
.a11y-mask { position: fixed; inset-inline: 0; pointer-events: none; z-index: 2147482000; background: rgba(10, 8, 5, .62); }
.a11y-mask--top { inset-block-start: 0; }
.a11y-mask--bot { inset-block-end: 0; }
.a11y-guide[hidden], .a11y-mask[hidden] { display: none !important; }
