/* ============================================================
   Energas Standortfinder · Frontend CSS
   "Editorial Industrial Energy" — distinctive, refined, alive

   FONTS:    Poppins (display + body)  ·  JetBrains Mono (data)
   COLORS:   #000  #FFFCFC  #3DD140  #2EB834  #3F444B  #EEEEEE
   MOTION:   cubic-bezier(.16,.84,.34,1)   easing ~ "swift"
============================================================ */

#esf-root,
#esf-root *,
#esf-root *::before,
#esf-root *::after { box-sizing: border-box; }

#esf-root {
  --esf-ink:        #000000;
  --esf-paper:      #FFFCFC;
  --esf-green:      #3DD140;
  --esf-green-dk:   #2EB834;
  --esf-green-dark: #1a7a45;
  --esf-muted:      #3F444B;
  --esf-faint:      #9da5ae;
  --esf-line:       #EEEEEE;
  --esf-red:        #c0392b;

  --esf-radius-card:  20px;
  --esf-radius-pill:  100px;
  --esf-ease:         cubic-bezier(.16,.84,.34,1);
  --esf-ease-snap:    cubic-bezier(.65,0,.35,1);

  --esf-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --esf-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  font-family: var(--esf-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--esf-ink);
  overflow-x: hidden;
  position: relative;
  padding-top: 8px;
}

#esf-root > * { position: relative; z-index: 1; }

/* ──────────────────────────────────────────────────────────
   HERO — Editorial display header
─────────────────────────────────────────────────────────── */
#esf-root .esf-hero {
  display: grid;
  gap: 12px;
  padding: 28px 0 36px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--esf-line);
  position: relative;
}
#esf-root .esf-hero__index {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--esf-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--esf-muted);
}
#esf-root .esf-hero__index-mark {
  color: var(--esf-green);
  font-weight: 700;
}
#esf-root .esf-hero__index-label::before {
  content:""; display:inline-block; width:18px; height:1px;
  background:var(--esf-muted); margin-right:10px; vertical-align: middle;
  transform: translateY(-2px);
}

#esf-root .esf-hero__title {
  font-family: var(--esf-sans) !important;
  font-weight: 700 !important;
  font-size: clamp(40px, 6.8vw, 84px) !important;
  line-height: .96 !important;
  letter-spacing: -.025em !important;
  color: var(--esf-ink) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid; gap: 4px;
}
#esf-root .esf-hero__title-line {
  display: block;
  animation: esf-rise .9s var(--esf-ease) both;
}
#esf-root .esf-hero__title-line:nth-child(2) { animation-delay: .08s; }
#esf-root .esf-hero__title-line--accent {
  position: relative;
  color: var(--esf-ink);
}
#esf-root .esf-hero__title-dot {
  display: inline-block;
  color: var(--esf-green);
  transform: translateY(.04em);
  animation: esf-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes esf-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes esf-dot-pulse {
  0%, 100% { opacity: 1; transform: translateY(.04em) scale(1); }
  50%      { opacity: .55; transform: translateY(.04em) scale(.85); }
}

#esf-root .esf-hero__lead {
  font-family: var(--esf-sans);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  color: var(--esf-muted);
  max-width: 56ch;
  margin: 4px 0 0;
  animation: esf-rise .9s var(--esf-ease) both;
  animation-delay: .18s;
}

#esf-root .esf-hero__rule {
  display: flex; align-items: center; gap: 16px;
  margin-top: 18px;
  animation: esf-rise .9s var(--esf-ease) both;
  animation-delay: .26s;
}
#esf-root .esf-hero__rule-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--esf-ink) 0%, var(--esf-ink) 32px, var(--esf-line) 32px, var(--esf-line) 100%);
}
#esf-root .esf-hero__rule-tag {
  font-family: var(--esf-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--esf-muted);
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────
   SEARCH BAR
─────────────────────────────────────────────────────────── */
#esf-root .esf-search-bar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
#esf-root .esf-search-field-wrap {
  position: relative; flex: 1 1 320px;
}
#esf-root .esf-search-pin {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  fill: none; stroke: var(--esf-ink);
  stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
  transition: stroke .25s var(--esf-ease);
}
#esf-root .esf-search-field-wrap:focus-within .esf-search-pin {
  stroke: var(--esf-green);
}
#esf-root .esf-search-field {
  width: 100% !important;
  height: 58px !important;
  padding: 0 96px 0 52px !important;
  border: 1.5px solid var(--esf-ink) !important;
  border-radius: var(--esf-radius-pill) !important;
  font-family: var(--esf-sans) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--esf-ink) !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .2s var(--esf-ease), box-shadow .2s var(--esf-ease) !important;
}
#esf-root .esf-search-field:hover {
  border-color: var(--esf-ink) !important;
}
#esf-root .esf-search-field:focus {
  border-color: var(--esf-green) !important;
  box-shadow: 0 0 0 3px rgba(61,209,64,.15) !important;
}
#esf-root .esf-search-field::placeholder {
  color: var(--esf-faint); opacity: 1; font-weight: 400;
}
#esf-root .esf-search-hint {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-family: var(--esf-mono);
  font-size: 11px; font-weight: 500;
  color: var(--esf-faint);
  letter-spacing: .04em;
  pointer-events: none;
  opacity: 0; transition: opacity .2s var(--esf-ease);
}
#esf-root .esf-search-field-wrap:focus-within .esf-search-hint { opacity: 1; }

#esf-root .esf-or {
  font-family: var(--esf-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--esf-faint);
  flex-shrink: 0;
  padding: 0 4px;
}

/* ──────────────────────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────────────────────── */
#esf-root .esf-btn,
#esf-root a.esf-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  height: 58px !important;
  padding: 0 28px !important;
  border-radius: var(--esf-radius-pill) !important;
  font-family: var(--esf-sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: .005em !important;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  border: 1.5px solid transparent !important;
  transition: transform .2s var(--esf-ease), box-shadow .2s var(--esf-ease),
              background .2s var(--esf-ease), color .2s var(--esf-ease),
              border-color .2s var(--esf-ease) !important;
}
#esf-root .esf-btn svg {
  width: 15px; height: 15px; flex-shrink: 0;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* PRIMARY — solid green */
#esf-root .esf-btn--primary,
#esf-root a.esf-btn--primary {
  background: var(--esf-green) !important;
  color: var(--esf-ink) !important;
  border-color: var(--esf-green) !important;
  font-weight: 600 !important;
}
#esf-root .esf-btn--primary:hover,
#esf-root a.esf-btn--primary:hover {
  background: var(--esf-green-dk) !important;
  border-color: var(--esf-green-dk) !important;
  color: var(--esf-ink) !important;
}

/* GHOST — outline on white */
#esf-root .esf-btn--ghost,
#esf-root a.esf-btn--ghost {
  background: #fff !important;
  color: var(--esf-ink) !important;
  border-color: var(--esf-ink) !important;
}
#esf-root .esf-btn--ghost:hover,
#esf-root a.esf-btn--ghost:hover {
  background: var(--esf-ink) !important;
  color: var(--esf-paper) !important;
}

/* PORTRAIT — card CTA inline */
#esf-root .esf-row__actions .esf-btn--portrait,
#esf-root .esf-row__actions a.esf-btn--portrait {
  height: 44px !important;
  padding: 0 22px !important;
  background: transparent !important;
  color: var(--esf-ink) !important;
  border: 1.5px solid var(--esf-ink) !important;
  border-radius: var(--esf-radius-pill) !important;
  font-size: 13px !important; font-weight: 500 !important;
}
#esf-root .esf-row__actions .esf-btn--portrait:hover,
#esf-root .esf-row__actions a.esf-btn--portrait:hover {
  background: var(--esf-ink) !important;
  color: var(--esf-paper) !important;
}
#esf-root .esf-row__actions .esf-btn--portrait svg { width: 14px; height: 14px; }

/* ──────────────────────────────────────────────────────────
   RADIUS SLIDER
─────────────────────────────────────────────────────────── */
#esf-root .esf-radius-wrap { margin-bottom: 14px; }
#esf-root .esf-radius-bar {
  display: flex; align-items: center; gap: 18px;
  background: #fff;
  border: 1.5px solid var(--esf-line);
  border-radius: var(--esf-radius-pill);
  padding: 0 22px;
  height: 50px;
}
#esf-root .esf-radius-tag {
  font-family: var(--esf-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em;
  color: var(--esf-muted);
  flex-shrink: 0;
}
#esf-root .esf-slider {
  flex: 1; min-width: 120px;
  -webkit-appearance: none; appearance: none;
  height: 2px;
  background: linear-gradient(to right,
    var(--esf-ink) 0%,
    var(--esf-ink) var(--pct,50%),
    var(--esf-line) var(--pct,50%),
    var(--esf-line) 100%);
  outline: none; cursor: pointer;
  border-radius: 2px;
}
#esf-root .esf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--esf-green);
  border: 2px solid var(--esf-ink);
  cursor: pointer;
  transition: transform .15s var(--esf-ease);
}
#esf-root .esf-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}
#esf-root .esf-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--esf-green); border: 2px solid var(--esf-ink);
  cursor: pointer;
}
#esf-root .esf-radius-val {
  font-family: var(--esf-mono);
  font-size: 17px; font-weight: 700;
  color: var(--esf-ink);
  flex-shrink: 0;
  min-width: 70px; text-align: right;
  display: inline-flex; align-items: baseline; gap: 3px;
  justify-content: flex-end;
}
#esf-root .esf-radius-val small {
  font-size: 11px; font-weight: 500;
  color: var(--esf-muted);
  letter-spacing: .04em;
}

/* ──────────────────────────────────────────────────────────
   TOOLBAR
─────────────────────────────────────────────────────────── */
#esf-root .esf-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
  padding-top: 6px;
}
#esf-root .esf-toolbar__left {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
#esf-root .esf-info {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--esf-sans);
  font-size: 14px;
  color: var(--esf-muted);
  margin: 0;
}
#esf-root .esf-info__count {
  font-family: var(--esf-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--esf-ink);
  letter-spacing: -.02em;
  line-height: 1;
}
#esf-root .esf-info__sep {
  font-family: var(--esf-mono);
  font-size: 18px; font-weight: 400;
  color: var(--esf-faint);
  margin: 0 2px;
}
#esf-root .esf-info__word { font-weight: 500; letter-spacing: .01em; }

/* Sort buttons */
#esf-root .esf-sort-btns {
  display: none;
  align-items: center; gap: 6px; flex-wrap: wrap;
}
#esf-root .esf-sort-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 16px !important;
  border: 1.5px solid var(--esf-line) !important;
  border-radius: var(--esf-radius-pill) !important;
  background: #fff !important;
  color: var(--esf-muted) !important;
  font-family: var(--esf-sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all .2s var(--esf-ease) !important;
}
#esf-root .esf-sort-btn:hover {
  border-color: var(--esf-ink) !important;
  color: var(--esf-ink) !important;
}
#esf-root .esf-sort-btn--active {
  background: var(--esf-ink) !important;
  border-color: var(--esf-ink) !important;
  color: var(--esf-paper) !important;
}
#esf-root .esf-sort-btn svg { stroke: currentColor; }
#esf-root .esf-sort-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--esf-green);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(61,209,64,.55);
  animation: esf-pulse 2s infinite var(--esf-ease);
}
#esf-root .esf-sort-btn--active .esf-sort-dot { background: var(--esf-green); }

/* View toggle */
#esf-root .esf-view-toggle {
  display: inline-flex;
  border: 1.5px solid var(--esf-line);
  border-radius: var(--esf-radius-pill);
  padding: 4px;
  background: #fff;
}
#esf-root .esf-view-btn {
  width: 38px !important; height: 38px !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: var(--esf-radius-pill) !important;
  cursor: pointer; padding: 0 !important;
  transition: background .18s var(--esf-ease) !important;
}
#esf-root .esf-view-btn svg {
  width: 15px; height: 15px;
  fill: none; stroke: var(--esf-muted);
  stroke-width: 2; stroke-linecap: round;
  transition: stroke .18s var(--esf-ease);
}
#esf-root .esf-view-btn--active {
  background: var(--esf-ink) !important;
}
#esf-root .esf-view-btn--active svg { stroke: var(--esf-paper); }
#esf-root .esf-view-btn:not(.esf-view-btn--active):hover svg { stroke: var(--esf-ink); }

/* ──────────────────────────────────────────────────────────
   LOADING / EMPTY
─────────────────────────────────────────────────────────── */
#esf-root .esf-loading,
#esf-root .esf-empty {
  padding: 48px 0;
  font-family: var(--esf-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--esf-muted);
  display: flex; align-items: center; gap: 12px;
}
#esf-root .esf-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--esf-line);
  border-top-color: var(--esf-green);
  border-radius: 50%;
  animation: esf-spin .7s linear infinite;
  flex-shrink: 0;
}
#esf-root .esf-empty__mark {
  font-family: var(--esf-mono);
  font-size: 24px; font-weight: 400;
  color: var(--esf-green);
  line-height: 1;
}
@keyframes esf-spin { to { transform: rotate(360deg); } }

/* ──────────────────────────────────────────────────────────
   CARDS — Editorial Hero
─────────────────────────────────────────────────────────── */
@keyframes esf-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes esf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,209,64,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(61,209,64,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,209,64,0); }
}

#esf-root .esf-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--esf-line);
  border-radius: var(--esf-radius-card);
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  animation: esf-in .5s var(--esf-ease) both;
  transition: transform .25s var(--esf-ease), box-shadow .25s var(--esf-ease), border-color .25s var(--esf-ease);
}
#esf-root .esf-row:hover {
  border-color: #d6d6d6;
}

/* Image block (left) */
#esf-root .esf-row__img-wrap {
  flex: 0 0 46% !important;
  max-width: 46% !important;
  position: relative;
  overflow: hidden;
  background: var(--esf-paper);
}
#esf-root .esf-row__img {
  width: 100%; height: 100%;
  min-height: 320px;
  background-size: cover; background-position: center;
  background-color: var(--esf-paper);
  transition: transform .6s var(--esf-ease);
}
#esf-root .esf-row:hover .esf-row__img { transform: scale(1.03); }
#esf-root .esf-row:hover .esf-row__img--map { transform: none; }
#esf-root .esf-row__img--map {
  background-color: #FFFCFC;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Empty image state — soft neutral with subtle accent */
#esf-root .esf-row__img--empty {
  background: linear-gradient(135deg, #f4f4f0 0%, #ebebe5 100%) !important;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
#esf-root .esf-row__img--empty::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(0,0,0,.025) 22px 23px);
}
#esf-root .esf-row__img--empty svg {
  width: 48px; height: 48px;
  stroke: #b8b8b0; fill: none;
  stroke-width: 1.4; stroke-linecap: round;
  position: relative;
}

/* Index badge on image */
#esf-root .esf-row__index {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  display: inline-flex; align-items: baseline; gap: 4px;
  background: #fff;
  border: 1px solid var(--esf-line);
  border-radius: var(--esf-radius-pill);
  padding: 5px 12px;
  transition: transform .25s var(--esf-ease), border-color .25s var(--esf-ease);
}
#esf-root .esf-row:hover .esf-row__index {
  border-color: var(--esf-green);
}
#esf-root .esf-row__index-mark {
  font-family: var(--esf-mono);
  font-size: 10px; font-weight: 500;
  color: var(--esf-muted);
  letter-spacing: .04em;
}
#esf-root .esf-row__index-num {
  font-family: var(--esf-mono);
  font-size: 13px; font-weight: 700;
  color: var(--esf-ink);
  letter-spacing: -.02em;
}

/* Body */
#esf-root .esf-row__body {
  flex: 0 0 54% !important; max-width: 54% !important;
  padding: 32px 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Head: status+name | distance hero */
#esf-root .esf-row__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
#esf-root .esf-row__head-left {
  display: flex; flex-direction: column;
  gap: 10px; min-width: 0;
}

#esf-root .esf-row__name {
  font-family: var(--esf-sans) !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  font-weight: 700 !important;
  color: var(--esf-ink) !important;
  line-height: 1.08 !important;
  letter-spacing: -.02em !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Distance hero — mono numeric display */
#esf-root .esf-row__dist-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  position: relative;
}

#esf-root .esf-row__dist-num {
  font-family: var(--esf-mono);
  font-size: 28px; font-weight: 700;
  color: var(--esf-ink);
  line-height: 1; letter-spacing: -.02em;
  display: inline-block;
}
#esf-root .esf-row__dist-unit {
  font-family: var(--esf-mono);
  font-size: 12px; font-weight: 500;
  color: var(--esf-muted);
  letter-spacing: .04em;
  margin-left: 4px;
}
#esf-root .esf-row__dist-label {
  font-family: var(--esf-mono);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--esf-faint);
  margin-top: 4px;
}

/* Status with pulse dot */
#esf-root .esf-row__status {
  display: inline-flex !important;
  align-items: center; gap: 8px;
  font-family: var(--esf-mono);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  margin: 0 !important; padding: 0;
  width: max-content;
}
#esf-root .esf-status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
#esf-root .esf-row__status--open {
  color: var(--esf-green-dark);
}
#esf-root .esf-row__status--open .esf-status-dot {
  background: var(--esf-green);
  animation: esf-pulse 2s infinite var(--esf-ease);
}
#esf-root .esf-row__status--closed {
  color: var(--esf-red);
}
#esf-root .esf-row__status--closed .esf-status-dot {
  background: var(--esf-red);
}

/* Info section: addr | hours, with mono labels */
#esf-root .esf-row__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--esf-line);
}
#esf-root .esf-row__addr-block,
#esf-root .esf-row__hours-block {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
#esf-root .esf-row__addr-label,
#esf-root .esf-row__hours-label {
  font-family: var(--esf-mono);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--esf-faint);
}

/* Address */
#esf-root .esf-row__addr {
  display: flex; flex-direction: column; gap: 1px;
}
#esf-root .esf-row__addr a {
  display: block;
  font-family: var(--esf-sans);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--esf-ink);
  text-decoration: none;
  line-height: 1.45;
  transition: color .15s var(--esf-ease);
}
#esf-root .esf-row__addr a:hover { color: var(--esf-green-dark); }
#esf-root .esf-row__addr a.esf-row__addr-web {
  font-family: var(--esf-mono);
  font-size: 12px;
  color: var(--esf-muted);
  margin-top: 4px;
  letter-spacing: -.01em;
}
#esf-root .esf-row__addr a.esf-row__addr-web:hover { color: var(--esf-green-dark); }

/* Hours */
#esf-root .esf-row__hours { width: 100%; }
#esf-root .esf-hours-today { display: none; }
#esf-root .esf-hours-all {
  display: flex; flex-direction: column; gap: 2px;
}
#esf-root .esf-h-line {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  font-family: var(--esf-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--esf-muted);
}
#esf-root .esf-h-day {
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--esf-ink);
}
#esf-root .esf-h-time {
  font-weight: 400;
  letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#esf-root .esf-h-line--today .esf-h-day,
#esf-root .esf-h-line--today .esf-h-time {
  color: var(--esf-green-dark);
  font-weight: 700;
}
#esf-root .esf-h-line--closed .esf-h-time {
  color: var(--esf-faint);
}
#esf-root .esf-hours-toggle { display: none; }

/* Foot: contacts | profile button */
#esf-root .esf-row__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--esf-line);
  margin-top: auto;
  flex-wrap: wrap;
}

#esf-root .esf-row__contacts {
  display: flex; flex-direction: row; flex-wrap: wrap;
  gap: 8px 18px;
}
#esf-root .esf-contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--esf-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--esf-ink);
  text-decoration: none;
  transition: color .15s var(--esf-ease);
}
#esf-root .esf-contact-link:hover { color: var(--esf-green-dark); }
#esf-root .esf-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border: 1px solid var(--esf-line);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .15s var(--esf-ease), border-color .15s var(--esf-ease);
}
#esf-root .esf-contact-link:hover .esf-icon-wrap {
  background: var(--esf-green);
  border-color: var(--esf-green);
}
#esf-root .esf-icon-wrap svg {
  width: 12px; height: 12px;
  fill: none; stroke: var(--esf-ink);
  stroke-width: 2; stroke-linecap: round;
}

/* Decorative animated rail (left edge) */
#esf-root .esf-row__rail {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--esf-green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--esf-ease);
  z-index: 3;
}
#esf-root .esf-row:hover .esf-row__rail { transform: scaleY(1); }

/* ──────────────────────────────────────────────────────────
   LIST VIEW — Magazine table style
─────────────────────────────────────────────────────────── */
#esf-root.esf-view--list .esf-row {
  display: grid !important;
  grid-template-columns: 60px 1fr auto auto !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 22px 28px !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--esf-line) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .2s var(--esf-ease) !important;
}
#esf-root.esf-view--list #esf-list {
  border-top: 1.5px solid var(--esf-ink);
  border-bottom: 1.5px solid var(--esf-ink);
}
#esf-root.esf-view--list .esf-row:hover {
  background: var(--esf-paper) !important;
  transform: none !important;
  box-shadow: none !important;
}

#esf-root.esf-view--list .esf-row__img-wrap {
  display: none !important;
}
/* Index moved inline (recreated via grid order) */
#esf-root.esf-view--list .esf-row__body {
  display: contents !important;
}

/* In contents layout, we re-place each block to grid columns via order */
#esf-root.esf-view--list .esf-row__head {
  grid-column: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
}
#esf-root.esf-view--list .esf-row__head-left {
  display: flex !important; flex-direction: column !important;
  gap: 4px !important;
}
#esf-root.esf-view--list .esf-row__name {
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
#esf-root.esf-view--list .esf-row__status {
  font-size: 10px !important;
}

#esf-root.esf-view--list .esf-row__dist-wrap {
  grid-column: 3 !important;
  flex-direction: row !important;
  align-items: baseline !important;
  border: none !important;
  padding: 0 !important;
  gap: 4px;
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}
#esf-root.esf-view--list .esf-row__dist-wrap::before { display: none; }
#esf-root.esf-view--list .esf-row__dist-num { font-size: 22px !important; }
#esf-root.esf-view--list .esf-row__dist-unit { font-size: 11px !important; }
#esf-root.esf-view--list .esf-row__dist-label { display: none !important; }

#esf-root.esf-view--list .esf-row__info {
  display: none !important;
}
#esf-root.esf-view--list .esf-row__foot {
  grid-column: 4 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#esf-root.esf-view--list .esf-row__contacts { display: none !important; }
#esf-root.esf-view--list .esf-row__rail { display: none !important; }

/* Inject index number into list view */
#esf-root.esf-view--list .esf-row::before {
  content: counter(esf-row-idx, decimal-leading-zero);
  grid-column: 1;
  font-family: var(--esf-mono);
  font-size: 14px; font-weight: 700;
  color: var(--esf-faint);
  letter-spacing: -.02em;
  transition: color .2s var(--esf-ease);
}
#esf-root.esf-view--list #esf-list { counter-reset: esf-row-idx; }
#esf-root.esf-view--list .esf-row { counter-increment: esf-row-idx; }
#esf-root.esf-view--list .esf-row:hover::before { color: var(--esf-green-dark); }

/* List view portrait button — smaller */
#esf-root.esf-view--list .esf-row__actions .esf-btn--portrait {
  height: 38px !important;
  padding: 0 18px !important;
  font-size: 12px !important;
}

/* ──────────────────────────────────────────────────────────
   MAP VIEW
─────────────────────────────────────────────────────────── */
#esf-root #esf-map {
  width: 100%; height: 600px;
  border: 1px solid var(--esf-line);
  border-radius: var(--esf-radius-card);
  overflow: hidden;
}
#esf-root #esf-map-hint {
  font-family: var(--esf-mono);
  font-size: 13px;
  color: var(--esf-muted);
  margin-top: 12px;
}

/* InfoWindow (Google Maps) */
.esf-iw {
  font-family: 'Poppins', sans-serif;
  min-width: 240px; max-width: 280px;
  padding: 6px 2px 4px;
}
.esf-iw__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 10px;
}
.esf-iw__top-meta { display: inline-flex; align-items: center; }
.esf-iw__dist {
  display: inline-flex; align-items: baseline; gap: 3px;
}
.esf-iw__dist-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; font-weight: 700;
  color: #000;
  letter-spacing: -.02em;
}
.esf-iw__dist-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: #3F444B; letter-spacing: .04em;
}
.esf-iw__status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
}
.esf-iw__status .esf-status-dot {
  display:inline-block; width:7px; height:7px; border-radius:50%;
}
.esf-iw__status--open { color: #1a7a45; }
.esf-iw__status--open .esf-status-dot {
  background:#3DD140;
  animation: esf-pulse 2s infinite cubic-bezier(.16,.84,.34,1);
  box-shadow: 0 0 0 0 rgba(61,209,64,.55);
}
.esf-iw__status--closed { color: #c0392b; }
.esf-iw__status--closed .esf-status-dot { background:#c0392b; }
.esf-iw__name {
  font-family: 'Poppins', sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #000 !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
}
.esf-iw__addr {
  display: flex; flex-direction: column;
  font-size: 13px;
  color: #3F444B;
  margin: 0 0 8px 0 !important;
  line-height: 1.5;
}
.esf-iw__phone {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #000;
  text-decoration: none;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.esf-iw__phone:hover { color: #3DD140; }
.esf-iw__actions {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 8px;
}
.esf-iw__cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px;
  border-radius: 100px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #000;
  transition: transform .15s, box-shadow .15s;
}
.esf-iw__cta--primary {
  background: #3DD140; color: #000;
  border-color: #3DD140;
}
.esf-iw__cta--primary:hover {
  background: #2EB834;
  border-color: #2EB834;
}
.esf-iw__cta--ghost {
  background: #fff; color: #000;
}
.esf-iw__cta--ghost:hover {
  background: #000; color: #FFFCFC;
}

/* Smooth out Google's default InfoWindow */
.gm-style .gm-style-iw-c { padding: 14px !important; border-radius: 14px !important; box-shadow: 0 4px 16px rgba(0,0,0,.08) !important; }
.gm-style .gm-style-iw-d { overflow: hidden !important; }
.gm-style .gm-style-iw-t::after { display: none; }

/* ──────────────────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  #esf-root .esf-row__body { padding: 28px; }
  #esf-root .esf-row__info { gap: 18px; }
}

@media (max-width: 900px) {
  #esf-root .esf-hero { padding: 20px 0 28px; }
  #esf-root .esf-row { flex-direction: column !important; }
  #esf-root .esf-row__img-wrap {
    flex: none !important;
    max-width: 100% !important;
  }
  #esf-root .esf-row__img { min-height: 240px; height: 240px; }
  #esf-root .esf-row__body {
    flex: none !important;
    max-width: 100% !important;
    padding: 26px 24px 24px;
    gap: 18px;
  }
  #esf-root .esf-row__info {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #esf-root .esf-row__head { grid-template-columns: 1fr; gap: 14px; }
  #esf-root .esf-row__dist-wrap { align-self: flex-start; }
}

@media (max-width: 720px) {
  #esf-root .esf-search-bar { gap: 8px; }
  #esf-root .esf-search-field-wrap { flex: 1 1 100%; }
  #esf-root .esf-or { text-align: center; width: 100%; padding: 4px 0; }
  #esf-root .esf-btn, #esf-root a.esf-btn {
    flex: 1 1 100% !important;
    height: 52px !important;
  }
  #esf-root .esf-search-field { height: 52px !important; }
  #esf-root .esf-toolbar { gap: 14px; }
  #esf-root .esf-toolbar__left { gap: 12px; }
  #esf-root .esf-info__count { font-size: 24px; }

  /* Hours: show today + collapsed all on mobile */
  #esf-root .esf-hours-today { display: flex; flex-direction: column; gap: 2px; }
  #esf-root .esf-hours-all { display: none; }
  #esf-root .esf-hours-all.esf-hours-all--open { display: flex; }
  #esf-root .esf-hours-toggle {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; padding: 6px 0 0;
    font-family: var(--esf-mono);
    font-size: 11px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--esf-green-dark); cursor: pointer;
  }

  #esf-root .esf-row__body { padding: 22px 18px; }
  #esf-root .esf-row__dist-num { font-size: 26px; }
  #esf-root .esf-row__foot { flex-direction: column; align-items: stretch; }
  #esf-root .esf-row__actions { width: 100%; }
  #esf-root .esf-row__actions .esf-btn--portrait { width: 100%; }
  #esf-root .esf-row__contacts { flex-direction: column; gap: 6px; }

  /* List view mobile */
  #esf-root.esf-view--list .esf-row {
    grid-template-columns: 40px 1fr auto !important;
    grid-template-rows: auto auto !important;
    padding: 18px 16px !important;
    gap: 8px 14px !important;
  }
  #esf-root.esf-view--list .esf-row__head { grid-column: 2 !important; grid-row: 1 !important; }
  #esf-root.esf-view--list .esf-row__dist-wrap { grid-column: 3 !important; grid-row: 1 !important; }
  #esf-root.esf-view--list .esf-row__foot {
    grid-column: 1 / -1 !important; grid-row: 2 !important;
    margin-top: 10px !important;
  }
  #esf-root.esf-view--list .esf-row__actions { width: 100%; }
  #esf-root.esf-view--list .esf-row__actions .esf-btn--portrait { width: 100%; }
  #esf-root.esf-view--list .esf-row::before { font-size: 12px; }

  #esf-root #esf-map { height: 420px; }
}

@media (max-width: 480px) {
  #esf-root .esf-hero { padding: 14px 0 22px; margin-bottom: 18px; }
  #esf-root .esf-hero__title { font-size: 38px !important; }
  #esf-root .esf-hero__lead { font-size: 14px; }
  #esf-root .esf-hero__rule-tag { font-size: 10px; }
  #esf-root .esf-row__img { min-height: 180px; height: 180px; }
  #esf-root .esf-row__name { font-size: 20px !important; }
  #esf-root .esf-radius-bar { padding: 0 16px; gap: 12px; height: 46px; }
  #esf-root .esf-radius-val { font-size: 14px; min-width: 56px; }
}

/* Google Maps Places Autocomplete dropdown styling */
.pac-container {
  z-index: 99999 !important;
  font-family: 'Poppins', sans-serif !important;
  border-radius: 14px !important;
  border: 1px solid #EEEEEE !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.06) !important;
  margin-top: 6px !important;
  overflow: hidden;
}
.pac-item {
  padding: 10px 16px !important;
  font-size: 13px !important;
  border-top: 1px solid #EEEEEE !important;
  cursor: pointer !important;
  transition: background .12s;
}
.pac-item:first-child { border-top: none !important; }
.pac-item:hover { background: #FFFCFC !important; }
.pac-item-query {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #000 !important;
}
.pac-matched { color: #3DD140 !important; }
