.seat-plan-canvas{--seat-size:68px;--wall-size:10px;--edge-size:20px;--outer-size:58px;display:grid;gap:0;width:max-content;min-width:0;padding:8px;border:0;border-radius:14px;background:#e8dfc9;position:relative;color:#142a3a}
.seat-plan-canvas:before{content:"";position:absolute;inset:calc(8px + var(--outer-size));border:4px solid #263b48;border-radius:7px;pointer-events:none;z-index:1}
.seat-plan-furniture{display:grid;position:relative;z-index:5;min-width:0;min-height:0}.seat-plan-furniture>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.seat-plan-furniture>.seat-plan-place{z-index:2}
.seat-plan-canvas .seat-plan-place{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:0;margin:0;background:transparent;border:0;border-radius:9px;color:#142a3a;cursor:pointer;min-width:0;min-height:0;position:relative;text-decoration:none;z-index:4}
.seat-plan-place input{position:absolute;opacity:0;pointer-events:none}.seat-plan-place .seat-plan-number{position:relative;z-index:2;font-weight:900;font-size:13px;line-height:1;background:#fff5dd;border:1px solid rgba(20,42,58,.4);border-radius:50%;padding:4px;min-width:18px;text-align:center;box-shadow:0 1px 2px #0003}.seat-plan-place.is-occupied:after{content:"×";position:absolute;inset:7px;border-radius:8px;background:#263b48cc;color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900}.seat-plan-place.is-unavailable:after{content:"—";position:absolute;inset:7px;border-radius:8px;background:repeating-linear-gradient(135deg,rgba(64,61,57,.9),rgba(64,61,57,.9) 6px,rgba(128,119,105,.9) 6px,rgba(128,119,105,.9) 12px);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:900}.seat-plan-place:has(input:checked){outline:4px solid #00737d;outline-offset:-5px;background:rgba(24,162,173,.72)!important;box-shadow:inset 0 0 0 2px #fff7d6}.seat-plan-place:has(input:checked):after{content:"✓";position:absolute;inset:7px;background:rgba(0,99,107,.72);color:#fff;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900}
.seat-plan-canvas .seat-plan-empty{border:1px dashed #aaa087;border-radius:6px;background:#fffaf0;opacity:.78;margin:3px;width:calc(100% - 6px);height:calc(100% - 6px)}.seat-plan-canvas .seat-plan-aisle{background:repeating-linear-gradient(0deg,#ebe2cc,#ebe2cc 9px,#f4efdf 10px);color:#655735}.seat-plan-canvas .seat-plan-blocked{background:#384b57;border-radius:6px;color:#fff;border:3px solid #f4efdf;font-size:12px}
.seat-plan-structure{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;padding:5px;border:2px solid #3b4b55;border-radius:8px;background:#d8dde0;color:#142a3a;cursor:pointer;overflow:hidden;z-index:3}.seat-plan-structure svg{width:100%;height:100%;max-width:110px;max-height:110px}.seat-plan-structure--wc,.seat-plan-structure--sink{background:#c6e5eb}.seat-plan-structure--bar{background:#d8b47c}.seat-plan-structure--shop{background:#e7c987}.seat-plan-structure--cab,.seat-plan-structure--driver{background:#cfd9df}.seat-plan-structure--vestibule{background:#e9e1cf}.seat-plan-structure--storage{background:#d7cbb5}.seat-plan-structure--custom{background:#ded3e6}
.seat-plan-partition,.seat-plan-boundary,.seat-plan-exterior{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;padding:0;border:0;background:transparent;color:#203746;overflow:visible;z-index:7}.seat-plan-partition svg,.seat-plan-boundary svg,.seat-plan-exterior svg{width:100%;height:100%;display:block;overflow:visible}.seat-plan-partition-slot,.seat-plan-boundary-slot,.seat-plan-exterior-slot{border:1px dashed transparent;background:transparent;cursor:pointer;color:#8d9c9f;z-index:6}.seat-plan-partition-slot:hover,.seat-plan-boundary-slot:hover,.seat-plan-exterior-slot:hover{border-color:#8d9c9f;background:#fff9}.seat-plan-partition-slot svg,.seat-plan-boundary-slot svg,.seat-plan-exterior-slot svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.seat-plan-partition--wall{background:#050505;color:#050505}.seat-plan-boundary{color:#176d8b;background:#d9f1f6}.seat-plan-boundary--exterior_door{color:#6a3b20;background:transparent}.seat-plan-exterior{color:#263b48}.seat-plan-exterior--gangway{background:#d5d9d9;border-radius:8px}.seat-plan-exterior--steps{background:#d7dcde;border-radius:5px}.seat-plan-exterior--buffers{background:transparent}
.seat-plan-canvas .is-selected{outline:4px solid #00737d;outline-offset:-4px}.seat-plan-canvas .is-range{outline:3px solid #ce8614;outline-offset:-3px;background-color:#f9d98c!important}
.seat-plan-legend{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin:.7rem 0}.seat-plan-legend span{display:inline-flex;gap:6px;align-items:center}.seat-plan-swatch{display:inline-block;width:18px;height:18px;border:1px solid #172e3f;border-radius:4px}
.seat-plan-legend-material,.seat-plan-legend-window,.seat-plan-legend-state{display:inline-block;width:22px;height:18px;border:1px solid #172e3f;border-radius:4px;background-color:#8d9aaa}
.seat-plan-legend-material--wood{background:repeating-linear-gradient(0deg,#8d9aaa 0 3px,#31495a 4px 5px)}.seat-plan-legend-material--vinyl{background:linear-gradient(#8d9aaa 45%,#eef4f7 46% 53%,#8d9aaa 54%)}.seat-plan-legend-material--leather{background:radial-gradient(circle at 30% 35%,#eef4f7 0 1px,transparent 2px),radial-gradient(circle at 70% 65%,#eef4f7 0 1px,transparent 2px),#8d9aaa}.seat-plan-legend-material--fabric{background:repeating-linear-gradient(45deg,transparent 0 4px,#eef4f7 5px 6px),repeating-linear-gradient(-45deg,#8d9aaa 0 4px,#eef4f7 5px 6px)}
.seat-plan-legend-window{position:relative;background:#d9f1f6;border-width:2px 0}.seat-plan-legend-window--sliding::after{content:"↕";position:absolute;inset:-3px 0 0;text-align:center;font-weight:800;color:#173346}
.seat-plan-legend-state--free{background:#fff8e7}.seat-plan-legend-state--selected{background:#008c9a;box-shadow:inset 0 0 0 3px #00d4c7}.seat-plan-legend-state--occupied{background:#9b2636}.seat-plan-legend-state--unavailable{background:#5c6670}
.seat-plan-public-viewport{overflow:auto;max-width:100%;padding:.75rem;background:#efe3c4;border-radius:10px}.booking-seat-grid.seat-plan-canvas{max-width:none;overflow:visible}.booking-seat-train{display:flex;gap:0;align-items:flex-start;overflow:auto;padding-bottom:10px}.booking-seat-vehicle{flex:0 0 auto}.booking-seat-vehicle+.booking-seat-vehicle{margin-left:0}.booking-seat-vehicle h4{margin:.3rem .5rem;text-align:center}
@media(max-width:600px){.seat-plan-canvas{--seat-size:56px;--outer-size:48px;--edge-size:18px;--wall-size:9px}.seat-plan-place .seat-plan-number{font-size:11px}}
