/* ==========================================================================
   Tradesperson / request profile page (post.html)
   This is a raw SSR template (frontend-ssr fills in the SSR_* placeholders
   and {{ }} tags in post.html itself) -- only this stylesheet and the
   template's own static markup are safe to edit here, never the
   placeholder tokens.

   Design system: uses the shared tokens from /css/tokens.css (--primary,
   --text-body, --space-*, --radius-*, --shadow-*, etc) instead of this
   page's own ad-hoc colors/spacing, so the profile page matches the rest
   of the site instead of running its own slightly-different blue and
   radius scale. Only --content-max/--content-pad stay page-local (layout
   constants, not part of the shared token set).
   ========================================================================== */

:root {
  --content-max: 1240px;
  --content-pad: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background: #fff;
  color: var(--text-body);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

a:hover {
  opacity: 0.96;
}

.gradient-section {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #eaf3ff 100%);
}

.full-width-wrapper,
.full-width-footer {
  width: 100%;
  margin: 0;
  padding: 0;
}

.page-shell-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}

.post-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.post-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.post-breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.post-breadcrumb .post-breadcrumb__sep {
  color: var(--text-muted);
  opacity: 0.6;
}

.post-breadcrumb .post-breadcrumb__current {
  color: var(--text-body);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* ==========================================================================
   Home button (mobile navbar)
   ========================================================================== */
.home-btn {
  width: 56px;
  height: 56px;
  background: #dedfe0;
  border-radius: 50%;
  color: #000;
  text-decoration: none;
  margin-left: -5px;
  transition: all 0.2s ease;
}

.home-btn:hover {
  background-color: #e9ecef;
  color: #000;
  transform: scale(1.05);
}

.home-btn:active {
  transform: scale(0.95);
}

.home-btn i {
  font-size: 1.5rem;
  line-height: 1;
}

.home-text {
  font-size: 10px;
  line-height: 1;
  margin-top: 2px;
  color: #1f2937;
}

/* ==========================================================================
   Profile header (banner image + overlay)
   -- the background image path was broken (relative "img/bg3.jpg"
   resolved against this file's own folder, /css/pages/, instead of the
   real /img/ directory, so it 404'd silently and the banner was just a
   flat gradient). Fixed to an absolute path, and given a little more
   presence (taller, gradient starts fading later) now that it actually
   renders again.
   ========================================================================== */
.profile-header {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.profile-header .overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 45%,
      rgba(255, 255, 255, 0.94) 88%,
      rgba(255, 255, 255, 1) 100%
    ),
    linear-gradient(
      to right,
      rgba(var(--primary-rgb), 0.1) 0%,
      rgba(var(--primary-rgb), 0.05) 28%,
      rgba(var(--primary-rgb), 0) 58%
    ),
    url("/img/bg3.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 58% 12%;
}

.profile-top {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: stretch;
  margin: 0 0 var(--space-5);
  z-index: 3;
  padding: 0;
  max-width: none;
}

.avatar-wrap {
  position: relative;
  display: block;
  width: 150px;
  height: 150px;
}

.avatar-lightbox-link {
  display: block;
  width: 100%;
  height: 100%;
}

.avatar-lightbox-link .profile-avatar {
  cursor: zoom-in;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 3px solid rgba(var(--primary-rgb), 0.5);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.profile-basic-info {
  position: relative;
  min-width: 0;
  min-height: 150px;
  padding-top: var(--space-1);
}

.profile-basic-info h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--dark);
  margin: 0 0 var(--space-2);
  word-break: break-word;
}

.profile-basic-info p,
.profile-basic-info .addressCopy {
  margin: 0;
}

.address-wrapper {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-top: var(--space-3);
}

@media (max-width: 768px) {
  .address-wrapper {
    margin-bottom: var(--space-5);
  }
}

.address-span {
  display: inline;
  white-space: nowrap;
}

#address {
  word-wrap: break-word;
  word-break: break-word;
  color: var(--text-body);
}

/* ==========================================================================
   Status / "live" pills
   ========================================================================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  max-width: 100%;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
}

.live-pill {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  line-height: 1;
}

.live-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 50%;
  background: var(--cta-green);
  position: relative;
  display: inline-block;
  flex: 0 0 10px;
  will-change: transform, opacity;
  transform: translateZ(0);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: livePulse 1.8s infinite ease-out;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.35);
  will-change: transform, opacity;
  transform: translateZ(0);
  animation: liveRipple 1.8s infinite ease-out;
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes liveRipple {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  70% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .live-dot {
    animation: mobileLiveFade 1.8s infinite ease-in-out !important;
    box-shadow: none !important;
    transform: none !important;
    will-change: opacity;
  }

  .live-dot::after {
    display: none !important;
    animation: none !important;
  }
}

@keyframes mobileLiveFade {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* ==========================================================================
   Like / Recommend buttons
   ========================================================================== */
#likeBtnWrap {
  display: none !important;
  align-items: center;
  gap: var(--space-2);
  z-index: 3;
}

#likeBtn,
#shareBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

#likeBtn i,
#shareBtn i {
  font-size: 1rem;
  line-height: 1;
}

#likeBtn:hover,
#shareBtn:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  background: var(--surface-alt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Liked state -- a red/heart fill reads more naturally here than the
   generic primary blue the shared .btn-primary override would give it */
#likeBtn.btn-primary {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

#likeBtn.btn-primary:hover {
  filter: brightness(0.92);
  border-color: var(--danger);
}

#shareBtn.btn-outline-secondary {
  background: var(--surface);
  border-color: var(--border-color);
  color: var(--text-body);
}

@media (min-width: 769px) {
  /* Reserve room on the title for the button pair pinned to the top-right
     of .profile-basic-info -- sized to the widest realistic content
     ("Liked" + heart icon, "Recommend" + icon, the gap between them) so a
     long business name wraps onto the next line instead of running
     underneath the buttons. */
  .profile-basic-info h1 {
    padding-right: 260px;
  }

  #likeBtnWrap.like-desktop.is-visible {
    display: inline-flex !important;
    position: absolute;
    top: 2px;
    right: 0;
    z-index: 5;
  }
}

@media (max-width: 768px) {
  #likeBtnWrap.like-mobile.is-visible {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 1000;
    display: inline-flex !important;
  }

  #likeBtnWrap.like-mobile.is-visible #likeBtn,
  #likeBtnWrap.like-mobile.is-visible #shareBtn {
    padding: 8px var(--space-3);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-full);
  }
}

/* ==========================================================================
   Main card / sections
   ========================================================================== */
.main-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  box-shadow: var(--shadow-md);
}

#posts-container {
  min-height: 0;
  height: auto;
}

/* Small uppercase label above a section, for scannability between the
   profile header and the map/gallery/description blocks below -- purely
   decorative, not queried by post.js. */
.section-eyebrow {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}

.section-title,
.intro-video-wrap {
  margin: var(--space-5) 0;
}

.section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--dark);
}

.section-title-video {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--dark);
  margin-bottom: var(--space-1);
}

.desc-section {
  margin-bottom: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-color);
}

.desc-section p {
  white-space: pre-line;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-body);
  margin: 0;
}

/* ==========================================================================
   Contact buttons
   ========================================================================== */
.contact-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.contact-member-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
  min-height: 58px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  box-shadow: var(--shadow-md);
}

.contact-member-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.online-payment-button {
  background: linear-gradient(135deg, var(--success), #157347);
  box-shadow: 0 10px 24px rgba(25, 135, 84, 0.22);
}

.online-payment-button:hover {
  box-shadow: 0 14px 30px rgba(25, 135, 84, 0.28);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 58px;
  font-size: var(--font-size-2xl);
  white-space: nowrap;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  cursor: pointer;
  user-select: none;
}

.phone-link:hover {
  background: rgba(var(--primary-rgb), 0.14);
  transform: translateY(-2px);
}

.phone-link i {
  font-size: var(--font-size-2xl);
  line-height: 1;
  user-select: none;
}

.phone-number,
.selectable-text {
  cursor: text;
  user-select: text;
}

.cta-subtext {
  margin-top: var(--space-1);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-tight);
  color: var(--text-muted);
  opacity: 0.85;
  text-align: center;
  font-weight: var(--font-weight-normal);
}

/* ==========================================================================
   Social links / category pills

   Was a row of small muted-gray chips that read as noise between the
   phone number and the description -- WhatsApp/Facebook/Instagram/
   website are actually some of the most useful things a visitor can use
   to vet a tradesperson, so these are now sized and colored like real
   destinations worth tapping (own brand color per platform, white icon,
   a small heading above the row) rather than an afterthought.
   ========================================================================== */
.social-links-title {
  margin-bottom: var(--space-3) !important;
}

.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
}

.social-links-row a.social-link {
  /* flex-grow: 0, not 1 -- with only 1-2 links (the common case) growing
     to fill the row stretched them into oddly wide, mostly-empty bars.
     Fixed-ish width instead, wrapping onto new rows as needed. */
  flex: 0 1 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.social-links-row a.social-link:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.05);
}

.social-links-row a.social-link img {
  width: 26px;
  height: 26px;
  display: block;
  filter: brightness(0) invert(1);
}

/* The WhatsApp icon (img/whatsapp.png) is already a self-contained green
   rounded-square badge, unlike the plain-line SVGs used for the other
   three -- inverting it to white loses the icon (just a blank square),
   and filling the button green behind it would double up the same green
   twice. Shown on its own on a white card instead, same brand-color
   border/text treatment as the smaller WhatsApp pill used elsewhere on
   the site. Selectors repeat the .social-links-row/a/img prefix (not
   just ".social-link.whatsapp-btn") to outrank the base rules above on
   specificity, not just source order. */
.social-links-row a.social-link.whatsapp-btn {
  background: var(--surface);
  border: 2px solid #25d366;
  color: #0e7c6b;
}

.social-links-row a.social-link.whatsapp-btn:hover {
  color: #0e7c6b;
  background: #f0fdf6;
}

.social-links-row a.social-link.whatsapp-btn img {
  filter: none;
}

.social-link.facebook {
  background: #1877f2;
}

.social-link.instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.social-link.website {
  background: var(--primary);
}

.category-pill-wrap,
.category-pill-wrap-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.category-pill-wrap-top {
  margin-left: 0 !important;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.22);
  color: var(--primary-dark);
  font-size: var(--font-size-sm);
  line-height: 1;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  text-decoration: none;
}

.category-pill:hover {
  background: rgba(var(--primary-rgb), 0.14);
  color: var(--primary-dark);
}

.google-cta-button {
  margin: var(--space-2) 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  max-width: 100%;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}

.google-cta-button:hover {
  background: var(--surface-alt);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.google-cta-button img {
  height: 20px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .google-cta-button {
    width: 100%;
    justify-content: center;
  }
}

#featuredMember2,
#googleReviewWrap {
  display: none;
}

/* ==========================================================================
   Photo gallery
   ========================================================================== */
.photo-gallery-wrapper {
  position: relative;
  max-width: 100%;
  margin: var(--space-5) auto var(--space-3);
  padding-top: var(--space-5);
  overflow: hidden;
}

.photo-gallery {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: var(--space-3) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.photo-gallery::-webkit-scrollbar {
  display: none;
}

.photo-item {
  flex: 0 0 auto;
  width: min(72vw, 368px);
  height: 244px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  /* A fast/hard swipe's native momentum could otherwise carry the strip
     past multiple images in one gesture -- this forces native scrolling
     to stop at the very next snap point every time, capping a swipe to
     one image per gesture without any JS involved. A JS-driven
     real-time scrollLeft clamp was tried first and made the drag feel
     laggy/sticky (fights the compositor-accelerated native scroll even
     batched to one write per frame) -- this is the native, actually-
     smooth way to get the same result. */
  scroll-snap-stop: always;
  background-color: var(--surface-alt);
  transition: transform 0.3s ease;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.photo-item:hover img {
  transform: scale(1.05);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  width: 36px;
  height: 72px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.gallery-arrow.left {
  left: 4px;
}

.gallery-arrow.right {
  right: 4px;
}

/* ==========================================================================
   Map + details
   ========================================================================== */
.map-details-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
  align-items: start;
}

.map-tile {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  background: #fff;
  color: var(--text-body);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.map-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#map {
  width: 100% !important;
  height: 250px !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.map-text {
  padding: var(--space-3);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: var(--dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  background: rgba(var(--primary-rgb), 0.08);
}

.profile-details-modern {
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.profile-details-modern .detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.profile-details-modern strong {
  font-size: var(--font-size-base);
  display: block;
  font-weight: var(--font-weight-bold);
  color: var(--dark);
  margin-bottom: 0;
}

.profile-details-modern .detail-value {
  display: block;
  color: var(--text-muted);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
}

.profile-details-modern a {
  color: var(--primary);
}

#googleReviewWrap {
  margin-top: var(--space-7);
}

#googleReviewBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: #fff;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.google-review-img {
  height: 50px;
  width: auto;
  display: block;
}

/* ==========================================================================
   Hydration guard (avoids a flash of unstyled/empty content while post.js
   populates the SSR placeholders)
   ========================================================================== */
#spinner {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #fff !important;
}

body.is-hydrating {
  overflow: hidden;
}

body.is-hydrating #page-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-ready #page-shell {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease;
}

body.is-ready #spinner {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

/* ==========================================================================
   Map canvas tweak (loaded from map.css)
   ========================================================================== */
#map .maplibregl-canvas {
  filter: opacity(0.7) brightness(1.1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1366px) {
  :root {
    --content-max: 1180px;
    --content-pad: 20px;
  }

  .avatar-wrap {
    width: 136px;
    height: 136px;
  }

  .profile-basic-info {
    min-height: 136px;
    padding-top: 0;
    padding-right: 78px;
  }

  .profile-header {
    height: 96px;
  }

  .profile-header .overlay {
    background-position: 60% 3%;
  }

  .profile-top {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: var(--space-5);
    margin: 0 0 var(--space-5);
    padding: 0;
  }

  .profile-avatar {
    width: 136px;
    height: 136px;
  }

  .main-card {
    padding: var(--space-6);
  }
}

@media (min-width: 769px) and (max-height: 760px) {
  .main-card {
    margin: var(--space-3) 0 var(--space-8);
  }

  .avatar-wrap {
    width: 124px;
    height: 124px;
  }

  .profile-header {
    height: 100px;
  }

  .profile-basic-info {
    min-height: 124px;
  }

  .profile-header .overlay {
    background-position: 62% 10%;
  }

  .profile-top {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: var(--space-4);
    margin: 0 0 var(--space-5);
    padding: 0;
  }

  .profile-avatar {
    width: 124px;
    height: 124px;
  }

  .profile-basic-info h1 {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 991px) {
  .map-details-wrapper {
    grid-template-columns: 1fr;
  }

  #map {
    height: 220px !important;
  }
}

@media (max-width: 768px) {
  :root {
    --content-pad: 14px;
  }

  .avatar-wrap {
    width: 126px;
    height: 126px;
    margin: 0 auto;
  }

  .profile-header {
    height: 100px;
  }

  .profile-header .overlay {
    background-position: center 14%;
  }

  .profile-basic-info {
    min-height: 0;
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .profile-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-4);
    margin: -10px 0 var(--space-4);
    padding: 0;
  }

  .profile-avatar {
    width: 126px;
    height: 126px;
  }

  .profile-basic-info h1 {
    font-size: var(--font-size-2xl);
    margin: 0 0 var(--space-2);
  }

  #profile-basic-info .status-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .status-pill {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px var(--space-3);
    width: calc(100% - 46px);
    max-width: 290px;
    margin: 0 auto;
    padding: 6px var(--space-3) !important;
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    text-align: center;
  }

  .status-pill .live-pill {
    color: var(--primary);
    width: 100%;
    justify-content: center;
    font-size: var(--font-size-sm);
  }

  .status-pill > *:not(.live-pill) {
    color: var(--text-muted);
    flex: 1 1 0;
    text-align: center;
    white-space: nowrap;
    font-size: 0.7rem;
  }

  .live-dot {
    margin-left: 0;
  }

  .main-card {
    margin: 0 0 var(--space-6);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .contact-wrapper {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .contact-member-button,
  .phone-link {
    width: 100%;
  }

  .contact-member-button {
    font-size: var(--font-size-xl);
    min-height: 56px;
  }

  .phone-link {
    /* was --font-size-2xl (28px) -- on a full-width mobile button that
       read as oversized/dominant next to everything else on the card,
       and didn't match .contact-member-button's size right above it */
    font-size: var(--font-size-xl);
    min-height: 56px;
  }

  .phone-link i {
    font-size: var(--font-size-xl);
  }

  .social-links-row {
    justify-content: center;
  }

  .social-links-row a.social-link {
    flex: 1 1 45%;
  }

  #googleReviewBtn {
    width: 100%;
    justify-content: center;
  }
}
