/* Shared Special Train berth appearance — public booking/reservation and Admin.
 * Normal berth intensity is 0.30; selected stays fully opaque (1.0).
 * Selection uses the EXACT same berth-type colour code at full opacity (1.0).
 * Do not apply selection outlines to focus/hover or unselected berths.
 */
.train-coach-svg .train-svg-berth>rect:first-of-type{
  fill-opacity:.30!important;
  stroke:#262822!important;
  stroke-width:.75!important;
  vector-effect:non-scaling-stroke;
}
.train-coach-svg .train-svg-berth.train-seat-selected>rect:first-of-type{
  fill-opacity:1!important;
  stroke:#262822!important;
  stroke-width:.75!important;
}
.train-coach-svg .train-svg-berth:not(.train-seat-selected):focus-visible>rect:first-of-type{
  stroke:#262822!important;
  stroke-width:.75!important;
}
.train-coach-svg .train-svg-berth .train-svg-selection,
.train-coach-svg .train-svg-berth:hover .train-svg-selection,
.train-coach-svg .train-svg-berth:focus-visible .train-svg-selection,
.train-coach-svg .train-svg-berth.train-seat-selected .train-svg-selection{
  stroke:transparent!important;
  stroke-width:0!important;
  stroke-dasharray:none!important;
}
/* Reserved/Blocked states remain separate from user-selected highlighting. */
.inv-map-wrap .train-coach-svg .train-svg-berth:is(.inv-seat-allocated,.inv-seat-confirmed)>rect:first-of-type,
.train-coach-map .train-coach-svg .train-svg-berth.is-booked>rect:first-of-type{
  fill:#c8cdca;
  fill-opacity:1!important;
  stroke:#274e80!important;
  stroke-width:.8!important;
}
.inv-map-wrap .train-coach-svg .train-svg-berth:is(.inv-seat-held,.inv-seat-blocked)>rect:first-of-type{
  fill:#c8cdca;
  fill-opacity:1!important;
  stroke:#555!important;
  stroke-width:.8!important;
}
/* The border is appended after the complete SVG coach layout: always in front. */
.train-coach-svg>.train-coach-selected-border{
  fill:none!important;
  stroke:#111111!important;
  stroke-width:4.4px!important;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}
