/* =============================================
   משתנים כלליים
   ============================================= */

:root {
  --footer-h: 56px;
}


/* =============================================
   פונטים
   ============================================= */

@font-face {
  font-family: "NarkissBlock";
  src: url("../fonts/NarkissBlock-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "NarkissBlock";
  src: url("../fonts/NarkissBlock-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "NarkissBlock";
  src: url("../fonts/NarkissBlock-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "NarkissBlock";
  src: url("../fonts/NarkissBlock-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}


/* =============================================
   איפוס בסיסי
   ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* =============================================
   מבנה בסיס והתאמות מובייל
   ============================================= */

html {
  background-color: #ffffff;
  height: 100%;
  overflow: hidden;
}


body {
  position: relative;

  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
}


/* =============================================
   עטיפת מסך מובייל
   ============================================= */

.screen {
  position: relative;
  width: 100%;

  max-width: 440px;
  height: calc(100vh - var(--footer-h));
  height: calc(100dvh - var(--footer-h));

  height: calc(var(--app-height, 100dvh) - var(--footer-h));

  transform: translate(var(--app-offset-left, 0px), var(--app-offset-top, 0px));
  background-color: #ffffff;
  overflow: hidden;
}


.screen:has(#searchInput:focus) {
  height: var(--app-height, 100dvh);
}

.screen:has(#searchInput:focus) ~ .site-footer {
  opacity: 0;
  pointer-events: none;
}


/* =============================================
   כותרת עליונה
   ============================================= */

.header {
  position: relative;
  width: 100%;

  height: 11.5vh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);

  z-index: 60;
}


.screen:has(.splash-screen:not(.splash-hidden)) .lang-text {
  visibility: hidden;
}


.header-logo {
  height: 4.5vh;
  width: auto;
}


.header-title {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #317379;
  line-height: 1.2;
  text-align: center;
  direction: rtl;
  margin: 0;

  padding: 0 44px;
}


.lang-text {
  position: absolute;

  right: 3.5%;

  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  outline: none;
  padding: 0;
  color: #112E32;
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
}


.lang-text:focus-visible {
  outline: 2px solid #317379;
  outline-offset: 4px;
  border-radius: 4px;
}


/* =============================================
   אזור המפה
   ============================================= */

.map-area {
  width: 100%;

  height: calc(100% - 11.5vh);

  position: relative;
  z-index: 1;
}


/* =============================================
   סמן מיקום המשתמש
   ============================================= */

.user-location-icon {
  background: none !important;
  border: none !important;
}


.user-location-dot {
  width: 18px;
  height: 18px;
  background-color: #317379;
  border-radius: 50%;
  border: 3px solid #ffffff;

  box-shadow: 0 0 0 5px rgba(49, 115, 121, 0.22), 0 2px 8px rgba(0, 0, 0, 0.22);
}


.user-location-marker {
  position: relative;
  width: 18px;
  height: 18px;
  transform-origin: center;
  transform: rotate(var(--heading, 0deg));
  transition: transform 0.3s ease;
}


.user-location-halo {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 72px;
  height: 54px;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  background: radial-gradient(ellipse 90% 100% at 50% 100%,
      rgba(49, 115, 121, 0.38) 0%,
      rgba(49, 115, 121, 0.15) 45%,
      rgba(49, 115, 121, 0) 75%);

  clip-path: polygon(42% 100%, 58% 100%, 90% 4%, 10% 4%);
  filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-location-marker.has-heading .user-location-halo {
  opacity: 1;
}


/* =============================================
   מסך פתיחה
   ============================================= */

.splash-screen {
  position: absolute;
  inset: 0;
  background-color: #E8F7F8;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}


.splash-screen.splash-hidden {
  opacity: 0;
  pointer-events: none;
}


.splash-logo {
  display: flex;
  align-items: center;
  gap: 3px;
  direction: ltr;
}

.splash-logo-text {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 700;
  font-size: 68px;
  color: #317379;
  line-height: 1;
  letter-spacing: -1px;
}


.splash-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}


.splash-pin-icon {
  display: block;
  height: 64px;
  width: auto;
  animation: marker-bounce 1.6s ease 0.4s infinite both;
}


.splash-ellipse-icon {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 2px;
  width: 20px;
  height: auto;
  opacity: 0.35;
  animation: ellipse-pulse 1.6s ease 0.4s infinite both;
}


/* =============================================
   אנימציות מסך פתיחה
   ============================================= */

@keyframes marker-bounce {
  0%   { transform: translateY(0);     animation-timing-function: ease-out; }
  18%  { transform: translateY(-13px); animation-timing-function: ease-in;  }
  36%  { transform: translateY(0);     animation-timing-function: ease-out; }
  52%  { transform: translateY(-7px);  animation-timing-function: ease-in;  }
  65%  { transform: translateY(0);     animation-timing-function: ease-out; }
  76%  { transform: translateY(-3px);  animation-timing-function: ease-in;  }
  84%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}

@keyframes ellipse-pulse {
  0%   { transform: translateX(-50%) scaleX(1);    opacity: 0.35; animation-timing-function: ease-out; }
  18%  { transform: translateX(-50%) scaleX(0.38); opacity: 0.16; animation-timing-function: ease-in;  }
  36%  { transform: translateX(-50%) scaleX(1);    opacity: 0.35; animation-timing-function: ease-out; }
  52%  { transform: translateX(-50%) scaleX(0.58); opacity: 0.22; animation-timing-function: ease-in;  }
  65%  { transform: translateX(-50%) scaleX(1);    opacity: 0.35; animation-timing-function: ease-out; }
  76%  { transform: translateX(-50%) scaleX(0.78); opacity: 0.28; animation-timing-function: ease-in;  }
  84%  { transform: translateX(-50%) scaleX(1);    opacity: 0.35; }
  100% { transform: translateX(-50%) scaleX(1);    opacity: 0.35; }
}


/* =============================================
   פאנל תחתון
   ============================================= */

.bottom-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  height: 46.2vh;
  background-color: #317379;

  z-index: 5;

  border-radius: 30px 30px 0 0;

  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);

  padding: 4vh 6.6% 2vh;

  overflow: hidden;

  transition: height 0.35s ease-out;
}


/* =============================================
   ידית גרירה (מסך בית בלבד)
   ============================================= */

/* הגובה תואם בדיוק את ה-padding-top של .bottom-panel (4vh), כדי שהידית תמיד
   תמורכז ברצועה הירוקה שמעל שורת החיפוש, בלי חישובי היסט קבועים. */
.panel-drag-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 64px;
  height: 4vh;

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

  cursor: grab;
  touch-action: none;
  z-index: 6;
}

.panel-drag-handle::before {
  content: "";
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background-color: #ffffff;
}

.panel-drag-handle:active {
  cursor: grabbing;
}

/* .bottom-panel.expanded מקטין את ה-padding-top ל-3vh (ראו .bottom-panel.expanded
   בהמשך הקובץ) — הידית עוקבת לאותו גובה כדי להישאר ממורכזת גם שם. */
.bottom-panel.expanded .panel-drag-handle {
  height: 3vh;
}

/* מוסתרת בכל מצב שאינו מסך הבית ההתחלתי — נשענת על אותם קלאסים/מצבים
   שכל שאר הפאנל כבר משתמש בהם, כדי לא ליצור מנגנון מצב מקביל. */
.bottom-panel.searching .panel-drag-handle,
.bottom-panel.destination .panel-drag-handle,
.bottom-panel.navigating .panel-drag-handle,
.bottom-panel.nav-completed .panel-drag-handle,
.bottom-panel:has(#buildingsList:not(.hidden)) .panel-drag-handle,
.screen:has(#searchInput:focus) .panel-drag-handle,
.screen:has(.overlay.visible) .panel-drag-handle {
  display: none;
}


/* =============================================
   שורת חיפוש
   ============================================= */

.search-bar {

  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 30px;

  height: 53px;

  padding: 0 10px;
  gap: 6px;

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

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  background: transparent;
  color: #112E32;
  text-align: right;
  direction: rtl;

  padding-right: 6px;
}


.search-input::placeholder {
  color: rgba(17, 46, 50, 0.5);
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 400;
}


.kb-nav .search-bar:has(.search-input:focus) {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}


.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  pointer-events: none;
}


.mic-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 44px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
}


.mic-btn:disabled {
  opacity: 0.35;
  cursor: default;
}


.mic-btn:focus-visible {
  outline: 2px solid #317379;
  outline-offset: 2px;
}


.mic-btn.listening {
  background-color: rgba(49, 115, 121, 0.15);
}

.mic-btn.listening svg path {
  fill: #317379;
}


.clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 44px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
}

.clear-btn:focus-visible {
  outline: 2px solid #317379;
  outline-offset: 2px;
}


/* =============================================
   כותרת סקשן
   ============================================= */

.section-title {
  color: #ffffff;
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;

  margin-top: 3.5vh;
  margin-bottom: 1.5vh;
  text-align: right;
}


/* =============================================
   קטגוריות
   ============================================= */

.categories-box {
  background-color: #ffffff;
  border-radius: 30px;
  padding: 0 20px;
  overflow: hidden;
}


.category-row {
  display: flex;
  align-items: center;

  justify-content: flex-start;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
}


.category-row + .category-row {
  border-top: 1px solid rgba(17, 46, 50, 0.1);
}


.category-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.category-icon[src*="cafe-icon"] {
  width: 33px;
  height: 33px;
  margin-right: -5px;
}


.category-name {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #112E32;
}


.category-row.selected {
  background-color: #E8F7F8;
}


.category-row:focus-visible {
  outline: 2px solid #317379;
  outline-offset: -2px;
  border-radius: 8px;
}


/* =============================================
   כלי עזר
   ============================================= */

.hidden {

  display: none !important;
}


/* =============================================
   חיפוש במצב מורחב
   ============================================= */

.search-row {
  display: flex;
  align-items: center;
}


.back-btn {
  display: none;
  align-items: center;
  justify-content: center;

  width: 56px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.back-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform: scaleX(-1);
}

.back-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 50%;
}


/* =============================================
   מצב פאנל מורחב
   ============================================= */

.bottom-panel.expanded {

  height: calc(100dvh - var(--footer-h) - 11.5vh - 39px);
  height: calc(var(--app-height, 100dvh) - var(--footer-h) - 11.5vh - 39px);

  padding: 3vh 0 2vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


.screen:has(#searchInput:focus) .bottom-panel.expanded {
  height: calc(var(--app-height, 100dvh) - 11.5vh - 39px);
}


.screen:has(#searchInput:focus) .bottom-panel:not(.expanded) {
  height: min(46.2vh, calc(var(--app-height, 100dvh) - 11.5vh - 39px));
}


.bottom-panel.expanded .search-row,
.bottom-panel.expanded .section-title,
.bottom-panel.expanded .categories-box {
  flex-shrink: 0;
}


.bottom-panel.expanded .back-btn {
  display: flex;
}


.bottom-panel.expanded .search-row {
  direction: rtl;
  padding-left: 27px;
  padding-right: 0;
}


.bottom-panel.expanded .search-bar {
  direction: rtl;
  height: 53px;
}


.bottom-panel.expanded .section-title {
  padding-right: 6.6%;
  padding-left: 6.6%;
}

.bottom-panel.expanded .categories-box {
  margin-right: 6.6%;
  margin-left: 6.6%;
}


.bottom-panel.expanded #categoriesBox,
.bottom-panel.expanded #buildingsList {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}


/* =============================================
   תוצאות חיפוש
   ============================================= */

.results-container {
  margin: 30px 27px 0;
  background-color: #225359;
  border-radius: 30px 30px 0 0;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  padding: 18px 0 13px;
  gap: 13px;
}


.results-container::-webkit-scrollbar {
  display: none;
}


.bottom-panel.searching {
  padding-bottom: 0;
}


.bottom-panel.searching .section-title,
.bottom-panel.searching .categories-box {
  display: none;
}


.result-item {
  margin: 0 17px;
  height: 71px;
  background-color: #F3F2F2;
  border-radius: 30px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 20px;
  cursor: pointer;
}

.result-item:active {
  background-color: #E8F7F8;
}


.kb-nav .result-item:focus {
  outline: 2px solid #317379;
  outline-offset: -2px;
  border-radius: 30px;
}

.result-item-name {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: #112E32;
  text-align: right;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-item-building {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  color: #112E32;
  text-align: right;
}


.results-container.empty {
  justify-content: center;
  align-items: center;
}

.no-results-message {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #ffffff;
  text-align: center;
  direction: rtl;
  white-space: pre-line;
  padding: 0 24px;
}


/* =============================================
   Overlay ופופאפים
   ============================================= */

.overlay {
  position: absolute;

  top: 11.5vh;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}


/* =============================================
   אנימציית פופאפ
   ============================================= */

@keyframes popup-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.popup:not(.hidden) {
  animation: popup-enter 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.popup {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 36vh;
  width: 324px;
  max-width: 90%;
  min-height: 239px;

  background-color: #E8F7F8;
  border-radius: 30px;

  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

  padding: 20px 20px 43px 20px;
  z-index: 30;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.popup-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;

  min-width: 44px;
  min-height: 44px;
}


.popup-close-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.kb-nav .popup-close-btn:focus {
  outline: 2px solid #317379;
  outline-offset: 2px;
}


.popup-body {
  margin-top: 16px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


.popup-text {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 25px;
  letter-spacing: 0;
  color: #112E32;
  text-align: center;
  width: 199px;
  height: 50px;

  display: flex;
  align-items: center;
}


.popup-allow-btn {
  width: 115px;
  height: 46px;
  background-color: #ffffff;
  color: #112E32;
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid #112E32;
  border-radius: 25px;
  cursor: pointer;

  align-self: center;
  flex-shrink: 0;
}

.popup-allow-btn:focus-visible {
  outline: 2px solid #317379;
  outline-offset: 3px;
}


.popup-primary-btn {
  background-color: #317379;
  color: #ffffff;
  border-color: #317379;
  font-weight: 600;
}


/* =============================================
   מצב יעד
   ============================================= */

.bottom-panel.destination {
  height: 40vh;
}


.bottom-panel.destination .results-container,
.bottom-panel.destination .section-title,
.bottom-panel.destination .categories-box {
  display: none;
}


.bottom-panel.destination .mic-btn,
.bottom-panel.destination .clear-btn {
  display: none;
}


/* =============================================
   תצוגת יעד
   ============================================= */

.destination-view {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 24px;
  margin-top: 2vh;
}

.bottom-panel.destination .destination-view {
  display: flex;
}


.destination-info {
  min-width: 0;
  width: 100%;
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.destination-name {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  line-height: 1.2;
}

.destination-building {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #ffffff;
  line-height: 1.2;
}


.destination-nav-start {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
}


.nav-btn {
  background-color: #E8AB3B;
  color: #112E32;
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  padding: 0 28px;
  height: 46px;
  min-height: 44px;
  min-width: 130px;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-end;
  margin-top: auto;
  margin-bottom: 1vh;
}

.nav-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}


/* =============================================
   מידע על שימוש במערכת
   ============================================= */

.info-section {
  display: none;

  justify-content: flex-start;
  padding-right: 10px;
  padding-bottom: 2px;

  margin-top: auto;
}

.bottom-panel.destination .info-section {
  display: flex;
}


.info-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  min-height: 44px;
}

.info-trigger-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 8px;
}

.info-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.info-label {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
}


/* =============================================
   פופאפ בחירת מצב ניווט
   ============================================= */

.nav-mode-popup-text {
  width: auto;
  height: auto;
  max-width: 255px;
  text-align: center;
  justify-content: center;
  line-height: 25px;
}


.nav-mode-btn-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
}


.nav-mode-btn {
  width: 115px;
  height: 46px;
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  border: 2px solid #317379;
}


.nav-mode-btn-yes {
  background-color: #317379;
  color: #ffffff;
  font-weight: 600;
}


.nav-mode-btn-no {
  background-color: #ffffff;
  color: #112E32;
  border-color: #112E32;
}

.nav-mode-btn:focus-visible {
  outline: 2px solid #317379;
  outline-offset: 3px;
}


/* =============================================
   פופאפ מחוץ לקמפוס
   ============================================= */

.outside-popup-text {
  width: auto;
  height: auto;
  max-width: 265px;
  text-align: center;
}


/* =============================================
   פופאפ מידע
   ============================================= */

.popup.info-popup {
  min-height: 280px;
  top: 23.1vh;
}


.info-popup-text {
  width: auto;
  height: auto;

  max-width: 82%;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-align: right;
  direction: rtl;
}


/* =============================================
   אנימציית מיקום משתמש
   ============================================= */

@keyframes location-pulse {
  0%   { box-shadow: 0 0 0 5px rgba(49, 115, 121, 0.22), 0 2px 8px rgba(0, 0, 0, 0.22); }
  50%  { box-shadow: 0 0 0 13px rgba(49, 115, 121, 0.08), 0 2px 8px rgba(0, 0, 0, 0.22); }
  100% { box-shadow: 0 0 0 5px rgba(49, 115, 121, 0.22), 0 2px 8px rgba(0, 0, 0, 0.22); }
}

.user-location-dot {
  animation: location-pulse 2s ease-in-out infinite;
}


/* =============================================
   מצב ניווט פעיל
   ============================================= */

.bottom-panel.navigating {
  height: 18.8vh;
}


.bottom-panel.navigating .search-row,
.bottom-panel.navigating .results-container,
.bottom-panel.navigating .section-title,
.bottom-panel.navigating .categories-box,
.bottom-panel.navigating .destination-view,
.bottom-panel.navigating .info-section {
  display: none;
}


.navigation-view {
  display: none;
  flex-direction: column;
  gap: 2.2vh;
}

.bottom-panel.navigating .navigation-view {
  display: flex;
}


.nav-instruction-row {
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  gap: 12px;
}


.nav-arrow {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nav-arrow.turn-right {
  transform: rotate(90deg);
}

.nav-arrow.turn-left {
  transform: rotate(-90deg);
}


.nav-instruction-text {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #ffffff;
  line-height: 1.2;
  text-align: center;
  direction: rtl;
  margin: 0;
}


.nav-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  direction: ltr;
}


.nav-stop-btn {
  width: 167px;
  height: 46px;
  min-height: 44px;
  background-color: #E8AB3B;
  color: #112E32;
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-stop-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}


.nav-voice-btn {
  width: 46px;
  height: 46px;
  min-width: 44px;
  min-height: 44px;
  background-color: #E8F7F8;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-voice-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}


.nav-voice-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}


.nav-voice-btn.active .nav-voice-icon {
  width: 22px;
  height: 22px;
}


.nav-voice-btn:not(.active) .nav-voice-icon {
  transform: translateX(2px);
}


/* =============================================
   מצב סיום ניווט
   ============================================= */

.bottom-panel.nav-completed {
  height: 26.3vh;
}


.bottom-panel.nav-completed .search-row,
.bottom-panel.nav-completed .results-container,
.bottom-panel.nav-completed .section-title,
.bottom-panel.nav-completed .categories-box,
.bottom-panel.nav-completed .destination-view,
.bottom-panel.nav-completed .info-section,
.bottom-panel.nav-completed .navigation-view {
  display: none;
}


.navigation-completed-view {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
}

.bottom-panel.nav-completed .navigation-completed-view {
  display: flex;
  height: 100%;
  justify-content: flex-start;
}


.bottom-panel.nav-completed .nav-action-row {
  margin-top: auto;
}


.nav-completed-primary {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #E8F7F8;
  line-height: 1.2;
  text-align: center;
  direction: rtl;
  margin: 0;
}


.nav-completed-secondary {
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #ffffff;
  line-height: 1.2;
  text-align: center;
  direction: rtl;
  margin: 0;
}


.nav-completed-floor {
  font-weight: 700;
}


/* =============================================
   נגישות וקורא מסך
   ============================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =============================================
   הודעת הנחיה קולית
   ============================================= */

.nav-voice-toast {
  position: absolute;
  bottom: 22vh;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(17, 46, 50, 0.88);
  color: #ffffff;
  font-family: "NarkissBlock", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 6;
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.nav-voice-toast.nav-voice-toast-hide {
  opacity: 0;
}


/* =============================================
   התאמות תצוגה באנגלית
   ============================================= */

body.lang-en .search-input {
  text-align: left;
  direction: ltr;
  padding-right: 0;
  padding-left: 6px;
}

body.lang-en .bottom-panel.expanded .search-bar {
  direction: ltr;
}

body.lang-en .bottom-panel.expanded .search-row {
  direction: ltr;
  padding-right: 27px;
  padding-left: 0;
}

body.lang-en .section-title {
  text-align: left;
}

body.lang-en .result-item-name,
body.lang-en .result-item-building {
  text-align: left;
}

body.lang-en .no-results-message {
  direction: ltr;
  text-align: left;
}

body.lang-en .destination-info {
  direction: ltr;
  text-align: left;
}

body.lang-en .info-trigger-btn {
  direction: ltr;
}

body.lang-en .nav-instruction-text {
  direction: ltr;
}

body.lang-en .nav-completed-primary,
body.lang-en .nav-completed-secondary {
  direction: ltr;
  text-align: left;
}

body.lang-en .info-popup-text {
  text-align: left;
  direction: ltr;
}

body.lang-en .popup-text {
  direction: ltr;
  text-align: left;
}


body.lang-en .back-btn img {
  transform: none;
}


body.lang-en .nav-instruction-row {
  flex-direction: row-reverse;
}

body.lang-en .header-title {
  direction: ltr;
}


/* =============================================
   כותרת תחתונה
   ============================================= */

.site-footer {
  /* עוגן ל-body (שגובהו נגזר מ---app-height, אותו מקור אמת כמו .screen),
     ולא ל-viewport הטבעי — כדי שהפוטר לא "יקפוץ" כשה-toolbar של הדפדפן
     במובייל מתכווץ/מתרחב לאחר האינטראקציה הראשונה. */
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: var(--footer-h);
  background-color: #ffffff;
  color: #112E32;
  font-family: "NarkissBlock", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  direction: rtl;
  padding: 0 14px;
  z-index: 200;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #112E32;
  text-decoration: underline;
  text-decoration-color: #112E32;
}

.site-footer a:focus-visible {
  outline: 2px solid #317379;
  outline-offset: 3px;
  border-radius: 2px;
}


.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}


.screen:has(.overlay.visible) ~ .site-footer::after {
  opacity: 1;
  pointer-events: auto;
}


.screen:has(.splash-screen:not(.splash-hidden)) {
  height: 100vh;
  height: 100dvh;
  height: var(--app-height, 100dvh);
}


.screen:has(.splash-screen:not(.splash-hidden)) ~ .site-footer {
  opacity: 0;
  pointer-events: none;
}


#map .leaflet-control-attribution {
  font-size: 10px;
}