:root {
  --bg: #f6f8f7;
  --paper: #ffffff;
  --ink: #17211f;
  --muted: #5f6f6c;
  --line: #d9e1df;
  --teal: #047f8c;
  --teal-soft: #dff4f3;
  --coral: #d7473f;
  --yellow: #f2bb36;
  --blue: #1c365d;
  --green: #3d7d4a;
  --shadow: 0 18px 50px rgba(17, 33, 31, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(223, 244, 243, 0.7) 0, rgba(246, 248, 247, 0) 330px),
    var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

body.hebrew-page {
  direction: rtl;
  font-family: "Heebo", "Assistant", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  font-feature-settings: "kern";
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 36px);
  background: rgba(246, 248, 247, 0.88);
  border-bottom: 1px solid rgba(217, 225, 223, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--teal), var(--blue) 58%, var(--yellow) 58%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav a,
.icon-button,
.segmented button,
.filterbar button,
.day-tabs button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

body.hebrew-page .topnav a,
body.hebrew-page .icon-button,
body.hebrew-page .segmented button,
body.hebrew-page .filterbar button,
body.hebrew-page .day-tabs button,
body.hebrew-page .mini-link,
body.hebrew-page .tag,
body.hebrew-page .chip,
body.hebrew-page .map-note,
body.hebrew-page .brand small,
body.hebrew-page .metric-row span,
body.hebrew-page .place-meta,
body.hebrew-page .combo-top span,
body.hebrew-page .facebook-top,
body.hebrew-page .facebook-bottom,
body.hebrew-page .social-card span {
  font-family: "Assistant", "Heebo", sans-serif;
}

.topnav a {
  padding: 9px 11px;
}

.topnav a:hover {
  background: rgba(4, 127, 140, 0.08);
}

.top-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  background: var(--paper);
  border-color: var(--line);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.04);
}

.icon-button:hover {
  border-color: rgba(4, 127, 140, 0.38);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--teal);
  font-weight: 900;
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 36px) 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(540px, 1.12fr);
  gap: 20px;
  align-items: stretch;
}

.decision-panel,
.map-panel,
.banner-strip,
.section-grid {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(217, 225, 223, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.decision-panel {
  padding: clamp(22px, 3vw, 34px);
}

.date-line,
.section-head p {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.hebrew-page .date-line,
body.hebrew-page .section-head p {
  font-family: "Assistant", "Heebo", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 0.96;
  font-weight: 700;
}

body.hebrew-page h1 {
  max-width: 720px;
  font-family: "Rubik", "Heebo", sans-serif;
  font-size: clamp(35px, 4.45vw, 66px);
  line-height: 1.07;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.02;
}

body.hebrew-page h2 {
  font-family: "Rubik", "Heebo", sans-serif;
  font-size: clamp(28px, 2.9vw, 42px);
  line-height: 1.12;
  font-weight: 800;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.22;
}

body.hebrew-page h3 {
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 700;
  line-height: 1.28;
}

.lead {
  margin: 20px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

body.hebrew-page .lead {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.68;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.metric-row div {
  min-width: 0;
  padding: 14px 12px;
  background: #fbfcfc;
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  font-size: 20px;
  line-height: 1.05;
}

.metric-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.decision-list {
  display: grid;
  gap: 10px;
}

.decision-list article {
  border-left: 4px solid var(--yellow);
  padding: 10px 0 10px 14px;
}

body.hebrew-page .decision-list article {
  border-left: 0;
  border-right: 4px solid var(--yellow);
  padding: 10px 14px 10px 0;
}

.decision-list b {
  display: block;
  font-size: 14px;
}

.decision-list p,
.soc-card p,
.banner-strip p,
.timeline p,
.place-card p,
.combo-card p,
.social-card p,
.facebook-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hebrew-line {
  margin: 5px 0 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

body.hebrew-page .hebrew-line {
  font-family: "Assistant", "Heebo", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.map-panel {
  min-height: 650px;
  padding: 12px;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 2px 2px 10px;
}

.segmented,
.day-tabs,
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented button,
.day-tabs button,
.filterbar button {
  min-height: 34px;
  padding: 0 11px;
  background: #f3f7f6;
  border-color: rgba(217, 225, 223, 0.85);
  cursor: pointer;
}

.segmented button.active,
.day-tabs button.active,
.filterbar button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.map-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

body.hebrew-page .map-note {
  text-align: left;
}

#tripMap {
  min-height: 592px;
  height: calc(100% - 46px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #d9e7e2;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 33, 31, 0.2);
}

.popup-title {
  margin: 0 0 5px;
  font-weight: 850;
}

.popup-hebrew {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

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

.pin {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23, 33, 31, 0.25);
}

.pin.ev { background: var(--teal); }
.pin.food { background: var(--coral); }
.pin.drone { background: var(--blue); }
.pin.kids { background: var(--yellow); color: var(--ink); }
.pin.default { background: var(--green); }

.banner-strip {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(260px, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 12px;
}

.banner-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: var(--radius);
  object-fit: cover;
}

.banner-strip div {
  padding: 10px 16px 10px 0;
}

.banner-strip strong {
  display: block;
  font-size: 22px;
  line-height: 1.12;
}

.section-grid {
  margin-top: 20px;
  padding: clamp(18px, 2.4vw, 28px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.day-tabs,
.filterbar {
  margin-bottom: 16px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.time-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

body.hebrew-page .time-card {
  grid-template-columns: 82px minmax(0, 1fr) auto;
}

.time-card time {
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.time-tags,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4f3;
  color: #31403d;
  font-size: 11px;
  font-weight: 850;
}

.tag.ev { background: var(--teal-soft); color: #03616a; }
.tag.food { background: #fde9e6; color: #a93029; }
.tag.kids { background: #fff2c8; color: #7c5b07; }
.tag.drone { background: #e7eef8; color: #203d68; }
.tag.heat { background: #eef7ee; color: #276734; }
.tag.paid { background: #f2ecff; color: #553397; }

.time-card .links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 94px;
}

body.hebrew-page .time-card .links,
body.hebrew-page .place-links,
body.hebrew-page .facebook-links {
  direction: rtl;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.mini-link:hover {
  border-color: var(--teal);
}

.ev-grid {
  background:
    linear-gradient(135deg, rgba(4, 127, 140, 0.07), rgba(255, 255, 255, 0.9) 42%),
    var(--paper);
}

.ev-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.soc-card,
.combo-card,
.place-card,
.social-card,
.facebook-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.soc-card {
  padding: 16px;
}

.soc-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.soc-card strong {
  display: block;
  margin-top: 6px;
  font-size: 19px;
}

.soc-card.warning {
  border-color: rgba(215, 71, 63, 0.32);
  background: #fff9f7;
}

.combo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.combo-card {
  padding: 16px;
}

.combo-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.combo-top span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.combo-top b {
  text-align: right;
  font-size: 12px;
}

body.hebrew-page .combo-top b {
  text-align: left;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.place-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 270px;
  overflow: hidden;
}

.place-card::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--coral));
}

.place-card.food-card::before { background: linear-gradient(90deg, var(--coral), var(--yellow)); }
.place-card.ev-card::before { background: linear-gradient(90deg, var(--teal), var(--green)); }
.place-card.drone-card::before { background: linear-gradient(90deg, var(--blue), var(--teal)); }
.place-card.kids-card::before { background: linear-gradient(90deg, var(--yellow), var(--teal)); }

.place-body {
  padding: 15px;
}

.place-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

body.hebrew-page .place-meta {
  direction: rtl;
}

.place-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 0 15px 15px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.social-card {
  padding: 15px;
}

.social-card span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-card a {
  display: block;
  margin-top: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.viral-section {
  background:
    linear-gradient(135deg, rgba(28, 54, 93, 0.08), rgba(255, 255, 255, 0.95) 44%),
    var(--paper);
}

.viral-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(28, 54, 93, 0.14);
  border-radius: var(--radius);
  background: #f7f9fc;
}

.viral-note strong {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
}

.viral-note span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.viral-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.viral-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.viral-card .viral-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.viral-card blockquote {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

body.hebrew-page .viral-card blockquote {
  padding-left: 0;
  padding-right: 12px;
  border-left: 0;
  border-right: 3px solid var(--yellow);
}

.facebook-section {
  background:
    linear-gradient(135deg, rgba(24, 119, 242, 0.07), rgba(255, 255, 255, 0.95) 44%),
    var(--paper);
}

.facebook-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(28, 54, 93, 0.14);
  border-radius: var(--radius);
  background: #f7fbff;
}

.facebook-note strong {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 13px;
}

.facebook-note span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.facebook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.facebook-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  border-top: 5px solid var(--teal);
}

.facebook-card.top {
  border-top-color: #1877f2;
}

.facebook-card.strong {
  border-top-color: var(--green);
}

.facebook-card.optional {
  border-top-color: var(--yellow);
}

.facebook-top,
.facebook-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.facebook-top span,
.facebook-bottom span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.facebook-top b {
  color: var(--blue);
  font-size: 12px;
  text-align: right;
}

body.hebrew-page .facebook-top b {
  text-align: left;
}

.facebook-bottom {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.facebook-bottom a {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.facebook-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.source-list {
  columns: 2;
  column-gap: 28px;
}

.source-list a {
  display: block;
  break-inside: avoid;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.source-list a:hover {
  color: var(--teal);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 560px;
  }

  #tripMap {
    min-height: 500px;
  }

  .place-grid,
  .social-grid,
  .facebook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr;
    position: static;
  }

  .topnav,
  .top-actions {
    justify-content: start;
    overflow-x: auto;
  }

  main {
    padding-top: 16px;
  }

  .metric-row,
  .ev-summary,
  .combo-list,
  .viral-grid,
  .facebook-grid,
  .banner-strip,
  .place-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }

  .viral-note {
    display: block;
  }

  .facebook-note {
    display: block;
  }

  .viral-note span {
    display: block;
    margin-top: 6px;
  }

  .facebook-note span {
    display: block;
    margin-top: 6px;
  }

  .map-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .map-note {
    text-align: left;
  }

  .time-card {
    grid-template-columns: 1fr;
  }

  .time-card .links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .place-links,
  .facebook-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-list {
    columns: 1;
  }
}

@media print {
  .topbar,
  .map-toolbar,
  .filterbar,
  .day-tabs,
  .place-links,
  .top-actions {
    display: none;
  }

  body {
    background: white;
  }

  main {
    padding: 0;
  }

  .decision-panel,
  .map-panel,
  .banner-strip,
  .section-grid,
  .time-card,
  .place-card,
  .combo-card,
  .social-card,
  .facebook-card {
    box-shadow: none;
  }

  #tripMap {
    min-height: 360px;
  }
}
