/* ═══════════════════════════════════════════════════════════
   ExpatSafe Bangkok — Apple-Level Map UI
   Redesigned: Category Bar · Provider Card · Full Responsive
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── Design Tokens ─── */
:root {
  --esb-font: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --esb-radius-sm: 10px;
  --esb-radius-md: 16px;
  --esb-radius-lg: 22px;
  --esb-radius-xl: 28px;
  --esb-shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --esb-shadow-md: 0 4px 14px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --esb-shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --esb-shadow-xl: 0 25px 60px rgba(0,0,0,.16), 0 8px 20px rgba(0,0,0,.08);
  --esb-glass: rgba(255,255,255,.78);
  --esb-glass-thick: rgba(255,255,255,.92);
  --esb-glass-border: rgba(255,255,255,.55);
  --esb-text-primary: #1d1d1f;
  --esb-text-secondary: #6e6e73;
  --esb-text-tertiary: #aeaeb2;
  --esb-fill-primary: #f5f5f7;
  --esb-fill-secondary: #e8e8ed;
  --esb-blue: #007aff;
  --esb-blue-bg: rgba(0,122,255,.1);
  --esb-green: #34c759;
  --esb-green-bg: rgba(52,199,89,.1);
  --esb-orange: #ff9500;
  --esb-orange-bg: rgba(255,149,0,.1);
  --esb-red: #ff3b30;
  --esb-red-bg: rgba(255,59,48,.1);
  --esb-transition: cubic-bezier(.28,.11,.32,1);
  --esb-spring: cubic-bezier(.175,.885,.32,1.275);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ═══════════════════════════════════════
   Base Overlay
   ═══════════════════════════════════════ */
.esb-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: esb-overlay-in .35s var(--esb-transition);
}

@keyframes esb-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.esb-hidden { display: none !important; }

/* ═══════════════════════════════════════
   Map Wrapper
   ═══════════════════════════════════════ */
.esb-map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--esb-fill-primary);
  display: flex;
  flex-direction: column;
  font-family: var(--esb-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  .esb-map-wrapper {
    width: 96%;
    height: 92%;
    max-width: 1600px;
    border-radius: var(--esb-radius-xl);
    overflow: hidden;
    box-shadow: var(--esb-shadow-xl);
    animation: esb-wrapper-in .4s var(--esb-spring);
  }
}

@keyframes esb-wrapper-in {
  from { transform: scale(.97) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ═══════════════════════════════════════
   Map Close Button (×) — Premium High Contrast
   ═══════════════════════════════════════ */
.esb-close-btn,
.esb-close-map-top {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  transition: all .2s var(--esb-transition);
  padding: 0;
}

.esb-close-map-top::before,
.esb-close-map-top::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2.5px;
  background: #111827;
  border-radius: 2px;
  transition: all .2s var(--esb-transition);
}
.esb-close-map-top::before { transform: rotate(45deg); }
.esb-close-map-top::after  { transform: rotate(-45deg); }

.esb-close-btn:hover,
.esb-close-map-top:hover {
  background: #fafafa;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.12);
}
.esb-close-map-top:hover::before,
.esb-close-map-top:hover::after {
  background: #000000;
}
.esb-close-map-top:active {
  transform: scale(.92);
  transition-duration: .08s;
}

/* User contrast fix for map close button */
.esb-close-map-top {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.05);
}
.esb-close-map-top::before,
.esb-close-map-top::after {
  background: #111827;
}

/* Mobile close button visibility toggle */
.esb-btn-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity .25s var(--esb-transition), visibility .25s;
}

/* ═══════════════════════════════════════
   Map Container
   ═══════════════════════════════════════ */
#esb-map-container {
  flex: 1;
  width: 100%;
  height: 100%;
}

#esb-map-container .gm-bundled-control {
  margin: 16px !important;
  bottom: 90px !important;
}
#esb-map-container .gm-bundled-control .gmnoprint {
  margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════
   Loading Overlay (Map)
   ═══════════════════════════════════════ */
.esb-map-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: esb-fade-in .25s var(--esb-transition);
}

@keyframes esb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.esb-map-loading-spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid rgba(0,122,255,.15);
  border-top-color: var(--esb-blue);
  border-radius: 50%;
  animation: esb-spin .7s linear infinite;
}

@keyframes esb-spin {
  to { transform: rotate(360deg); }
}

.esb-map-loading-text {
  font-family: var(--esb-font);
  font-weight: 600;
  color: var(--esb-text-primary);
  font-size: 15px;
  letter-spacing: -.01em;
}

/* Map Error */
.esb-map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
  font-family: var(--esb-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--esb-red);
  background: var(--esb-red-bg);
  border-radius: var(--esb-radius-md);
}


/* ═══════════════════════════════════════════════════════════
   ★ CATEGORY SELECTOR — Apple Maps Style
   ═══════════════════════════════════════════════════════════ */
.esb-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 16px calc(20px + var(--safe-bottom));
  background: linear-gradient(
    to top,
    rgba(255,255,255,.85) 0%,
    rgba(255,255,255,.6) 40%,
    rgba(255,255,255,0) 100%
  );
  z-index: 20;
  display: flex;
  justify-content: flex-end; /* Align right to push location btn */
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.esb-pills-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  background: var(--esb-glass-thick);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  padding: 5px;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    var(--esb-shadow-lg);
  border: .5px solid rgba(255,255,255,.5);
  pointer-events: auto;
  flex: 1; /* Take up remaining space */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  animation: esb-bar-in .5s var(--esb-spring) .15s both;
  /* Mask image to soften edges when scrolling */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10px, black calc(100% - 10px), transparent);
  mask-image: linear-gradient(to right, transparent, black 10px, black calc(100% - 10px), transparent);
}

.esb-pills-row::-webkit-scrollbar { display: none; }

@keyframes esb-bar-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ─── Individual Pill ─── */
.esb-pill {
  position: relative;
  padding: 9px 18px;
  border-radius: 12px;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  font-family: var(--esb-font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--esb-text-secondary);
  cursor: pointer;
  transition: all .3s var(--esb-transition);
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
  scroll-snap-align: start;
}

.esb-pill:hover {
  color: var(--esb-text-primary);
  background: rgba(0,0,0,.04);
}

.esb-pill:active {
  transform: scale(.96);
  transition-duration: .08s;
}

/* Active state — dark fill, white text, subtle lift */
.esb-pill-active {
  background: var(--esb-text-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.15), 0 0 0 .5px rgba(0,0,0,.08);
  transform: scale(1);
}

.esb-pill-active:active {
  transform: scale(.97);
}

/* ─── Location Button (Separated from pills) ─── */
.esb-loc-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 122, 255, 0.15);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0,122,255,0.15), 0 2px 6px rgba(0,0,0,0.06);
  cursor: pointer;
  color: #007aff;
  transition: all .25s var(--esb-transition);
  flex-shrink: 0;
  pointer-events: auto;
  scroll-snap-align: start;
  animation: esb-bar-in .5s var(--esb-spring) .2s both;
  -webkit-tap-highlight-color: transparent;
}

.esb-loc-btn:hover {
  background: #f0f8ff;
  color: #005bb5;
  border-color: rgba(0, 122, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0,122,255,0.25), 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.esb-loc-btn:active {
  transform: scale(.92);
  transition-duration: .08s;
}

/* Location button states */
.esb-loc-loading {
  animation: esb-spin .7s linear infinite;
  color: var(--esb-blue);
}

.esb-loc-error {
  color: #ffffff !important;
  background: var(--esb-red) !important;
  border-color: var(--esb-red) !important;
  box-shadow: 0 4px 14px rgba(255,59,48,0.3) !important;
}

.esb-loc-found {
  color: #ffffff !important;
  background: var(--esb-blue) !important;
  border-color: var(--esb-blue) !important;
  box-shadow: 0 4px 14px rgba(0,122,255,0.4) !important;
}

/* ─── Category Bar Responsive ─── */
@media (max-width: 480px) {
  .esb-bottom-bar {
    padding: 0 10px calc(14px + var(--safe-bottom));
  }
  .esb-pills-row {
    padding: 4px;
    gap: 4px;
    border-radius: 14px;
  }
  .esb-pill {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
  }
  .esb-loc-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .esb-pills-row {
    padding: 3px;
    gap: 3px;
  }
  .esb-pill {
    padding: 7px 11px;
    font-size: 12px;
    border-radius: 9px;
  }
  .esb-loc-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
}


/* ═══════════════════════════════════════════════════════════
   ★ PROVIDER CARD — Apple Maps Detail Sheet
   ═══════════════════════════════════════════════════════════ */
.esb-provider-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.5); /* Lighted Glass Edge */
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--esb-transition);
  -webkit-transform: translate3d(0, 100%, 0);
  transform: translate3d(0, 100%, 0);
  will-change: transform, backdrop-filter;
}

.esb-card-visible {
  -webkit-transform: translate3d(0, 0, 0) !important;
  transform: translate3d(0, 0, 0) !important;
}

/* ─── Desktop: Side panel ─── */
@media (min-width: 768px) {
  .esb-provider-card {
    top: 16px;
    right: 16px;
    left: auto;
    width: min(440px, calc(100vw - 32px));
    height: calc(100% - 32px);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.8); /* Premium bright edge */
    background: rgba(255, 255, 255, 0.98); /* Less transparent on desktop for better readability */
    -webkit-transform: translate3d(110%, 0, 0);
    transform: translate3d(110%, 0, 0);
    overflow: hidden;
  }
  .esb-card-visible {
    -webkit-transform: translate3d(0, 0, 0) !important;
    transform: translate3d(0, 0, 0) !important;
  }
}

@media (min-width: 1200px) {
  .esb-provider-card {
    width: 440px;
  }
}

/* ─── Card Inner (scrollable) ─── */
.esb-card-inner {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.esb-card-header {
  position: sticky;
  top: 0;
  z-index: 6;
  background: linear-gradient(to bottom, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 100%);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: .5px solid rgba(226,232,240,.9);
}

.esb-card-footer {
  z-index: 6;
}

/* Custom scrollbar for desktop */
@media (min-width: 768px) {
  .esb-card-inner::-webkit-scrollbar {
    width: 6px;
  }
  .esb-card-inner::-webkit-scrollbar-track {
    background: transparent;
  }
  .esb-card-inner::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 3px;
  }
  .esb-card-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,.25);
  }
}

/* ─── Drag Handle (Mobile only) ─── */
.esb-card-drag-handle {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.esb-drag-bar {
  width: 40px;
  height: 5px;
  background: var(--esb-text-tertiary);
  border-radius: 3px;
}

@media (min-width: 782px) {
  .esb-card-drag-handle { display: none; }
}

/* ─── Card Header ─── */
.esb-card-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* Mobile adjustments for header */
@media (max-width: 781px) {
  .esb-card-header {
    padding: 12px 24px 16px; /* Less top padding on mobile since there's a drag handle */
  }
}

.esb-card-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: #111827; /* Very dark slate, almost black */
  line-height: 1.15;
  letter-spacing: -.03em;
  flex: 1;
  word-break: break-word;
}

/* ─── Card Close Button ─── */
.esb-card-close {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.02);
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  cursor: pointer;
  margin-top: 0;
  flex-shrink: 0;
  transition: all .2s var(--esb-transition);
  -webkit-tap-highlight-color: transparent;
}

.esb-card-close::before,
.esb-card-close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2.5px;
  background: #111827;
  border-radius: 2px;
  transition: all .2s var(--esb-transition);
}
.esb-card-close::before { transform: rotate(45deg); }
.esb-card-close::after  { transform: rotate(-45deg); }

.esb-card-close:hover {
  background: #fafafa;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.08);
}
.esb-card-close:hover::before,
.esb-card-close:hover::after {
  background: #000000;
}
.esb-card-close:active {
  transform: scale(.88);
}

/* Mobile: larger touch target */
@media (max-width: 781px) {
  .esb-card-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .esb-card-close::before,
  .esb-card-close::after {
    width: 18px;
  }
}


/* ═══════════════════════════════════════
   ★ CHIPS / METADATA BADGES (VIBRANT)
   ═══════════════════════════════════════ */
.esb-card-chips {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 100; /* Protect tooltip overlap against gallery */
}

.esb-chips-top-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
}

.esb-chips-bottom-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.esb-chip {
  padding: 8px 18px; /* Made larger */
  border-radius: 12px; /* Apple squircle radius */
  background: rgba(255, 255, 255, 0.85); /* Glassy white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  font-family: var(--esb-font);
  font-size: 15px; /* Made larger */
  font-weight: 600; /* Sophisticated weight */
  color: #1d1d1f; /* Apple text color */
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03); /* Subtle clean shadow */
}

.esb-chip-rating {
  /* Removed rainbow gradient */
}

.esb-chip-curated {
  /* Removed rainbow gradient */
}

.esb-chip-trust {
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  gap: 12px;
  align-items: center;
  padding: 10px 24px; /* Make it feel like a widget */
  border-radius: 16px; /* Slightly larger radius for the widget */
}

.esb-trust-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}

.esb-trust-label {
  font-size: 12px;
  color: #86868b; /* Apple secondary text */
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 600;
}

.esb-trust-quality {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
}

.esb-chip-fav {
  cursor: pointer;
  background: white;
  transition: all .25s var(--esb-transition);
  -webkit-tap-highlight-color: transparent;
}
.esb-chip-fav:hover {
  background: var(--esb-fill-primary);
  transform: translateY(-1px);
}
.esb-chip-fav:active {
  transform: scale(.94);
}
.esb-fav-active {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2) !important;
}


/* ═══════════════════════════════════════
   ★ PHOTO GALLERY (FIXED VISIBILITY & PREMIUM LOOK)
   ═══════════════════════════════════════ */
.esb-gallery-section {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 5:3 Aspect Ratio Fix for all browsers */
  background: #f8fafc;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

/* Desktop: rounded gallery with padding */
@media (min-width: 782px) {
  .esb-gallery-section {
    width: calc(100% - 40px);
    margin: 0 20px 24px;
    border-radius: var(--esb-radius-md);
    padding-top: 65%; /* slightly taller on desktop */
    box-shadow: 0 8px 24px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.05);
  }
}

.esb-card-gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e2e8f0;
}

.esb-gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s var(--esb-transition);
  display: block; /* Fixes inline whitespace issues */
}

/* Nav arrows */
.esb-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: var(--esb-glass-thick);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--esb-text-primary);
  z-index: 5;
  transition: all .2s var(--esb-transition);
  box-shadow: var(--esb-shadow-sm);
  -webkit-tap-highlight-color: transparent;
}

.esb-gallery-nav:hover {
  background: rgba(255,255,255,1);
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--esb-shadow-md);
}
.esb-gallery-nav:active {
  transform: translateY(-50%) scale(.92);
  transition-duration: .08s;
}

.esb-gallery-prev { left: 10px; }
.esb-gallery-next { right: 10px; }

/* Photo counter pill */
.esb-gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.95);
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--esb-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
}


/* ═══════════════════════════════════════
   ★ STREET VIEW TOGGLE
   ═══════════════════════════════════════ */
.esb-sv-row {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: .5px solid var(--esb-fill-secondary);
  border-bottom: .5px solid var(--esb-fill-secondary);
}

.esb-sv-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--esb-text-primary);
  letter-spacing: -.01em;
}

.esb-toggle-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
}

.esb-toggle-switch input { opacity: 0; width: 0; height: 0; }

.esb-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e9e9ea;
  transition: background .3s var(--esb-transition);
  border-radius: 31px;
}

.esb-toggle-slider:before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: transform .3s var(--esb-transition);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.06);
}

input:checked + .esb-toggle-slider {
  background-color: var(--esb-green);
}
input:checked + .esb-toggle-slider:before {
  transform: translateX(20px);
}

.esb-streetview-container {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  background: #000;
  position: relative;
}

@media (min-width: 782px) {
  .esb-streetview-container {
    margin: 0 14px;
    width: calc(100% - 28px);
    border-radius: var(--esb-radius-md);
    overflow: hidden;
  }
}

.esb-sv-unavailable {
  color: var(--esb-text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 40px;
  text-align: center;
  background: #1c1c1e;
  font-family: var(--esb-font);
  font-size: 14px;
}


/* ═══════════════════════════════════════
   ★ CONTENT SECTIONS
   ═══════════════════════════════════════ */
.esb-card-section {
  padding: 20px 20px 0;
}

.esb-card-section + .esb-card-section {
  border-top: .5px solid var(--esb-fill-secondary);
}

.esb-card-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--esb-text-tertiary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.esb-card-text {
  font-size: 15px;
  color: var(--esb-text-secondary);
  line-height: 1.55;
  letter-spacing: -.01em;
  padding-bottom: 16px;
  word-break: break-word;
}

.esb-special-text {
  line-height: 1.65;
}

.esb-special-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  margin-bottom: 2px;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  vertical-align: text-bottom;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.esb-special-icon-strength {
  background: linear-gradient(135deg, #fff7d6 0%, #ffe6a3 100%);
}

.esb-special-icon-consider {
  background: linear-gradient(135deg, #fff1cf 0%, #ffd98a 100%);
}

.esb-special-icon-pricing {
  background: linear-gradient(135deg, #e9fbe8 0%, #c8f0c4 100%);
}

.esb-special-icon-language {
  background: linear-gradient(135deg, #e8f2ff 0%, #cfe4ff 100%);
}

.esb-special-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--esb-text-tertiary);
  text-transform: uppercase;
}

.esb-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0 0 16px;
  align-content: flex-start;
}

.esb-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  margin: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: none;
  width: auto;
  white-space: normal;
  transition: all 0.2s ease;
  min-height: auto;
}

.esb-service-tag:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.esb-service-tag-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #0ea5e9;
}

@media (max-width: 781px) {
  .esb-services-tags {
    gap: 8px;
    margin-top: 12px;
  }

  .esb-service-tag {
    font-size: 12px;
    padding: 6px 12px;
    margin: 0;
  }
}


/* ═══════════════════════════════════════
   ★ REVIEWS — Elegant Blockquotes
   ═══════════════════════════════════════ */
.esb-review-group {
  background: var(--esb-fill-primary);
  border-radius: var(--esb-radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.esb-review-group:last-child {
  margin-bottom: 16px;
}

.esb-review-heading {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.esb-review-positive { color: var(--esb-green); }
.esb-review-negative { color: var(--esb-red); }

.esb-quote {
  font-size: 14px;
  color: var(--esb-text-secondary);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
  letter-spacing: -.01em;
}


/* ═══════════════════════════════════════
   ★ INFO ROWS — Minimal Grid
   ═══════════════════════════════════════ */
.esb-info-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: .5px solid var(--esb-fill-secondary);
}

.esb-info-row:first-child {
  padding-top: 0;
}

.esb-info-row:last-child {
  border-bottom: none;
  padding-bottom: 16px;
}

.esb-info-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--esb-text-tertiary);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.esb-info-value {
  font-size: 15px;
  color: var(--esb-text-primary);
  font-weight: 400 !important; /* Made thinner */
  line-height: 1.4;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.esb-info-link {
  font-size: 15px;
  color: var(--esb-blue);
  font-weight: 400 !important; /* Made thinner */
  text-decoration: none;
  letter-spacing: -.01em;
  transition: opacity .15s;
  overflow-wrap: anywhere;
}

.esb-info-link:hover {
  opacity: .7;
}

.esb-info-hours {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--esb-text-secondary);
}

.esb-hours-shell,
.esb-hours-table {
  width: 100%;
}

.esb-hours-shell {
  margin-top: 0;
}

.esb-hours-shell {
  margin-top: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.esb-hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.esb-hours-row {
  background: #f8fafc;
}

.esb-hours-row-alt {
  background: #ffffff;
}

.esb-hours-day,
.esb-hours-time,
.esb-hours-note {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.esb-hours-day {
  color: #475569;
  font-weight: 400; /* Made thinner */
  width: 42%;
  white-space: nowrap;
}

.esb-hours-time {
  color: #334155;
  font-weight: 400; /* Added to ensure thin font */
  text-align: right;
}

.esb-hours-today {
  font-weight: 500; /* Made thinner from 800 to 500 */
  color: #0f172a;
}

.esb-hours-note {
  color: #475569;
  text-align: center;
}


/* ═══════════════════════════════════════
   ★ BOOKING BUTTON — CTA Footer
   ═══════════════════════════════════════ */
.esb-card-footer {
  padding: 14px 20px calc(14px + var(--safe-bottom));
  position: sticky;
  bottom: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: .5px solid var(--esb-fill-secondary);
}

.esb-booking-btn {
  display: flex;
  align-items: center;
  -webkit-appearance: none;
  appearance: none;
  justify-content: center;
  background: var(--esb-blue);
  color: white;
  padding: 15px;
  border-radius: 14px;
  font-family: var(--esb-font);
  font-weight: 700;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -.02em;
  box-shadow: 0 2px 12px rgba(0,122,255,.25);
  transition: all .2s var(--esb-transition);
  -webkit-tap-highlight-color: transparent;
}

.esb-booking-btn:hover {
  background: #0066d6;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,122,255,.35);
}

.esb-booking-btn:active {
  transform: translateY(0) scale(.98);
  transition-duration: .08s;
}


/* ═══════════════════════════════════════
   ★ CARD LOADING STATE
   ═══════════════════════════════════════ */
.esb-card-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  font-family: var(--esb-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--esb-text-tertiary);
  letter-spacing: -.01em;
}

.esb-card-loading-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,122,255,.18);
  border-top-color: var(--esb-blue);
  animation: esb-spin .8s linear infinite;
}


/* ═══════════════════════════════════════
   ★ LIMIT OVERLAY
   ═══════════════════════════════════════ */
.esb-limit-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.esb-limit-message {
  background: white;
  padding: 28px 36px;
  border-radius: var(--esb-radius-lg);
  font-family: var(--esb-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--esb-text-primary);
  text-align: center;
  max-width: 380px;
  box-shadow: var(--esb-shadow-xl);
  letter-spacing: -.01em;
  line-height: 1.5;
}


/* ═══════════════════════════════════════
   ★ TRIGGER BUTTON (Shortcode)
   ═══════════════════════════════════════ */
.esb-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  background: var(--esb-blue);
  color: white;
  font-family: var(--esb-font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,122,255,.25);
  transition: all .2s var(--esb-transition);
  -webkit-tap-highlight-color: transparent;
}

.esb-trigger-btn:hover {
  background: #0066d6;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,122,255,.35);
}

.esb-trigger-btn:active {
  transform: translateY(0) scale(.97);
  transition-duration: .08s;
}


/* ═══════════════════════════════════════
   ★ RESPONSIVE FINE-TUNING
   ═══════════════════════════════════════ */

/* Tablets */
@media (min-width: 782px) and (max-width: 1024px) {
  .esb-provider-card {
    width: 380px;
  }
  .esb-card-title {
    font-size: 20px;
  }
}

/* Small phones (SE, Mini) */
@media (max-width: 375px) {
  .esb-card-header {
    padding: 4px 16px 10px;
  }
  .esb-card-title {
    font-size: 19px;
  }
  .esb-card-chips {
    padding: 6px 16px 12px;
    gap: 5px;
  }
  .esb-chip {
    padding: 4px 9px;
    font-size: 12px;
  }
  .esb-card-section {
    padding: 16px 16px 0;
  }
  .esb-card-section-title {
    font-size: 11px;
  }
  .esb-card-text {
    font-size: 14px;
  }
  .esb-booking-btn {
    padding: 13px;
    font-size: 16px;
    border-radius: 12px;
  }
  .esb-card-footer {
    padding: 12px 16px calc(12px + var(--safe-bottom));
  }
  .esb-sv-row {
    padding: 12px 16px;
  }
  .esb-info-value,
  .esb-info-link {
    font-size: 14px;
  }
  .esb-hours-day,
  .esb-hours-time,
  .esb-hours-note {
    padding: 7px 10px;
    font-size: 13px;
  }
}

/* Very small phones */
@media (max-width: 320px) {
  .esb-card-title {
    font-size: 17px;
  }
  .esb-chip {
    padding: 3px 8px;
    font-size: 11px;
  }
  .esb-card-chips {
    gap: 4px;
    padding: 5px 12px 10px;
  }
  .esb-card-header {
    padding: 4px 12px 8px;
  }
  .esb-card-section {
    padding: 14px 12px 0;
  }
  .esb-hours-day,
  .esb-hours-time,
  .esb-hours-note {
    padding: 6px 9px;
  }
}

/* Large desktop */
@media (min-width: 1440px) {
  .esb-provider-card {
    width: 440px;
    top: 20px;
    right: 20px;
    height: calc(100% - 40px);
  }
  .esb-card-title {
    font-size: 24px;
  }
  .esb-gallery-section {
    aspect-ratio: 16 / 10;
  }
}

/* ─── Mobile: Full card height uses safe area ─── */
@media (max-width: 781px) {
  .esb-close-map-top {
    top: 12px;
    right: 12px;
  }
  .esb-provider-card {
    /* Support phones with notches / dynamic island */
    padding-top: env(safe-area-inset-top, 0px);
  }
}

/* ─── Dark mode preference (auto) ─── */
@media (prefers-color-scheme: dark) {
  /* Only apply inside the map overlay to avoid affecting the rest of the page */
  .esb-overlay {
    background: rgba(0,0,0,.5);
  }
}

/* ─── Reduce motion ─── */
@media (prefers-reduced-motion: reduce) {
  .esb-overlay,
  .esb-map-wrapper,
  .esb-pills-row,
  .esb-pill,
  .esb-provider-card,
  .esb-gallery-image,
  .esb-booking-btn,
  .esb-card-close,
  .esb-close-map-top,
  .esb-gallery-nav {
    animation: none !important;
    transition-duration: 0s !important;
  }
}


/* ═══════════════════════════════════════
   ★ MAP TOAST NOTIFICATIONS
   ═══════════════════════════════════════ */
.esb-toast-container {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
  align-items: center;
}

.esb-toast {
  background: var(--esb-glass-thick);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: .5px solid var(--esb-glass-border);
  box-shadow: var(--esb-shadow-lg);
  padding: 12px 18px;
  border-radius: var(--esb-radius-md);
  font-family: var(--esb-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--esb-text-primary);
  text-align: center;
  pointer-events: auto;
  animation: esb-toast-in 0.4s var(--esb-spring) forwards;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.esb-toast-icon {
  font-size: 18px;
}

.esb-toast.esb-toast-warning {
  border-left: 4px solid var(--esb-orange);
}
.esb-toast.esb-toast-info {
  border-left: 4px solid var(--esb-blue);
}
.esb-toast.esb-toast-error {
  border-left: 4px solid var(--esb-red);
}

/* Premium Success Toast (VIP Curation) */
.esb-toast.esb-toast-success {
  background: rgba(255, 255, 255, 0.95); /* Bright white for VIP feel */
  border: 1px solid rgba(212, 175, 55, 0.4); /* Subtle gold border */
  border-left: 4px solid #d4af37; /* Royal gold left accent */
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15), 0 2px 8px rgba(0,0,0,0.08); /* Gold tinted main shadow */
  color: #0f172a; /* Dark text for contrast */
  font-weight: 700;
}
.esb-toast.esb-toast-success .esb-toast-icon {
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6); /* Sparkle effect on the ✨ emoji */
}

.esb-toast-out {
  animation: esb-toast-out 0.3s var(--esb-transition) forwards;
}

@keyframes esb-toast-in {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes esb-toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ═══════════════════════════════════════
   ★ NON-BLOCKING LOADING PILL & CIRCLE (V4)
   ═══════════════════════════════════════ */
.esb-map-loading-pill {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--esb-glass-thick);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: .5px solid var(--esb-glass-border);
  box-shadow: var(--esb-shadow-md);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--esb-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--esb-text-primary);
  animation: esb-pill-in 0.3s var(--esb-spring) forwards;
  pointer-events: none;
}

.esb-map-loading-pill-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,122,255,.2);
  border-top-color: var(--esb-blue);
  border-radius: 50%;
  animation: esb-spin .6s linear infinite;
}

@keyframes esb-pill-in {
  from { opacity: 0; transform: translate(-50%, -15px) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* Hide the old giant overlay */
.esb-map-loading-overlay {
  display: none !important;
}

/* ─── Touch-friendly Tooltip ─── */
.esb-tooltip-wrap {
  position: relative;
  cursor: help;
  overflow: visible !important;
}
.esb-tooltip-box {
  visibility: hidden;
  width: 250px;
  background-color: rgba(30, 30, 30, 0.85); /* Apple dark glass */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f5f5f7;
  text-align: center;
  border-radius: 12px; /* Apple curve */
  padding: 12px 16px;
  position: absolute;
  z-index: 2147483647; /* Maximum z-index to stay above gallery */
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0.3s;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); /* Softer shadow */
  pointer-events: none;
}
.esb-tooltip-box::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(30, 30, 30, 0.85) transparent;
}
.esb-tooltip-wrap:hover .esb-tooltip-box,
.esb-tooltip-wrap:active .esb-tooltip-box,
.esb-tooltip-wrap:focus .esb-tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* ═══════════════════════════════════════
   ★ TRUST SCORE VISUALIZATION (PREMIUM)
   ═══════════════════════════════════════ */
.esb-trust-ring-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--esb-font);
}
.esb-trust-ring {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.esb-trust-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.esb-trust-ring circle {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
}
.esb-trust-ring-bg {
  stroke: rgba(0,0,0,0.08);
}
.esb-trust-ring-fg {
  stroke-dasharray: 88;
  stroke-dashoffset: 88;
  animation: esb-ring-fill 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes esb-ring-fill {
  from { stroke-dashoffset: 88; }
}
.esb-trust-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #15803d;
}

/* ─── Services Sub-Bar ─── */
.esb-services-row {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 16px;
  left: 16px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.esb-services-row::-webkit-scrollbar { display: none; }

.esb-services-row.esb-services-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.esb-service-pill {
  flex-shrink: 0;
  scroll-snap-align: center;
  padding: 7px 14px;
  border-radius: 10px;
  border: .5px solid rgba(255,255,255,.5);
  background: var(--esb-glass-thick);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--esb-shadow-md);
  font-family: var(--esb-font);
  font-weight: 600;
  font-size: 13px;
  color: var(--esb-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.esb-service-pill-active {
  background: var(--esb-blue);
  color: #fff;
  border-color: var(--esb-blue);
  box-shadow: 0 4px 14px rgba(0,122,255,0.4);
}

/* ====== USER REQUESTED UI UPDATES ====== */

/* 1. Make content fonts thinner inside the card */
.esb-card-content strong,
.esb-card-content b,
.esb-special-text strong,
.esb-special-text b,
.esb-card-text strong,
.esb-card-text b,
.esb-info-value strong,
.esb-info-value b {
  font-weight: 400 !important;
}

/* 2. Redesign Verified Services tags to have space and look better */
.esb-services-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 14px !important;
  margin-bottom: -8px !important; /* Offset bottom margin of tags */
  padding: 0 0 16px !important;
}
.esb-service-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 6px 14px !important;
  margin: 0 6px 8px 0 !important; /* Fallback and forced margin so they never touch */
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
  transition: all 0.2s ease !important;
}
.esb-service-tag svg {
  color: #10b981 !important; /* Emerald green checkmark */
}
.esb-service-tag:hover {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* 3. Unify Section Titles for prominent and beautiful look */
.esb-card-section-title,
.esb-special-label,
.esb-info-label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e293b !important; /* Dark blue night tone */
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Make special labels behave like block titles so they look unified with other titles */
.esb-special-label {
}
.esb-special-text > .esb-special-label:first-child {
}

