:root {
  --primary-color: #1a365d;
  --gold-color: #d4af37;
  --bg-color: #f4f6f8; 
  --card-bg: #ffffff; 
  --text-color: #1e293b;
  --border-color: #cbd5e1;
}

* { box-sizing: border-box; }

body {
  font-family: 'Rubik', 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.4;
  overflow-x: hidden;
}

.honey-pot {
  display: none !important;
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

header {
  background-image: url("https://i.postimg.cc/Z5nN0sSH/m%27rkt-smhwt-lm%27lh.jpg");
  background-size: cover;
  background-position: top center; 
  background-repeat: no-repeat;
  background-color: #ffffff;
  height: 270px;
  width: 100%;
  position: relative;
}

header h1, header p { display: none; }

.disclaimer-box {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  margin: 1.5rem auto; 
  max-width: fit-content;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.main-layout-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem; 
  max-width: 1550px; 
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}

.center-content { flex: 1; max-width: 950px; min-width: 0; }

.sidebar {
  width: 22%; 
  min-width: 200px; 
  max-width: 280px; 
  flex-shrink: 0; 
  display: block; 
}

.sticky-box {
  position: sticky;
  top: 1.5rem;
  width: 100%;
  aspect-ratio: 2 / 5; 
  background-color: var(--card-bg);
  border-radius: 12px;
  border: 1px solid rgba(203, 213, 225, 0.4); 
  box-shadow: 0 10px 25px rgba(26, 54, 93, 0.05); 
  overflow: hidden; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.sticky-box iframe { width: 108%; height: 108%; flex-shrink: 0; border: none; background: white; }

.tabs { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 1.2rem; flex-wrap: wrap; }

.tab-button {
  background-color: #ffffff; border: 1px solid var(--border-color); padding: 0.5rem 1.4rem;
  font-size: 0.95rem; font-weight: 700; color: var(--primary-color); border-radius: 8px;
  cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.03); font-family: 'Rubik', sans-serif;
}

.tab-button:hover { border-color: var(--gold-color); transform: translateY(-1px); }
.tab-button.active { background-color: var(--primary-color); color: white; border-color: var(--gold-color); box-shadow: 0 3px 10px rgba(26, 54, 93, 0.2); }

.section-title { text-align: center; color: var(--primary-color); font-size: 1.4rem; margin-bottom: 1rem; position: relative; padding-bottom: 0.4rem; font-weight: 800; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 2.5px; background-color: var(--gold-color); border-radius: 2px; }

/* תיקון הרווחים לפי בקשתך - מאוזן ונעים לעין */
.filters-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 0.5rem auto 1.2rem auto; 
  max-width: 600px;
  flex-wrap: wrap;
}

.filter-input, .filter-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background-color: #ffffff;
  color: var(--text-color);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.filter-input { flex: 1; min-width: 150px; }
.filter-select { min-width: 120px; font-weight: 600; color: var(--primary-color); cursor: pointer; }
.filter-input:focus, .filter-select:focus { border-color: var(--gold-color); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2); }

.btn-print {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
}
.btn-print:hover { background-color: #e2e8f0; border-color: #94a3b8; }

.content-section { 
  display: none; 
  background: var(--card-bg); 
  padding: 1.5rem 1rem; 
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(26, 54, 93, 0.08), 0 5px 15px rgba(0, 0, 0, 0.03); 
  margin-bottom: 2.5rem; 
  border: 1px solid rgba(203, 213, 225, 0.4); 
}
.content-section.active { display: block; }

.rows-container { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.5rem; }

.list-row { 
  display: flex; flex-direction: column; align-items: center; text-align: center; 
  border: 1px solid #cbd5e1; 
  border-right: 4px solid var(--primary-color); 
  border-radius: 8px; 
  padding: 0.7rem 1rem; 
  background: #f8fafc; 
  transition: all 0.2s ease; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.02); 
}
.list-row:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26, 54, 93, 0.06); border-color: #94a3b8; }

.row-main-info h3 { margin: 0; color: #1a365d; font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.separator { margin: 0 0.5rem; color: var(--gold-color); font-weight: bold; opacity: 0.7; }
.row-details { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; color: #475569; font-size: 0.95rem; margin-top: 0.3rem; }

.list-row.dramatic-row {
  border: 2px solid var(--gold-color);
  border-right: 6px solid var(--gold-color);
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.15);
}
.list-row.dramatic-row .row-main-info h3 { font-size: 1.55rem; color: #92400e; }

.countdown-tag {
  display: inline-block;
  background-color: rgba(212, 175, 55, 0.15);
  color: #92400e;
  border: 1px solid var(--gold-color);
  border-radius: 6px;
  padding: 0.1rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 800;
  vertical-align: middle;
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.page-circle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background-color: #f1f5f9; color: var(--primary-color); font-weight: 600; font-size: 0.9rem; cursor: pointer; border: 1px solid #cbd5e1; transition: all 0.2s; }
.page-circle:hover { background-color: #e2e8f0; }
.page-circle.active { background-color: var(--primary-color); color: #ffffff; border-color: var(--primary-color); }

.btn-map { display: inline-block; font-size: 0.8rem; color: #475569; text-decoration: underline; font-weight: normal; margin-top: 0.3rem; transition: color 0.2s ease; }
.btn-map:hover { color: var(--primary-color); }

.btn-back-main { display: inline-block; background-color: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: bold; border-radius: 6px; cursor: pointer; margin-bottom: 1rem; transition: all 0.2s; }
.btn-back-main:hover { background-color: #e2e8f0; }

.bottom-menu-wrapper { margin-top: 2rem; border-top: 1px solid #cbd5e1; padding-top: 1.5rem; }

.management-box { background: #ffffff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 1.2rem; max-width: 600px; margin: 0 auto 1.2rem auto; text-align: center; box-shadow: 0 10px 25px rgba(26, 54, 93, 0.06); }
.management-links { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.8rem; }
.management-btn { background: #2563eb; color: white; border: none; padding: 0.5rem 1.2rem; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }

.admin-footer-box { background: #ffffff; border: 1px solid var(--gold-color); border-radius: 12px; padding: 0.8rem 1.2rem; max-width: 600px; margin: 0 auto; text-align: center; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; box-shadow: 0 10px 25px rgba(26, 54, 93, 0.06); }
.btn-admin { background: var(--gold-color); color: #000; border: none; padding: 0.4rem 1rem; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 0.8rem; }

.contact-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: #475569; }
.contact-footer a { color: var(--primary-color); font-weight: bold; text-decoration: underline; transition: color 0.2s; }
.contact-footer a:hover { color: var(--gold-color); }

.form-container { max-width: 500px; margin: 0 auto; }
.form-group { margin-bottom: 0.8rem; text-align: right; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.9rem; color: var(--primary-color); }
.form-control { width: 100%; padding: 0.6rem; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.9rem; font-family: inherit; }
.btn-submit { background-color: var(--primary-color); color: white; border: none; padding: 0.7rem 1.2rem; font-size: 0.95rem; font-weight: bold; border-radius: 6px; cursor: pointer; width: 100%; font-family: inherit; margin-top: 0.5rem; }

.toast {
  visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 8px; padding: 12px 20px; position: fixed; z-index: 1000; left: 50%; bottom: 20px; transform: translateX(-50%); box-shadow: 0 10px 25px rgba(0,0,0,0.15); font-size: 0.95rem; font-weight: 600; opacity: 0; transition: opacity 0.3s, bottom 0.3s;
}
.toast.show { visibility: visible; opacity: 1; bottom: 40px; }
.toast.success { background-color: #16a34a; border: 1px solid #15803d; }
.toast.error { background-color: #dc2626; border: 1px solid #b91c1c; }

footer { text-align: center; padding: 1.5rem 1rem; color: #64748b; font-size: 0.8rem; margin-top: 2rem; border-top: 1px solid var(--border-color); }
.loading { text-align: center; padding: 2rem; font-size: 1rem; color: #64748b; }

#print-area { display: none; }

@media (max-width: 1050px) { .sidebar { display: none; } }
@media (max-width: 680px) { header { height: 160px; } .admin-footer-box { justify-content: center; } }

/* מנגנון חכם להדפסה נטולת פערים. מסתיר את כל האתר ומציג רק את טבלת ההדפסה. */
@media print {
  body > * { display: none !important; }
  #print-area { 
    display: block !important; 
    width: 100%; 
    direction: rtl; 
    color: black; 
    background: white; 
  }
  #print-area table { width: 100%; border-collapse: collapse; }
  #print-area th, #print-area td { 
    border-bottom: 1px solid #ccc; 
    padding: 6px 4px; 
    font-size: 13px; 
    text-align: right; 
  }
  #print-area th { border-bottom: 2px solid #000; font-weight: bold; font-size: 14px; }
  #print-area h2 { text-align: center; font-size: 22px; margin-bottom: 10px; }
}