/* 車内座席マップ — 上から見た簡易選択UI */
.stain-area-map-wrap {
  margin: 12px 0 16px;
  max-width: 100%;
  overflow-x: hidden;
}

.stain-steering-toggle {
  margin-bottom: 14px;
  text-align: center;
}

.stain-steering-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #3d4060);
}

.stain-steering-options {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper, #fff);
  border: 1px solid var(--line, #dde3ea);
}

.stain-steering-btn {
  min-width: 96px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted, #707070);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s, color 0.15s;
}

.stain-steering-btn:hover,
.stain-steering-btn:focus-visible {
  background: var(--bg-soft, #f1fbff);
  color: var(--accent, #006fb9);
}

.stain-steering-btn.selected {
  background: var(--accent, #006fb9);
  color: #fff;
}

.stain-area-map-vehicle {
  position: relative;
  max-width: 320px;
  margin: 0 auto 14px;
  padding: 12px 8px 16px;
  background: linear-gradient(180deg, #f8faf9 0%, #eef3f1 100%);
  border: 1px solid var(--line, #d8e0dc);
  border-radius: 16px;
}

.stain-area-map-cabin {
  display: grid;
  gap: 8px;
  min-height: 200px;
}

.stain-area-map-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.stain-area-map-row.single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.stain-area-map-row.single .stain-seat-btn {
  max-width: 140px;
}

.stain-area-map-row.triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stain-area-map-row.triple .stain-seat-btn {
  min-height: 56px;
  padding: 8px 4px;
  font-size: 11px;
  line-height: 1.25;
}

.stain-seat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 8px;
  border: 2px solid var(--line, #c5d0cb);
  border-radius: 12px;
  background: #fff;
  color: var(--text, #1a2e28);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.stain-seat-btn:hover:not(.selected),
.stain-seat-btn:focus-visible:not(.selected) {
  background: var(--bg-soft, #f1fbff);
  border-color: var(--accent-light, #459dca);
}

.stain-seat-btn.selected {
  border-color: var(--accent, #006fb9);
  background: var(--accent-soft, #e6faff);
  color: var(--accent-hover, #085d89);
  box-shadow: inset 0 0 0 1px rgba(0, 111, 185, 0.18);
}

.stain-seat-btn.selected:hover,
.stain-seat-btn.selected:focus-visible {
  border-color: var(--accent-hover, #085d89);
  background: #ccefff;
  color: var(--accent-hover, #085d89);
}

.stain-seat-btn.suggested:not(.selected) {
  border-color: #7eb8dc;
  background: #f5fbff;
  box-shadow: inset 0 0 0 1px rgba(0, 111, 185, 0.12);
}

.stain-area-map-suggested-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted, #5a6a78);
}

.stain-area-map-extra {
  display: grid;
  gap: 8px;
  max-width: 320px;
  margin: 4px auto 0;
  width: 100%;
  box-sizing: border-box;
}

.stain-area-map-extra .stain-seat-btn {
  min-height: 44px;
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
}

.stain-area-map-selection-summary {
  max-width: 320px;
  margin: 10px auto 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-soft, #f1fbff);
  border: 1px solid var(--line, #dde3ea);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink, #3d4060);
  word-break: break-word;
}

.stain-area-map-selection-summary.is-empty {
  color: var(--muted, #6b7c76);
  background: #f8faf9;
}

.stain-area-map-selection-label {
  font-weight: 700;
  margin-right: 4px;
}

.stain-area-map-selection-text {
  font-weight: 600;
}

.stain-area-map-front-label {
  text-align: center;
  font-size: 11px;
  color: var(--muted, #6b7c76);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

.stain-trunk-btn {
  width: 100%;
  margin-top: 8px;
}

.stain-trunk-emphasis {
  min-height: 56px;
  border-width: 2px;
  font-size: 14px;
}

.stain-area-map-suv .stain-trunk-emphasis {
  border-color: var(--accent, #006fb9);
  background: linear-gradient(180deg, #f0f8ff 0%, #e6f4ff 100%);
}

.stain-vehicle-class-grid {
  margin-bottom: 14px;
}

.stain-v4-vehicle-class-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stain-v4-vehicle-class-grid .stain-v4-vehicle-class-btn:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.stain-vehicle-class-collapsed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #f5f8fa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  font-size: 14px;
}

.stain-vehicle-class-collapsed-label {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.stain-vehicle-class-change-btn {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent, #006fb9);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.stain-v4-vehicle-class-picker .stain-vehicle-type-section-label {
  margin-bottom: 10px;
}

.stain-map-placeholder {
  text-align: center;
  padding: 16px 8px;
}

@media (max-width: 420px) {
  .stain-seat-btn {
    min-height: 48px;
    font-size: 12px;
  }

  .stain-area-map-row.triple .stain-seat-btn {
    min-height: 52px;
    font-size: 10px;
    padding: 6px 2px;
  }

  .stain-steering-btn {
    min-width: 84px;
  }
}

.stain-area-map-v4-simple .stain-area-map-full-inline {
  margin-bottom: 10px;
}

.stain-area-map-v4-simple .stain-full-inline-btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
  box-sizing: border-box;
}

.stain-area-map-full-top {
  margin-bottom: 12px;
}

.stain-full-top-btn {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
}

.stain-area-map-divider {
  height: 1px;
  margin: 4px 0 16px;
  background: var(--line, #dde3ea);
}

.stain-area-map-v4-simple .stain-area-map-extra {
  display: none;
}
