@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;800&display=swap");

/* טוקנים — משאירים שמות כדי לא לשבור כלום */
:root {
  /* במקום כחול/אדום של צרפת — צבעי מתמטיקה קרירים: טורקיז/טיל */
  --fr-blue: #0ea5e9;
  /* cyan-600 */
  --fr-red: #0f766e;
  /* teal-700 */
  --fr-white: #ffffff;

  --bg: #F7F8FB;
  --text: #121826;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #fff;
  --shadow: 0 10px 24px rgba(0, 0, 0, .07);
  --brand: #1e3a8a;
  --brand2: #2563eb;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", system-ui, sans-serif;
  overflow-x: hidden
}

img,
svg,
video {
  max-width: 100%;
  height: auto
}

/* Header */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2000;
  backdrop-filter: saturate(140%) blur(6px);
  padding-top: calc(8px + var(--safe-top))
}

.site-header__inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 28px
}

.main-nav {
  display: flex;
  gap: 22px;
  white-space: nowrap
}

@media (min-width:901px) {
  .main-nav {
    display: flex !important
  }

  .nav-toggle {
    display: none !important
  }
}

@media (max-width:900px) {
  .main-nav {
    display: none
  }

  .nav-toggle {
    display: inline-flex
  }

  .main-nav[data-open="true"] {
    display: flex !important;
    position: absolute;
    inset-inline: 12px;
    top: calc(100% + 8px);
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .12);
    z-index: 2500
  }

  .main-nav[data-open="true"] .nav-link {
    padding: 10px 12px;
    border-radius: 8px
  }

  .main-nav[data-open="true"] .nav-link:active {
    background: #f1f5ff
  }
}

/* Hero */
.fr-hero {
  position: relative;
  overflow: visible;
  padding: min(7vw, 64px) 20px 28px;
  display: grid;
  place-items: center
}

.fr-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 400px at 100% -200px, rgba(14, 165, 233, .10), transparent 60%),
    radial-gradient(1200px 400px at 0% -200px, rgba(15, 118, 110, .12), transparent 60%),
    linear-gradient(135deg, rgba(14, 165, 233, .10), rgba(255, 255, 255, 0) 40%, rgba(15, 118, 110, .10));
}

.fr-hero__inner {
  max-width: 960px;
  text-align: center
}

.fr-hero__flag svg {
  width: 62px;
  height: 42px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .12))
}

.fr-hero h1 {
  margin: 10px 0 6px;
  font-weight: 800;
  font-size: clamp(22px, 5vw, 34px);
  color: #0f172a
}

.fr-hero__subtitle {
  margin: 0 0 14px;
  color: var(--muted)
}

.eiffel {
  position: absolute;
  left: 24px;
  bottom: -6px;
  opacity: .08
}

.eiffel svg {
  width: 120px;
  height: 120px
}

@media (max-width:640px) {
  .fr-hero {
    padding: 24px 14px 18px
  }

  .fr-hero__inner {
    padding-inline: 0
  }

  .fr-hero h1 {
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.2
  }

  .fr-hero__flag svg {
    width: 52px;
    height: 36px
  }

  .eiffel {
    display: none !important
  }
}

/* Search */
.city-search {
  margin: 10px auto 4px;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  min-width: 0;
}

.city-search__field {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow .18s, border-color .18s, transform .08s;
}

.city-search__field:focus-within {
  border-color: color-mix(in srgb, var(--brand2) 40%, #c7d2fe);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .22);
  transform: translateY(-1px)
}

.city-search__field .icon {
  width: 20px;
  height: 20px;
  color: #344;
  margin-inline-start: 8px
}

#city-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 12px 8px;
  border-radius: 10px;
  background: transparent
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand2) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
  cursor: pointer
}

.btn .icon {
  width: 18px;
  height: 18px;
  color: #fff
}

.suggest {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  width: 100%;
  max-height: 56vh;
  overflow: auto;
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
  z-index: 3000;
  animation: dropdown .12s ease-out;
}

.suggest.show {
  display: block
}

@keyframes dropdown {
  from {
    opacity: 0;
    transform: translateY(-4px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px dashed #eef2f7;
  transition: background .12s, transform .06s
}

.suggest__item:last-child {
  border-bottom: none
}

.suggest__item:hover,
.suggest__item[aria-selected="true"] {
  background: #f1f5ff
}

.suggest__item:active {
  transform: scale(.995)
}

.suggest .flag {
  width: 20px;
  height: 20px;
  color: #0038b8
}

.suggest .city {
  font-weight: 800;
  letter-spacing: .1px
}

.suggest .region {
  color: var(--muted);
  font-size: 13px
}

@media (max-width:720px) {
  .city-search {
    padding-inline: 4px
  }
}

@media (max-width:640px) {
  .city-search__field {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px
  }

  #city-input {
    font-size: 16px;
    padding: 12px
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 14px
  }

  .hint {
    font-size: 12px
  }

  .suggest {
    top: calc(100% + 6px);
    max-height: 50vh
  }
}

@media (min-width:1024px) {
  .city-search {
    width: 700px;
    max-width: 700px;
    margin-inline: auto
  }
}

/* Quick chips */
.quick-chips {
  margin: 12px 4px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .05);
  cursor: pointer;
  font-weight: 700;
  transition: transform .08s, box-shadow .18s;
}

.chip svg {
  width: 16px;
  height: 16px;
  color: var(--fr-blue)
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .08)
}

/* Tiles */
.city-tiles .wrap {
  max-width: 1024px;
  margin: 10px auto 0;
  padding: 0 20px 10px
}

.city-tiles h2 {
  text-align: center;
  margin: 8px 0 14px;
  color: #0f172a;
  font-size: 22px
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

@media (max-width:980px) {
  .tiles-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width:720px) {
  .tiles-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:420px) {
  .tiles-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:360px) {
  .tiles-grid {
    grid-template-columns: 1fr
  }

  .tile {
    padding: 12px;
    gap: 8px
  }

  .tile__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px
  }

  .tile__name {
    font-size: 15px
  }

  .tile__btn {
    padding: 7px 9px;
    font-size: 12px
  }
}

.tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}

.tile::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, .14), rgba(15, 118, 110, .10));
  z-index: -1;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: #dfe6ff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .08)
}

.tile__left {
  display: flex;
  align-items: center;
  gap: 10px
}

.tile__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fr-blue), var(--fr-red));
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12)
}

.tile__icon svg {
  width: 22px;
  height: 22px
}

.tile__name {
  font-weight: 800
}

.tile__meta {
  font-size: 12px;
  color: var(--muted)
}

.tile__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, var(--fr-blue), var(--fr-red));
  color: #fff;
  font-weight: 700;
  font-size: 12.5px
}

.tile__btn svg {
  width: 14px;
  height: 14px;
  color: #fff
}

/* Reviews */
.reviews .wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 14px 20px 40px
}

.reviews h2 {
  text-align: center;
  margin: 6px 0 18px
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

@media (max-width:980px) {
  .review-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:640px) {
  .review-grid {
    grid-template-columns: 1fr
  }

  .reviews .wrap {
    padding: 10px 14px 28px
  }

  .review-card {
    padding: 16px
  }

  .review-card p {
    line-height: 1.65;
    font-size: 15px
  }
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow)
}

.review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px
}

.review-card .quote {
  width: 20px;
  height: 20px;
  color: var(--fr-blue)
}

.review-card .stars svg {
  width: 18px;
  height: 18px;
  fill: #fbbf24
}

.review-card p {
  margin: 0 0 8px;
  color: #111827;
  line-height: 1.7
}

.review-card footer {
  color: var(--muted);
  font-size: 13px
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding-bottom: calc(8px + var(--safe-bottom))
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand2) 55%, white);
  outline-offset: 2px;
  border-radius: 8px
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important
  }
}

@media (max-width:640px) {

  .city-search__field,
  .tile,
  .review-card {
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08)
  }
}















































/* ===== TYPOGRAPHY UPGRADE (כפתור וצ'יפים) ===== */
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@500;600;700;800&display=swap");

/* כפתור "מצא/י בעיר" בדסקטופ */
.btn {
  font-family: "Rubik", "Heebo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15.8px;
  /* מעט עבה וברור יותר */
  line-height: 1.2;
  letter-spacing: .2px;
  border-radius: 12px;
}

/* יישור איקון בתוך הכפתור */
.btn .icon {
  vertical-align: middle;
  transform: translateY(-.5px);
}

/* צ'יפים של ערים */
.chip {
  font-family: "Rubik", "Heebo", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14.6px;
  letter-spacing: .15px;
  padding: 9px 13px;
  border-radius: 999px;
}

/* ===== MOBILE SEARCH FIX ===== */
@media (max-width: 640px) {

  /* מרווח כללי */
  .city-search {
    padding-inline: 6px;
  }

  /* הופכים את השדה לקונטיינר עם אייקון פנימי */
  .city-search__field {
    position: relative;
    display: block;
    /* עמודה אחת: אינפוט מעל כפתור */
    padding: 12px;
    gap: 0;
  }

  /* האייקון נכנס לתוך השדה, בצד הימני (RTL) */
  .city-search__field .icon {
    position: absolute;
    inset-inline-start: 16px;
    /* ב־RTL זה ימין */
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: #475569;
  }

  /* שדה החיפוש מקבל ריווח פנימי כדי שלא יעלה על האייקון */
  #city-input {
    width: 100%;
    display: block;
    min-height: 46px;
    font-size: 16px;
    /* מונע זום אוטומטי ב-iOS */
    padding: 12px 12px;
    padding-inline-start: 44px;
    /* מקום לאייקון מימין */
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
  }

  /* הכפתור מתחת לשדה, על כל הרוחב, גובה נוח */
  .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    margin-top: 10px;
    font-size: 16px;
    /* עקבי עם האינפוט */
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
  }

  /* הדרופדאון נשאר מוצמד לאותו קונטיינר, קצת נמוך יותר */
  .suggest {
    top: calc(100% + 8px);
    max-height: 52vh;
  }
}

/* ===== DESKTOP POLISH לחיפוש ===== */
@media (min-width: 641px) {
  #city-input {
    min-height: 44px;
    font-size: 16px;
  }

  .btn {
    min-height: 44px;
  }
}

/* ===== כותרת המותג במובייל: הצג טקסט + לוגו מימין, המבורגר משמאל ===== */
@media (max-width: 860px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* לוגו | רווח | המבורגר */
    align-items: center;
    gap: 8px;
  }

  .brand {
    justify-self: start;
    /* ברירת RTL: ימין */
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .brand__name {
    display: inline;
    /* חשוב: לא להסתיר את "מורה-מורה" */
    font-family: "Rubik", "Heebo", system-ui, sans-serif;
    font-weight: 800;
    font-size: 16px;
  }

  .header-actions {
    justify-self: end;
  }

  /* המבורגר לשמאל */
  .main-nav {
    display: none !important;
  }

  /* מסתיר תפריט עליון במובייל */
  .nav-toggle {
    display: inline-flex;
  }
}

/* ===== מגירת ניווט מימין (למקרה שהיה left:0 איפשהו) ===== */
.nav-drawer {
  right: 0 !important;
  left: auto !important;
  transform: translateX(100%);
}

.nav-drawer.is-open {
  transform: translateX(0);
}


/* ===== MOBILE: יישור אייקון החיפוש בתוך השדה (RTL) ===== */
@media (max-width: 640px) {

  /* נגדיר משתנים לגובה השדה והמרווחים כדי שהחישוב יהיה יציב */
  .city-search__field {
    --pad: 12px;
    /* padding של הקונטיינר */
    --input-h: 46px;
    /* גובה השדה במובייל (תאם לגובה שהגדרת לאינפוט) */
    position: relative;
    padding: var(--pad) !important;
    /* שומר על המפרט הקיים */
    display: block;
    /* אינפוט ואז כפתור מתחתיו */
  }

  /* האייקון של השדה בלבד (לא אייקון בתוך הכפתור) */
  .city-search__field>.icon {
    position: absolute;
    inset-inline-end: calc(var(--pad) + 14px);
    /* ימין ב-RTL, 14px פנימה מהקצה */
    inset-inline-start: auto;
    top: calc(var(--pad) + var(--input-h) / 2);
    /* ממורכז לגובה האינפוט */
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    margin: 0;
    pointer-events: none;
    z-index: 1;
    /* מעל רקע האינפוט בלבד */
    display: block;
  }

  .city-search__field>.icon svg {
    display: block;
    line-height: 1;
  }

  /* האינפוט מפנה מקום לאייקון מימין */
  #city-input {
    height: var(--input-h);
    min-height: var(--input-h);
    padding-inline-end: 44px;
    /* מקום לאייקון */
    padding-inline-start: 12px;
    /* שלא יידבק לשמאל */
    box-sizing: border-box;
  }

  /* הכפתור נשאר למטה, לא מושפע מהאייקון */
  .city-search__field .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    margin-top: 10px;
    position: static;
    /* ליתר ביטחון – שלא יקבל positioning ממקום אחר */
  }
}

/* ===== תיקון נקודתי: אייקון בתוך כפתור "מצא/י בעיר" ===== */
.city-search__field .btn .icon,
.btn .icon {
  position: static !important;
  /* מבטל absolute שנלקח בטעות */
  inset: auto !important;
  transform: none !important;
  display: block;
  /* מונע יישור-בסיס מוזר של SVG */
  width: 18px;
  height: 18px;
  margin: 0;
  line-height: 1;
}

/* ריווח ויישור אנכי בכפתור עצמו */
.city-search__field .btn,
.btn {
  align-items: center;
  gap: 8px;
  min-height: 46px;
  /* תואם לשדה החיפוש במובייל */
}

/* ===== אייקון לכפתור "מצא/י בעיר" ===== */
.btn.city-search {
  display: flex;
  flex-direction: row-reverse;
  /* האייקון יהיה משמאל לטקסט */
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
  /* נשאר עם גרדיאנט כחול */
  color: #fff;
  /* טקסט לבן */
  border: none;
}

.btn.city-search .icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  /* האייקון עצמו בצבע לבן */
}

.btn.city-search .icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  /* חשוב כדי שיקבל את ה-white מה-color */
}

/* אייקון בכפתור "מצא/י בעיר" — שמאל ולבן */
.city-search .btn[type="submit"] {
  display: inline-flex;
  /* יש לך כבר, רק לוודא */
  flex-direction: row-reverse !important;
  /* האייקון משמאל לטקסט */
  align-items: center;
  gap: 8px;
}

.city-search .btn[type="submit"] .icon {
  color: #fff !important;
  /* האייקון בלבן */
  width: 20px;
  height: 20px;
  display: block;
}

/* ליתר ביטחון — אם ה־<symbol> משתמש ב-stroke בלבד */
.city-search .btn[type="submit"] .icon *,
.city-search .btn[type="submit"] .icon svg {
  stroke: currentColor;
  /* ירש את #fff */
  fill: currentColor;
  /* במקרה של אייקונים שמבוססי fill */
}