/* חיפוש ומפה */
.search-screen { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: #F6ECF1; }
.search-screen.is-searching { background: var(--background); overflow: auto; }
.search-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: calc(12px + env(safe-area-inset-top)) 14px 0; }
.is-searching .search-top { position: sticky; background: var(--background); padding-bottom: 8px; }
.search-bar { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px; border-radius: 99px; background: var(--surface); box-shadow: 0 6px 20px rgba(58,29,44,.12); color: var(--smoky-pink); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: var(--fs-body); color: var(--text); outline: none; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.map__chips { margin: 10px -14px 0; padding: 2px 14px 6px; }
.map__chips .chip-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); box-shadow: var(--shadow-card); }
.map__chips .chip-btn.is-on { background: var(--smoky-pink); }

/* המפה */
.map { position: absolute; inset: 0; }
.map__canvas { position: absolute; inset: 0; }
.map__art { width: 100%; height: 100%; display: block; }
.pin { position: absolute; transform: translate(-50%, -100%); width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; rotate: -45deg; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px rgba(58,29,44,.25); transition: width .15s, height .15s; }
.pin .icon { rotate: 45deg; }
.pin--pink { background: var(--smoky-pink); }
.pin--blue { background: #5B8FC9; }
.pin--green { background: #5FA552; }
.pin--lilac { background: #8E66C2; }
.pin.is-on { width: 52px; height: 52px; z-index: 2; box-shadow: 0 0 0 5px rgba(255,255,255,.9), 0 8px 18px rgba(58,29,44,.3); }
.me-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #3D7BE0; border: 3px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 10px rgba(61,123,224,.18); }

.view-toggle { position: absolute; z-index: 4; left: 14px; bottom: 112px; display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 99px; background: var(--plum); color: #fff; font-weight: 700; font-size: var(--fs-small); box-shadow: var(--shadow-nav); }

/* כרטיס מקום */
.map__card { position: absolute; z-index: 6; left: 12px; right: 12px; bottom: 104px; animation: up .2s ease both; }
.place { position: relative; display: flex; flex-wrap: wrap; gap: 12px; background: var(--surface); border-radius: var(--radius-m); padding: 16px; box-shadow: 0 10px 30px rgba(58,29,44,.18); }
.place__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.place__icon--pink { background: var(--baby-pink); color: var(--smoky-pink-dark); }
.place__icon--blue { background: #DCE8F7; color: #3D5F8F; }
.place__icon--green { background: #DDF2D6; color: #3E7A35; }
.place__icon--lilac { background: #EADCF7; color: #6B4596; }
.place__body { flex: 1; min-width: 0; }
.place__body b { display: block; font-size: var(--fs-body); }
.place__body small { display: block; font-size: var(--fs-tiny); color: var(--text-muted); margin-top: 2px; }
.place__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.place__tags .chip { margin: 0; }
.place__likes { display: flex; align-items: center; gap: 4px; font-size: var(--fs-tiny); color: var(--smoky-pink-dark); margin-top: 8px; font-weight: 600; }
.place__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.place__actions .btn { margin: 0; min-height: 46px; }
.place__close { position: absolute; top: 10px; left: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--background); color: var(--text-muted); font-size: 14px; }

/* תצוגת רשימה */
.map__list { display: none; }
.map.is-list .map__canvas { display: none; }
.map.is-list .map__list { display: grid; gap: 10px; position: absolute; inset: 0; overflow: auto; padding: 140px 14px 180px; background: var(--background); }
.map__list h2 { font-size: var(--fs-h2); font-weight: 700; padding: 0 4px; }
.place--row { flex-wrap: nowrap; align-items: center; box-shadow: var(--shadow-card); cursor: pointer; }

/* תוצאות חיפוש */
.results { padding: 8px 14px 140px; }
.results h3 { font-size: var(--fs-small); font-weight: 700; color: var(--text-muted); margin: 18px 4px 8px; }
.results ul { display: grid; gap: 6px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest .chip-btn { background: var(--surface); }
.res { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface); text-align: start; }
.res span:last-child { flex: 1; min-width: 0; font-size: var(--fs-small); font-weight: 600; }
.res small { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--fs-tiny); }
.res__icon { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--baby-pink); color: var(--smoky-pink-dark); }

/* טאבלט: רשימה בצד המפה */
@media (min-width: 700px) {
  .search-top { right: auto; width: 380px; left: auto; inset-inline-start: 0; }
  .map__list { display: grid; gap: 10px; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 380px; overflow: auto; padding: 150px 14px 120px; background: rgba(249,232,243,.96); z-index: 3; align-content: start; }
  .map__canvas { inset-inline-start: 380px; }
  .view-toggle { display: none; }
  .map.is-list .map__canvas { display: block; }
  .map__card { left: 20px; right: auto; width: min(400px, calc(100% - 420px)); bottom: 112px; }
  .is-searching .search-top { width: auto; inset-inline-end: 0; }
  .results { max-width: 760px; margin: 0 auto; }
}

/* ---------- הטבות ---------- */
.pin__perk { position: absolute; top: -6px; right: -6px; rotate: 45deg; width: 18px; height: 18px; border-radius: 50%; background: #FFC94D; color: #5A3B00; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.perk-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #8A5A00; background: #FFF1C9; padding: 2px 9px; border-radius: 99px; }
.perk { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed #F2C94C; background: #FFFBEF; text-align: start; }
.perk .perk-label { grid-column: 1; justify-self: start; }
.perk b { grid-column: 1; font-size: var(--fs-small); }
.perk__cta { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 2px; font-size: var(--fs-small); font-weight: 700; color: #8A5A00; }
.place__meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: var(--fs-tiny); color: var(--smoky-pink-dark); font-weight: 600; }
.perk-mini { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 8px; color: #8A5A00; background: #FFF1C9; padding: 1px 7px; border-radius: 99px; }
.place__likes { margin-top: 6px; }
.map__note { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-tiny); color: var(--text-muted); padding: 0 4px; margin-top: -4px; }
.map__note .icon { color: var(--smoky-pink); flex: none; margin-top: 2px; }
.coupon { text-align: center; display: grid; gap: 8px; justify-items: center; }
.coupon h2 { margin-top: 6px; }
.coupon__code { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; border: 2px dashed var(--gum-pink); background: var(--background); }
.coupon__code span { font-size: 26px; font-weight: 800; letter-spacing: 2px; color: var(--smoky-pink-dark); direction: ltr; padding-inline: 8px; }
.coupon__code .btn { margin: 0; min-height: 42px; }
.coupon__note { font-size: var(--fs-tiny); color: var(--text-muted); max-width: 300px; margin-top: 4px; }
/* תיקון יישור קוד קופון */
.coupon__code { width: 100%; box-sizing: border-box; justify-content: space-between; padding: 10px; }
.coupon__code span { flex: 1; min-width: 0; text-align: center; font-size: clamp(18px, 6vw, 24px); letter-spacing: 1px; padding: 0; overflow-wrap: anywhere; }
.coupon__code .btn { flex: none; width: auto; padding: 0 18px; }

/* כרטיס מקום מלא – כותרת ומתחתיה תוכן ברוחב מלא */
.place--full { display: block; padding: 16px 16px 14px; }
.place__head { display: flex; align-items: flex-start; gap: 12px; }
.place__head .place__body { padding-top: 2px; }
.place--full .place__close { position: static; flex: none; }
.place--full .place__likes { margin-top: 12px; }
.place--full .place__tags { margin-top: 8px; }
.place--full .perk { margin-top: 12px; }
.place--full .place__actions { margin-top: 14px; }

/* חלון ניווט */
.nav-sheet { display: grid; gap: 6px; }
.nav-sheet__addr { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--text-muted); }
.nav-sheet__addr .icon { color: var(--smoky-pink); }
.nav-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.nav-app { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 18px; border: 1.5px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: var(--fs-small); }
.nav-app:hover { border-color: var(--smoky-pink); background: var(--background); }
.nav-app svg { width: 48px; height: 48px; }
.place__banner { height: 130px; margin: -16px -16px 14px; border-radius: var(--radius-m) var(--radius-m) 0 0; }
.place--full.has-photo .place__icon { width: 40px; height: 40px; }
.place__thumb { flex: none; width: 64px; height: 64px; border-radius: 14px; }
