/* ActivMove Hub — CSS
   ActivGate transport hub styles
   ================================================================ */

/* ── Layout ── */
.activmove {
  height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ── Trip Context Banner ── */
.activmove__trip-banner {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.activmove__trip-banner__dismiss {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
}

/* ── Mode Tabs ── */
.activmove__modes {
  display: flex;
  flex-direction: row;
  gap: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: flex-start;
  padding: 20px;
}

.activmove__modes::-webkit-scrollbar {
  display: none;
}

.activmove__mode-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.78rem;
  color: #6b7280;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.activmove__mode-tab .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
  display: block;
  text-align: center;
  width: 100%;
}

.activmove__mode-tab--active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 600;
}

/* ── Map ── */
.activmove__map {
  flex: 1;
  min-height: 200px;
  position: relative;
  background: #050815;
}

.activmove__map #activmove-map {
  width: 100%;
  height: 100%;
}

/* Style Mapbox controls — white background */
.activmove .mapboxgl-ctrl-group {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.activmove .mapboxgl-ctrl-group button {
  background: #fff;
  border-color: #e5e7eb;
}

/* ── Bottom Drawer ── */
.activmove__drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 10;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
}

.activmove__drawer--collapsed {
  transform: translateY(calc(100% - 140px));
}

.activmove__drawer--half {
  transform: translateY(calc(100% - 55vh));
  bottom: 70px;
}

.activmove__drawer--full {
  transform: translateY(0);
  bottom: 70px;
}

.activmove__drawer-handle {
  width: 36px;
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
  margin: 8px auto;
  cursor: grab;
}

.activmove__drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
}

/* ── Search Inputs ── */
.activmove__search-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.activmove__search-input {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 10px 12px;
}

.activmove__search-input .material-icons {
  color: #6b7280;
  font-size: 20px;
}

.activmove__search-input input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 0.9rem;
  outline: none;
}

/* ── Toggle ── */
.activmove__toggle-row {
  display: flex;
  flex-direction: row;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.activmove__toggle-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: #f3f4f6;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.activmove__toggle-btn--active {
  background: #2563eb;
  color: #fff;
}

/* ── Stepper ── */
.activmove__stepper-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f3f4f6;
  border-radius: 10px;
}

.activmove__stepper-icon {
  color: #6b7280;
  font-size: 20px;
}

.activmove__stepper-label {
  flex: 1;
  font-size: 0.85rem;
  color: #374151;
}

.activmove__stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: border-color 0.2s;
}

.activmove__stepper-btn:hover {
  border-color: #2563eb;
}

.activmove__stepper-val {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #111827;
}

/* ── Select ── */
.activmove__select-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f3f4f6;
  border-radius: 10px;
}

.activmove__select-row .material-icons {
  color: #6b7280;
  font-size: 20px;
}

.activmove__select-label {
  font-size: 0.85rem;
  color: #374151;
  white-space: nowrap;
}

.activmove__select {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: #111827;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  padding: 4px 0;
}

/* ── Checkbox ── */
.activmove__checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #374151;
  cursor: pointer;
}

.activmove__checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

/* ── Search Button ── */
.activmove__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.activmove__search-btn:hover {
  opacity: 0.9;
}

.activmove__search-btn:active {
  transform: scale(0.98);
}

.activmove__search-btn .material-icons {
  font-size: 1.15rem;
}

/* ── Date label ── */
.activmove__date-label {
  font-size: 0.85rem;
  color: #6b7280;
  white-space: nowrap;
  min-width: 60px;
}

/* ── Autocomplete Dropdown (airport / route stops) ── */
.activmove__ac-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 20;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.activmove__ac-dropdown--open {
  display: block;
}

.activmove__ac-item {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}

.activmove__ac-item:hover {
  background: #eff6ff;
}

.activmove__ac-item--empty {
  color: #9ca3af;
  cursor: default;
}

/* ── Collapsed fields ── */
.activmove__collapsed {
  display: none;
}

/* ── Date/datetime inputs ── */
.activmove__search-input input[type="date"],
.activmove__search-input input[type="datetime-local"] {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 0.85rem;
  outline: none;
  color: #374151;
}

/* ── Vehicle Chips ── */
.activmove__chips {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.activmove__chips::-webkit-scrollbar {
  display: none;
}

.activmove__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  min-width: 80px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.activmove__chip--active {
  border-color: #2563eb;
  background: #eff6ff;
}

.activmove__chip--surge {
  animation: surge-pulse 1.5s infinite;
}

@keyframes surge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

.activmove__chip__icon {
  font-size: 24px;
}

.activmove__chip__name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #374151;
}

.activmove__chip__price {
  font-size: 0.75rem;
  color: #2563eb;
  font-weight: 600;
}

.activmove__chip__eta {
  font-size: 0.65rem;
  color: #9ca3af;
}

/* ── Result Cards ── */
.activmove__results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activmove__result-card {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.activmove__result-card:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.12);
}

.activmove__result-card__image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.activmove__result-card__image--placeholder {
  width: 80px;
  height: 80px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activmove__result-card__body {
  flex: 1;
  min-width: 0;
}

.activmove__result-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activmove__result-card__meta {
  font-size: 0.78rem;
  color: #6b7280;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.activmove__result-card__tags {
  display: flex;
  flex-direction: row;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.activmove__result-card__tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563eb;
}

.activmove__result-card__price {
  text-align: right;
  flex-shrink: 0;
}

.activmove__result-card__price-amount {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
}

.activmove__result-card__price-unit {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* ── Shuttle Timeline ── */
.activmove__shuttle-timeline {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  flex: 1;
}

.activmove__shuttle-timeline__stop {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  position: relative;
}

.activmove__shuttle-timeline__stop:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: #d1d5db;
}

.activmove__shuttle-timeline__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
  margin-top: 4px;
}

.activmove__shuttle-timeline__dot--small {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #93c5fd;
  margin-left: 2px;
  margin-top: 6px;
}

/* ── Car Showcase ── */
.activmove__car-image {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.activmove__car-specs {
  display: flex;
  flex-direction: row;
  gap: 10px;
  font-size: 0.75rem;
  color: #6b7280;
  margin: 4px 0;
}

.activmove__car-specs span {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
}

/* ── Flight Timeline ── */
.activmove__flight-timeline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 8px 0;
}

.activmove__flight-endpoint {
  text-align: center;
  min-width: 50px;
}

.activmove__flight-time {
  font-weight: 700;
  font-size: 0.95rem;
}

.activmove__flight-airport {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
}

.activmove__flight-line {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.activmove__flight-line__bar {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  position: relative;
}

.activmove__flight-line__bar::before {
  content: "\2708";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
}

.activmove__flight-line__duration {
  font-size: 0.7rem;
  color: #6b7280;
}

.activmove__flight-line__carrier {
  font-size: 0.65rem;
  color: #9ca3af;
}

/* ── Slide to Book ── */
.activmove__slide-book {
  height: 48px;
  border-radius: 24px;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

.activmove__slide-book__track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

.activmove__slide-book__thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Loading / Empty ── */
.activmove__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #9ca3af;
  font-size: 0.85rem;
  gap: 8px;
}

.activmove__empty {
  text-align: center;
  padding: 32px 16px;
  color: #9ca3af;
}

.activmove__empty .material-icons {
  font-size: 40px;
}

/* ── Responsive (desktop) ── */
@media (min-width: 992px) {
  .activmove__drawer {
    position: absolute;
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 420px;
    border-radius: 16px;
    max-height: calc(100vh - 180px);
  }

  .activmove__drawer--collapsed {
    transform: translateY(calc(100% - 200px));
  }

  .activmove__drawer--half,
  .activmove__drawer--full {
    transform: translateY(0);
  }
}
