/* === Обёртка календаря === */

.gtb-tour-calendar-block {
  margin-top: 32px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.1);
  background: rgba(255,255,255,0.9);
}

.gtb-tour-calendar-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
}

.gtb-tour-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .gtb-tour-calendar-layout {
    grid-template-columns: 1fr;
  }
}

/* === Header календаря (месяц + стрелки) === */

.gtb-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gtb-cal-month {
  font-weight: 600;
  text-transform: capitalize;
}

.gtb-cal-nav {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  background: #e5e7eb;
}

/* === Сетка календаря === */

.gtb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px; /* маленький gap, чтобы диапазоны выглядели цельно */
}

.gtb-cal-cell {
  min-height: 34px;
  border-radius: 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Заголовки дней недели */

.gtb-cal-cell--head {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

/* Пустые ячейки до начала месяца */

.gtb-cal-cell--empty {
  background: transparent;
}

/* Обычный день без тура */

.gtb-cal-cell--day {
  background: #f3f4f6;
  cursor: default;
}

/* Базовый стиль дня с туром */

.gtb-cal-cell--has-trip {
  background: #bbf7d0;
  cursor: pointer;
  font-weight: 500;
  border-radius: 12px;
}

.gtb-cal-cell--has-trip:hover {
  outline: 2px solid #34d399;
}

/* === Диапазон выбранного тура ("колбаса") === */

.gtb-cal-cell--selected {
  background: #10b981 !important;
  color: #fff !important;
}

.gtb-cal-cell--range-single {
  border-radius: 999px !important;
}

.gtb-cal-cell--range-start {
  border-radius: 999px 0 0 999px !important;
}

.gtb-cal-cell--range-middle {
  border-radius: 0 !important;
}

.gtb-cal-cell--range-end {
  border-radius: 0 999px 999px 0 !important;
}

/* День, в который попадает несколько выездов (пересечение) */

.gtb-cal-cell--multi {
  background: linear-gradient(135deg, #a7f3d0 0%, #fef3c7 100%);
  position: relative;
}

.gtb-cal-cell--multi::after {
  content: '+';
  font-size: 10px;
  position: absolute;
  right: 4px;
  bottom: 3px;
  color: #047857;
}

/* === Сайдбар справа === */

.gtb-tour-calendar-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

/* блок с датой/ценой/местами + лёгкий flash */

.gtb-selected-info {
  padding: 8px 10px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid rgba(148,163,184,0.4);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.gtb-selected-info--flash {
  background-color: #ecfdf5;
  border-color: #6ee7b7;
}

.gtb-selected-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gtb-selected-actions input[type="number"] {
  width: 80px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.gtb-add-to-cart-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  background: #111827;
  color: #fff;
}

.gtb-add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gtb-selected-note {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

/* === Блок с несколькими турами на одну дату (sidebar) === */

.gtb-multi-trips {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff9f2; /* мягкий светлый фон */
  border: 1px solid rgba(15, 23, 42, 0.10);
  font-size: 13px;
  color: #4b5563;
  display: none;
}

.gtb-multi-trips.is-visible {
  display: block;
}

.gtb-multi-title {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: #b45309; /* тёплый акцент, как на сайте */
}

.gtb-multi-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Кнопки-бейджи с турами */

.gtb-multi-item {
  width: 100%;
  text-align: left;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

/* Активный выбранный тур в списке */

.gtb-multi-item--active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
}

.gtb-multi-item:hover {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}
