[data-trip-map]:empty { display: none; }
[data-trip-map] { margin: 1.5rem 0; padding: clamp(12px,3vw,26px); border-radius: 18px; background: #edf2e8; color: #103e2d; }
.t2tv-map-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(125px,1fr); gap:14px; margin:12px 0; }
.t2tv-map-canvas { height:380px; border-radius:12px; isolation:isolate; background:#e0e6e4; }
.t2tv-map-stops { max-height:380px; overflow:auto; margin:0; padding:0 0 0 26px; }
.t2tv-map-stops li { background:#fff; padding:7px 10px; border-radius:8px; margin-bottom:5px; }
.t2tv-map-stops .is-current { background:#ffb900; font-weight:700; }
.t2tv-map-pin,.t2tv-map-traveler { display:grid; place-items:center; border-radius:50%; color:#fff; background:#103e2d; border:2px solid white; font-weight:700; }
.t2tv-map-traveler { background:#ffb900; color:#103e2d; font-size:21px; }
.t2tv-map-controls { display:flex; flex-wrap:wrap; gap:10px; }
.t2tv-map-controls button { background:#103e2d; color:#fff; border:0; border-radius:24px; padding:10px 18px; cursor:pointer; }
.t2tv-editor-panel > .t2tv-map-editor { grid-column:1/-1; min-width:0; }
.t2tv-map-editor textarea[hidden] { display:none!important; }
.t2tv-map-editor select { appearance:auto; background-image:none!important; padding-inline-end:8px; }
.t2tv-map-editor [hidden] { display:none!important; }
.t2tv-map-editor [data-route-list] { list-style:none; padding:0; margin:16px 0; }
.t2tv-map-editor [data-route-list] > li { position:relative; border:1px solid #dce4df; border-radius:9px; margin:0 0 8px; padding:10px 12px; }
.t2tv-route-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.t2tv-route-name { display:flex; flex:1 1 110px; align-items:center; gap:8px; overflow-wrap:anywhere; min-width:0; }
.t2tv-route-grip { order:-1; display:grid; place-items:center; flex:0 0 44px; min-height:44px; border-radius:7px; background:#edf2e8; color:#103e2d; font:700 24px/1 system-ui,sans-serif; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.t2tv-route-dragging { opacity:.5; }
.t2tv-route-dragging .t2tv-route-grip { cursor:grabbing; }
.t2tv-drop-before::before,.t2tv-drop-after::after { content:""; position:absolute; inset-inline:0; height:3px; border-radius:2px; background:#00815d; pointer-events:none; }
.t2tv-drop-before::before { top:-6px; }
.t2tv-drop-after::after { bottom:-6px; }
.t2tv-route-arrows { display:flex; gap:4px; }
.t2tv-route-arrows .button { min-width:34px; }
.t2tv-route-start { color:#50575e; }
.t2tv-route-actions,.t2tv-place-fields,.t2tv-map-editor [data-place-results] { display:flex; flex-wrap:wrap; align-items:end; gap:8px; }
.t2tv-route-row label,.t2tv-place-fields label { display:grid; gap:3px; font-size:12px; }
.t2tv-route-row select,.t2tv-place-fields input { width:auto; max-width:100%; margin:0; }
.t2tv-map-editor .t2tv-place-editor { padding:12px; margin-top:10px; border-radius:8px; background:#edf2e8; }
.t2tv-place-editor p { margin:0 0 8px; }
.t2tv-place-editor [data-place-status]:not(:empty) { margin:10px 0 6px; }
.t2tv-map-editor [data-route-status]:empty,.t2tv-place-editor [data-place-status]:empty { margin:0; }
@media(max-width:850px) {
    .t2tv-route-name { flex:1 0 100%; }
}
@media(max-width:640px) { .t2tv-map-layout { grid-template-columns:1fr; } .t2tv-map-canvas { height:310px; } .t2tv-map-stops { max-height:170px; } }
.t2tv-map-cluster { background:#ffb900; color:#103e2d; }
.t2tv-map-stop-focus { display:block; width:100%; text-align:left; background:none; color:inherit; border:0; padding:0; font:inherit; cursor:pointer; }
.t2tv-map-stop-focus:hover { text-decoration:underline; }

[data-trip-map] { background:#fbf6ee; border:1px solid #e9e0d3; }
.t2tv-map-header { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin-bottom:18px; }
.t2tv-map-header > span { width:100%; font-size:.72rem; font-weight:800; letter-spacing:.16em; color:#76551c; }
.t2tv-map-header h3 { flex:1 0 100%; margin:0; font-size:clamp(24px,3vw,38px); color:#103e2d; }
.t2tv-map-header > p { margin:0; flex:1 0 100%; font-size:.9rem; }
.t2tv-map-controls button:not(:first-child) { background:#fff; color:#103e2d; border:1px solid #ddd5c9; }
.t2tv-map-controls button:first-child { background:#ffb900; color:#103e2d; font-weight:700; }
.t2tv-map-layout { gap:16px; }
.t2tv-map-canvas { height:440px; border-radius:17px; box-shadow:0 8px 24px #18352a18; }
.t2tv-map-stops { max-height:440px; padding:0; list-style:none; }
.t2tv-map-stops li { list-style:none; padding:0; border:1px solid #ded8ce; border-left:4px solid #103e2d; margin:0 0 8px; }
.t2tv-map-stops .is-current { background:#fff3ca; border-left-color:#ffb900; }
.t2tv-map-stop-focus { display:flex; align-items:center; gap:10px; padding:9px 10px; }
.t2tv-map-stop-focus strong,.t2tv-map-stop-focus small { display:block; }
.t2tv-map-stop-focus small { color:#665637; text-transform:capitalize; }
.t2tv-stop-number { display:grid; place-items:center; min-width:26px; height:26px; border-radius:50%; background:#103e2d; color:white; font-weight:700; font-size:12px; }
.t2tv-map-pin { background:transparent; border:0; }
.t2tv-map-pin > span { display:grid; place-items:center; width:30px; height:30px; color:white; background:#103e2d; border:2px solid white; border-radius:50% 50% 50% 5px; box-shadow:0 3px 9px #0005; }
.t2tv-map-cluster > span { background:#ffb900; color:#103e2d; }
@media(max-width:640px) { .t2tv-map-canvas { height:325px; } .t2tv-map-stops { max-height:200px; } }
