/* Styles extracted from user's HTML app */
:root{
  --primary:#b13535; --primary-light:#c94d4d; --primary-ink:#ffffff;
  --primary-ghost:#fde8e8; --bg:#f9f9fb; --card:#ffffff; --border:#e5e7eb;
  --ink:#1e1e1e; --muted:#6b7280; --shadow:0 6px 20px rgba(177,53,53,.15);
  --radius:12px; --pad:12px; --inline-label-pad:108px;
  --field-h:42px;
}
html,body{height:100%;margin:0;background:var(--bg);color:var(--ink);
  font:400 15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
.app{display:grid;grid-template-rows:auto 1fr;height:100%}
.panel{display:grid;gap:12px;padding:var(--pad);background:var(--card);border-bottom:1px solid var(--border)}
.topbar{ display:grid; grid-template-columns: minmax(220px,1fr) auto minmax(220px,1fr) auto auto; gap:10px; align-items:center; }
.field{position:relative}
.field input{ width:100%;height:var(--field-h);padding:0 12px;border:1px solid var(--border);border-radius:10px;background:#f9f9f9;font-size:14px;transition:.15s border-color,.15s box-shadow;margin:0;min-width:0; box-sizing:border-box; }
.field input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(177,53,53,.22)}
button,select{height:var(--field-h);border-radius:10px}
button{padding: 0 14px;border: 0;cursor: pointer;background: var(--primary);color: var(--primary-ink);font-weight: 500;transition: .15s transform,.15s opacity;white-space: nowrap;}
button:hover{opacity:.92} button:active{transform:translateY(1px)}
.btn-secondary{background: #fff;border: 1px solid #cacaca;color: #000;}
.btn-ghost{background:transparent;color:var(--primary);border:1px dashed var(--border);box-shadow:none}
.btn-danger{background:#7a1f1f}
.sel{ position:relative; min-width:0; box-sizing:border-box; }
.sel::before{ content: attr(data-label); position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:12px; color:var(--muted); pointer-events:none; }
.sel select{ width:100%; padding-left: var(--inline-label-pad); border:1px solid var(--border); background:#fff; color:#111; box-sizing:border-box; min-width:0; }
.sel select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(177,53,53,.22)}
.row{display:grid;grid-template-columns:1fr;gap:10px}
.wp-container{display:grid;grid-template-columns:1fr;gap:10px}
.grid3{display:grid;grid-template-columns:repeat(3, minmax(160px, 1fr));gap:10px}
.layout{display:flex;flex-direction:column;gap:12px;padding:12px;align-items:stretch}
#map{width:100%;background:#f3f4f6;border-radius:14px;box-shadow:var(--shadow);min-height:360px;aspect-ratio:16/9;overflow:hidden;position:relative;contain:layout paint style}
.map-shell{isolation:isolate}
.map-placeholder,
.map-placeholder__shade,
.map-placeholder__note{position:absolute;inset:0}
.map-placeholder{z-index:1;pointer-events:none}
.map-placeholder img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.map-placeholder__shade{background:linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.18) 100%)}
.map-placeholder__note{
  z-index:2; inset:auto 14px 14px 14px; padding:10px 12px; border-radius:12px;
  background:rgba(255,255,255,.92); color:#1f2937; font-size:13px; font-weight:700;
  box-shadow:0 4px 14px rgba(17,24,39,.08); backdrop-filter:saturate(1.1) blur(3px);
}
#map.is-loading .map-placeholder__note::after{content:' Nalagam zemljevid…'; font-weight:600}
#map.is-ready .map-placeholder,
#map.is-ready .map-placeholder__note{display:none}
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow)}
.card h3{margin:0;padding:10px 12px;border-bottom:1px solid var(--border);font-size:15px;color:#1f2937}
.body{padding:10px 12px;overflow:auto}
.meta{font-weight:600;margin-bottom:6px}
.hint{color:var(--muted);font-size:12px}
.pill{display:inline-block;font-size:13px;font-weight:700;padding:6px 10px;border-radius:999px;background:#fff;color:#1f2937;border:1px solid #1f2937}
.kpis{display:none;gap:8px;flex-wrap:wrap;align-items:center}
.kpis.show{display:flex}
.avoid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 12px;align-items:center}
.avoid label{display:flex;gap:8px;align-items:center;font-size:13px}
.collapse{display:none}.collapse.open{display:block}
.wp-row{display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:6px}
.wp-remove{background:#7a1f1f;color:#fff}
.dir-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 8px}
.dir-section{margin:8px 0 12px}
.steps{list-style:none;padding:0;margin:0}
.step{display:grid;grid-template-columns:auto 1fr auto;gap:10px;padding:8px 10px;border:0;border-bottom:1px solid var(--border);border-radius:0;margin-bottom:0;background:transparent}
.badge{width:22px;height:22px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:12px;background:#fde0e0;color:#7a1f1f;font-weight:700}
.road{font-weight:600}.dist{font-size:12px;color:#7a1f1f;align-self:center}
.ac-wrap{position:relative}
.ac-list{position:absolute;z-index:1000;top:100%;left:0;right:0;background:#fff;border:1px solid var(--border);border-radius:12px;margin-top:4px;box-shadow:var(--shadow);max-height:240px;overflow:auto}
.ac-item{padding:10px;cursor:pointer;border-bottom:1px solid #f1f5f9}
.ac-item:last-child{border-bottom:0}
.ac-item.active{background:#fff1f1}
.ac-empty,.ac-hint{padding:10px;color:var(--muted);font-size:12px}

/* === Stroški & poraba === */
.costs-grid{ display:grid; grid-template-columns: 1fr; gap:8px 10px; align-items:end; }
.cfield{ position:relative; min-width:0; box-sizing:border-box; }
.cfield::before{
  content: attr(data-label); position:absolute; left:12px; top:50%; transform:translateY(-50%);
  font-size:12px; color:var(--muted); pointer-events:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  max-width: calc(100% - 16px);
}
.cfield input[type="number"]{
  width:100%; height:38px; padding:0 10px 0 var(--inline-label-pad);
  border:1px solid var(--border); border-radius:10px; background:#fff; font-size:14px;
  text-align:right; font-variant-numeric: tabular-nums; box-sizing:border-box; min-width:0;
}
.cfield input[type="number"]::-webkit-outer-spin-button,
.cfield input[type="number"]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.cfield input[type="number"]{ -moz-appearance:textfield; }
.cost-note{ color:var(--muted); font-size:12px }
.cost-foot{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:6px; }

/* === QR za Google Maps === */
.qr-row{display:flex; gap:12px; align-items:center; padding:8px 10px; border:1px dashed var(--border); border-radius:12px; background:#fff; margin:6px 0 10px;}
.qr-row img{width:120px; height:120px; border-radius:10px; background:#fff;}
.qr-col{display:flex; flex-direction:column; gap:6px; min-width:0}
.qr-title{font-weight:700}
.qr-link{display:inline-flex; align-items:center; gap:6px; text-decoration:none; font-weight:600; color:#7a1f1f}
.qr-small{font-size:12px; color:var(--muted); word-break:break-all}

#directions{min-height:120px}
.steps .step:last-child{border-bottom:0}

/* === Google Maps-like green button === */
.btn-gm-green{
  background:#34a853; color:#fff; border:1px solid #2e8b47;
  border-radius:8px; font-weight:600; padding:0 14px; box-shadow:0 1px 2px rgba(0,0,0,.2);
}
.btn-gm-green:hover{ filter:brightness(0.97); }
.btn-gm-green:active{ transform:translateY(1px); }

/* === EV cluster style === */
.cluster-count{ font:700 12px/1 system-ui; color:#fff; }

@media (min-width:740px){ .costs-grid{ grid-template-columns: repeat(2, minmax(160px,1fr)); } }
@media (min-width:1200px){ .costs-grid{ grid-template-columns: repeat(4, minmax(170px,1fr)); } }
@media (max-width:1280px){
  .topbar{ grid-template-columns: minmax(180px,1fr) auto minmax(180px,1fr) auto auto; }
  #map{ height:calc(100vh - 590px); min-height:360px; }
  .avoid{grid-template-columns:1fr 1fr}
}
@media (max-width:980px){
  .layout{grid-template-columns:1fr}
  #map{ height:58vh; min-height:300px; }
  .grid3{grid-template-columns:1fr 1fr}
}
@media (max-width:740px){
  .topbar{ grid-template-columns:1fr; }
  .topbar > * { width:100%; }
  #map{ height:56vh; min-height:280px; }
  .grid3{grid-template-columns:1fr}
  .avoid{grid-template-columns:1fr}
  .dir-toolbar{justify-content:space-between}
  .qr-row{align-items:flex-start}
  .qr-row img{width:96px; height:96px}
}


@media (max-width:740px){
  #selLang, #selCurrency { display:none !important; }
}


/* Mobile: place My Location (left) and Calculate (right) on one row */
@media (max-width:740px){
  #myLoc, #go{
    width:50% !important;
    display:inline-block !important;
    vertical-align:top;
  }
  #myLoc{ /* left column */ }
  #go{ /* right column */ text-align:right; }
}



/* Mobile: #myLoc left and #go right on the same row (float-based) */
@media (max-width:740px){
  .topbar::after{ content:''; display:block; clear:both; }
  #myLoc, #go{
    width:50% !important;
    box-sizing:border-box;
  }
  #myLoc{ float:left; }
  #go{ float:right; }
}



/* Mobile: put My Location and Calculate in one row */
@media (max-width:740px){
  .topbar .btn-row-mobile{
    display:flex;
    gap:8px;
    width:100%;
  }
  .topbar .btn-row-mobile #myLoc,
  .topbar .btn-row-mobile #go{
    flex:1 1 50%;
  }
}



/* Strong mobile row for My Location + Calculate */
@media (max-width:740px){
  .topbar .btn-row-mobile{
    display:flex !important;
    gap:8px;
    width:100%;
  }
  .topbar .btn-row-mobile > button{
    flex:1 1 50% !important;
    width:auto !important;
    display:block !important;
  }
}



/* Mobile: buttons sized to text, side-by-side with small gap */
@media (max-width:740px){
  .topbar .btn-row-mobile{
    display:block !important; /* not flex/grid to allow floats */
    width:100%;
  }
  .topbar .btn-row-mobile::after{ content:''; display:block; clear:both; }
  .topbar .btn-row-mobile > button{
    width:auto !important;
    display:inline-block !important;
  }
  #myLoc{
    margin-right:5px !important;
    float:left;
  }
  #go{
    float:left;
  }
}



/* Mobile override: remove 50% width on #myLoc and #go (size to content) */
@media (max-width:740px){
  #myLoc, #go{ width:auto !important; }
}



/* Fullscreen toggle button on the map */
#map{ position:relative; }
#map .fs-btn{
  position:absolute; top:8px; left:8px; z-index:20;
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px; border:1px solid rgba(0,0,0,.15); border-radius:.5rem;
  background:#fff; color:#111; font:600 14px system-ui, -apple-system, Segoe UI, Roboto, Arial;
  cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,.1);
}
#map .fs-btn:active{ transform:translateY(1px); }
/* Fullscreen map should fill the whole screen */
#map:fullscreen, #map:-webkit-full-screen{
  width:100vw; height:100vh;
}

/* === KPI overlay on map (left-top near zoom/fullscreen) === */
#map { position: relative; }
#map .kpis{
  position:absolute;
  top:8px;
  left:56px; /* room for zoom/fullscreen button at left */
  z-index:22;
  display:none; /* visible only when .show is present */
  gap:8px;
  align-items:center;
}
#map .kpis.show{ display:flex; }
#map .kpis .pill{ margin:0; }
/* Keep it readable on mobile (≤900px) */
@media (max-width:900px){
  #map .kpis{ left:52px; right:8px; overflow:auto; max-width:calc(100% - 60px); }
}

#map .fs-btn[hidden]{display:none !important;}

/* === v1.2.2 desktop-only CLS fix (mobile unchanged from v1.2.0) === */

@media (min-width:741px) and (max-width:1280px){
  .topbar{
    grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr) auto;
  }
}

@media (min-width:1281px){
  .topbar{
    grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr) auto;
  }
}


/* === v1.3.0: inline location action + recent searches + alternative route badges === */
.field.has-action input{padding-right:46px}
button.field-action{
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:32px; min-width:32px; height:32px; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border); border-radius:999px; background:#fff; color:#1f2937;
  box-shadow:none; z-index:2;
}
button.field-action:hover{background:#f8fafc; opacity:1}
button.field-action:active{transform:translateY(-50%)}

.topbar .btn-row-mobile{display:flex; gap:8px; align-items:stretch; min-width:0}
.topbar .btn-row-mobile > button,
.topbar .btn-row-mobile > .history-wrap{flex:1 1 0; min-width:0}
.history-wrap{position:relative; min-width:0}
.history-wrap > button{width:100%}

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

button.route-badge{
  all:unset; cursor:pointer; display:inline-flex; align-items:center; gap:6px;
  padding:8px 12px; border-radius:999px; background:#fff; border:1px solid #d1d5db;
  box-shadow:0 6px 18px rgba(17,24,39,.16); color:#1f2937;
}
button.route-badge:hover{border-color:#9ca3af}
button.route-badge.is-active{
  border-color:#b13535; background:#fff7f7; color:#7a1f1f;
  box-shadow:0 8px 22px rgba(177,53,53,.18);
}
.route-badge__main{font-size:13px; font-weight:800}
.route-badge__sep{font-size:12px; opacity:.65}
.route-badge__sub{font-size:12px; font-weight:700}

@media (max-width:740px){
  .topbar .btn-row-mobile{
    display:flex !important;
    gap:8px !important;
    width:100%;
  }
  .topbar .btn-row-mobile > button,
  .topbar .btn-row-mobile > .history-wrap{
    flex:1 1 0 !important;
    width:auto !important;
    float:none !important;
    margin-right:0 !important;
  }
  .history-menu{
    left:0; right:auto; width:min(100%, calc(100vw - 24px));
  }
  button.route-badge{
    padding:7px 10px;
    max-width:220px;
  }
  .route-badge__main,.route-badge__sub{font-size:12px}
}


/* === v1.3.1: history button polish + clearer alternative route colors === */
#mySearches{
  display:flex; align-items:center; justify-content:center;
  min-width:0; padding:0 10px; font-size:13px; line-height:1.1;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
#go{min-width:0}

button.route-badge.route-badge--alt1{
  border-color:#f59e0b; background:#fffaf0; color:#92400e;
}
button.route-badge.route-badge--alt2{
  border-color:#fbbf24; background:#fffbeb; color:#a16207;
}
button.route-badge.route-badge--active{
  border-color:#b13535; background:#fff7f7; color:#7a1f1f;
  box-shadow:0 8px 22px rgba(177,53,53,.18);
}
button.route-badge.route-badge--alt1:hover{border-color:#d97706}
button.route-badge.route-badge--alt2:hover{border-color:#f59e0b}
button.route-badge.route-badge--active:hover{border-color:#b13535}

@media (max-width:740px){
  #mySearches{font-size:12px; padding:0 8px}
}


/* === v1.3.2: one alternative route + faster label + tighter mobile history UI === */
.topbar{position:relative}
#mySearches{padding:0 14px;text-align:center;justify-content:center;align-items:center}
.history-wrap > button{padding-left:14px;padding-right:14px;text-align:center}
.route-badge,
button.route-badge{
  all:unset; display:inline-flex; align-items:center; justify-content:center;
  padding:7px 12px; border-radius:999px; background:#fff7f7; border:1px solid #b13535;
  box-shadow:0 8px 22px rgba(177,53,53,.18); color:#7a1f1f; font-size:12px; font-weight:800;
  pointer-events:none; user-select:none;
}
.route-badge:hover,
button.route-badge:hover{border-color:#b13535}
.route-badge.route-badge--fastest,
.route-badge--fastest{
  background:#fff7f7; border-color:#b13535; color:#7a1f1f;
}
@media (max-width:740px){
  .topbar .btn-row-mobile{display:flex !important; gap:8px !important; align-items:stretch !important}
  .topbar .btn-row-mobile > .history-wrap{flex:0 0 132px !important; width:132px !important; min-width:132px !important}
  .topbar .btn-row-mobile > #go{flex:1 1 auto !important; width:auto !important}
  #mySearches{font-size:12px; padding:0 12px; text-align:center; justify-content:center}
  .history-wrap{position:static !important}
  .history-menu{left:0 !important; right:0 !important; top:calc(100% + 6px) !important; width:auto !important; max-width:none !important}
}


/* === v1.3.3: mobile buttons 50/50 + centered labels + desktop padding for My searches === */
.topbar .btn-row-mobile > #go,
.topbar .btn-row-mobile .history-wrap > #mySearches{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.2;
}

@media (min-width:741px){
  .topbar .btn-row-mobile .history-wrap > #mySearches{
    padding-left:16px !important;
    padding-right:16px !important;
  }
}

@media (max-width:740px){
  .topbar .btn-row-mobile{
    display:flex !important;
    width:100% !important;
    gap:8px !important;
    align-items:stretch !important;
  }
  .topbar .btn-row-mobile > .history-wrap,
  .topbar .btn-row-mobile > #go{
    flex:1 1 0 !important;
    width:calc(50% - 4px) !important;
    min-width:0 !important;
    max-width:none !important;
  }
  .topbar .btn-row-mobile .history-wrap > #mySearches,
  .topbar .btn-row-mobile > #go{
    width:100% !important;
    min-width:0 !important;
    padding-left:12px !important;
    padding-right:12px !important;
    font-size:13px !important;
    justify-content:center !important;
    text-align:center !important;
  }
  .history-wrap{
    position:static !important;
  }
  .history-menu{
    left:0 !important;
    right:0 !important;
    top:calc(100% + 6px) !important;
    width:auto !important;
    max-width:none !important;
  }
}


/* === v1.3.4: remove alternative route UI, white fastest badge, keep mobile buttons stable === */
.route-badge,
button.route-badge{
  all:unset;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid #1f2937;
  box-shadow:0 8px 22px rgba(17,24,39,.14);
  color:#1f2937;
  font-size:12px;
  font-weight:800;
  pointer-events:none;
  user-select:none;
}
.route-badge.route-badge--fastest,
.route-badge--fastest,
button.route-badge.route-badge--fastest{
  background:#fff;
  border-color:#1f2937;
  color:#1f2937;
}


/* === v1.3.5: route type selector + stacked directions + cleaned badges === */
.toolbar-row{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.route-type-select{min-width:170px}
.route-type-select select{min-width:150px}
.layout{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
}
.layout > .card{
  width:100%;
  min-width:0;
}
#map{
  aspect-ratio:16/9;
  min-height:360px;
  height:auto !important;
}
.route-badge,
button.route-badge,
.route-badge.route-badge--fastest,
.route-badge--fastest,
.route-badge.route-badge--type{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  color:#1f2937;
  border:1px solid #1f2937;
  box-shadow:0 8px 20px rgba(15,23,42,.10);
  font-size:13px;
  font-weight:700;
  line-height:1;
}
.topbar .btn-row-mobile{
  display:flex;
  gap:8px;
  align-items:stretch;
}
.topbar .btn-row-mobile > .history-wrap,
.topbar .btn-row-mobile > #go{
  flex:1 1 0;
  min-width:0;
}
#mySearches,
#go{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding-left:14px;
  padding-right:14px;
}
.history-wrap{min-width:0}
.history-wrap > #mySearches{width:100%}
@media (max-width:740px){
  #map{
    aspect-ratio:4/3;
    min-height:300px;
  }
  .route-type-select{min-width:140px}
  .topbar .btn-row-mobile{
    display:flex !important;
    gap:8px !important;
  }
  .topbar .btn-row-mobile > .history-wrap,
  .topbar .btn-row-mobile > #go{
    flex:1 1 0 !important;
    width:calc(50% - 4px) !important;
    min-width:0 !important;
  }
  .history-wrap{
    position:static !important;
  }
  .history-menu{
    left:0 !important;
    right:0 !important;
    width:auto !important;
    max-width:none !important;
  }
}


/* === v1.3.6: compact route type dropdown without title label === */
.route-type-select{
  min-width:126px !important;
  flex:0 0 auto;
}
.route-type-select::before{
  content:none !important;
  display:none !important;
}
.route-type-select select{
  min-width:126px !important;
  padding-left:12px !important;
  padding-right:32px !important;
}
@media (max-width:740px){
  .route-type-select{min-width:118px !important;}
  .route-type-select select{min-width:118px !important;}
}


/* === v1.3.7: mobile horizontal overflow fix for map container after stacked directions === */
.ttrev-wrap,
.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{overflow-x:clip;}
.ttrev-wrap .layout{overflow-x:clip;}
.ttrev-wrap #map{
  display:block;
  width:100%;
  margin:0;
  box-sizing:border-box;
}
.ttrev-wrap .map-placeholder,
.ttrev-wrap .map-placeholder img{
  max-width:100%;
}
@media (max-width:740px){
  .ttrev-wrap .layout{padding-left:12px; padding-right:12px;}
  .ttrev-wrap #map{aspect-ratio:4/3; min-height:280px; height:auto !important;}
}


/* === v1.3.8: shorter recent searches, centered placeholder, route badge lower, copy route URL icon === */
.map-placeholder__note{
  inset:auto;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(92%, 460px);
  text-align:center;
  padding:12px 14px;
  border:1px solid rgba(31,41,55,.14);
  background:rgba(255,255,255,.96);
}
.history-item__title{
  display:block;
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.history-item__meta{display:none !important;}
.dir-toolbar{align-items:center;}
.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;
}
.route-badge.route-badge--type,
.route-badge--floating{
  padding:7px 12px;
  background:#fff;
  color:#1f2937;
  border:1px solid #1f2937;
  box-shadow:0 8px 18px rgba(15,23,42,.12);
}
@media (max-width:740px){
  .map-placeholder__note{
    width:min(92%, 320px);
    font-size:12px;
    padding:10px 12px;
  }
}


.route-ad-wrap{margin:0 12px 12px}
.route-ad-wrap[hidden]{display:none !important}
.route-ad-wrap ins.adsbygoogle{display:block;min-height:0}
