/* Fuel Finder - scoped styles for tarifs-refonte.test */
@font-face {
  font-family: DSEG7;
  src: url('https://cdn.jsdelivr.net/npm/dseg7@1.0.0/fonts/DSEG7Classic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

.fuel-finder {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  color: #17252b;
  line-height: 1.5;
}

.fuel-finder .finder {
  margin: 0;
  border: 1px solid #9baeb9;
  border-top: 5px solid #e85d04;
  background: #fff;
}

.fuel-finder .finder-title {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(#f7f9fa, #e3e9ed);
  border-bottom: 1px solid #9baeb9;
}

.fuel-finder .finder-title > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: #064f91;
  color: #fff;
  font: bold 15px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

.fuel-finder .finder-title h2 {
  margin: 0;
  color: #153f5c;
  font-size: 22px;
}

.fuel-finder .finder-title p {
  margin: 0;
}

.fuel-finder .eyebrow {
  margin: 0 0 7px;
  color: #9b3100;
  font: bold 12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  letter-spacing: 1.2px;
}

.fuel-finder form {
  padding: 20px;
}

/* Fuel choice */
.fuel-finder .fuel-choice {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.fuel-finder .fuel-choice legend {
  margin-bottom: 8px;
  color: #344b57;
  font: bold 13px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 15px;
}

.fuel-finder .fuel-choice > div {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.fuel-finder .fuel-choice label {
  position: relative;
}

.fuel-finder .fuel-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.fuel-finder .fuel-choice label span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 5px;
  border: 2px solid #97aab5;
  background: #eef3f6;
  color: #173d55;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
}

.fuel-finder .fuel-choice input:checked + span {
  border-color: #003665;
  background: #064f91;
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}

.fuel-finder .fuel-choice input:focus-visible + span {
  outline: 3px solid #e85d04;
  outline-offset: 2px;
}

/* Fuel color vars */
.fuel-finder [data-fuel="gazole"], .fuel-finder .fuel-gazole { --fuel-color: #f0c400; --fuel-ink: #2c2500; --fuel-soft: #fff7cf; --fuel-display: #ffd84d; }
.fuel-finder [data-fuel="sp95-e10"], .fuel-finder .fuel-sp95-e10 { --fuel-color: #00796b; --fuel-ink: #fff; --fuel-soft: #d9f3ee; --fuel-display: #70dfc9; }
.fuel-finder [data-fuel="sp95"], .fuel-finder .fuel-sp95 { --fuel-color: #267a3f; --fuel-ink: #fff; --fuel-soft: #e0f2e4; --fuel-display: #83d79a; }
.fuel-finder [data-fuel="sp98"], .fuel-finder .fuel-sp98 { --fuel-color: #006b45; --fuel-ink: #fff; --fuel-soft: #d9eee5; --fuel-display: #6dd3a5; }
.fuel-finder [data-fuel="e85"], .fuel-finder .fuel-e85 { --fuel-color: #006ba6; --fuel-ink: #fff; --fuel-soft: #dceefa; --fuel-display: #70c7f2; }
.fuel-finder [data-fuel="gplc"], .fuel-finder .fuel-gplc { --fuel-color: #4e4a9e; --fuel-ink: #fff; --fuel-soft: #e8e6f8; --fuel-display: #aaa5ec; }

.fuel-finder .fuel-choice label[data-fuel] span {
  border-left: 8px solid var(--fuel-color);
}

.fuel-finder .fuel-choice label[data-fuel] input:checked + span {
  border-color: var(--fuel-color);
  background: var(--fuel-color);
  color: var(--fuel-ink);
  box-shadow: inset 0 0 0 2px #fff;
}

/* Search status */
.fuel-finder .search-status {
  margin: 0;
  padding: 11px 20px;
  background: #eef5fa;
  border-top: 1px solid #a8bac6;
  font-weight: bold;
}

/* Search modes */
.fuel-finder .search-modes {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.fuel-finder .search-modes > span {
  align-self: center;
  font: bold 12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  color: #53666f;
}

.fuel-finder .place-control {
  position: relative;
}

.fuel-finder .place-control label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font: bold 12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  color: #344b57;
}

/* Place control input - Bootstrap form-control handles styling */

.fuel-finder .place-control ul {
  position: absolute;
  z-index: 1001;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 2px solid #064f91;
  max-height: 240px;
  overflow: auto;
}

.fuel-finder .place-control ul:empty {
  display: none;
}

.fuel-finder .place-control li button {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ccd6dc;
  background: #fff;
  text-align: left;
  padding: 9px;
}

/* Buttons */
/* Buttons - Bootstrap handles styling */
.fuel-finder button,
.fuel-finder .button {
  font: inherit;
}

/* Locate button animation */
.fuel-finder .locate-target {
  display: inline-block;
  border-radius: 50%;
  animation: fuel-finder-locate-pulse 2.2s ease-in-out infinite;
}

@keyframes fuel-finder-locate-pulse {
  0%, 100% { transform: scale(1); opacity: .85; text-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { transform: scale(1.12); opacity: 1; text-shadow: 0 0 7px rgba(255,255,255,.65); }
}

/* Search options / radius */
.fuel-finder .search-options {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dotted #8095a0;
}

.fuel-finder .search-options label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font: bold 12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  color: #344b57;
}

.fuel-finder .range output {
  color: #9b3100;
  font-size: 16px;
}

.fuel-finder .range input {
  width: 100%;
  accent-color: #e85d04;
}

.fuel-finder .range small {
  font-weight: normal;
}

.fuel-finder .radius-value-control {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  vertical-align: middle;
  padding: 5px 8px;
  border: 1px solid #b76c19;
  background: #fff4dd;
  color: #7b2700;
}

/* Radius value input - Bootstrap form-control-sm handles styling */

.fuel-finder .radius-value-control > span {
  padding: 0 0 0 4px;
  color: #7b2700;
  font-weight: bold;
}

.fuel-finder .radius-value-control:focus-within {
  outline: 2px solid #064f91;
  outline-offset: 2px;
}

/* Range input - Bootstrap form-range handles styling */

.fuel-finder .leaflet-container {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

.fuel-finder .price-marker {
  width: 58px !important;
  height: 42px !important;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 3px;
  box-shadow: 0 2px 7px rgba(0,0,0,.45);
  font: 700 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.fuel-finder .price-marker[class*="fuel-"] {
  background: var(--fuel-color);
  color: var(--fuel-ink);
}

.fuel-finder .price-marker.unavailable-marker {
  background: #8a3500;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 21px;
}

.fuel-finder .station-cluster-marker {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #064f91;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
  font: 700 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

.fuel-finder .map-interaction-hint {
  position: absolute;
  z-index: 500;
  right: 10px;
  bottom: 10px;
  margin: 0;
  padding: 6px 9px;
  background: rgba(255,255,255,.94);
  border: 1px solid #718793;
  color: #173f62;
  font: 700 12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  pointer-events: none;
}

.fuel-finder .real-map {
  height: 410px;
  border-top: 1px solid #8aa0ad;
  border-bottom: 1px solid #8aa0ad;
  background: #dce8ef;
}

.fuel-finder .real-map.wheel-zoom-active {
  outline: 3px solid #064f91;
  outline-offset: -3px;
}

.fuel-finder .map-popup-prices {
  display: grid;
  gap: 3px;
  min-width: 190px;
  margin: 9px 0;
  padding: 8px 0;
  border-top: 1px solid #b7c3ca;
  border-bottom: 1px solid #b7c3ca;
  list-style: none;
}

.fuel-finder .map-popup-prices li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.fuel-finder .map-popup-prices b {
  white-space: nowrap;
}

/* Table */
.fuel-finder .table-scroll {
  overflow: auto;
  border-top: 1px solid #94a6b0;
}

.fuel-finder table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.fuel-finder th {
  background: #164f79;
  color: #fff;
  text-align: left;
  border: 1px solid #0a3552;
  padding: 9px;
}

.fuel-finder td {
  border: 1px solid #a9b7bf;
  padding: 9px;
  vertical-align: middle;
}

.fuel-finder tbody tr:nth-child(even) {
  background: #eef3f6;
}

.fuel-finder td a {
  display: block;
  text-decoration: none;
}

.fuel-finder td a:hover strong {
  text-decoration: underline;
}

.fuel-finder td small,
.fuel-finder td a small {
  display: block;
  color: #52636b;
  margin-top: 3px;
}

.fuel-finder .digital-price {
  font: 700 19px DSEG7, monospace;
  color: #a32318;
  white-space: nowrap;
}

.fuel-finder .sort-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.fuel-finder .sort-button:hover {
  background: transparent;
  color: #fff;
  text-decoration: underline;
}

.fuel-finder .sort-button:focus-visible {
  outline: 3px solid #ffcf76;
  outline-offset: 3px;
}

/* Station list */
.fuel-finder #station-list table tbody tr {
  transition: background-color .15s ease;
}

.fuel-finder #station-list table tbody tr:hover {
  background: #f3f7fa;
}

.fuel-finder #station-list table tbody td:first-child {
  font-weight: 700;
  color: #173f62;
}

.fuel-finder #station-list table tbody td:nth-child(2) {
  font-weight: 700;
  font-size: 1.08em;
  white-space: nowrap;
}

.fuel-finder #station-list table tbody td:nth-child(3) {
  color: #52636d;
  white-space: nowrap;
}

.fuel-finder #station-list table tbody td:last-child {
  white-space: nowrap;
}

.fuel-finder #station-list tr.best-price {
  background: #fff8d6;
  box-shadow: inset 4px 0 #b98500;
}

.fuel-finder #station-list tr.linked-station {
  background: #dbeeff;
  outline: 2px solid #064f91;
  outline-offset: -2px;
}

.fuel-finder .leaflet-marker-icon.linked-station .price-marker {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px #064f91, 0 3px 10px rgba(0,0,0,.35);
  z-index: 1000;
}

.fuel-finder .best-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: #fff3cd;
  color: #856404;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
}

.fuel-finder .stale-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: #f8d7da;
  color: #721c24;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
}

/* Pagination */
.fuel-finder .results-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 8px;
  border-top: 1px solid #c7d3dc;
  background: #f8fafb;
}

.fuel-finder .results-pagination button {
  min-height: 44px;
  padding: 9px 14px;
}

.fuel-finder .results-pagination button[aria-current="page"] {
  background: #064f91;
  color: #fff;
  border-color: #064f91;
}

.fuel-finder .results-pagination span {
  color: #344b57;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 760px) {
  .fuel-finder .search-modes {
    grid-template-columns: 1fr;
  }
  .fuel-finder .search-modes > span {
    text-align: center;
  }
  .fuel-finder .search-options {
    grid-template-columns: 1fr;
  }
  .fuel-finder .real-map {
    height: 330px;
  }
  .fuel-finder .fuel-choice > div {
    grid-template-columns: repeat(3, 1fr);
  }
  .fuel-finder #station-list {
    overflow-x: auto;
  }
  .fuel-finder #station-list table {
    min-width: 680px;
  }
  .fuel-finder .results-pagination {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fuel-finder .locate-target {
    animation: none;
  }
  .fuel-finder #station-list tr,
  .fuel-finder .price-marker {
    transition: none;
  }
}

/* Barometer date */
.fuel-barometer-date {
  font-size: 1.2em;
  font-weight: 600;
  color: #52636b;
  margin: 0.5em 0 1em;
}