/* A trip survives tab changes; its current state remains visible above the panel. */
#amic-map-white .am-trip-context{flex:none;min-width:0;background:#f1f6e9;border-bottom:1px solid #dce6ce;order:0}
#amic-map-white .am-trip-context[hidden],#amic-map-white .am-trip-badge[hidden]{display:none}
#amic-map-white .am-trip-summary{display:flex;align-items:center;gap:10px;min-width:0;width:100%;min-height:64px;margin:0;padding:10px 16px;border:0;border-radius:0;background:transparent;color:#3f592c;text-align:left}
#amic-map-white button.am-trip-summary:hover{background:#e7efd9}
#amic-map-white button.am-trip-summary:focus-visible{outline:2px solid #71872f;outline-offset:-3px}
#amic-map-white .am-trip-summary>.am-icon{width:18px;height:18px;flex:none}
#amic-map-white .am-trip-summary>.am-icon:last-child{width:14px;margin-left:auto}
#amic-map-white .am-trip-copy{min-width:0;flex:1}
#amic-map-white .am-trip-copy strong,#amic-map-white .am-trip-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#amic-map-white .am-trip-copy strong{font:400 14px/1.5 robotomedium,Arial,sans-serif}
#amic-map-white .am-trip-copy small{margin-top:2px;color:#62734f;font:400 12px/1.4 robotomedium,Arial,sans-serif}
#amic-map-white .am-trip-context[data-state=dirty],#amic-map-white .am-trip-context[data-state=error]{background:#fff7e7;border-color:#eadcbb}
#amic-map-white .am-trip-context[data-state=dirty] .am-trip-summary,#amic-map-white .am-trip-context[data-state=error] .am-trip-summary,#amic-map-white .am-trip-context[data-state=dirty] small,#amic-map-white .am-trip-context[data-state=error] small{color:#805f25}
#amic-map-white .am-trip-badge{display:inline-grid;place-items:center;flex:none;min-width:16px;height:16px;padding:0 2px;margin-left:3px;border-radius:50%;background:#577c30;color:#fff;font:600 10px/1 Arial,sans-serif}
#amic-map-white .am-trip-badge[data-state=dirty],#amic-map-white .am-trip-badge[data-state=error]{background:#a2772c}
#amic-map-white .am-trip-badge[data-state=draft],#amic-map-white .am-trip-badge[data-state=restored]{background:#e0e7d3;color:#5d6f49}
#amic-map-white .am-discovery-count small{display:block;margin-top:3px;font:400 10px/1.35 robotomedium,Arial,sans-serif;color:#627053;max-width:140px;white-space:normal}
#amic-map-white .am-filter-context{margin:0 0 12px;padding:8px 10px;border-radius:5px;background:#f2f6e9;color:#5a6b45;font:400 12px/1.45 robotomedium,Arial,sans-serif}
#amic-map-white .am-filter-actions{display:flex;align-items:stretch;gap:8px}
#amic-map-white .am-filter-actions>.am-secondary{width:auto;flex:none;padding-inline:12px}
#amic-map-white .am-filter-actions>.am-primary{width:auto;flex:1;min-width:0;gap:6px;padding-inline:10px}
#amic-map-white .am-filter-actions svg{flex:none}
@container amic (max-width:700px){
 #amic-map-white .am-trip-summary{height:54px;min-height:54px;padding:7px 14px;gap:8px}
 #amic-map-white .am-trip-copy strong{font-size:13px;line-height:1.35}
 #amic-map-white .am-trip-copy small{font-size:11px;margin-top:1px}
 #amic-map-white .am-trip-badge{min-width:14px;height:14px;margin-left:2px;font-size:9px}
 #amic-map-white[data-trip=present][data-view=detail] .am-workspace{grid-template-rows:60px 54px minmax(60px,1fr) auto}
 #amic-map-white[data-trip=present][data-view=detail] .am-trip-context{grid-column:1;grid-row:2;z-index:5}
 #amic-map-white[data-trip=present][data-view=detail] .am-map{grid-row:3}
 #amic-map-white[data-trip=present][data-view=detail] .am-pane{grid-row:4}
 #amic-map-white[data-trip=present][data-view=detail][data-sheet=expanded] .am-workspace{grid-template-rows:60px 54px 70px minmax(0,1fr)}
 #amic-map-white[data-trip=present][data-view=detail][data-mobile-view=map] .am-workspace{grid-template-rows:60px 54px minmax(0,1fr)}
}
@media(max-width:992px) and (max-height:500px) and (orientation:landscape){
 body.amic-map-page #amic-map-white[data-trip=present] .am-workspace{grid-template-rows:52px 50px auto minmax(0,1fr);min-height:0}
 #amic-map-white[data-trip=present] .am-trip-context,#amic-map-white[data-trip=present][data-view=detail] .am-trip-context{grid-column:1;grid-row:2}
 #amic-map-white .am-trip-summary{min-height:50px;height:50px;padding:5px 12px}
 #amic-map-white[data-trip=present] .am-toolbar{grid-row:3}
 #amic-map-white[data-trip=present] .am-pane,#amic-map-white[data-trip=present][data-view=detail] .am-pane{grid-row:4}
 #amic-map-white[data-trip=present] .am-map,#amic-map-white[data-trip=present][data-view=detail] .am-map,#amic-map-white[data-trip=present][data-mobile-view=list]:not([data-view=detail]):not([data-picking=true]) .am-map{grid-row:2/5;grid-column:2}
 #amic-map-white[data-trip=present][data-mobile-view=map] .am-trip-context{grid-column:1/-1}
 #amic-map-white[data-trip=present][data-mobile-view=map] .am-map,#amic-map-white[data-trip=present][data-view=detail][data-mobile-view=map] .am-map{grid-column:1;grid-row:3/5}
}
