/* Charger map (findacharger.php): info-window pricing and Autocharge note, the filter chips,
   and the location list cards. Plain CSS rather than part of evcs.scss so these do not wait
   on a CodeKit rebuild. Colours follow scss/page-findacharger.scss and scss/map.scss. */

/* ---- Info window: pricing -------------------------------------------------------------- */

.loc-pricing { width: 306px; max-width: 100%; margin: 12px auto 4px; }
.loc-pricing-loading { font-size: .8rem; color: #8a8a8a; text-align: center; padding: 10px 0; }
.lp-unavailable { font-size: .8rem; color: #8a8a8a; text-align: center; padding: 6px 0; }

.lp-type { background: #fff; border-radius: 10px; box-shadow: 0 0 10px 0 rgba(0,0,0,.15);
           padding: 12px 14px; margin-bottom: 10px; }
.lp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.lp-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #00619c; }
.lp-price { font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: #0d0d0d; }
.lp-price span { font-size: .8rem; font-weight: 500; color: #555; margin-left: 2px; }
.lp-fee { font-size: .72rem; color: #555; text-align: right; line-height: 1.3; }
.lp-fee strong { font-size: .9rem; color: #0d0d0d; }

.lp-chart { position: relative; margin-top: 12px; padding-top: 18px; }
.lp-zones { position: absolute; top: 0; left: 0; right: 0; bottom: 15px; pointer-events: none; }
.lp-zone { position: absolute; top: 0; height: 100%; background: rgba(241,241,241,.7);
           border-left: 1px solid rgba(0,0,0,.05); }
.lp-zone.active { background: rgba(213,212,212,.5); }
.lp-labels { position: absolute; top: 0; left: 0; right: 0; height: 18px; }
.lp-labels div { position: absolute; transform: translateX(-50%); font-size: .7rem; font-weight: 500;
                 color: #0d0d0d; white-space: nowrap; }
.lp-bars { position: relative; display: flex; align-items: flex-end; justify-content: space-between;
           height: 36px; border-bottom: 1px solid #333; }
.lp-bar { width: 3.6%; border-radius: 2px 2px 0 0; background: #00619c; opacity: .8; }
.lp-bar.now { opacity: 1; background: rgba(240,100,50,.75); }
.lp-axis { position: relative; height: 15px; }
.lp-axis div { position: absolute; transform: translateX(-50%); font-size: .65rem; font-weight: 500; color: #0d0d0d; }

.lp-note { font-size: .7rem; color: #777; text-align: center; margin: 2px 4px 0; }

/* "Autocharge supported" note at the top of the info window, and the bolt on each charger
   that has it. Colours follow the info window's existing blue banner. */
.loc-autocharge { display: flex; align-items: flex-start; gap: 10px; width: 306px; max-width: 100%;
                  margin: 10px auto; padding: 10px 12px; border-radius: 10px;
                  background: #E7EFF6; border: 1px solid #B9CFE2; }
.loc-autocharge > .fa-bolt { flex: none; width: 26px; height: 26px; line-height: 26px; text-align: center;
                             border-radius: 50%; background: #00395F; color: #fff; font-size: .8rem; }
.loc-autocharge strong { display: block; font-size: .85rem; color: #00395F; }
.loc-autocharge span { display: block; font-size: .75rem; color: #3d4a54; line-height: 1.35; }
.loc-autocharge span .fa-bolt, .loc-autocharge-mark { color: #00619C; }

/* ---- Filter chips ------------------------------------------------------------------- */

#locations_list .connector-selector {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 6px;
    overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    /* Let the row run to the panel edge so it reads as scrollable. */
    margin-right: -15px; padding-right: 15px;
}
#locations_list .connector-selector::-webkit-scrollbar { display: none; }
#locations_list .connector-selector > div { flex: none; }

.connector-selector .chip-sep { flex: none; width: 1px; align-self: stretch; margin: 3px 2px; background: #d5d8da; }
.connector-selector .fchip { font-size: .85rem; }
.connector-selector .fchip .fa-bolt { font-size: .75rem; margin-right: 2px; }

/* Only shown while a filter is on. */
.map-filter-summary { display: flex; justify-content: space-between; align-items: center;
                      font-size: .75rem; color: #6c7276; margin-top: 6px; }
.map-filter-summary.d-none { display: none !important; }
.map-filter-summary a { color: #00619C; font-weight: 600; }
.map-filter-summary { gap: 10px; }
.map-filter-summary #map-filter-count { margin-right: auto; }

/* ---- Location list cards (views/location-list-card.php) ----------------------------------- */
.lc-header { padding: 10px 20px; font-size: .78rem; color: #6c7276; background: #f7fafc;
             border-bottom: 1px solid #e6eaee; }
.lc-header span { color: #9aa0a5; }

.lc { padding: 14px 20px; border-bottom: 1px solid #e6eaee; background: #fff; cursor: pointer;
      transition: background-color .12s ease; }
.lc:hover { background: #f7fafc; }
.lc:focus { outline: none; }
.lc:focus-visible { box-shadow: inset 3px 0 0 #00619C; }

.lc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lc-name { font-size: 1rem; font-weight: 600; color: #0d0d0d; line-height: 1.3; }
.lc-dist { flex: none; font-size: .78rem; font-weight: 600; color: #00619C; }
.lc-addr { font-size: .8rem; color: #6c7276; margin-top: 2px; }

.lc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.lc-tag { font-size: .72rem; font-weight: 500; line-height: 1; padding: 5px 8px; border-radius: 6px;
          background: #f1f4f6; color: #3d4a54; white-space: nowrap; }
.lc-tag .fa-circle { font-size: .5rem; vertical-align: middle; margin-right: 2px; }
.lc-avail.ok   { background: #e8f5ee; color: #00803d; }
.lc-avail.busy { background: #fdecec; color: #c62828; }
.lc-avail.off  { background: #f1f4f6; color: #8a9196; }
.lc-ac { background: #E7EFF6; color: #00395F; }
.lc-ac .fa-bolt { font-size: .65rem; }
.lc-coming { background: #fff1ea; color: #c4501e; }

.lc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.lc-connectors { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .7rem; color: #72777C; }
.lc-connectors span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.lc-connectors img { height: 18px; filter: grayscale(100%); opacity: .6; }
.lc-actions { flex: none; display: flex; gap: 12px; font-size: .78rem; font-weight: 600; }
.lc-actions a { color: #00619C; text-decoration: none; }
.lc-actions a:hover { text-decoration: underline; }
.loc-autocharge span a { color: #00619C; font-weight: 600; white-space: nowrap; }
