/* ── Карточка тура ─────────────────────────────────────────────────── */
.tcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
.tcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.tcard-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f1f1;
  border-radius: 16px 16px 0 0;
}
.tcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tcard-badges {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tcard-badge {
  font-size: 12px; font-weight: 700; color: #fff;
  padding: 4px 10px; border-radius: 6px;
  background: #FF5C2B;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.tcard-badge.sale { background: #dc2626; }
.tcard-badge.hit  { background: #f59e0b; }
.tcard-badge.new  { background: #16a34a; }

.tcard-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }

.tcard-region { font-size: 12px; color: #FF5C2B; font-weight: 600; }
.tcard-title  { font-size: 15.5px; font-weight: 800; color: #1f2937; margin: 0; line-height: 1.22; }

.tcard-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 1px; }
.tcard-meta-row { font-size: 12px; color: #6b7280; line-height: 1.35; }
.tcard-meta-row b { color: #374151; font-weight: 600; }

/* Даты — раскрываются поверх карточки (popover) */
.tcard-dates-wrap { position: relative; }
.tcard-dates-toggle {
  background: none; border: none; padding: 0; margin-top: 1px;
  color: #FF5C2B; font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-align: left;
}
.tcard-dates-toggle:hover { text-decoration: underline; }
.tcard-dates-all {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  margin-top: 4px; background: #fff; border: 1px solid #ececec; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.16); padding: 4px 12px; max-height: 240px; overflow-y: auto;
}
.tcard-dates-wrap.open .tcard-dates-all { display: block; }
.tcard-dates-all .d-row {
  font-size: 12.5px; color: #374151; padding: 6px 0;
  border-top: 1px dashed #eee; display: flex; justify-content: space-between; gap: 8px;
}
.tcard-dates-all .d-row:first-child { border-top: none; }

.tcard-bottom {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tcard-price { font-size: 15px; font-weight: 800; color: #1f2937; white-space: nowrap; }
.tcard-price span { font-size: 11px; font-weight: 600; color: #9ca3af; }
.tcard-btn {
  background: #1f2937; color: #fff; border: none;
  padding: 8px 15px; border-radius: 10px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: background .15s;
}
.tcard-btn:hover { background: #FF5C2B; }

/* Сетка карточек */
.tcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 22px;
}
/* Цена и кнопка не должны распирать узкую колонку */
.tcard-bottom { flex-wrap: wrap; }
.tcard-price { min-width: 0; }

/* Мобайл: две карточки в ряд */
@media (max-width: 700px) {
  .tcards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tcard-body { padding: 11px 12px 12px; gap: 4px; }
  .tcard-title { font-size: 14px; }
  .tcard-badge { font-size: 11px; padding: 3px 8px; }
}
@media (max-width: 360px) {
  .tcards-grid { grid-template-columns: 1fr; }
}
