.tour-packages {
  margin: 0 0 24px;
}

.tour-packages__header {
  margin-bottom: 16px;
}

.tour-packages__title {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem);
  line-height: 1.25;
  color: #111827;
}

.tour-packages__intro {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

/* Filter bar */
.tour-filters {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #0b5bba;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.tour-filters--home {
  gap: 16px;
}

.tour-filters__label {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #111827;
}

.tour-filter-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tour-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.tour-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tour-pill:hover {
  border-color: #0b5bba;
  color: #0b5bba;
  background: #f8fbff;
}

.tour-pill--active {
  background: #0b5bba;
  border-color: #0b5bba;
  color: #fff;
}

.tour-pill--active:hover {
  color: #fff;
  background: #09488f;
  border-color: #09488f;
}

.tour-filters__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: end;
  gap: 12px;
}

.tour-filters__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tour-filters__field-text {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: #4b5563;
}

.tour-filters select {
  min-width: 190px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 0.94rem;
  line-height: 1.2;
}

.tour-filters__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  flex-wrap: wrap;
}

.tour-filters__result {
  margin: 0;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.3;
}

.tour-filters__clear {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f9fafb;
  color: #111827;
  font-size: 0.82rem;
  line-height: 1.2;
  cursor: pointer;
}

.tour-filters__clear:hover {
  background: #eef2f7;
}

.tour-filters select:focus,
.tour-filters__clear:focus,
.tour-packages__more-btn:focus,
.tour-card__button:focus,
.tour-empty-state__button:focus,
.tour-pill:focus {
  outline: none;
  border-color: #0b5bba;
  box-shadow: 0 0 0 3px rgba(11, 91, 186, 0.15);
}

/* Grid */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(280px, 380px));
  gap: 24px;
  justify-content: center;
}

/* Card */
.tour-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

.tour-card:hover {
  transform: translateY(-3px);
  border-color: #d6e4ff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.tour-card__image-link {
  text-decoration: none;
}

.tour-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.tour-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

/* Badge */
.tour-card__flag {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 10px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.tour-card__flag--badge {
  top: 12px;
  left: 12px;
  background: #0b5bba;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* Badge colors by type */

.tour-card__flag--best-seller {
  background: #fe7028;   /* orange */
  color: #fff;
}

.tour-card__flag--honeymoon {
  background: #0b5bba;   /* blue */
  color: #fff;
}

.tour-card__flag--family {
  background: #16a34a;   /* green */
  color: #fff;
}

/* Card body */
.tour-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.tour-card__title {
  margin: 0;
  min-height: 3.1em;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.tour-card__title a {
  color: #111827;
  text-decoration: none;
}

.tour-card__title a:hover {
  color: #0b5bba;
}

.tour-card__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.tour-card__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ebf3ff;
  color: #0b5bba;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.tour-card__chip--muted {
  background: #f3f4f6;
  color: #4b5563;
}

/* Feature icons */
.tour-card__features {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: #374151;
  font-size: 1rem;
}

.tour-card__feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

/* Footer */
.tour-card__footer {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 6px;
}

.tour-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0b5bba;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
}

.tour-card__button:hover,
.tour-card__button:focus {
  background: #09488f;
  color: #fff !important;
  text-decoration: none;
}

/* Show more */
.tour-packages__more {
  margin-top: 18px;
  text-align: center;
}

.tour-packages__more-btn {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #0b5bba;
  border-radius: 999px;
  background: #fff;
  color: #0b5bba;
  font-weight: 600;
  cursor: pointer;
}

.tour-packages__more-btn:hover {
  background: #0b5bba;
  color: #fff;
}

/* Empty state */
.tour-empty-state {
  margin-top: 20px;
  padding: 20px 16px;
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  background: #fafafa;
  text-align: center;
}

.tour-empty-state h3 {
  margin: 0 0 8px;
}

.tour-empty-state p {
  margin: 0 0 12px;
  color: #4b5563;
}

.tour-empty-state__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
}

.tour-empty-state__button:hover,
.tour-empty-state__button:focus {
  background: #1ebe5d;
  color: #fff !important;
  text-decoration: none;
}

/* Responsive grid */
@media (min-width: 768px) {
  .tour-grid {
    grid-template-columns: repeat(2, minmax(280px, 380px));
  }
}

@media (min-width: 1180px) {
  .tour-grid {
    grid-template-columns: repeat(3, minmax(280px, 380px));
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .tour-filters {
    top: 70px;
    padding: 14px 14px 16px;
  }

  @media (max-width: 767.98px) {
  .tour-card__title {
    font-size: 0.92rem;
    line-height: 1.32;
  }
}
  .tour-filters__controls,
  .tour-filters__meta {
    width: 100%;
  }

  .tour-filters__meta {
    justify-content: flex-start;
    text-align: left;
  }

  .tour-filters__field {
    width: 100%;
  }

  .tour-filters select {
    width: 100%;
    min-width: 0;
  }

  .tour-pills {
    justify-content: center;
    gap: 8px;
  }

  .tour-pill {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .tour-card {
    max-width: 380px;
    justify-self: center;
  }

  .tour-card__button,
  .tour-packages__more-btn {
    width: 100%;
  }
}