/* TomTom Route EV v1.3.62: scoped, consolidated component styles. */

/* 1. Tokens and plugin foundation */
.ttrev-wrap{
  --primary:#b13535;
  --primary-light:#c94d4d;
  --primary-ink:#ffffff;
  --primary-ghost:#fde8e8;
  --bg:#f9f9fb;
  --card:#ffffff;
  --border:#e5e7eb;
  --ink:#1e1e1e;
  --muted:#6b7280;
  --radius:12px;
  --pad:12px;
  --inline-label-pad:108px;
  --field-h:42px;
  --z-autocomplete:1300;
  --z-history:1200;
  --z-map-control:20;
  --z-map-kpi:22;
  --ttrev-floating-bottom:20px;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
  overflow-x:clip;
  color:var(--ink);
  font:400 15px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.ttrev-wrap .app,
.ttrev-wrap .panel,
.ttrev-wrap .layout,
.ttrev-wrap .card,
.ttrev-wrap #map,
.ttrev-wrap .map-shell{
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.ttrev-wrap .app{display:grid;grid-template-rows:auto 1fr;height:100%}
.ttrev-wrap .panel{display:grid;gap:12px;padding:var(--pad);background:var(--card);border-bottom:1px solid var(--border)}
.ttrev-wrap .row,
.ttrev-wrap .wp-container{display:grid;grid-template-columns:1fr;gap:10px}
.ttrev-wrap .grid3{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:10px}
.ttrev-wrap .layout{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:0;overflow-x:clip}

/* 2. Route form and location fields */
.ttrev-wrap .topbar{
  position:relative;
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr) auto;
  gap:10px;
  align-items:center;
}
.ttrev-wrap .field,
.ttrev-wrap .ac-wrap{position:relative;min-width:0}
.ttrev-wrap .field input{
  width:100%;
  height:var(--field-h);
  min-width:0;
  margin:0;
  padding:0 12px;
  box-sizing:border-box;
  border:1px solid var(--border);
  border-radius:10px;
  background:#f9f9f9;
  font-size:14px;
  transition:border-color .15s,box-shadow .15s;
}
.ttrev-wrap .field input:focus,
.ttrev-wrap .sel select:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(177,53,53,.22);
}
.ttrev-wrap .field.has-action input{padding-right:46px}
.ttrev-wrap .field.has-voice input{padding-right:52px}
.ttrev-wrap .field.ttrev-from-field input{padding-right:calc(var(--ttrev-from-tools-width, 34px) + 12px)}
.ttrev-wrap .panel button.field-action{
  position:absolute;
  top:50%;
  right:7px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  min-width:32px;
  height:32px;
  padding:0;
  transform:translateY(-50%);
  border:0;
  border-radius:0;
  background:transparent;
  color:#374151;
  box-shadow:none;
  opacity:1;
  transition:color .15s,transform .15s;
}
.ttrev-wrap .panel button.field-action:hover{background:transparent;color:var(--primary);opacity:1}
.ttrev-wrap .panel button.field-action:active{transform:translateY(-50%) scale(.94)}
.ttrev-wrap .panel button.field-action:focus-visible{outline:2px solid rgba(177,53,53,.35);outline-offset:1px}
.ttrev-wrap .field-action__icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.ttrev-wrap .panel button.ttrev-voice-btn{right:7px;width:36px;min-width:36px;height:36px;border-radius:8px;color:#4b5563}
.ttrev-wrap .ttrev-from-tools{
  position:absolute;
  top:50%;
  right:4px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:3px;
  max-width:calc(100% - 18px);
  transform:translateY(-50%);
  white-space:nowrap;
}
.ttrev-wrap .panel .ttrev-from-tools button.field-action,
.ttrev-wrap .panel .ttrev-from-tools button.ttrev-voice-btn{
  position:static;
  top:auto;
  right:auto;
  flex:0 0 auto;
  transform:none;
}
.ttrev-wrap .panel .ttrev-from-tools button.field-action:active,
.ttrev-wrap .panel .ttrev-from-tools button.ttrev-voice-btn:active{transform:scale(.94)}
.ttrev-wrap .ttrev-voice-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.ttrev-wrap .panel button.ttrev-voice-btn.is-listening{background:#fff2f2;color:var(--primary);box-shadow:0 0 0 2px rgba(177,53,53,.18)}
.ttrev-wrap .panel button.ttrev-voice-btn.is-processing{color:var(--primary);opacity:.72}
.ttrev-wrap .panel button.ttrev-voice-btn.is-error{background:#fff1f2;color:#991b1b}
.ttrev-wrap .panel button.ttrev-voice-btn.is-listening .ttrev-voice-icon{animation:ttrev-voice-breathe 1.35s ease-in-out infinite}
@keyframes ttrev-voice-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.ttrev-wrap .ttrev-voice-status{
  min-width:0;
  max-width:min(520px,100%);
  margin-top:-8px;
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ttrev-wrap .ttrev-voice-status[hidden]{display:none}
.ttrev-wrap .ttrev-voice-status.is-error{color:#991b1b}
.ttrev-wrap .wp-row{display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:6px}
.ttrev-wrap .wp-remove{background:#7a1f1f;color:#fff}

/* 3. Shared controls and buttons */
.ttrev-wrap .panel button,
.ttrev-wrap .layout > .card:not(#map) button,
.ttrev-wrap #map > .fs-btn,
.ttrev-wrap select{height:var(--field-h);border-radius:10px}
.ttrev-wrap .panel button,
.ttrev-wrap .layout > .card:not(#map) button,
.ttrev-wrap #map > .fs-btn{
  padding:0 14px;
  padding-right:14px;
  padding-left:14px;
  border:0;
  cursor:pointer;
  background:#eee;
  color:#000;
  font-weight:500;
  white-space:nowrap;
  transition:transform .15s,opacity .15s;
  border:1px solid #e1e1e1;
}
.ttrev-wrap .panel button:hover,
.ttrev-wrap .layout > .card:not(#map) button:hover,
.ttrev-wrap #map > .fs-btn:hover{opacity:.92}
.ttrev-wrap .panel button:active,
.ttrev-wrap .layout > .card:not(#map) button:active,
.ttrev-wrap #map > .fs-btn:active{transform:translateY(1px)}
.ttrev-wrap .btn-secondary{background:#fff;border:1px solid #cacaca;color:#000}
.ttrev-wrap .btn-ghost{background:transparent;color:var(--primary);border:1px dashed var(--border);box-shadow:none}
.ttrev-wrap .btn-danger{background:#7a1f1f}
.ttrev-wrap .btn-gm-green{
  padding:0 14px;
  border:1px solid #2e8b47;
  border-radius:8px;
  background:#34a853;
  color:#fff;
  font-weight:600;
  box-shadow:0 1px 2px rgba(0,0,0,.2);
}
.ttrev-wrap .btn-gm-green:hover{filter:brightness(.97)}
.ttrev-wrap .btn-gm-green:active{transform:translateY(1px)}
.ttrev-wrap .btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  min-width:40px;
  height:40px;
  padding:0;
  font-size:17px;
  line-height:1;
}
.ttrev-wrap .toolbar-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ttrev-wrap .topbar .btn-row-mobile{display:flex;align-items:stretch;gap:8px;min-width:0}
.ttrev-wrap .topbar .btn-row-mobile>.history-wrap,
.ttrev-wrap .topbar .btn-row-mobile>#go{flex:1 1 0;min-width:0}
.ttrev-wrap #mySearches,
.ttrev-wrap #go{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  padding-right:14px;
  padding-left:14px;
  text-align:center;
}
.ttrev-wrap #mySearches{
  width:100%;
  overflow:hidden;
  font-size:13px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* 4. Selects and route settings */
.ttrev-wrap .sel{position:relative;min-width:0;box-sizing:border-box}
.ttrev-wrap .sel::before{
  content:attr(data-label);
  position:absolute;
  top:50%;
  left:12px;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:12px;
  pointer-events:none;
}
.ttrev-wrap .sel select{
  width:100%;
  min-width:0;
  padding-left:var(--inline-label-pad);
  box-sizing:border-box;
  border:1px solid var(--border);
  background:#fff;
  color:#111;
}
.ttrev-wrap .route-type-select{flex:0 0 auto;min-width:126px}
.ttrev-wrap .route-type-select::before{content:none;display:none}
.ttrev-wrap .route-type-select select{min-width:126px;padding-right:32px;padding-left:12px}
.ttrev-wrap .avoid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 12px;align-items:center}
.ttrev-wrap .avoid label{display:flex;align-items:center;gap:8px;font-size:13px}
/* 5. Cost controls, KPI and result cards */
.ttrev-wrap .card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--card);
  box-shadow:0 6px 20px rgba(177,53,53,.15);
}
/* Collapsible cards must override the base card display state. */
.ttrev-wrap .card.collapse:not(.open){display:none}
.ttrev-wrap .card.collapse.open{display:flex}
.ttrev-wrap .card h3{margin:0;padding:10px 12px;border-bottom:1px solid var(--border);color:#1f2937;font-size:15px}
.ttrev-wrap .body{padding:10px 12px;overflow:auto}
.ttrev-wrap .meta{margin-bottom:6px;font-weight:600}
.ttrev-wrap .hint{color:var(--muted);font-size:12px}
.ttrev-wrap .pill{display:inline-block;padding:6px 10px;border:1px solid #1f2937;border-radius:999px;background:#fff;color:#1f2937;font-size:13px;font-weight:700}
.ttrev-wrap .kpis{display:none;flex-wrap:wrap;align-items:center;gap:8px}
.ttrev-wrap .kpis.show{display:flex}
.ttrev-wrap .costs-grid{display:grid;grid-template-columns:1fr;gap:8px 10px;align-items:end}
.ttrev-wrap .cfield{position:relative;min-width:0;box-sizing:border-box}
.ttrev-wrap .cfield::before{
  content:attr(data-label);
  position:absolute;
  top:50%;
  left:12px;
  max-width:calc(100% - 16px);
  transform:translateY(-50%);
  overflow:hidden;
  color:var(--muted);
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
  pointer-events:none;
}
.ttrev-wrap .cfield input[type="number"]{
  width:100%;
  min-width:0;
  height:38px;
  padding:0 10px 0 var(--inline-label-pad);
  box-sizing:border-box;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  font-size:14px;
  font-variant-numeric:tabular-nums;
  text-align:right;
  -moz-appearance:textfield;
}
.ttrev-wrap .cfield input[type="number"]::-webkit-outer-spin-button,
.ttrev-wrap .cfield input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ttrev-wrap .cost-note{color:var(--muted);font-size:12px}
.ttrev-wrap .cost-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px}

/* 6. Map and map overlays */
.ttrev-wrap #map{
  position:relative;
  display:block;
  width:100%;
  min-height:360px;
  height:auto;
  margin:0;
  box-sizing:border-box;
  overflow:hidden;
  aspect-ratio:16/9;
  contain:layout paint style;
  background:#f3f4f6;
  border-radius:14px;
  box-shadow:0 6px 20px rgba(177,53,53,.15);
}
.ttrev-wrap .map-shell{isolation:isolate}
.ttrev-wrap .map-placeholder,
.ttrev-wrap .map-placeholder__shade,
.ttrev-wrap .map-placeholder__note{position:absolute;inset:0}
.ttrev-wrap .map-placeholder{z-index:1;max-width:100%;pointer-events:none}
.ttrev-wrap .map-placeholder img{display:block;width:100%;max-width:100%;height:100%;object-fit:cover;object-position:center}
.ttrev-wrap .map-placeholder__shade{background:linear-gradient(180deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.18) 100%)}
.ttrev-wrap .map-placeholder__note{
  z-index:2;
  inset:auto;
  top:50%;
  left:50%;
  width:min(92%,460px);
  padding:12px 14px;
  transform:translate(-50%,-50%);
  border:1px solid rgba(31,41,55,.14);
  border-radius:12px;
  background:rgba(255,255,255,.96);
  color:#1f2937;
  font-size:13px;
  font-weight:700;
  text-align:center;
  box-shadow:0 4px 14px rgba(17,24,39,.08);
  backdrop-filter:saturate(1.1) blur(3px);
}
.ttrev-wrap #map.is-loading .map-placeholder__note::after{content:" Nalagam zemljevid…";font-weight:600}
.ttrev-wrap #map.is-ready .map-placeholder,
.ttrev-wrap #map.is-ready .map-placeholder__note{display:none}
.ttrev-wrap #map .fs-btn{
  position:absolute;
  top:8px;
  left:8px;
  z-index:var(--z-map-control);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:7.5px;
  background:#fff;
  color:#111;
  font:600 14px system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
}
.ttrev-wrap #map .fs-btn:active{transform:translateY(1px)}
.ttrev-wrap #map .fs-btn[hidden]{display:none!important} /* Protects the native hidden state from theme button rules. */
.ttrev-wrap #map:fullscreen,
.ttrev-wrap #map:-webkit-full-screen{width:100vw;height:100vh}
.ttrev-wrap #map .kpis{
  position:absolute;
  top:8px;
  left:56px;
  z-index:var(--z-map-kpi);
  display:none;
  align-items:center;
  gap:8px;
}
.ttrev-wrap #map .kpis.show{display:flex}
.ttrev-wrap #map .kpis .pill{margin:0}
.ttrev-wrap .cluster-count{color:#fff;font:700 12px/1 system-ui}
.ttrev-wrap .route-badge,
.ttrev-wrap button.route-badge{
  all:unset;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border:1px solid #1f2937;
  border-radius:999px;
  background:#fff;
  color:#1f2937;
  font-size:13px;
  font-weight:700;
  line-height:1;
  box-shadow:0 8px 20px rgba(15,23,42,.10);
  pointer-events:none;
  user-select:none;
}
.ttrev-wrap .route-badge__main{font-size:13px;font-weight:800}
.ttrev-wrap .route-badge__sep{font-size:12px;opacity:.65}
.ttrev-wrap .route-badge__sub{font-size:12px;font-weight:700}

/* 7. Detailed directions: premium route results and turn-by-turn timeline */
.ttrev-wrap .route-results-card{
  overflow:visible;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 24px rgba(15,23,42,.07);
}
.ttrev-wrap .route-results-card[hidden]{display:none!important}
.ttrev-wrap .route-results-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-bottom:1px solid #eceef2;
}
.ttrev-wrap .route-results-heading{display:flex;align-items:center;gap:10px;min-width:0}
.ttrev-wrap .route-results-heading__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:11px;
  background:#fff3f3;
  color:#9f2f2f;
}
.ttrev-wrap .route-results-heading__icon svg,
.ttrev-wrap .route-map-return svg,
.ttrev-wrap .route-google-button svg,
.ttrev-wrap .route-action-button svg,
.ttrev-wrap .route-summary-kpi svg,
.ttrev-wrap .route-relation__arrow,
.ttrev-wrap .route-timeline-marker svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ttrev-wrap .route-results-heading__icon svg{width:22px;height:22px}
.ttrev-wrap .route-results-card h3{
  margin:0;
  padding:0;
  border:0;
  color:#1f2937;
  font-size:23px;
  line-height:1.2;
  font-weight:750;
}
.ttrev-wrap .route-map-return{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  margin:0;
  padding:0 13px;
  border:1px solid #d9dde3;
  border-radius:11px;
  background:#fff;
  color:#374151;
  font:700 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  cursor:pointer;
  box-shadow:none;
}
.ttrev-wrap .route-map-return:hover{border-color:#c9ced7;background:#f8fafc;color:#9f2f2f}
.ttrev-wrap .route-map-return svg{width:18px;height:18px}
.ttrev-wrap .route-map-return__short{display:none}
.ttrev-wrap .route-results-body{padding:18px;overflow:visible}
.ttrev-wrap .route-results-grid{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:28px;align-items:start}
.ttrev-wrap .route-share-panel{position:sticky;top:20px;display:grid;gap:12px;min-width:0}
.ttrev-wrap .route-summary-card{padding:15px;border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc}
.ttrev-wrap .route-relation{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:8px;color:#1f2937;font-size:18px;font-weight:750;line-height:1.25}
.ttrev-wrap .route-relation__place{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ttrev-wrap .route-relation__place:last-child{text-align:right}
.ttrev-wrap .route-relation__arrow{width:22px;height:22px;color:#b13535}
.ttrev-wrap .route-summary-kpis{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.ttrev-wrap .route-summary-kpi{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  padding:0 10px;
  border:1px solid #e2e5ea;
  border-radius:999px;
  background:#fff;
  color:#374151;
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
}
.ttrev-wrap .route-summary-kpi[hidden]{display:none}
.ttrev-wrap .route-summary-kpi svg{width:16px;height:16px;color:#9f2f2f}
.ttrev-wrap .route-summary-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ttrev-wrap .route-google-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:50px;
  padding:0 14px;
  border:1px solid rgba(177,53,53,.35);
  border-radius:12px;
  background:#fff;
  color:#202124;
  font-size:14px;
  font-weight:650;
  text-align:center;
  text-decoration:none;
  box-shadow:0 3px 10px rgba(15,23,42,.055);
  transition:background .15s,border-color .15s,transform .15s,box-shadow .15s,color .15s;
}
.ttrev-wrap .route-google-button:hover{border-color:rgba(177,53,53,.58);background:#fff7f7;color:#202124;box-shadow:0 4px 12px rgba(15,23,42,.075)}
.ttrev-wrap .route-google-button:active{transform:translateY(1px);box-shadow:0 2px 7px rgba(15,23,42,.06)}
.ttrev-wrap .route-google-button:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(177,53,53,.18)}
.ttrev-wrap .route-google-button>svg{width:20px;height:20px;flex:0 0 20px;color:#b13535;stroke:currentColor}
.ttrev-wrap .route-google-button__external{width:16px;height:16px;margin-left:auto;color:#b13535;opacity:.92}
.ttrev-wrap .dir-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.ttrev-wrap .layout .route-action-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  min-height:45px;
  padding:0 9px;
  border:1px solid #d9dde3;
  border-radius:11px;
  background:#fff;
  color:#303744;
  font-size:13px;
  font-weight:700;
  box-shadow:none;
}
.ttrev-wrap .layout .route-action-button:hover{border-color:#c8ced8;background:#f8fafc;color:#9f2f2f}
.ttrev-wrap .route-action-button svg{width:18px;height:18px;flex:0 0 18px}
.ttrev-wrap .route-action-status{min-height:18px;margin:-3px 2px 0;color:#53606f;font-size:12px;line-height:1.35}
.ttrev-wrap .route-action-status[hidden]{display:none}
.ttrev-wrap .route-action-status.is-error{color:#a12222;font-weight:650}
.ttrev-wrap .route-instructions-panel{min-width:0;padding:2px 0 4px}
.ttrev-wrap .route-steps-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;padding:0 2px 11px;border-bottom:1px solid #eceef2}
.ttrev-wrap .route-steps-head h4{margin:0;color:#1f2937;font-size:17px;line-height:1.3;font-weight:750}
.ttrev-wrap .route-steps-count{color:#6b7280;font-size:12px;font-weight:650;white-space:nowrap}
.ttrev-wrap #directions{min-height:0}
.ttrev-wrap .route-timeline{position:relative;display:grid;gap:0;max-width:780px;margin:0;padding:0;list-style:none}
.ttrev-wrap .route-timeline-item{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;min-width:0;padding:11px 0 14px}
.ttrev-wrap .route-timeline-item:not(:last-child)::before{
  content:"";
  position:absolute;
  top:46px;
  bottom:-4px;
  left:22px;
  width:2px;
  border-radius:999px;
  background:#ead3d3;
}
.ttrev-wrap .route-timeline-marker{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:1px solid #f0d4d4;
  border-radius:13px;
  background:#fff3f3;
  color:#9f2f2f;
}
.ttrev-wrap .route-timeline-marker svg{width:24px;height:24px}
.ttrev-wrap .route-step-number{
  position:absolute;
  right:-3px;
  bottom:-4px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:17px;
  height:17px;
  padding:0 4px;
  border:2px solid #fff;
  border-radius:999px;
  background:#b13535;
  color:#fff;
  font-size:9px;
  line-height:1;
  font-weight:800;
}
.ttrev-wrap .route-timeline-content{min-width:0;padding:2px 0 0}
.ttrev-wrap .route-instruction-main{color:#252525;font-size:16px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
.ttrev-wrap .route-instruction-secondary{margin-top:4px;color:#6b7280;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.ttrev-wrap .route-endpoint-label{display:block;margin-bottom:2px;color:#9f2f2f;font-size:10px;line-height:1.2;font-weight:850;letter-spacing:.09em}
.ttrev-wrap .route-endpoint-place{color:#252525;font-size:16px;line-height:1.4;font-weight:750;overflow-wrap:anywhere}
.ttrev-wrap .route-timeline-item--finish .route-timeline-marker{background:#fff;color:#b13535;border-color:#dcb5b5}

/* 8. Autocomplete */
.ttrev-wrap .ac-list{
  position:absolute;
  top:100%;
  right:0;
  left:0;
  z-index:var(--z-autocomplete);
  max-height:240px;
  margin-top:4px;
  overflow:auto;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  box-shadow:0 6px 20px rgba(177,53,53,.15);
  pointer-events:auto;
  touch-action:pan-y;
}
.ttrev-wrap .ac-item{display:flex;align-items:flex-start;gap:8px;padding:10px;cursor:pointer;border-bottom:1px solid #f1f5f9;pointer-events:auto;touch-action:pan-y}
.ttrev-wrap .ac-item:last-child{border-bottom:0}
.ttrev-wrap .ac-item.active{background:#fff1f1}
.ttrev-wrap .ac-item__icon{flex:0 0 auto;line-height:1.35}
.ttrev-wrap .ac-item__text{display:flex;flex-direction:column;min-width:0}
.ttrev-wrap .ac-item__main{color:#1f2937;font-weight:600;line-height:1.25}
.ttrev-wrap .ac-item__detail{margin-top:2px;color:var(--muted);font-size:12px;line-height:1.25;white-space:normal}
.ttrev-wrap .ac-item__source{align-self:flex-start;display:inline-block;margin-top:3px;padding:1px 5px;border:1px solid #d8dee8;border-radius:999px;background:#f8fafc;color:#64748b;font-size:10px;line-height:1.25;font-weight:600}
.ttrev-wrap .ac-empty,
.ttrev-wrap .ac-hint{padding:10px;color:var(--muted);font-size:12px}

/* 9. Recent-search history */
.ttrev-wrap .history-wrap{position:relative;min-width:0}
.ttrev-wrap .history-menu{
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  z-index:var(--z-history);
  width:min(380px,calc(100vw - 24px));
  padding:8px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 16px 34px rgba(17,24,39,.16);
}
.ttrev-wrap .history-menu[hidden]{display:none!important} /* Some themes override the hidden attribute on positioned panels. */
.ttrev-wrap .history-menu__head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;padding:4px 6px 8px;border-bottom:1px solid #eef2f7}
.ttrev-wrap .history-menu__title{color:#1f2937;font-size:13px;font-weight:700}
.ttrev-wrap .history-menu__clear{
  all:unset;
  padding:4px 6px;
  border-radius:8px;
  color:#b13535;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.ttrev-wrap .history-menu__clear:hover{background:#fef2f2}
.ttrev-wrap .history-item{
  all:unset;
  display:block;
  width:100%;
  padding:10px;
  box-sizing:border-box;
  border:1px solid transparent;
  border-radius:10px;
  cursor:pointer;
}
.ttrev-wrap .history-item:hover{border-color:#e5e7eb;background:#f8fafc}
.ttrev-wrap .history-item+.history-item{margin-top:4px}
.ttrev-wrap .history-item__title{display:block;margin:0;overflow:hidden;color:#1f2937;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.ttrev-wrap .history-item__meta{display:none}
.ttrev-wrap .history-empty{padding:12px 10px;color:#6b7280;font-size:12px}

/* 10. QR sharing card */
.ttrev-wrap .qr-row{
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  align-items:center;
  gap:14px;
  margin:0;
  padding:12px;
  border:1px dashed #d8c7c7;
  border-radius:14px;
  background:#fff;
}
.ttrev-wrap .qr-row img{display:block;width:160px;height:160px;border-radius:10px;background:#fff;image-rendering:auto}
.ttrev-wrap .qr-col{display:flex;flex-direction:column;gap:5px;min-width:0}
.ttrev-wrap .qr-title{color:#252525;font-size:16px;line-height:1.25;font-weight:800}
.ttrev-wrap .qr-description{margin:0;color:#6b7280;font-size:13px;line-height:1.45}
.ttrev-wrap .qr-small{color:var(--muted);font-size:12px;word-break:break-all}


.ttrev-wrap .route-map-return:focus-visible,
.ttrev-wrap .route-google-button:focus-visible,
.ttrev-wrap .route-action-button:focus-visible{outline:3px solid rgba(177,53,53,.24);outline-offset:3px}

/* 11. Advertisement slot */
.ttrev-wrap .route-ad-wrap{margin:0 12px 12px}
.ttrev-wrap .route-ad-wrap[hidden]{display:none!important} /* Ad scripts may add display declarations after render. */
.ttrev-wrap .route-ad-wrap ins.adsbygoogle{display:block;min-height:0}

/* 12. Responsive layout */
@media (min-width:740px){
  .ttrev-wrap .costs-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}
}
@media (min-width:1200px){
  .ttrev-wrap .costs-grid{grid-template-columns:repeat(4,minmax(170px,1fr))}
}
@media (min-width:741px){
  .ttrev-wrap #mySearches{padding-right:16px;padding-left:16px}
}
@media (min-width:741px) and (max-width:1280px){
  .ttrev-wrap .topbar{grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr) auto}
  .ttrev-wrap .avoid{grid-template-columns:1fr 1fr}
}
@media (min-width:741px) and (max-width:980px){
  .ttrev-wrap .grid3{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .ttrev-wrap .topbar{grid-template-columns:minmax(0,1fr) auto}
}
@media (max-width:740px){
  .ttrev-wrap .topbar{grid-template-columns:1fr;padding-bottom:10px}
  .ttrev-wrap .topbar>*{width:100%}
  .ttrev-wrap .topbar .btn-row-mobile{display:flex;width:100%;padding-right:8px;box-sizing:border-box;gap:8px;align-items:stretch}
  .ttrev-wrap .topbar .btn-row-mobile>.history-wrap,
  .ttrev-wrap .topbar .btn-row-mobile>#go{flex:1 1 0;width:calc(50% - 4px);min-width:0;max-width:none}
  .ttrev-wrap .topbar .btn-row-mobile .history-wrap>#mySearches,
  .ttrev-wrap .topbar .btn-row-mobile>#go{width:100%;min-width:0;padding-right:12px;padding-left:12px;font-size:13px;text-align:center;justify-content:center}
  .ttrev-wrap .history-wrap{position:static}
  .ttrev-wrap .history-menu{top:calc(100% + 6px);right:0;left:0;width:auto;max-width:none}
  .ttrev-wrap .grid3{grid-template-columns:1fr}
  .ttrev-wrap .avoid{grid-template-columns:1fr}
  .ttrev-wrap .route-type-select,
  .ttrev-wrap .route-type-select select{min-width:118px}
  .ttrev-wrap .layout{padding:0}
  .ttrev-wrap #map{min-height:280px;height:auto;aspect-ratio:4/3}
  .ttrev-wrap .map-placeholder__note{width:min(92%,320px);padding:10px 12px;font-size:12px}
  .ttrev-wrap button.route-badge{max-width:220px;padding:7px 10px}
  .ttrev-wrap .route-badge__main,
  .ttrev-wrap .route-badge__sub{font-size:12px}
}

/* 13. Accessibility preferences */
@media (prefers-reduced-motion:reduce){
  .ttrev-wrap .panel button.ttrev-voice-btn.is-listening .ttrev-voice-icon{animation:none}
  .ttrev-wrap .panel button,
  .ttrev-wrap .layout > .card:not(#map) button,
  .ttrev-wrap #map > .fs-btn,
  .ttrev-wrap .field input,
  .ttrev-wrap .route-google-button{transition:none}
}

@media (max-width:640px){
  .ttrev-wrap .panel button.ttrev-voice-btn{width:40px;min-width:40px;height:40px;right:1px}
  .ttrev-wrap .field.has-voice input{padding-right:48px}
  .ttrev-wrap .ttrev-from-tools{right:1px;gap:1px}
  .ttrev-wrap .panel .ttrev-from-tools button.field-action,
  .ttrev-wrap .panel .ttrev-from-tools button.ttrev-voice-btn{width:40px;min-width:40px;height:40px}
  .ttrev-wrap .field.ttrev-from-field input{padding-right:calc(var(--ttrev-from-tools-width, 40px) + 10px)}
  .ttrev-wrap .ttrev-voice-status{max-width:100%;white-space:normal}
}


/* ========================================================================
   v1.3.45: odstranjen zunanji vizualni ovoj vtičnika
   ======================================================================== */
.ttrev-wrap{
  --primary:#b13535;
  --primary-light:#d04a4a;
  --primary-soft:#fff3f3;
  --border:#d9dde3;
  --field-h:46px;
}
.ttrev-wrap *,
.ttrev-wrap *::before,
.ttrev-wrap *::after{box-sizing:border-box}
.ttrev-wrap [hidden]{display:none!important}
.ttrev-wrap .app{height:auto;min-height:0}
.ttrev-wrap .panel{
  gap:10px;
  padding:14px;
  border-bottom:1px solid #e7e9ee;
  background:#fff;
}
.ttrev-wrap .layout{gap:12px;background:#fff}

/* Glavna pot: Od → Do → Izračunaj */
.ttrev-wrap .route-controls-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(260px,1fr) 44px minmax(260px,1fr) minmax(160px,180px);
  gap:10px;
  align-items:center;
  min-width:0;
}
.ttrev-wrap .route-location-field{position:relative;min-width:0}
.ttrev-wrap .route-location-field input,
.ttrev-wrap .waypoint-field input{
  width:100%;
  min-width:0;
  height:46px;
  margin:0;
  padding:0 48px 0 38px;
  border:1px solid var(--border);
  border-radius:11px;
  background:#fff;
  color:#1e1e1e;
  font:500 15px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
}
.ttrev-wrap .route-location-field input::placeholder,
.ttrev-wrap .waypoint-field input::placeholder{color:#7b818b;opacity:1}
.ttrev-wrap .route-location-field input:focus,
.ttrev-wrap .waypoint-field input:focus,
.ttrev-wrap .setting-field select:focus,
.ttrev-wrap .cfield input:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(177,53,53,.20);
}
.ttrev-wrap .route-point{
  position:absolute;
  top:50%;
  left:15px;
  z-index:2;
  width:10px;
  height:10px;
  transform:translateY(-50%);
  border:2px solid var(--primary);
  border-radius:50%;
  pointer-events:none;
}
.ttrev-wrap .route-point--from{background:var(--primary)}
.ttrev-wrap .route-point--to{background:#fff}
.ttrev-wrap .panel button.route-swap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  min-width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--border);
  border-radius:11px;
  background:#fff;
  color:#4b5563;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.ttrev-wrap .route-swap svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ttrev-wrap .panel button.route-swap:hover{border-color:#c9a5a5;background:var(--primary-soft);color:var(--primary);opacity:1}

/* Gumbi in jasna vizualna hierarhija */
.ttrev-wrap .panel button,
.ttrev-wrap .layout > .card:not(#map) button{
  min-height:42px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:#24272d;
  font-weight:650;
  box-shadow:none;
  transition:border-color .15s,background-color .15s,color .15s,transform .15s,box-shadow .15s;
}
.ttrev-wrap .panel button:hover,
.ttrev-wrap .layout > .card:not(#map) button:hover{border-color:#c9cdd5;background:#f8f9fb;opacity:1}
.ttrev-wrap .panel button.btn-primary,
.ttrev-wrap .layout > .card:not(#map) button.btn-primary,
.ttrev-wrap #go{
  height:46px;
  border-color:var(--primary);
  background:var(--primary);
  color:#fff;
  font-weight:750;
  box-shadow:0 4px 10px rgba(177,53,53,.20);
}
.ttrev-wrap .panel button.btn-primary:hover,
.ttrev-wrap .layout > .card:not(#map) button.btn-primary:hover,
.ttrev-wrap #go:hover{border-color:#962d2d;background:#962d2d;color:#fff}
.ttrev-wrap .panel button:focus-visible,
.ttrev-wrap .layout > .card:not(#map) button:focus-visible,
.ttrev-wrap select:focus-visible,
.ttrev-wrap input:focus-visible,
.ttrev-wrap a:focus-visible{outline:3px solid rgba(177,53,53,.24);outline-offset:2px}
.ttrev-wrap button:disabled{cursor:wait;opacity:.68;transform:none!important;box-shadow:none!important}
.ttrev-wrap .btn-secondary{background:#fff;border-color:var(--border);color:#24272d}
.ttrev-wrap .btn-secondary.is-active,
.ttrev-wrap .settings-action.is-active,
.ttrev-wrap #settingsToggle.is-active{
  border-color:var(--primary);
  background:var(--primary-soft);
  color:#912b2b;
}

/* Sekundarne akcije */
.ttrev-wrap .route-location-field--from{grid-column:1;grid-row:1}
.ttrev-wrap .route-swap{grid-column:2;grid-row:1}
.ttrev-wrap .route-location-field--to{grid-column:3;grid-row:1}
.ttrev-wrap #go{grid-column:4;grid-row:1;width:100%}
.ttrev-wrap #wpContainer{grid-column:1/-1;grid-row:2}
.ttrev-wrap #addWp{grid-column:1/3;grid-row:3;justify-self:start}
.ttrev-wrap .route-secondary-actions{
  grid-column:3/5;
  grid-row:3;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}
.ttrev-wrap .panel button.btn-add-stop{
  height:38px;
  min-height:38px;
  padding:0 10px;
  border-color:transparent;
  background:transparent;
  color:var(--primary);
  font-weight:700;
  box-shadow:none;
}
.ttrev-wrap .panel button.btn-add-stop:hover{border-color:#f1d0d0;background:var(--primary-soft);color:#8e2929}
.ttrev-wrap #mySearches,
.ttrev-wrap #settingsToggle{width:auto;min-width:132px;height:42px;padding:0 14px;font-size:13px}
.ttrev-wrap .history-wrap{position:relative;min-width:0}

/* Vmesni postanki */
.ttrev-wrap .wp-container:empty{display:none}
.ttrev-wrap .wp-container{display:grid;grid-template-columns:1fr;gap:7px;padding:2px 0}
.ttrev-wrap .wp-row{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:7px;margin:0}
.ttrev-wrap .waypoint-field input{padding-left:14px}
.ttrev-wrap .panel button.wp-remove{
  width:42px;
  min-width:42px;
  height:46px;
  padding:0;
  border-color:#edd0d0;
  background:#fff7f7;
  color:#8f2929;
  font-size:14px;
}
.ttrev-wrap .panel button.wp-remove:hover{border-color:#d7a7a7;background:#feecec}

/* Ikoni trenutne lokacije in govora */
.ttrev-wrap .panel button.field-action,
.ttrev-wrap .panel button.ttrev-voice-btn{
  width:40px;
  min-width:40px;
  height:40px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.ttrev-wrap .ttrev-from-tools{right:3px;gap:0}
.ttrev-wrap .field.ttrev-from-field input{padding-right:calc(var(--ttrev-from-tools-width, 40px) + 8px)}
.ttrev-wrap .field.has-voice input{padding-right:48px}
.ttrev-wrap .ttrev-voice-status{margin:0;max-width:100%;white-space:normal}

/* Zložljive nastavitve poti */
.ttrev-wrap .route-settings{
  padding:12px;
  border:1px solid #e3e5ea;
  border-radius:12px;
  background:#fafbfc;
}
.ttrev-wrap .route-settings-grid{
  display:grid;
  grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(360px,2fr);
  gap:10px;
  align-items:end;
}
.ttrev-wrap .setting-field,
.ttrev-wrap .cfield{display:flex;flex-direction:column;gap:6px;min-width:0;color:#4b5563;font-size:12px;font-weight:700}
.ttrev-wrap .setting-field select{
  width:100%;
  height:44px;
  min-width:0;
  margin:0;
  padding:0 36px 0 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:#1f2937;
  font-size:14px;
}
.ttrev-wrap .route-settings-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}
.ttrev-wrap .route-settings-actions .settings-action{width:100%;height:44px;padding:0 10px;overflow:hidden;text-overflow:ellipsis}
.ttrev-wrap .settings-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  margin-left:7px;
  padding:0 6px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-size:11px;
  line-height:1;
}
.ttrev-wrap #avoidCard,
.ttrev-wrap #costsCard{margin-top:10px;border-color:#e1e4e9;border-radius:11px;box-shadow:none}
.ttrev-wrap .avoid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.ttrev-wrap .avoid label{min-width:0;align-items:flex-start;line-height:1.35}
.ttrev-wrap .avoid input{margin-top:2px;accent-color:var(--primary)}
.ttrev-wrap .avoid-note{margin-top:9px}
.ttrev-wrap .costs-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ttrev-wrap .cfield::before{display:none!important;content:none!important}
.ttrev-wrap .cfield input[type="number"]{
  width:100%;
  height:42px;
  margin:0;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fff;
  color:#1f2937;
  font-size:14px;
  text-align:right;
}

/* Status, zemljevid in rezultat */
.ttrev-wrap .ttrev-status:empty{display:none}
.ttrev-wrap .ttrev-status{min-height:0;padding:1px 2px;color:#5f6671;font-size:13px;line-height:1.35}
.ttrev-wrap .ttrev-status.is-error{color:#a12222;font-weight:650}
.ttrev-wrap .ttrev-status.is-info{color:#5f6671}
.ttrev-wrap #map{
  min-height:360px;
  border:0;
  border-radius:13px;
  box-shadow:none;
}
.ttrev-wrap .map-placeholder__note{
  top:14px;
  bottom:auto;
  width:auto;
  max-width:calc(100% - 96px);
  padding:8px 12px;
  transform:translateX(-50%);
  border-radius:999px;
  font-size:12px;
  box-shadow:0 4px 12px rgba(15,23,42,.10);
}
.ttrev-wrap #map.is-loading .map-placeholder__note::after{content:" Nalagam zemljevid ..."}
.ttrev-wrap #map.has-status .map-placeholder__note{display:none}
.ttrev-wrap #map .kpis{gap:6px}
.ttrev-wrap #map .kpis .pill{padding:6px 9px;border-color:rgba(31,41,55,.18);font-size:12px;box-shadow:0 2px 8px rgba(15,23,42,.08)}
.ttrev-wrap .history-menu{right:0;left:auto;max-width:min(380px,calc(100vw - 28px))}
.ttrev-wrap .ac-list{box-shadow:0 12px 28px rgba(15,23,42,.14)}


/* v1.3.46 final premium result control overrides */
.ttrev-wrap #directionsCard .route-map-return{
  width:auto;min-width:0;height:auto;min-height:42px;padding:0 13px;
  border:1px solid #d9dde3;border-radius:11px;background:#fff;color:#374151;
  font-size:13px;font-weight:700;box-shadow:none;
}
.ttrev-wrap #directionsCard .route-map-return:hover{border-color:#c9ced7;background:#f8fafc;color:#9f2f2f}
.ttrev-wrap #directionsCard .route-action-button{
  width:auto;min-width:0;height:auto;min-height:45px;padding:0 9px;
  border:1px solid #d9dde3;border-radius:11px;background:#fff;color:#303744;
  font-size:13px;font-weight:700;box-shadow:none;
}
.ttrev-wrap #directionsCard .route-action-button:hover{border-color:#c8ced8;background:#f8fafc;color:#9f2f2f}

@media (min-width:901px) and (max-width:1099px){
  .ttrev-wrap .route-controls-grid{grid-template-columns:minmax(220px,1fr) 44px minmax(220px,1fr)}
  .ttrev-wrap .route-location-field--from{grid-column:1;grid-row:1}
  .ttrev-wrap .route-swap{grid-column:2;grid-row:1}
  .ttrev-wrap .route-location-field--to{grid-column:3;grid-row:1}
  .ttrev-wrap #wpContainer{grid-column:1/-1;grid-row:2}
  .ttrev-wrap #go{grid-column:1/-1;grid-row:3;width:100%}
  .ttrev-wrap #addWp{grid-column:1/2;grid-row:4}
  .ttrev-wrap .route-secondary-actions{grid-column:2/4;grid-row:4}
  .ttrev-wrap .route-settings-grid{grid-template-columns:1fr 1fr}
  .ttrev-wrap .route-settings-actions{grid-column:1/-1}
  .ttrev-wrap .costs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ttrev-wrap .route-results-grid{grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:20px}
  .ttrev-wrap .route-share-panel{position:static}
  .ttrev-wrap .qr-row{grid-template-columns:112px minmax(0,1fr)}
  .ttrev-wrap .qr-row img{width:112px;height:112px}
  .ttrev-wrap #wpContainer{grid-column:1/-1;grid-row:auto}
  .ttrev-wrap #go{grid-column:1/-1;grid-row:auto}
  .ttrev-wrap #addWp{grid-column:1/2;grid-row:auto}
  .ttrev-wrap .route-secondary-actions{grid-column:2/4;grid-row:auto}
}


@media (min-width:1000px) and (max-width:1099px){
  .ttrev-wrap .route-share-panel{position:sticky;top:20px}
}

@media (max-width:900px){
  .ttrev-wrap .panel{gap:9px;padding:11px 12px}
  .ttrev-wrap .route-controls-grid{
    grid-template-columns:minmax(0,1fr) 46px;
    grid-template-rows:auto auto auto auto auto auto;
    gap:8px;
  }
  .ttrev-wrap .route-location-field--from{grid-column:1;grid-row:1}
  .ttrev-wrap .route-location-field--to{grid-column:1;grid-row:2}
  .ttrev-wrap .route-swap{grid-column:2;grid-row:1/3;align-self:center}
  .ttrev-wrap #wpContainer{grid-column:1/-1;grid-row:3}
  .ttrev-wrap #addWp{grid-column:1/-1;grid-row:4;justify-self:start}
  .ttrev-wrap #go{grid-column:1/-1;grid-row:5;width:100%;height:48px;min-height:48px;font-size:15px}
  .ttrev-wrap .route-secondary-actions{grid-column:1/-1;grid-row:6}
  .ttrev-wrap .route-location-field input,
  .ttrev-wrap .waypoint-field input{height:48px;font-size:16px}
  .ttrev-wrap .route-location-field--from::after{
    content:"";
    position:absolute;
    top:calc(50% + 6px);
    left:19px;
    z-index:1;
    width:1px;
    height:calc(100% + 4px);
    background:#d9bcbc;
    pointer-events:none;
  }
  .ttrev-wrap .panel button.btn-add-stop{justify-self:start;width:auto;height:36px;min-height:36px}
  .ttrev-wrap .route-secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
  .ttrev-wrap #mySearches,
  .ttrev-wrap #settingsToggle{width:100%;min-width:0;height:44px;padding:0 8px}
  .ttrev-wrap .history-wrap{position:static}
  .ttrev-wrap .history-menu{top:calc(100% + 6px);right:0;left:0;width:auto;max-width:none}
  .ttrev-wrap .route-settings{padding:10px}
  .ttrev-wrap .route-settings-grid{grid-template-columns:1fr;gap:9px}
  .ttrev-wrap .route-settings-actions{grid-template-columns:1fr 1fr}
  .ttrev-wrap #toggleEV{grid-column:1/-1}
  .ttrev-wrap .avoid{grid-template-columns:1fr}
  .ttrev-wrap .costs-grid{grid-template-columns:1fr}
  .ttrev-wrap .wp-row{grid-template-columns:minmax(0,1fr) 44px}
  .ttrev-wrap .panel button.wp-remove{width:44px;min-width:44px;height:48px}
  .ttrev-wrap .layout{gap:10px}
  .ttrev-wrap #map{min-height:280px;height:auto;aspect-ratio:4/3;border-radius:0}
  .ttrev-wrap .map-placeholder__note{top:10px;max-width:calc(100% - 88px);padding:7px 10px;font-size:11px;white-space:nowrap}
  .ttrev-wrap .route-results-card{margin:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
  .ttrev-wrap .route-results-head{padding:13px 15px;border-top:1px solid #eceef2;border-bottom:1px solid #eceef2;background:#fff}
  .ttrev-wrap .route-results-heading{gap:8px}
  .ttrev-wrap .route-results-heading__icon{width:34px;height:34px;flex-basis:34px;border-radius:10px}
  .ttrev-wrap .route-results-heading__icon svg{width:20px;height:20px}
  .ttrev-wrap .route-results-card h3{font-size:20px}
  .ttrev-wrap #directionsCard .route-map-return{min-height:40px;padding:0 10px;font-size:12px}
  .ttrev-wrap .route-map-return__long{display:none}
  .ttrev-wrap .route-map-return__short{display:inline}
  .ttrev-wrap .route-results-body{padding:14px 15px 18px}
  .ttrev-wrap .route-results-grid{grid-template-columns:1fr;gap:18px}
  .ttrev-wrap .route-share-panel{position:static;gap:10px}
  .ttrev-wrap .route-summary-card{padding:13px;border-radius:13px}
  .ttrev-wrap .route-relation{font-size:18px}
  .ttrev-wrap .route-summary-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:11px}
  .ttrev-wrap .route-summary-kpi{justify-content:center;min-width:0;padding:0 6px;font-size:12px}
  .ttrev-wrap .route-summary-kpi svg{display:none}
  .ttrev-wrap .route-google-button{min-height:49px}
  .ttrev-wrap .dir-toolbar{gap:7px}
  .ttrev-wrap #directionsCard .route-action-button{min-height:44px;padding:0 6px;font-size:12px}
  .ttrev-wrap .route-action-button svg{width:17px;height:17px}
  .ttrev-wrap .qr-row{grid-template-columns:120px minmax(0,1fr);gap:12px;padding:11px}
  .ttrev-wrap .qr-row img{width:120px;height:120px}
  .ttrev-wrap .qr-title{font-size:15px}
  .ttrev-wrap .qr-description{font-size:12px}
  .ttrev-wrap .route-instructions-panel{padding-top:0}
  .ttrev-wrap .route-steps-head{margin-bottom:4px;padding-bottom:9px}
  .ttrev-wrap .route-timeline-item{grid-template-columns:44px minmax(0,1fr);gap:11px;padding:10px 0 13px}
  .ttrev-wrap .route-timeline-item:not(:last-child)::before{left:21px;top:44px}
  .ttrev-wrap .route-timeline-marker{width:42px;height:42px;border-radius:12px}
  .ttrev-wrap .route-timeline-marker svg{width:23px;height:23px}
  .ttrev-wrap .route-instruction-main,.ttrev-wrap .route-endpoint-place{font-size:16px}
}

@media (max-width:380px){
  .ttrev-wrap .panel{padding-right:10px;padding-left:10px}
  .ttrev-wrap .route-controls-grid{grid-template-columns:minmax(0,1fr) 44px;gap:7px}
  .ttrev-wrap .route-secondary-actions{gap:7px}
  .ttrev-wrap #mySearches,
  .ttrev-wrap #settingsToggle{font-size:12px}
  .ttrev-wrap .route-settings-actions{grid-template-columns:1fr}
  .ttrev-wrap #toggleEV{grid-column:auto}
  .ttrev-wrap .map-placeholder__note{max-width:calc(100% - 76px);overflow:hidden;text-overflow:ellipsis}
  .ttrev-wrap .route-results-head{padding-right:11px;padding-left:11px}
  .ttrev-wrap .route-results-body{padding-right:11px;padding-left:11px}
  .ttrev-wrap .route-results-heading__icon{display:none}
  .ttrev-wrap .route-results-card h3{font-size:19px}
  .ttrev-wrap #directionsCard .route-map-return{padding:0 8px}
  .ttrev-wrap .route-summary-kpis{grid-template-columns:1fr 1fr}
  .ttrev-wrap #routeCostItem{grid-column:1/-1}
  .ttrev-wrap #directionsCard .route-action-button{gap:5px}
  .ttrev-wrap .qr-row{grid-template-columns:110px minmax(0,1fr);gap:10px;padding:10px}
  .ttrev-wrap .qr-row img{width:110px;height:110px}
  .ttrev-wrap .route-timeline-item{grid-template-columns:42px minmax(0,1fr);gap:9px}
  .ttrev-wrap .route-timeline-marker{width:40px;height:40px}
  .ttrev-wrap .route-timeline-item:not(:last-child)::before{left:19px;top:42px}
}

/* ========================================================================
   v1.3.47: premium map, unified route summary, toast and route markers
   ======================================================================== */
.ttrev-wrap #map{
  min-height:520px;
  height:clamp(520px,56vw,680px);
  aspect-ratio:auto;
  border-radius:14px;
  overflow:hidden;
}
.ttrev-wrap #map .kpis.map-route-card{
  position:absolute;
  top:auto;
  right:auto;
  bottom:16px;
  left:16px;
  z-index:var(--z-map-kpi);
  display:none;
  width:min(390px,calc(100% - 32px));
  max-width:calc(100% - 32px);
  min-width:0;
  padding:14px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:16px;
  background:rgba(255,255,255,.94);
  color:#202124;
  box-shadow:0 8px 28px rgba(15,23,42,.14);
  backdrop-filter:blur(12px) saturate(1.08);
  -webkit-backdrop-filter:blur(12px) saturate(1.08);
}
.ttrev-wrap #map .kpis.map-route-card.show{display:block}
.ttrev-wrap .map-route-relation{
  display:grid;
  grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);
  align-items:center;
  gap:7px;
  min-width:0;
  font-size:18px;
  line-height:1.25;
  font-weight:750;
}
.ttrev-wrap .map-route-place{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ttrev-wrap .map-route-place:last-child{text-align:right}
.ttrev-wrap .map-route-arrow{width:22px;height:22px;fill:none;stroke:#b13535;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ttrev-wrap .map-route-metrics{display:flex;flex-wrap:wrap;align-items:center;gap:7px 13px;margin-top:9px}
/* v1.3.53: slightly larger and optically aligned map KPI values. */
.ttrev-wrap .map-route-metric{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-width:0;
  color:#252525;
  font-size:14.5px;
  line-height:1.2;
  font-weight:650;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.ttrev-wrap .map-route-metric[hidden]{display:none}
.ttrev-wrap .map-route-metric svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:#9f2f2f;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ttrev-wrap .map-route-type{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:23px;
  margin-top:9px;
  padding:3px 8px;
  border:1px solid #f0d2d2;
  border-radius:999px;
  background:#fff3f3;
  color:#7f2828;
  font:750 12px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  white-space:nowrap;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  transition:border-color .16s ease,background-color .16s ease,color .16s ease,transform .16s ease;
}
.ttrev-wrap button.map-route-type:hover{border-color:rgba(177,53,53,.36);background:#ffeaea;color:#6f2020;transform:translateY(-1px)}
.ttrev-wrap button.map-route-type:active{transform:translateY(0)}
.ttrev-wrap button.map-route-type:focus-visible{outline:3px solid rgba(177,53,53,.22);outline-offset:2px}
.ttrev-wrap button.map-route-type:disabled{opacity:.58;cursor:wait;transform:none}
.ttrev-wrap #map .ttrev-status{
  position:absolute;
  top:14px;
  left:50%;
  z-index:30;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:min(86%,440px);
  min-height:36px;
  margin:0;
  padding:7px 13px;
  transform:translateX(-50%);
  border:1px solid rgba(31,41,55,.13);
  border-radius:999px;
  background:rgba(255,255,255,.96);
  color:#28313f;
  font-size:12px;
  line-height:1.25;
  font-weight:700;
  text-align:center;
  box-shadow:0 5px 18px rgba(15,23,42,.13);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}
.ttrev-wrap #map .ttrev-status.is-leaving{opacity:0;transform:translate(-50%,-4px)}
.ttrev-wrap #map .ttrev-status[hidden]{display:none}
.ttrev-wrap #map .ttrev-status.is-success::before{content:"✓";margin-right:6px;color:#16813a;font-size:14px}
.ttrev-wrap #map .ttrev-status.is-loading::before{content:"";width:12px;height:12px;margin-right:7px;border:2px solid #e4b8b8;border-top-color:#b13535;border-radius:50%;animation:ttrev-map-spin .8s linear infinite}
.ttrev-wrap #map .ttrev-status.is-error{border-color:#efc7c7;background:#fff7f7;color:#9a2525}
.ttrev-wrap #map .ttrev-status.is-error::before{content:"!";display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;margin-right:6px;border-radius:50%;background:#b13535;color:#fff;font-size:11px;font-weight:850}
@keyframes ttrev-map-spin{to{transform:rotate(360deg)}}

.ttrev-wrap #map .fs-btn{
  top:10px;
  left:10px;
  width:42px;
  min-width:42px;
  height:42px;
  min-height:42px;
  padding:0;
  border:1px solid #dfe3e8;
  border-radius:11px;
  background:rgba(255,255,255,.97);
  color:#25303d;
  box-shadow:0 3px 12px rgba(15,23,42,.12);
  transition:transform .16s ease,border-color .16s ease,background-color .16s ease,color .16s ease;
}
.ttrev-wrap #map .fs-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ttrev-wrap #map .fs-btn:hover{border-color:#cbb3b3;background:#fff7f7;color:#9f2f2f;opacity:1;transform:translateY(-1px)}
.ttrev-wrap #map .fs-btn:focus-visible{outline:3px solid rgba(177,53,53,.24);outline-offset:2px}

/* TomTom / Mapbox control unification, fully scoped to this map. */
.ttrev-wrap #map .tt-mapcontrols-button,
.ttrev-wrap #map .mapboxgl-ctrl-group button,
.ttrev-wrap #map .maplibregl-ctrl-group button{
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  border-color:#dfe3e8!important;
  background-color:rgba(255,255,255,.97)!important;
  color:#25303d!important;
}
.ttrev-wrap #map .tt-mapcontrols-button:hover,
.ttrev-wrap #map .mapboxgl-ctrl-group button:hover,
.ttrev-wrap #map .maplibregl-ctrl-group button:hover{background-color:#fff7f7!important}
.ttrev-wrap #map .tt-mapcontrols-navigation,
.ttrev-wrap #map .mapboxgl-ctrl-group,
.ttrev-wrap #map .maplibregl-ctrl-group{
  overflow:hidden!important;
  border:1px solid #dfe3e8!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:0 3px 12px rgba(15,23,42,.12)!important;
}
.ttrev-wrap #map .mapboxgl-ctrl-top-right,
.ttrev-wrap #map .maplibregl-ctrl-top-right{top:0;right:0}
.ttrev-wrap #map .mapboxgl-ctrl-top-right .mapboxgl-ctrl,
.ttrev-wrap #map .maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0}

.ttrev-wrap .route-map-marker{
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  color:#fff;
  font:800 11px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  filter:drop-shadow(0 3px 6px rgba(15,23,42,.24));
  pointer-events:auto;
}
.ttrev-wrap .route-map-marker--start{
  width:24px;
  height:24px;
  border:3px solid #fff;
  border-radius:50%;
  background:#b13535;
}
.ttrev-wrap .route-map-marker--start span{width:6px;height:6px;border-radius:50%;background:#fff}
.ttrev-wrap .route-map-marker--waypoint{
  width:23px;
  height:23px;
  border:2px solid #fff;
  border-radius:50%;
  background:#d04a4a;
}
.ttrev-wrap .route-map-marker--finish{display:block;width:32px;height:40px;overflow:visible}
.ttrev-wrap .route-map-marker__finish-pin{display:block;width:32px;height:40px;overflow:visible}

@media (max-width:900px){
  .ttrev-wrap #map{
    min-height:320px;
    height:clamp(320px,58vh,520px);
    aspect-ratio:auto;
    border-radius:0;
  }
  .ttrev-wrap #map .kpis.map-route-card{
    right:11px;
    bottom:calc(34px + env(safe-area-inset-bottom,0px));
    left:11px;
    width:auto;
    max-width:none;
    padding:12px 13px;
    border-radius:15px;
    overflow:visible;
  }
  .ttrev-wrap .map-route-relation{font-size:16px;gap:6px}
  .ttrev-wrap .map-route-arrow{width:19px;height:19px}
  .ttrev-wrap .map-route-metrics{flex-wrap:nowrap;gap:6px 10px;margin-top:7px}
  .ttrev-wrap .map-route-metric{gap:4.5px;font-size:14px}
  .ttrev-wrap .map-route-metric svg{width:16px;height:16px;flex-basis:16px}
  .ttrev-wrap .map-route-type{min-height:21px;margin-top:7px;padding:2px 7px;font-size:11px}
  .ttrev-wrap #map .ttrev-status{top:10px;max-width:calc(100% - 120px);min-height:34px;padding:6px 10px;font-size:11px}
  .ttrev-wrap #map .fs-btn{top:10px;left:10px;width:44px;min-width:44px;height:44px;min-height:44px}
  .ttrev-wrap #map .tt-mapcontrols-button,
  .ttrev-wrap #map .mapboxgl-ctrl-group button,
  .ttrev-wrap #map .maplibregl-ctrl-group button{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
  .ttrev-wrap .panel{gap:0;padding:9px 12px 10px}
  .ttrev-wrap .route-controls-grid{grid-template-columns:minmax(0,1fr) 46px;grid-template-rows:none;grid-auto-rows:auto;row-gap:7px;column-gap:8px}
  .ttrev-wrap .route-location-field--from{grid-column:1;grid-row:1}
  .ttrev-wrap .route-location-field--to{grid-column:1;grid-row:2}
  .ttrev-wrap .route-swap{grid-column:2;grid-row:1 / span 2;place-self:center;width:44px;min-width:44px;height:44px;min-height:44px}
  .ttrev-wrap #wpContainer,
  .ttrev-wrap #addWp,
  .ttrev-wrap #go,
  .ttrev-wrap .route-secondary-actions{grid-column:1/-1;grid-row:auto}
  .ttrev-wrap #wpContainer{padding:0;gap:7px}
  .ttrev-wrap #addWp{margin:3px 0 2px;min-height:36px}
  .ttrev-wrap #go{margin-top:1px;height:48px;min-height:48px}
  .ttrev-wrap .route-secondary-actions{gap:7px;margin-top:0}
  .ttrev-wrap .route-location-field--from::after{top:calc(50% + 5px);left:19.5px;width:1px;height:calc(100% - 2px);background:#d8b7b7}
  .ttrev-wrap .route-point{left:15px;width:10px;height:10px}
  .ttrev-wrap .layout{gap:10px}
}
@media (max-width:380px){
  .ttrev-wrap #map .kpis.map-route-card{right:9px;left:9px;padding:11px}
  .ttrev-wrap .map-route-relation{font-size:15px}
  .ttrev-wrap .map-route-metrics{gap:5px 8px}
  .ttrev-wrap .map-route-metric{gap:4px;font-size:13.5px}
  .ttrev-wrap .panel{padding-right:10px;padding-left:10px}
  .ttrev-wrap .route-controls-grid{grid-template-columns:minmax(0,1fr) 44px;column-gap:7px}
}
@media (prefers-reduced-motion:reduce){
  .ttrev-wrap #map .ttrev-status,
  .ttrev-wrap #map .fs-btn{transition:none}
  .ttrev-wrap #map .ttrev-status.is-loading::before{animation:none}
}

/* ========================================================================
   v1.3.48: premium polish, compact spacing and exact route marker anchors
   ======================================================================== */
.ttrev-wrap .panel{
  gap:8px;
  padding-top:12px;
  padding-bottom:10px;
}
.ttrev-wrap .route-controls-grid{
  row-gap:8px;
  column-gap:10px;
}
/* Auto placement collapses the utility rows when there are no waypoints. */
.ttrev-wrap #wpContainer,
.ttrev-wrap #addWp,
.ttrev-wrap .route-secondary-actions{grid-row:auto}
.ttrev-wrap .route-location-field input,
.ttrev-wrap .waypoint-field input,
.ttrev-wrap .panel button.route-swap,
.ttrev-wrap .panel button.btn-primary,
.ttrev-wrap .btn-secondary{border-radius:12px}
.ttrev-wrap .panel button.route-swap{
  place-self:center;
  margin:0;
  border-color:#dde1e7;
  box-shadow:none;
}
.ttrev-wrap .route-swap svg{
  transform-origin:center;
  transition:transform .16s ease;
}
.ttrev-wrap .route-swap.is-swapping svg{transform:rotate(180deg)}
.ttrev-wrap .panel button.btn-primary,
.ttrev-wrap #go{box-shadow:0 3px 9px rgba(177,53,53,.16)}
.ttrev-wrap .panel button.btn-primary:active,
.ttrev-wrap #go:active{transform:translateY(1px)}
.ttrev-wrap .btn-secondary{font-weight:620;box-shadow:none}
.ttrev-wrap .layout{gap:10px}

/* Exact map marker geometry. The finish SVG tip sits on the bottom-center anchor. */
.ttrev-wrap .route-map-marker{filter:drop-shadow(0 2px 5px rgba(15,23,42,.20))}
.ttrev-wrap .route-map-marker--start{
  width:24px;
  height:24px;
  border:3px solid #fff;
  background:#b13535;
  box-shadow:0 0 0 1px rgba(120,34,34,.12);
}
.ttrev-wrap .route-map-marker--start span{width:7px;height:7px;background:#fff}
.ttrev-wrap .route-map-marker--waypoint{
  width:22px;
  height:22px;
  border:2px solid #fff;
  box-shadow:0 0 0 1px rgba(120,34,34,.10);
}
.ttrev-wrap .route-map-marker--finish{
  display:block;
  width:32px;
  height:40px;
  overflow:visible;
}
.ttrev-wrap .route-map-marker__finish-pin{
  display:block;
  width:32px;
  height:40px;
  overflow:visible;
}
.ttrev-wrap .route-map-marker__finish-shape{
  fill:#b13535;
  stroke:#fff;
  stroke-width:2;
  stroke-linejoin:round;
}
.ttrev-wrap .route-map-marker__finish-flag{
  fill:none;
  stroke:#fff;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Controls are separate premium touch targets rather than one technical stack. */
.ttrev-wrap #map .tt-mapcontrols-navigation,
.ttrev-wrap #map .mapboxgl-ctrl-group,
.ttrev-wrap #map .maplibregl-ctrl-group{
  display:grid!important;
  gap:6px!important;
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.ttrev-wrap #map .tt-mapcontrols-button,
.ttrev-wrap #map .mapboxgl-ctrl-group button,
.ttrev-wrap #map .maplibregl-ctrl-group button{
  border:1px solid #dfe3e8!important;
  border-radius:10px!important;
  background-color:rgba(255,255,255,.97)!important;
  box-shadow:0 3px 12px rgba(15,23,42,.11)!important;
}
.ttrev-wrap #map .mapboxgl-ctrl-group button+button,
.ttrev-wrap #map .maplibregl-ctrl-group button+button{border-top:1px solid #dfe3e8!important}

@media (prefers-reduced-motion:reduce){
  .ttrev-wrap .route-swap svg{transition:none}
  .ttrev-wrap .route-swap.is-swapping svg{transform:none}
}

/* ========================================================================
   v1.3.49: logical result hierarchy, compact KPI grid and north-locked map
   ======================================================================== */
.ttrev-wrap .route-share-title{
  margin:0;
  color:#202124;
  font-size:18px;
  line-height:1.3;
  font-weight:750;
}
.ttrev-wrap .route-map-return--desktop{display:none}
.ttrev-wrap .route-map-return--mobile{display:inline-flex}
.ttrev-wrap .route-summary-card{padding:14px}
.ttrev-wrap .route-summary-kpis[data-has-cost="false"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.ttrev-wrap #map .mapboxgl-ctrl-compass,
.ttrev-wrap #map .maplibregl-ctrl-compass,
.ttrev-wrap #map .tt-mapcontrols-button-compass{display:none!important}

@media (min-width:901px){
  .ttrev-wrap .ttrev-mobile-map-fab{display:none!important}
  .ttrev-wrap .route-results-head{display:none}
  .ttrev-wrap .route-results-body{padding:20px}
  .ttrev-wrap .route-results-grid{grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:28px}
  .ttrev-wrap .route-share-panel{position:sticky;top:20px;gap:10px}
  .ttrev-wrap .route-share-title{display:block;margin-bottom:1px}
  .ttrev-wrap .route-map-return--desktop{display:flex;width:100%;min-height:44px}
  .ttrev-wrap .route-map-return--mobile{display:none}
  .ttrev-wrap .route-summary-kpis{flex-wrap:nowrap;gap:6px;margin-top:10px}
  .ttrev-wrap .route-summary-kpi{min-width:0;padding:0 9px}
  .ttrev-wrap .route-instructions-panel{padding-top:0}
  .ttrev-wrap .route-steps-head{margin-bottom:8px}
  .ttrev-wrap .qr-row{grid-template-columns:150px minmax(0,1fr);gap:12px;padding:11px}
  .ttrev-wrap .qr-row img{width:150px;height:150px}
}

@media (max-width:900px){
  .ttrev-wrap .route-results-head{display:flex}
  .ttrev-wrap .route-results-heading__icon{display:none}
  .ttrev-wrap .route-results-heading{gap:0}
  .ttrev-wrap .route-results-card h3{font-size:20px}
  .ttrev-wrap .route-share-title{display:none}
  .ttrev-wrap .route-map-return--desktop{display:none}
  .ttrev-wrap .route-map-return--mobile{display:inline-flex}
  .ttrev-wrap .route-results-grid{grid-template-columns:1fr;gap:18px}
  .ttrev-wrap .route-share-panel{position:static;gap:10px}
}

@media (max-width:900px){
  .ttrev-wrap .route-results-head{padding:12px 14px}
  .ttrev-wrap .route-results-body{padding:13px 14px 17px}
  .ttrev-wrap .route-results-card h3{font-size:20px;line-height:1.2}
  .ttrev-wrap #directionsCard .route-map-return--mobile{min-height:44px;padding:0 11px;font-size:12px}
  .ttrev-wrap .route-summary-card{padding:12px 13px}
  .ttrev-wrap .route-relation{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);gap:6px;font-size:17px}
  .ttrev-wrap .route-summary-kpis,
  .ttrev-wrap .route-summary-kpis[data-has-cost="true"]{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    margin-top:10px;
  }
  .ttrev-wrap .route-summary-kpis[data-has-cost="false"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ttrev-wrap .route-summary-kpi{
    justify-content:center;
    min-width:0;
    min-height:34px;
    padding:0 5px;
    overflow:hidden;
    font-size:12px;
    text-overflow:ellipsis;
  }
  .ttrev-wrap .route-summary-kpi svg{display:none}
  .ttrev-wrap .route-google-button{margin-top:0}
  .ttrev-wrap .qr-row{grid-template-columns:112px minmax(0,1fr);gap:10px;padding:10px}
  .ttrev-wrap .qr-row img{width:112px;height:112px}
  .ttrev-wrap .qr-col{justify-content:center}
  .ttrev-wrap .route-instructions-panel{margin-top:6px}
  .ttrev-wrap .route-steps-head h4{font-size:17px}
}

@media (max-width:380px){
  .ttrev-wrap .route-results-head{padding-right:11px;padding-left:11px}
  .ttrev-wrap .route-results-body{padding-right:11px;padding-left:11px}
  .ttrev-wrap .route-summary-kpis,
  .ttrev-wrap .route-summary-kpis[data-has-cost="true"]{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ttrev-wrap .route-summary-kpis[data-has-cost="false"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ttrev-wrap #routeCostItem{grid-column:auto}
  .ttrev-wrap .route-summary-kpi{padding:0 3px;font-size:11px}
  .ttrev-wrap .qr-row{grid-template-columns:108px minmax(0,1fr);gap:9px;padding:9px}
  .ttrev-wrap .qr-row img{width:108px;height:108px}
}

/* ========================================================================
   v1.3.52: minimalist mode and motorway quick controls in the map KPI card
   ======================================================================== */
.ttrev-wrap .map-route-quickbar{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  min-width:0;
  margin-top:8px;
}
.ttrev-wrap .map-route-quickbar .map-route-type{margin-top:0}
.ttrev-wrap .map-route-comparison{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:3px 6px;
  min-height:22px;
  margin-top:8px;
  padding-top:7px;
  border-top:1px solid rgba(102,112,133,.18);
  color:#667085;
  font:650 12.5px/1.3 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-variant-numeric:tabular-nums;
  text-align:center;
}
.ttrev-wrap .map-route-comparison[hidden]{display:none}
.ttrev-wrap .map-route-comparison--loading{font-weight:600;color:#667085}
.ttrev-wrap .map-route-comparison--error{color:#8b3a3a}
.ttrev-wrap .map-route-comparison--neutral{color:#667085}
.ttrev-wrap .map-route-delta{white-space:nowrap}
.ttrev-wrap .map-route-delta--good{color:#237a3b}
.ttrev-wrap .map-route-delta--bad{color:#b13535}
.ttrev-wrap .map-route-delta--neutral{color:#667085}
.ttrev-wrap .map-route-delta-separator{color:#98a2b3}
.ttrev-wrap .map-quick-mode-wrap{position:relative;display:inline-flex;min-width:0}
.ttrev-wrap .map-quick-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:25px;
  margin:0;
  padding:3px 8px;
  border:1px solid #e2e5ea;
  border-radius:999px;
  background:rgba(255,255,255,.91);
  color:#4b5563;
  font:600 11px/1.15 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  white-space:nowrap;
  box-shadow:none;
  cursor:pointer;
  transition:border-color .16s ease,background-color .16s ease,color .16s ease,transform .16s ease;
}
.ttrev-wrap .map-quick-chip svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}
.ttrev-wrap .map-quick-chip--mode[aria-expanded="true"] svg{transform:rotate(180deg)}
.ttrev-wrap .map-quick-chip:hover,
.ttrev-wrap .map-quick-chip[aria-expanded="true"]{border-color:rgba(177,53,53,.25);background:#fff3f3;color:#9f2f2f;transform:translateY(-1px)}
.ttrev-wrap .map-quick-chip:active{transform:translateY(0)}
.ttrev-wrap .map-quick-chip:focus-visible{outline:3px solid rgba(177,53,53,.22);outline-offset:2px}
.ttrev-wrap .map-quick-chip:disabled,
.ttrev-wrap .map-quick-chip[aria-disabled="true"]{opacity:.58;cursor:wait;transform:none}
.ttrev-wrap .map-quick-chip--highways[data-enabled="false"]{border-color:#edd1d1;background:#fff7f7;color:#8f3030}
.ttrev-wrap .map-quick-menu{
  position:absolute;
  right:0;
  bottom:calc(100% + 7px);
  z-index:45;
  display:grid;
  width:max-content;
  min-width:148px;
  max-width:min(210px,calc(100vw - 36px));
  padding:5px;
  overflow:hidden;
  border:1px solid #dfe3e8;
  border-radius:12px;
  background:rgba(255,255,255,.98);
  box-shadow:0 10px 30px rgba(15,23,42,.17);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.ttrev-wrap .map-quick-menu[hidden]{display:none}
.ttrev-wrap .map-quick-menu__option{
  display:flex;
  align-items:center;
  width:100%;
  min-height:40px;
  padding:0 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#28313f;
  font:650 12px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  text-align:left;
  cursor:pointer;
}
.ttrev-wrap .map-quick-menu__option:hover,
.ttrev-wrap .map-quick-menu__option:focus-visible{outline:0;background:#fff3f3;color:#8f3030}
.ttrev-wrap .map-quick-menu__option.is-selected::after{content:"✓";margin-left:auto;color:#b13535;font-weight:800}
.ttrev-wrap .map-quick-menu__option:disabled{opacity:.55;cursor:wait}

@media (max-width:900px){
  .ttrev-wrap .map-route-quickbar{gap:4px;margin-top:7px}
  .ttrev-wrap .map-route-comparison{gap:2px 5px;margin-top:7px;padding-top:6px;font-size:12px}
  .ttrev-wrap .map-quick-chip{min-height:24px;padding:2px 7px;font-size:10.5px}
  .ttrev-wrap .map-quick-menu__option{min-height:44px;font-size:13px}
  .ttrev-wrap #directionsTitle{font-size:20px;white-space:nowrap}
  .ttrev-wrap .route-results-head{gap:10px}
  .ttrev-wrap .route-jump-directions{flex:0 0 auto;white-space:nowrap}
  .ttrev-wrap #routeSummaryCard{display:none}
  .ttrev-wrap .route-share-panel{gap:10px}
  .ttrev-wrap .route-results-grid{gap:18px}
  .ttrev-wrap .route-google-button{margin-top:0}
  .ttrev-wrap .route-instructions-panel{margin-top:8px}
  .ttrev-wrap .qr-row{margin-bottom:0}
}
@media (prefers-reduced-motion:reduce){
  .ttrev-wrap .map-route-type,
  .ttrev-wrap .map-quick-chip,
  .ttrev-wrap .map-quick-chip svg{transition:none}
  .ttrev-wrap .map-route-type:hover,
  .ttrev-wrap .map-quick-chip:hover{transform:none}
  .ttrev-wrap .ttrev-mobile-map-fab,
  .ttrev-wrap .route-google-button{transition:none}
  .ttrev-wrap .ttrev-mobile-map-fab{transform:none}
  .ttrev-wrap .route-google-button:active{transform:none}
}

/* ========================================================================
   v1.3.54: cleaned mobile results flow and contextual map navigation
   ======================================================================== */
.ttrev-wrap .ttrev-mobile-map-fab{
  position:fixed;
  right:14px;
  bottom:calc(var(--ttrev-floating-bottom,20px) + env(safe-area-inset-bottom,0px));
  z-index:950;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:46px;
  padding:0 15px;
  border:1px solid #d9dde3;
  border-radius:999px;
  background:rgba(255,255,255,.98);
  color:#303744;
  font:600 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  box-shadow:0 7px 22px rgba(15,23,42,.14);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(6px);
  transition:bottom .18s ease,opacity .16s ease,transform .16s ease,visibility 0s linear .16s;
  will-change:bottom,transform,opacity;
}
.ttrev-wrap .ttrev-mobile-map-fab.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
  transition-delay:0s;
}
.ttrev-wrap .ttrev-mobile-map-fab svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:#b13535;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ttrev-wrap .ttrev-mobile-map-fab:hover{border-color:#c8ced8;background:#fff;color:#9f2f2f}
.ttrev-wrap .ttrev-mobile-map-fab:focus-visible,
.ttrev-wrap .route-jump-directions:focus-visible{outline:3px solid rgba(177,53,53,.20);outline-offset:2px}
.ttrev-wrap #ttrev-route-steps{scroll-margin-top:82px}
.ttrev-wrap #map{scroll-margin-top:82px}




/* v1.3.62: alternative-route loading status; route contrast is defined in the map paint properties. */
.ttrev-wrap .map-alternative-status[hidden]{display:none}
.ttrev-wrap .map-alternative-status{margin-top:6px;padding-top:6px;border-top:1px solid rgba(102,112,133,.16);text-align:center;font-size:12px;font-weight:600;color:#667085}
.ttrev-wrap .map-alternative-status--loading{color:#667085}
.ttrev-wrap .map-alternative-status--error{color:#b13535}
