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

:root {
  --primary: #1a365d;
  --accent: #9b2c2c;
  --bg: #f8f6f1;          /* warmer, less sterile */
  --card: #ffffff;
  --text: #2c3e50;
  --muted: #5a6a7a;
  --border: #e2e0d8;
  --radius: 10px;
  --shadow: 0 3px 16px rgba(0,0,0,0.07);
}

body {
  font-family: 'Assistant', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

[dir="rtl"] body {
  font-family: 'Heebo', 'Assistant', system-ui, sans-serif;
}

/* בס״ד */
.bsdc {
  position: fixed;
  top: 8px;
  right: 14px;
  font-size: 13px;
  color: #6b7280;
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  z-index: 100;
  letter-spacing: 0.5px;
  user-select: none;
}

[dir="rtl"] .bsdc {
  right: auto;
  left: 14px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1rem;
}

.logo a { display: block; line-height: 0; }

.logo-img {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  border-radius: 6px; /* optional – looks nicer with a photo logo */
}

@media (min-width: 768px) {
  .logo-img {
    height: 44px;
    max-width: 180px;
  }
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover { color: var(--accent); }

.lang-btn {
  background: #f0eeea;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.38rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  transition: background 0.15s;
}

.lang-btn:hover { background: #e5e2db; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #f3f0e9 0%, #eef5f0 100%);
  padding: 3.8rem 0 4.5rem;
  text-align: center;
}

.hero h1 {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.3rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Search card */
.search-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  max-width: 880px;
  margin: 0 auto;
  text-align: start;
}

.search-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.28rem;
  letter-spacing: 0.2px;
}

.field input,
.field select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.12);
}

/* Filters */
.kosher-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f3f1ec;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.chip:hover {
  background: #ebe8e1;
}

.chip input { accent-color: var(--accent); }

.btn-search {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-search:hover { background: #7f1d1d; }

/* Features */
.features {
  padding: 3.8rem 0;
}

.features h2,
.how h2 {
  text-align: center;
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2.3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.35rem;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.65rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.93rem;
  color: var(--muted);
}

/* How it works */
.how {
  background: #f0eeea;
  padding: 3.8rem 0;
}

.steps {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.4rem;
  margin-bottom: 0.9rem;
  background: var(--card);
  border-radius: 8px;
  box-shadow: var(--shadow);
  counter-increment: step;
}

[dir="ltr"] .steps li { padding-left: 3.4rem; padding-right: 1rem; }
[dir="rtl"] .steps li { padding-right: 3.4rem; padding-left: 1rem; }

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

[dir="ltr"] .steps li::before { left: 1rem; }
[dir="rtl"] .steps li::before { right: 1rem; }

/* Trip type checkbox */
.trip-type {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.trip-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  color: var(--text);
}

.trip-check input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* Modern unified dates */
.dates-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.15rem 0.4rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dates-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.12);
}

.dates-wrapper input[type="date"] {
  border: none;
  padding: 0.5rem 0.3rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: transparent;
  min-width: 0;
  flex: 1;
}

.dates-wrapper input[type="date"]:focus {
  outline: none;
  box-shadow: none;
}

.date-separator {
  color: var(--muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  padding: 0 0.15rem;
}

/* When one-way (return unchecked) */
.one-way .date-separator,
.one-way #returnDate {
  display: none;
}

.one-way .dates-wrapper {
  max-width: 180px;
}
.results {
  padding: 3rem 0 4rem;
  background: #f8f6f1;
}

.results h2 {
  text-align: center;
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  color: var(--primary);
  margin-bottom: 1.8rem;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.flight-card {
  background: white;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.airline { font-weight: 700; color: var(--primary); }
.route { font-size: 1.05rem; margin: 0.2rem 0; }
.meta { font-size: 0.88rem; color: var(--muted); }

.flight-price {
  text-align: end;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.btn-select {
  margin-top: 0.4rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hotel-note {
  width: 100%;
  font-size: 0.85rem;
  color: #2f855a;
  margin-top: 0.3rem;
}

.zmanim-line {
  font-size: 0.82rem;
  color: #4a5568;
  margin-top: 4px;
  font-weight: 500;
}

.no-results {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}
/* Hide return date + separator when one-way */
.one-way .date-separator,
.one-way #returnDate {
  display: none !important;
}

.one-way .dates-wrapper {
  max-width: 180px;
}
/* Footer */
.footer {
  background: var(--primary);
  color: #e8e6e1;
  text-align: center;
  padding: 1.8rem 0;
  font-size: 0.9rem;
}

.footer .disclaimer {
  margin-top: 0.4rem;
  opacity: 0.7;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 700px) {
  .nav { display: none; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .passengers { grid-column: span 2; }
  .bsdc { font-size: 12px; top: 6px; right: 10px; }
}
