/*
Theme Name: Sheshi Static Profile Maps and Mobile Route Icon
Version: 0.34.8
Description: Restores privacy-preserving map excerpts and fixes the secondary mobile route glyph.
*/

/* An older primary-action rule colored every descendant white. The route
   action is secondary, so its external SVG symbol must inherit the link color. */
body.single-listing .sheshi-profile-mobile-callbar > a.sheshi-profile-route-link,
body.single-listing .sheshi-profile-mobile-callbar > a.sheshi-profile-route-link span,
body.single-listing .sheshi-profile-mobile-callbar > a.sheshi-profile-route-link svg,
body.single-listing .sheshi-profile-mobile-callbar > a.sheshi-profile-route-link svg use {
  color: var(--text-primary) !important;
  stroke: currentColor !important;
}

body.single-listing .sheshi-profile-mobile-callbar > a.sheshi-profile-route-link svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  overflow: visible !important;
  fill: none !important;
}

body.single-listing .sheshi-profile-map-preview {
  position: relative !important;
  min-width: 0 !important;
  margin: 9px 0 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  border-radius: 11px !important;
  background: var(--surface-card) !important;
}

body.single-listing .sheshi-profile-map-preview-link {
  display: block !important;
  min-width: 0 !important;
  color: var(--text-primary) !important;
  background: var(--surface-card) !important;
  text-decoration: none !important;
}

body.single-listing .sheshi-profile-map-preview-link:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: -2px !important;
}

body.single-listing .sheshi-profile-map-preview img {
  display: block !important;
  width: 100% !important;
  height: 112px !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  background: var(--surface-sunken) !important;
}

body.single-listing .sheshi-profile-map-preview-copy {
  display: grid !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px 8px !important;
  border-top: 1px solid var(--border) !important;
}

body.single-listing .sheshi-profile-map-preview-copy > span {
  display: grid !important;
  min-width: 0 !important;
  gap: 1px !important;
}

body.single-listing .sheshi-profile-map-preview-copy small {
  color: var(--text-muted) !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

body.single-listing .sheshi-profile-map-preview-copy strong {
  overflow: hidden !important;
  color: var(--text-primary) !important;
  font-size: 13.5px !important;
  font-weight: 720 !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.single-listing .sheshi-profile-map-preview-copy b {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: var(--accent-text) !important;
  font-size: 11.5px !important;
  font-weight: 680 !important;
  line-height: 1.25 !important;
  text-align: right !important;
}

body.single-listing .sheshi-profile-map-preview-arrow {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 auto !important;
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
}

body.single-listing .sheshi-profile-map-preview figcaption {
  padding: 0 12px 8px !important;
  color: var(--text-muted) !important;
  background: var(--surface-card) !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  text-align: right !important;
}

body.single-listing .sheshi-profile-map-preview figcaption a {
  color: inherit !important;
  text-decoration: none !important;
}

body.single-listing .sheshi-profile-map-preview:hover,
body.single-listing .sheshi-profile-map-preview:focus-within {
  border-color: var(--border-strong) !important;
}

@media (max-width: 767px) {
  body.single-listing .sheshi-profile-map-preview {
    order: 3 !important;
    margin-top: 14px !important;
    border-radius: 12px !important;
  }

  body.single-listing .sheshi-profile-map-preview img {
    height: clamp(148px, 43vw, 176px) !important;
  }

  body.single-listing .sheshi-profile-map-preview-copy {
    padding: 12px 13px 9px !important;
  }

  body.single-listing .sheshi-profile-map-preview-copy strong {
    font-size: 14px !important;
  }

  body.single-listing .sheshi-profile-map-preview-copy b {
    max-width: 132px !important;
    font-size: 12px !important;
  }

  body.single-listing .sheshi-profile-map-preview figcaption {
    padding: 0 13px 10px !important;
    font-size: 10.5px !important;
  }
}
