/* ══════════════════════════════════════
   Tour Archive — Clean Custom Styles
   RTL / Hebrew Friendly
   ══════════════════════════════════════ */

/* ─────────────────────────────
   1. Brand Variables
   ───────────────────────────── */

:root {
  --tf-teal-50:   #E1F5EE;
  --tf-teal-100:  #C3EBDC;
  --tf-teal-200:  #9FE1CB;
  --tf-teal-400:  #1D9E75;
  --tf-teal-600:  #0F6E56;
  --tf-teal-800:  #085041;

  --tf-coral:     #D85A30;
  --tf-coral-700: #993C1D;

  --tf-amber:     #EF9F27;
  --tf-amber-50:  #FFF6E5;
  --tf-amber-700: #854F0B;

  --tf-sand-50:   #FAEEDA;

  --tf-text:      #1F2937;
  --tf-text-soft: #6B7280;
  --tf-text-mute: #9CA3AF;
  --tf-line:      #E5E7EB;

  --tf-white:     #ffffff;
  --tf-light:     #F9FAFB;

  --tf-success:   #28A745;
  --tf-danger:    #DC3545;

  --tf-radius-sm: 6px;
  --tf-radius-md: 10px;
  --tf-radius-lg: 16px;
  --tf-radius-pill: 999px;

  --tf-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --tf-shadow-md: 0 8px 24px rgba(15, 110, 86, 0.10);
  --tf-shadow-lg: 0 16px 40px rgba(15, 110, 86, 0.18);

  --tf-transition: 0.25s ease;
}


/* ══════════════════════════════════════
   2. Page Header / Hero
   ══════════════════════════════════════ */

.tour-archive-header {
  background: linear-gradient(135deg, #0F6E56 0%, #1D9E75 50%, #5DCAA5 100%);
  padding: 90px 20px 110px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-archive-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.tour-archive-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  left: 0;
  height: 60px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,80 L0,80 Z' fill='%23ffffff'/></svg>") no-repeat center / cover;
  pointer-events: none;
  z-index: 1;
}

.tour-archive-header::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 30px;
  width: 110px;
  height: 110px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 95 Q48 65 52 35' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' opacity='0.4'/><path d='M52 35 Q28 25 18 38' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' opacity='0.4'/><path d='M52 35 Q76 25 86 40' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' opacity='0.4'/><path d='M52 35 Q40 15 36 0' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' opacity='0.4'/><path d='M52 35 Q66 15 70 0' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' opacity='0.4'/></svg>") no-repeat center / contain;
  pointer-events: none;
  z-index: 1;
}

.tour-archive-header__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.tour-archive-header__content h1 {
  color: var(--tf-white);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 16px rgba(8, 80, 65, 0.3);
}

.tour-archive-header__content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(15px, 2vw, 18px);
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}


/* ══════════════════════════════════════
   3. Tabs / Categories
   ══════════════════════════════════════ */

.tour-tabs {
  background: var(--tf-white);
  border-bottom: none;
  margin: -50px auto 0;
  position: relative;
  z-index: 3;
  max-width: 1100px;
  border-radius: var(--tf-radius-lg);
  box-shadow: var(--tf-shadow-md);
  padding: 14px 20px;
}

.tour-tabs__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tour-tabs__inner::-webkit-scrollbar {
  display: none;
}

.tour-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  min-height: 42px;
  border-radius: var(--tf-radius-pill);
  background: var(--tf-light);
  border: 1px solid var(--tf-line);
  color: var(--tf-text-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.tour-tabs__item:hover {
  background: var(--tf-teal-50);
  border-color: var(--tf-teal-200);
  color: var(--tf-teal-600);
  text-decoration: none;
  transform: translateY(-1px);
}

.tour-tabs__item--active,
.tour-tabs__item.is-active,
.tour-tabs__item[aria-current="true"] {
  background: var(--tf-teal-600);
  border-color: var(--tf-teal-600);
  color: var(--tf-white);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 110, 86, 0.25);
}


/* ══════════════════════════════════════
   4. Filter Bar
   ══════════════════════════════════════ */

.tour-filter-bar {
  background: var(--tf-teal-50);
  margin: 24px auto;
  max-width: 1100px;
  border-radius: var(--tf-radius-lg);
  padding: 18px 22px;
  border: 1px solid var(--tf-teal-100);
}

.tour-filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.tour-filter-bar__field {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.tour-filter-bar__field--search {
  flex: 2;
}

.tour-filter-bar__field input,
.tour-filter-bar__field input[type="text"],
.tour-filter-bar__field select {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--tf-radius-md);
  border: 1px solid var(--tf-line);
  background: var(--tf-white);
  font-size: 14px;
  color: var(--tf-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.tour-filter-bar__field--search input {
  padding-right: 44px;
}

.tour-filter-bar__field input:focus,
.tour-filter-bar__field select:focus {
  outline: none;
  border-color: var(--tf-teal-400);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.15);
}

.tour-filter-bar__field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
  cursor: pointer;
}

.tour-filter-bar__icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tf-text-mute);
  pointer-events: none;
}


/* ══════════════════════════════════════
   5. Archive Container / Grid
   ══════════════════════════════════════ */

.tour-archive-container {
  max-width: 1240px;
  margin: 30px auto 50px;
  padding: 0 20px;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}


/* ══════════════════════════════════════
   6. Tour Card
   ══════════════════════════════════════ */

.tour-card {
  background: var(--tf-white);
  border-radius: var(--tf-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tf-line);
  box-shadow: var(--tf-shadow-sm);
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  position: relative;
}

.tour-card:hover {
  transform: translateY(-6px);
  border-color: var(--tf-teal-200);
  box-shadow: var(--tf-shadow-lg);
}

.tour-card.hidden {
  display: none;
}

.tour-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.tour-card__link:hover {
  text-decoration: none;
  color: inherit;
}


/* ── Card Image ── */

.tour-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tf-teal-50);
}

.tour-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.20) 100%);
  pointer-events: none;
}

.tour-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.tour-card:hover .tour-card__image img {
  transform: scale(1.08);
}

.tour-card__no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 220px;
  font-size: 48px;
  background: linear-gradient(135deg, var(--tf-teal-50), var(--tf-teal-100));
}


/* ── Days Badge ── */

.tour-card__days {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--tf-teal-600);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--tf-radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.tour-card__days::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><circle cx='8' cy='8' r='6.5' stroke='%230F6E56' stroke-width='1.4'/><path d='M8 4.5V8L10.5 9.5' stroke='%230F6E56' stroke-width='1.4' stroke-linecap='round'/></svg>") no-repeat center / contain;
  flex-shrink: 0;
}


/* ── General Badge ── */

.tour-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--tf-radius-pill);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: var(--tf-white);
}

.tour-card__badge--orange {
  background: var(--tf-coral);
}

.tour-card__badge--green {
  background: var(--tf-success);
}

.tour-card__badge--red {
  background: var(--tf-danger);
}


/* ── Card Body ── */

.tour-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.tour-card__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  color: var(--tf-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-card:hover .tour-card__title {
  color: var(--tf-teal-600);
}

.tour-card__subtitle {
  font-size: 13px;
  color: var(--tf-text-soft);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-card__excerpt {
  color: var(--tf-text-soft);
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.tour-card__destinations {
  font-size: 12px;
  color: var(--tf-text-mute);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ── Dates ── */

.tour-card__dates {
  font-size: 13px;
  color: var(--tf-text);
  margin: 0;
  font-weight: 600;
}

.tour-card__date-label {
  display: inline-block;
  background: #FFF3CD;
  color: #856404;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 4px;
  font-weight: 500;
}


/* ── Info Tags ── */

.tour-card__info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.tour-card__info-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--tf-radius-sm);
  background: var(--tf-teal-50);
  color: var(--tf-teal-800);
  white-space: nowrap;
}

.tour-card__info-tag:nth-child(2) {
  background: var(--tf-amber-50);
  color: var(--tf-amber-700);
}

.tour-card__info-tag:nth-child(3) {
  background: var(--tf-sand-50);
  color: var(--tf-coral-700);
}

.tour-card__guaranteed {
  display: inline-block;
  background: #D4EDDA;
  color: #155724;
  padding: 3px 10px;
  border-radius: var(--tf-radius-sm);
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}


/* ── Price ── */

.tour-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--tf-line);
}

.tour-card__price-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--tf-teal-600);
  line-height: 1;
}

.tour-card__price-amount::before {
  content: "החל מ-";
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--tf-text-mute);
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.tour-card__price-label {
  font-size: 12px;
  color: var(--tf-text-mute);
  font-weight: 400;
}


/* ── CTA ── */

.tour-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 11px 16px;
  background: var(--tf-teal-600);
  color: var(--tf-white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--tf-radius-md);
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.tour-card:hover .tour-card__cta {
  background: var(--tf-teal-400);
  transform: translateX(-2px);
}


/* ══════════════════════════════════════
   7. Load More / No Results
   ══════════════════════════════════════ */

.tour-load-more-wrap {
  text-align: center;
  margin: 40px auto;
}

.tour-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--tf-white);
  color: var(--tf-teal-600);
  border: 2px solid var(--tf-teal-600);
  border-radius: var(--tf-radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tour-load-more-btn:hover {
  background: var(--tf-teal-600);
  color: var(--tf-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 110, 86, 0.25);
}

.tour-load-more-btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.tour-no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--tf-teal-50);
  border-radius: var(--tf-radius-lg);
  margin: 20px auto;
  max-width: 600px;
}

.tour-no-results p {
  color: var(--tf-teal-800);
  font-size: 16px;
  margin: 0;
}


/* ══════════════════════════════════════
   8. Category Highlights
   ══════════════════════════════════════ */

/* Honeymoon */

.tour-card[data-categories*="honeymoon"]::before {
  content: "♥ ירח דבש";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--tf-radius-pill);
  background: #FBEAF0;
  color: #993556;
  pointer-events: none;
}




/* Family Trips */

.tour-card[data-categories*="family-trips"]:not([data-categories*="honeymoon"])::before {
  content: "משפחות";
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--tf-radius-pill);
  background: var(--tf-amber-50);
  color: var(--tf-amber-700);
  pointer-events: none;
}

/* תג הקטגוריה נשאר בצד שמאל למעלה */
.tour-card[data-categories*="honeymoon"]::before,
.tour-card[data-categories*="family-trips"]:not([data-categories*="honeymoon"])::before {
  top: 12px;
  left: 12px;
}

/* אם יש גם תג "חדש" / badge רגיל, הוא יופיע באותה שורה ליד תג הקטגוריה */
.tour-card[data-categories*="honeymoon"] .tour-card__badge,
.tour-card[data-categories*="family-trips"]:not([data-categories*="honeymoon"]) .tour-card__badge {
  top: 12px;
  left: 92px;
}


/* Day Trip */

.tour-card[data-duration="1"] .tour-card__days {
  background: var(--tf-amber);
  color: var(--tf-amber-700);
}

.tour-card[data-duration="1"] .tour-card__days::before {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><circle cx='8' cy='8' r='3' fill='%23854F0B'/><path d='M8 1V3M8 13V15M3.5 3.5L4.9 4.9M11.1 11.1L12.5 12.5M1 8H3M13 8H15M3.5 12.5L4.9 11.1M11.1 4.9L12.5 3.5' stroke='%23854F0B' stroke-width='1.4' stroke-linecap='round'/></svg>") no-repeat center / contain;
}


/* ══════════════════════════════════════
   9. Responsive
   ══════════════════════════════════════ */

@media (max-width: 992px) {
  .tour-archive-header {
    padding: 70px 20px 90px;
  }

  .tour-tabs {
    max-width: calc(100% - 32px);
  }

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


@media (max-width: 768px) {
  .tour-archive-header {
    padding: 60px 20px 80px;
  }

  .tour-archive-header::before {
    display: none;
  }

  .tour-archive-header__content h1 {
    font-size: 28px;
  }

  .tour-archive-header__content p {
    font-size: 15px;
  }

  .tour-tabs {
    margin: -30px 16px 0;
    padding: 12px 14px;
    border-radius: 14px;
    max-width: none;
  }

  .tour-tabs__inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .tour-tabs__item {
    padding: 8px 16px;
    font-size: 13px;
  }

  .tour-filter-bar {
    margin: 16px;
    padding: 14px;
  }

  .tour-filter-bar__inner {
    flex-direction: column;
    gap: 10px;
  }

  .tour-filter-bar__field,
  .tour-filter-bar__field--search {
    width: 100%;
    min-width: 100%;
    flex: none;
  }

  .tour-archive-container {
    padding: 0 16px;
    margin: 24px auto 40px;
  }

  .tour-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tour-card__title {
    font-size: 16px;
  }

  .tour-card__price-amount {
    font-size: 20px;
  }
}


@media (max-width: 480px) {
  .tour-archive-header {
    padding: 48px 16px 72px;
  }

  .tour-archive-header__content {
    padding: 0;
  }

  .tour-archive-header__content h1 {
    font-size: 24px;
  }

  .tour-archive-header__content p {
    font-size: 14px;
  }

  .tour-card__body {
    padding: 16px;
  }

  .tour-card__excerpt {
    -webkit-line-clamp: 4;
  }

  .tour-card__image {
    aspect-ratio: 4 / 3;
  }

  .tour-load-more-btn {
    width: 100%;
    justify-content: center;
  }
}
