.wehamba-trip-app{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);font-family:inherit;position:relative;background:#fff}
.wehamba-trip-planbar{padding:10px 12px;background:#fff;border-bottom:1px solid #d9dee5;display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;box-sizing:border-box}
.wehamba-trip-fields,.wehamba-trip-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.wehamba-trip-fields input{height:42px;min-width:220px;padding:0 12px;border:1px solid #b9c2cc;border-radius:7px;font-size:16px;box-sizing:border-box}
.wehamba-trip-planbar button,.wehamba-trip-add-stop{min-height:42px;padding:8px 14px;border:0;border-radius:7px;font-weight:700;cursor:pointer;background:#123a63;color:#fff}
.wehamba-trip-planbar button:disabled,.wehamba-trip-add-stop:disabled{opacity:.55;cursor:default}
.wehamba-trip-locations-btn{background:#237a46!important}.wehamba-trip-clear-btn{background:#66717d!important}
.wehamba-trip-map{width:100%;height:68dvh;min-height:520px}.wehamba-trip-status{padding:7px 12px;text-align:center;font-size:13px;background:#f6f8fa;border-top:1px solid #e1e5e9}
.wehamba-trip-itinerary{max-width:900px;margin:0 auto;padding:12px 16px 22px;box-sizing:border-box}.wehamba-trip-itinerary-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:4px 0 10px}.wehamba-trip-summary{font-size:13px;color:#59636e}
.wehamba-trip-stop-list{list-style:none;margin:0;padding:0;border-top:1px solid #e0e4e8}.wehamba-trip-stop-list li{display:flex;align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid #e0e4e8}.trip-num{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#123a63;color:#fff;font-weight:800;flex:0 0 30px}.trip-stop-copy,.wehamba-trip-stop-list li>span:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}.wehamba-trip-stop-list small{color:#69737d}.trip-remove{border:0;background:transparent;font-size:24px;line-height:1;cursor:pointer;padding:8px;color:#6a737d}
.wehamba-trip-popup-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}.wehamba-trip-add-stop{font-size:13px;min-height:36px;padding:7px 11px}.wehamba-trip-popup .wm-google-link{margin-top:0!important}
@media(max-width:700px){.wehamba-trip-planbar{align-items:stretch}.wehamba-trip-fields,.wehamba-trip-actions{width:100%}.wehamba-trip-fields input{width:100%;min-width:0}.wehamba-trip-route-btn{width:100%}.wehamba-trip-actions button{flex:1}.wehamba-trip-map{height:64dvh;min-height:480px}.wehamba-trip-itinerary{padding-left:12px;padding-right:12px}}
@supports not (height:1dvh){.wehamba-trip-map{height:68vh}@media(max-width:700px){.wehamba-trip-map{height:64vh}}}

/* v0.6.1 route-distance and category filters */
.wehamba-trip-filterbar{display:flex;gap:8px;align-items:end;justify-content:center;flex-wrap:wrap;width:100%}
.wehamba-trip-radius-label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:#46515c}
.wehamba-trip-radius{height:42px;min-width:125px;padding:0 10px;border:1px solid #b9c2cc;border-radius:7px;background:#fff;font-size:16px}
.wehamba-trip-categories-btn{background:#fff!important;color:#123a63!important;border:1px solid #9eb0c2!important}
.wehamba-trip-category-panel{width:min(760px,100%);background:#f7f9fb;border:1px solid #d9dee5;border-radius:8px;padding:10px;box-sizing:border-box}
.wehamba-trip-category-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.wehamba-trip-category-clear{min-height:34px!important;padding:5px 10px!important;background:#66717d!important}
.wehamba-trip-category-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 10px}
.wehamba-trip-category-option{display:flex;align-items:center;gap:7px;min-height:40px;padding:4px 6px;background:#fff;border:1px solid #e0e4e8;border-radius:6px;font-size:14px;min-width:0}
.wehamba-trip-category-option input{width:18px;height:18px;flex:0 0 auto}
.wehamba-trip-category-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center;flex:0 0 24px}
.wehamba-trip-category-icon img{max-width:22px;max-height:22px;object-fit:contain}
.wehamba-trip-category-option>span:last-child{white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){
 .wehamba-trip-filterbar{align-items:stretch}
 .wehamba-trip-radius-label{width:100%}
 .wehamba-trip-radius{width:100%}
 .wehamba-trip-categories-btn,.wehamba-trip-locations-btn,.wehamba-trip-clear-btn{flex:1 1 calc(50% - 4px)}
 .wehamba-trip-category-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:390px){
 .wehamba-trip-category-list{grid-template-columns:1fr}
}

/* v0.6.3 route letters, leg distances and directions popup */
.trip-leg{margin-top:3px;color:#55616d;font-weight:600}
.wehamba-trip-route-popup{min-width:210px;max-width:280px}
.wehamba-trip-route-title{display:flex;align-items:center;gap:8px;font-size:16px;margin-bottom:4px}
.wehamba-trip-route-letter{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#173a60;color:#fff;font-weight:700;flex:0 0 28px}
.wehamba-trip-route-subtitle{margin:3px 0;color:#4f5964}
.wehamba-trip-route-leg{margin:7px 0;font-weight:600}
.wehamba-trip-directions-btn{display:block;margin-top:9px;padding:10px 12px;border-radius:7px;background:#173a60;color:#fff!important;text-decoration:none!important;text-align:center;font-weight:700}

/* v0.6.4 Save Trip merged into route-letter/directions build */
.wehamba-trip-save-clear{
  display:flex;
  gap:8px;
  flex:1 1 100%;
  width:100%;
}
.wehamba-trip-save-btn,
.wehamba-trip-clear-btn{
  flex:1 1 50%;
}
.wehamba-trip-save-btn{
  background:#123a63!important;
  color:#fff!important;
}
.wehamba-trip-save-btn:disabled{opacity:.45}
@media(max-width:700px){
  .wehamba-trip-save-clear{width:100%}
  .wehamba-trip-save-btn,
  .wehamba-trip-clear-btn{flex:1 1 calc(50% - 4px)}
}

/* v0.6.8 Trip Planner autocomplete — match Camping map */
.wehamba-trip-input-wrap{position:relative;min-width:0;flex:1 1 0}
.wehamba-trip-input-wrap input{
  width:100%;box-sizing:border-box;padding-right:46px
}
.wehamba-trip-input-clear{
  position:absolute;right:1px;top:1px;bottom:1px;
  width:44px;min-width:44px;border:0;border-left:1px solid #d8dde3;
  background:#fff;color:#3f4a55;font-size:30px;font-weight:400;
  line-height:1;cursor:pointer;padding:0;z-index:6;border-radius:0 6px 6px 0
}
.wehamba-trip-input-clear[hidden]{display:none}
.wehamba-trip-suggestions{
  position:absolute;left:0;right:0;top:calc(100% + 2px);z-index:1010;
  background:#fff;border:1px solid #d9dde2;border-radius:0 0 6px 6px;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
  overflow:hidden;max-height:280px;overflow-y:auto
}
.wehamba-trip-suggestions[hidden]{display:none}
.wehamba-trip-suggestion{
  display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #e2e5e8;
  background:#fff;padding:12px 14px;cursor:pointer;color:#1f2933
}
.wehamba-trip-suggestion:last-child{border-bottom:0}
.wehamba-trip-suggestion strong{
  display:block;font-size:16px;line-height:1.25;font-weight:700;color:#20262d
}
.wehamba-trip-suggestion small{
  display:block;margin-top:3px;color:#68727d;font-size:14px;line-height:1.25
}
.wehamba-trip-suggestion:hover,.wehamba-trip-suggestion:focus{
  background:#f5f7f9;outline:none
}
@media(max-width:640px){
  .wehamba-trip-fields{align-items:stretch}
  .wehamba-trip-input-wrap{flex:1 1 100%;width:100%}
}


/* v0.6.9 — force Trip Planner autocomplete to use the Camping-map appearance.
   These selectors intentionally outrank .wehamba-trip-planbar button. */
.wehamba-trip-planbar button.wehamba-trip-input-clear{
  position:absolute!important;
  right:1px!important;top:1px!important;bottom:1px!important;
  width:44px!important;min-width:44px!important;height:auto!important;min-height:0!important;
  padding:0!important;margin:0!important;
  border:0!important;border-left:1px solid #d8dde3!important;
  border-radius:0 6px 6px 0!important;
  background:#fff!important;color:#3f4a55!important;
  font-size:30px!important;font-weight:400!important;line-height:1!important;
  box-shadow:none!important;
}
.wehamba-trip-planbar button.wehamba-trip-input-clear:hover,
.wehamba-trip-planbar button.wehamba-trip-input-clear:active,
.wehamba-trip-planbar button.wehamba-trip-input-clear:focus{
  background:#f3f5f7!important;color:#222!important;
}
.wehamba-trip-planbar button.wehamba-trip-input-clear[hidden]{display:none!important}

.wehamba-trip-planbar .wehamba-trip-suggestions{
  position:absolute!important;z-index:10000!important;
  top:calc(100% + 4px)!important;left:0!important;right:0!important;
  box-sizing:border-box!important;max-width:100%!important;
  background:#fff!important;
  border:0!important;border-top:1px solid #e1e1e1!important;
  border-radius:0 0 7px 7px!important;
  box-shadow:0 4px 10px rgba(0,0,0,.25)!important;
  overflow:hidden!important;max-height:280px!important;overflow-y:auto!important;
}
.wehamba-trip-planbar .wehamba-trip-suggestions[hidden]{display:none!important}

.wehamba-trip-planbar button.wehamba-trip-suggestion{
  display:flex!important;flex-direction:column!important;gap:2px!important;
  width:100%!important;height:auto!important;min-height:0!important;
  margin:0!important;padding:10px 12px!important;
  border:0!important;border-bottom:1px solid #eee!important;border-radius:0!important;
  background:#fff!important;color:#222!important;
  text-align:left!important;
  font-size:14px!important;font-weight:400!important;line-height:1.25!important;
  white-space:normal!important;box-shadow:none!important;
}
.wehamba-trip-planbar button.wehamba-trip-suggestion:last-child{
  border-bottom:0!important;
}
.wehamba-trip-planbar button.wehamba-trip-suggestion:hover,
.wehamba-trip-planbar button.wehamba-trip-suggestion:active,
.wehamba-trip-planbar button.wehamba-trip-suggestion:focus{
  background:#f3f5f7!important;color:#222!important;outline:none!important;
}
.wehamba-trip-planbar button.wehamba-trip-suggestion strong{
  display:block!important;
  font-weight:700!important;font-size:15px!important;line-height:1.25!important;
  color:#222!important;
}
.wehamba-trip-planbar button.wehamba-trip-suggestion small{
  display:block!important;margin-top:0!important;
  font-size:12px!important;font-weight:400!important;line-height:1.25!important;
  color:#666!important;
}


/* v0.8.2 — guide the Trip Planner workflow: route first, filters second. */
.wehamba-trip-radius:disabled,
.wehamba-trip-categories-btn:disabled,
.wehamba-trip-locations-btn:disabled{
  opacity:.48;
  cursor:not-allowed!important;
}
.wehamba-trip-route-first-note{
  flex:1 1 100%;
  padding:2px 4px 0;
  color:#69737d;
  font-size:12px;
  line-height:1.35;
  text-align:center;
}
.wehamba-trip-route-first-note[hidden]{display:none!important}

/* v0.8.34 — Trip Planner title banner, matching the dark-blue feature header style. */
.wehamba-trip-title-banner{
  width:100%;
  box-sizing:border-box;
  background:#123a63;
  color:#fff;
  text-align:center;
  padding:8px 12px 7px;
  line-height:1.15;
}
.wehamba-trip-title{font-size:24px;font-weight:800;line-height:1.15}
.wehamba-trip-tagline{margin-top:2px;font-size:14px;font-weight:700;line-height:1.2}
@media(max-width:700px){
  .wehamba-trip-title-banner{padding:8px 10px 7px}
  .wehamba-trip-title{font-size:23px}
  .wehamba-trip-tagline{font-size:13px}
}
