/*
 * Simply Medicals — Template 4
 * 2026 Medical Flow
 */

.sm-landing.template-4-visual {
  --sm4-blue: #075bd8;
  --sm4-blue-2: #0b73f6;
  --sm4-blue-dark: #053c96;
  --sm4-cyan: #64d5ff;
  --sm4-ink: #071b3a;
  --sm4-text: #10294f;
  --sm4-muted: #60718b;
  --sm4-line: rgba(8, 54, 120, 0.11);
  --sm4-soft: #f3f8ff;
  --sm4-white: #fff;
  --sm4-radius: 26px;
  --sm4-shadow: 0 28px 80px rgba(13, 58, 123, 0.12);
  --sm4-max: 1240px;
  color: var(--sm4-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sm-landing.template-4-visual *,
.sm-landing.template-4-visual *::before,
.sm-landing.template-4-visual *::after {
  box-sizing: border-box;
}

.sm-landing.template-4-visual img,
.sm-landing.template-4-visual video,
.sm-landing.template-4-visual iframe {
  display: block;
  max-width: 100%;
}

.sm4-wrap {
  width: min(calc(100% - 40px), var(--sm4-max));
  margin-inline: auto;
}

.sm4-section {
  position: relative;
  padding: clamp(72px, 8vw, 118px) 0;
}

.sm4-section-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 46px;
}

.sm4-section-head--light {
  color: #fff;
}

.sm4-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--sm4-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  opacity: 0.76;
}

.sm4-section-head--light .sm4-section-index {
  color: #fff;
}

.sm4-eyebrow,
.sm4-kicker,
.sm4-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.sm4-eyebrow {
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(7, 91, 216, 0.14);
  background: rgba(234, 244, 255, 0.84);
  color: var(--sm4-blue);
}

.sm4-section-title {
  margin: 20px 0;
  max-width: 790px;
  color: inherit;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.sm4-copy {
  color: var(--sm4-muted);
  max-width: 760px;
}

.sm4-copy > *:first-child {
  margin-top: 0;
}

.sm4-copy > *:last-child {
  margin-bottom: 30px;
}

.sm4-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.sm4-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sm4-btn {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.sm4-btn--primary {
  background: linear-gradient(135deg, var(--sm4-blue-2), var(--sm4-blue-dark));
  color: #fff;
  box-shadow: 0 14px 34px rgba(7, 91, 216, 0.27);
}

.sm4-btn--ghost {
  border-color: rgba(7, 91, 216, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--sm4-blue-dark);
  box-shadow: 0 10px 30px rgba(7, 43, 96, 0.06);
  backdrop-filter: blur(12px);
  display: none;
}

.sm4-btn--white {
  background: #fff;
  color: var(--sm4-blue-dark);
  box-shadow: 0 18px 44px rgba(0, 25, 72, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .sm4-btn:hover {
    transform: translateY(-3px);
  }

  .sm4-btn--primary:hover {
    color: #fff;
    box-shadow: 0 20px 44px rgba(7, 91, 216, 0.34);
  }
}

/* Hero */
.sm4-hero {
  position: relative;
  min-height: min(900px, calc(100svh - 20px));
  overflow: hidden;
  padding: clamp(74px, 9vw, 126px) 0 24px;
  background:
    radial-gradient(
      circle at 84% 16%,
      rgba(100, 213, 255, 0.3),
      transparent 24rem
    ),
    radial-gradient(
      circle at 8% 92%,
      rgba(7, 91, 216, 0.14),
      transparent 31rem
    ),
    linear-gradient(135deg, #fbfdff 0%, #eaf4ff 50%, #f8fbff 100%);
}

.sm4-hero-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(7, 91, 216, 0.09);
}

.sm4-hero-orb--one {
  width: 520px;
  height: 520px;
  right: -240px;
  top: -260px;
}

.sm4-hero-orb--two {
  width: 260px;
  height: 260px;
  left: -140px;
  bottom: 60px;
}

.sm4-hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  grid-template-areas:
    'copy media'
    'trust trust';
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.sm4-hero-copy {
  grid-area: copy;
}

.sm4-hero-topline {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sm4-kicker {
  padding: 8px 12px;
  border: 1px solid rgba(7, 91, 216, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--sm4-blue-dark);
  box-shadow: 0 10px 28px rgba(7, 50, 112, 0.06);
}

.sm4-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #14a66d;
  box-shadow: 0 0 0 5px rgba(20, 166, 109, 0.12);
}

.sm4-price-pill {
  padding: 8px 13px;
  background: var(--sm4-blue);
  color: #fff;
  box-shadow: 0 11px 27px rgba(7, 91, 216, 0.22);
}

.sm4-hero-title {
  margin: 0;
  max-width: 820px;
  color: var(--sm4-ink);
  font-size: clamp(3.15rem, 4vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.073em;
  text-wrap: balance;
}

.sm4-hero-intro {
  max-width: 720px;
  margin-top: 24px;
  color: #344d70;
  font-size: 1.08rem;
}

.sm4-hero-support {
  max-width: 720px;
  margin-top: 10px;
  color: var(--sm4-muted);
  font-size: 0.96rem;
}

.sm4-hero-intro > *:first-child,
.sm4-hero-support > *:first-child {
  margin-top: 0;
}

.sm4-hero-intro > *:last-child,
.sm4-hero-support > *:last-child {
  margin-bottom: 0;
}

.sm4-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.sm4-media-stage {
  grid-area: media;
  position: relative;
}

.sm4-media-stage::before {
  content: '';
  position: absolute;
  inset: 7% -5% -8% 8%;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(
    145deg,
    rgba(7, 91, 216, 0.2),
    rgba(100, 213, 255, 0.08)
  );
  filter: blur(20px);
}

.sm4-media-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(7, 91, 216, 0.14);
  border-radius: 30px;
  background: #dcecff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 34px 88px rgba(13, 58, 123, 0.22);
}

.sm4-media-frame img,
.sm4-media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm4-video-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--sm4-blue);
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(100, 213, 255, 0.6),
      transparent 26%
    ),
    linear-gradient(145deg, #eaf5ff, #cbdfff);
}

.sm4-video-fallback .sm4-icon {
  width: 52px;
  height: 52px;
}

.sm4-video-status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(5, 25, 57, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  backdrop-filter: blur(12px);
  display: none;
}

.sm4-video-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d67;
}

.sm4-trust-rail {
  grid-area: trust;
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid rgba(7, 91, 216, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 45px rgba(16, 59, 125, 0.07);
  backdrop-filter: blur(16px);
}

.sm4-trust-track {
  display: flex;
  justify-content: center;
  min-width: max-content;
}

.sm4-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-right: 1px solid rgba(7, 91, 216, 0.1);
  color: var(--sm4-ink);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.sm4-trust-item:last-child {
  border-right: 0;
}

.sm4-trust-item .sm4-icon {
  color: var(--sm4-blue);
}

/* Booking console */
.sm4-booking-section {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 5% 8%,
      rgba(100, 213, 255, 0.11),
      transparent 24rem
    ),
    #f3f8ff;
}

.sm4-booking-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.sm4-booking-aside {
  position: sticky;
  /* top: 110px; */
}

.sm4-booking-aside .sm4-section-index {
  margin-bottom: 28px;
}

.sm4-booking-benefits {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.sm4-booking-benefits > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--sm4-text);
  font-size: 0.9rem;
  font-weight: 750;
}

.sm4-booking-benefits .sm4-icon {
  color: var(--sm4-blue);
}

.sm4-booking-console {
  overflow: visible;
  border: 1px solid rgba(7, 91, 216, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--sm4-shadow);
}

.sm4-console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 54px;
  padding: 0 20px;
  border-bottom: 1px solid var(--sm4-line);
  color: var(--sm4-muted);
  font-size: 0.82rem;
}

.sm4-console-bar strong {
  margin-left: 6px;
  color: var(--sm4-text);
}

.sm4-console-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5dfec;
}

.sm4-console-dot:first-child {
  background: #ff7b89;
}

.sm4-console-dot:nth-child(2) {
  background: #ffc65b;
}

.sm4-console-dot:nth-child(3) {
  background: #44cc92;
}

.sm4-bookly {
  padding: clamp(20px, 4vw, 42px);
}

.sm4-bookly input,
.sm4-bookly select,
.sm4-bookly textarea,
.sm4-bookly .sm-bookly-location-search {
  min-height: 52px;
  border: 1px solid rgba(7, 50, 112, 0.16) !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(7, 46, 105, 0.045);
}

.sm4-bookly button,
.sm4-bookly input[type='submit'],
.sm4-bookly .bookly-btn,
.sm4-bookly .bookly-next-step,
.sm4-bookly .bookly-js-next-step {
  min-height: 50px;
  border-radius: 13px !important;
  background: var(--sm4-blue) !important;
  border-color: var(--sm4-blue) !important;
  color: #fff !important;
}

/* Essentials bento */
.sm4-essentials-section {
  background: #fff;
}

.sm4-bento {
  display: grid;
  /* grid-template-columns: 1.25fr 0.75fr; */
  grid-template-areas:
    'large accent'
    'large price';
  gap: 18px;
}

.sm4-bento-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--sm4-line);
  border-radius: var(--sm4-radius);
  background: #fff;
  box-shadow: 0 18px 54px rgba(13, 58, 123, 0.08);
}

.sm4-bento-card h3 {
  margin: 0 0 20px;
  color: var(--sm4-ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.sm4-bento-card--large {
  grid-area: large;
}

.sm4-bento-card--accent {
  grid-area: accent;
  background:
    radial-gradient(
      circle at 95% 10%,
      rgba(100, 213, 255, 0.26),
      transparent 13rem
    ),
    #f0f7ff;
}

.sm4-bento-card--price {
  grid-area: price;
  color: #fff;
  background:
    radial-gradient(
      circle at 100% 100%,
      rgba(100, 213, 255, 0.3),
      transparent 13rem
    ),
    linear-gradient(145deg, var(--sm4-blue), var(--sm4-blue-dark));
}

.sm4-bento-card--price .sm4-eyebrow {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sm4-bento-card--price p {
  color: rgba(255, 255, 255, 0.76);
}

.sm4-bento-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 16px;
  background: #e8f3ff;
  color: var(--sm4-blue);
}

.sm4-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sm4-check-grid li,
.sm4-mini-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sm4-check-grid li {
  padding: 16px;
  border: 1px solid var(--sm4-line);
  border-radius: 15px;
  background: #fbfdff;
}

.sm4-check-grid .sm4-icon,
.sm4-mini-list .sm4-icon {
  margin-top: 2px;
  color: var(--sm4-blue);
}

.sm4-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--sm4-blue);
  border-radius: 0 12px 12px 0;
  background: #f3f8ff;
  color: var(--sm4-muted);
}

.sm4-note > *:first-child {
  margin-top: 0;
}

.sm4-note > *:last-child {
  margin-bottom: 0;
}

.sm4-mini-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.sm4-bento-price {
  margin: 12px 0;
  font-size: clamp(2.7rem, 5vw, 4.4rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.sm4-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

/* Flow */
.sm4-flow-section {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      circle at 90% 8%,
      rgba(100, 213, 255, 0.18),
      transparent 25rem
    ),
    linear-gradient(145deg, #071b3a, #0a3475);
}

.sm4-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.sm4-flow-step {
  position: relative;
  min-height: 260px;
  padding: 28px 30px 30px 0;
}

.sm4-flow-step + .sm4-flow-step {
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.sm4-flow-number {
  color: var(--sm4-cyan);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.sm4-flow-line {
  width: 42px;
  height: 2px;
  margin: 22px 0 34px;
  background: linear-gradient(90deg, var(--sm4-cyan), transparent);
}

.sm4-flow-body h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.15;
}

.sm4-flow-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

/* Locations */
.sm4-locations-section {
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(100, 213, 255, 0.1),
      transparent 24rem
    ),
    #f5f9ff;
}

.sm4-locations-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
}

.sm4-locations-intro {
  position: sticky;
  top: 110px;
}

.sm4-locations-intro .sm4-section-index {
  margin-bottom: 28px;
}

.sm4-location-count {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 32px;
}

.sm4-location-count strong {
  color: var(--sm4-blue);
  font-size: 3.8rem;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.sm4-location-count span {
  max-width: 90px;
  color: var(--sm4-muted);
  font-size: 0.84rem;
  line-height: 1.2;
}

.sm4-location-panel {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(7, 91, 216, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--sm4-shadow);
}

.sm4-location-search {
  position: relative;
  margin-bottom: 18px;
}

.sm4-location-search > .sm4-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--sm4-muted);
}

.sm4-location-search input {
  width: 100%;
  min-height: 58px;
  padding: 13px 18px 13px 48px;
  border: 1px solid rgba(7, 91, 216, 0.14);
  border-radius: 16px;
  background: #f9fcff;
  font: inherit;
  outline: 0;
}

.sm4-location-search input:focus {
  border-color: var(--sm4-blue);
  box-shadow: 0 0 0 4px rgba(7, 91, 216, 0.11);
}

.sm4-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.sm4-location {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--sm4-line);
  border-radius: 14px;
  background: #fff;
  color: var(--sm4-text);
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.sm4-location[hidden] {
  display: none;
}

.sm4-location-pin {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #edf5ff;
  color: var(--sm4-blue);
}

.sm4-location-arrow {
  width: 16px;
  height: 16px;
  color: var(--sm4-blue);
  opacity: 0.65;
}

@media (hover: hover) and (pointer: fine) {
  .sm4-location:hover {
    transform: translateY(-2px);
    border-color: rgba(7, 91, 216, 0.22);
    box-shadow: 0 14px 30px rgba(13, 58, 123, 0.09);
  }
}

/* Records */
.sm4-records-section {
  background: #fff;
}

.sm4-records-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--sm4-line);
  border-radius: var(--sm4-radius);
  background: linear-gradient(145deg, #fff, #f8fbff);
  box-shadow: 0 24px 70px rgba(13, 58, 123, 0.1);
}

.sm4-records-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #ddecff, #f7fbff);
  color: var(--sm4-blue);
  box-shadow: inset 0 0 0 1px rgba(7, 91, 216, 0.1);
}

.sm4-records-mark .sm4-icon {
  width: 34px;
  height: 34px;
}

.sm4-record-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sm4-record-actions .sm4-btn {
  width: 100%;
  min-width: 0;
}

/* Pricing */
.sm4-pricing-section {
  padding-top: 0;
  background: #fff;
}

.sm4-pricing-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1fr auto;
  gap: 34px;
  align-items: center;
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(100, 213, 255, 0.28),
      transparent 18rem
    ),
    linear-gradient(135deg, var(--sm4-blue), var(--sm4-blue-dark));
  box-shadow: 0 34px 90px rgba(7, 63, 150, 0.28);
}

.sm4-pricing-card .sm4-eyebrow {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sm4-pricing-card .sm4-copy {
  color: rgba(255, 255, 255, 0.78);
}

.sm4-price-large {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: -0.072em;
}

.sm4-pricing-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -160px;
  border: 46px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

/* Reviews */
.sm4-reviews-section {
  background: #f5f9ff;
}

.sm4-reviews-shell {
  min-height: 220px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--sm4-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--sm4-shadow);
}

/* FAQ */
.sm4-faq-section {
  background: #fff;
}

.sm4-faq-layout {
  display: grid;
  /* grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr); */
  /* gap: clamp(34px, 7vw, 90px); */
  align-items: start;
}

/* .sm4-faq-intro {
  position: sticky;
  top: 110px;
} */

.sm4-faq-intro .sm4-section-index {
  margin-bottom: 28px;
}

.sm4-faq-intro > p {
  color: var(--sm4-muted);
}

.sm4-faq {
  display: grid;
  gap: 11px;
}

.sm4-faq-item {
  overflow: hidden;
  border: 1px solid var(--sm4-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(13, 58, 123, 0.05);
}

.sm4-faq-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 15px 18px;
  border: 0;
  background: transparent !important;
  color: var(--sm4-ink) !important;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.sm4-faq-number {
  color: var(--sm4-blue);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.sm4-faq-plus {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edf5ff;
}

.sm4-faq-plus::before,
.sm4-faq-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--sm4-blue);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.sm4-faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sm4-faq-button[aria-expanded='true'] .sm4-faq-plus::after {
  transform: translate(-50%, -50%) rotate(0);
}

.sm4-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.sm4-faq-panel > div {
  overflow: hidden;
}

.sm4-faq-item.is-open .sm4-faq-panel {
  grid-template-rows: 1fr;
}

.sm4-faq-panel-inner {
  padding: 0 18px 22px 66px;
  color: var(--sm4-muted);
}

/* Final */
.sm4-final-section {
  padding: 24px 0 clamp(80px, 9vw, 124px);
  background: #fff;
}

.sm4-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: clamp(34px, 6vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(7, 91, 216, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(100, 213, 255, 0.32),
      transparent 18rem
    ),
    linear-gradient(135deg, #eef6ff, #dcecff);
}

.sm4-final-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Searchable Bookly location */
.template-4-visual .sm-bookly-location-combobox {
  position: relative;
  width: 100%;
}

.template-4-visual .sm-bookly-location-input-row {
  position: relative;
}

.template-4-visual .sm-bookly-location-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--sm4-muted);
}

.template-4-visual .sm-bookly-location-search {
  width: 100%;
  padding: 11px 44px 11px 48px !important;
}

.template-4-visual .sm-bookly-location-options,
.template-4-visual .sm-bookly-location-no-results {
  position: static !important;
  width: 100%;
  max-height: 300px;
  margin-top: 8px;
  overflow-y: auto;
  border: 1px solid rgba(7, 91, 216, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(13, 58, 123, 0.14);
}

.template-4-visual .sm-bookly-location-options {
  padding: 7px;
}

.template-4-visual .sm-bookly-location-option {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--sm4-text);
  text-align: left;
}

.template-4-visual .sm-bookly-location-option:hover,
.template-4-visual .sm-bookly-location-option.is-active {
  background: #eaf3ff;
}

.template-4-visual .sm-bookly-location-option.is-selected {
  background: var(--sm4-blue);
  color: #fff;
}

.template-4-visual .sm-bookly-native-location-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.template-4-visual .sm-bookly .bookly-form-group,
.template-4-visual .sm-bookly .bookly-box,
.template-4-visual .sm-bookly .bookly-js-chain-item,
.template-4-visual .sm-bookly .bookly-js-service-step {
  overflow: visible !important;
}

/* Motion */
html.sm4-motion-ready [data-sm4-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 700ms cubic-bezier(0.16, 0.78, 0.24, 1),
    transform 700ms cubic-bezier(0.16, 0.78, 0.24, 1);
}

html.sm4-motion-ready [data-sm4-reveal].sm4-visible {
  opacity: 1;
  transform: none;
}

.sm4-scroll-progress {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: var(--sm4-progress, 0%);
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--sm4-cyan), var(--sm4-blue));
}

.sm4-sticky {
  display: none;
}

.sm4-footer-spacer {
  height: 0;
}

.sm4-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Tablet */
@media (max-width: 980px) {
  .sm4-hero {
    min-height: auto;
  }

  .sm4-hero-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      'copy'
      'media'
      'trust';
  }

  .sm4-media-stage {
    max-width: 820px;
  }

  .sm4-booking-layout,
  .sm4-locations-layout,
  .sm4-faq-layout {
    grid-template-columns: 1fr;
  }

  .sm4-booking-aside,
  .sm4-locations-intro,
  .sm4-faq-intro {
    position: static;
  }

  .sm4-flow {
    grid-template-columns: 1fr;
  }

  .sm4-flow-step,
  .sm4-flow-step + .sm4-flow-step {
    min-height: auto;
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .sm4-records-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .sm4-record-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm4-pricing-card {
    grid-template-columns: 1fr;
  }

  .sm4-final {
    grid-template-columns: 1fr;
  }
}

/* Mobile: hero content, price, video and trust all fit without a scroll */
@media (max-width: 680px) {
  h1,
  h2 {
    text-align: center !important;
  }
  .sm4-hero-topline {
    justify-content: center !important;
  }
  .sm-landing.template-4-visual {
    font-size: 15px;
  }

  .sm4-wrap {
    width: min(calc(100% - 22px), var(--sm4-max));
  }

  .sm4-section {
    padding: 62px 0;
  }

  .sm4-hero {
    min-height: auto;
    padding: 18px 0 12px;
  }

  .sm4-hero-shell {
    display: grid;
    gap: 10px;
    grid-template-areas:
      'copy'
      'media'
      'trust';
  }

  .sm4-hero-topline {
    margin-bottom: 8px;
    gap: 6px;
  }

  .sm4-kicker,
  .sm4-price-pill {
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .sm4-hero-title {
    font-size: clamp(2rem, 9.3vw, 2.75rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin: 30px 0;
  }

  .sm4-hero-intro {
    display: block;
    margin-top: 10px;
    overflow: visible;
    font-size: 0.88rem;
    line-height: 1.38;
    -webkit-line-clamp: unset;
  }

  .sm4-hero-support {
    display: block;
  }

  .sm4-hero-actions {
    margin-top: 10px;
  }

  .sm4-hero-actions .sm4-btn {
    min-height: 43px;
    padding: 9px 13px;
    font-size: 0.82rem;
  }

  .sm4-hero-phone {
    display: none;
  }

  .sm4-media-frame {
    aspect-ratio: 16 / 7.6;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(13, 58, 123, 0.18);
  }

  .sm4-video-status {
    top: 8px;
    left: 8px;
    padding: 4px 7px;
    font-size: 0.62rem;
  }

  .sm4-trust-rail {
    border-radius: 13px;
  }

  .sm4-trust-track {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sm4-trust-track::-webkit-scrollbar {
    display: none;
  }

  .sm4-trust-item {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .sm4-trust-item .sm4-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .sm4-section-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .sm4-section-title {
    font-size: clamp(1.75rem, 8.5vw, 2.4rem);
  }

  .sm4-booking-layout {
    gap: 24px;
  }

  .sm4-booking-aside .sm4-section-index,
  .sm4-locations-intro .sm4-section-index,
  .sm4-faq-intro .sm4-section-index {
    margin-bottom: 18px;
  }

  .sm4-booking-console {
    border-radius: 19px;
  }

  .sm4-bookly {
    padding: 16px 12px;
  }

  .sm4-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      'large'
      'accent'
      'price';
  }

  .sm4-bento-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .sm4-check-grid {
    grid-template-columns: 1fr;
  }

  .sm4-flow-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .sm4-flow-line {
    display: none;
  }

  .sm4-flow-body {
    grid-column: 2;
  }

  .sm4-location-count strong {
    font-size: 3rem;
  }

  .sm4-location-panel {
    padding: 12px;
    border-radius: 19px;
  }

  .sm4-location-grid {
    grid-template-columns: 1fr;
    max-height: 430px;
  }

  .sm4-records-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .sm4-records-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .sm4-record-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .sm4-pricing-card {
    gap: 24px;
    padding: 30px 20px;
    border-radius: 22px;
  }

  .sm4-price-large {
    font-size: clamp(3rem, 15vw, 4.25rem);
  }

  .sm4-pricing-card .sm4-btn {
    width: 100%;
  }

  .sm4-faq-button {
    grid-template-columns: 28px minmax(0, 1fr) 26px;
    gap: 10px;
    min-height: 66px;
    padding: 14px;
  }

  .sm4-faq-panel-inner {
    padding: 0 14px 20px 52px;
  }

  .sm4-final {
    padding: 30px 20px;
    border-radius: 22px;
  }

  .sm4-final-actions {
    display: grid;
  }

  .sm4-final-actions .sm4-btn {
    width: 100%;
  }

  .sm4-sticky {
    position: fixed;
    z-index: 9998;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--sm4-line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -16px 46px rgba(7, 31, 72, 0.13);
    backdrop-filter: blur(16px);
  }

  .sm4-sticky .sm4-btn {
    min-height: 46px;
    padding: 9px 12px;
  }

  .sm4-footer-spacer {
    height: 76px;
  }

  html.sm4-motion-ready [data-sm4-reveal] {
    transform: translate3d(0, 30px, 0);
    transition-duration: 760ms;
  }
}

@media (max-height: 720px) and (max-width: 680px) {
  .sm4-hero {
    padding-top: 10px;
  }

  .sm4-hero-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .sm4-media-frame {
    aspect-ratio: 16 / 6.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.sm4-motion-ready [data-sm4-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   TEMPLATE 4.1 — FULL-WIDTH GRADIENT + VISUAL SLIDER UPDATE
   ========================================================= */

.sm4-gradient-section,
.sm4-flow-section,
.sm4-pricing-section,
.sm4-final-section {
  --sm4-gradient-a: #075bd8;
  --sm4-gradient-b: #073f9d;
  --sm4-gradient-c: #052b70;
}

.sm4-hero {
  min-height: auto;
  padding: clamp(82px, 8vw, 122px) 0 28px;
  color: #fff;
  background:
    radial-gradient(
      circle at 82% 8%,
      rgba(100, 213, 255, 0.34),
      transparent 27rem
    ),
    radial-gradient(
      circle at 7% 90%,
      rgba(98, 167, 255, 0.24),
      transparent 31rem
    ),
    linear-gradient(
      135deg,
      var(--sm4-gradient-a),
      var(--sm4-gradient-b) 58%,
      var(--sm4-gradient-c)
    );
}

.sm4-hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--sm4-hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0.1;
  filter: grayscale(0.25) saturate(0.7);
  mix-blend-mode: soft-light;
}

.sm4-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(4, 38, 98, 0.08),
    rgba(2, 25, 65, 0.28)
  );
}

.sm4-hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    'copy'
    'media'
    'trust';
  gap: clamp(22px, 4vw, 38px);
  text-align: center;
}

.sm4-hero-copy {
  width: min(100%, 970px);
  margin-inline: auto;
}

.sm4-hero-topline,
.sm4-hero-actions {
  justify-content: center;
}

.sm4-kicker {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.sm4-price-pill {
  background: #fff;
  color: var(--sm4-blue-dark);
  box-shadow: 0 12px 30px rgba(0, 24, 67, 0.22);
}

.sm4-hero-title {
  max-width: 980px;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(3rem, 6.7vw, 6.7rem);
  text-shadow: 0 18px 50px rgba(0, 20, 60, 0.22);
}

.sm4-hero-intro,
.sm4-hero-support {
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.86);
}

.sm4-hero-support {
  color: rgba(255, 255, 255, 0.68);
}

.sm4-btn--glass {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.sm4-media-stage {
  width: min(100%, 1060px);
  margin-inline: auto;
}

.sm4-media-stage::before {
  inset: 10% 4% -9%;
  background: rgba(2, 24, 64, 0.36);
  filter: blur(26px);
}

.sm4-media-frame {
  aspect-ratio: 16 / 7.6;
  border-color: rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 32px 90px rgba(0, 23, 67, 0.36);
}

.sm4-trust-rail {
  width: min(100%, 1120px);
  margin-inline: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.sm4-trust-track {
  justify-content: center;
  gap: 9px;
  min-width: 0;
  flex-wrap: wrap;
}

.sm4-trust-item {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 24, 67, 0.12);
  backdrop-filter: blur(12px);
}

.sm4-trust-item .sm4-icon {
  color: #9ce7ff;
}

/* Reuse the blue gradient language across selected sections. */
.sm4-flow-section {
  background:
    radial-gradient(
      circle at 88% 6%,
      rgba(100, 213, 255, 0.2),
      transparent 25rem
    ),
    linear-gradient(145deg, #075bd8, #073f9d 58%, #052b70);
}

.sm4-pricing-section {
  padding: clamp(70px, 8vw, 110px) 0;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(100, 213, 255, 0.22),
      transparent 24rem
    ),
    linear-gradient(135deg, #075bd8, #073f9d 60%, #052b70);
}

.sm4-pricing-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 24, 67, 0.3);
  backdrop-filter: blur(16px);
}

.sm4-final-section {
  padding: clamp(72px, 8vw, 110px) 0;
  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(100, 213, 255, 0.26),
      transparent 24rem
    ),
    linear-gradient(135deg, #075bd8, #073f9d 58%, #052b70);
}

.sm4-final {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 24, 67, 0.28);
  backdrop-filter: blur(16px);
}

.sm4-final .sm4-copy,
.sm4-final .sm4-section-title {
  color: #fff;
}

.sm4-final .sm4-copy {
  opacity: 0.78;
}

/* Full-bleed visual slider */
.sm4-visual-slider {
  position: relative;
  overflow: hidden;
  background: #052b70;
}

.sm4-slider-viewport {
  position: relative;
  min-height: clamp(540px, 72vw, 820px);
  overflow: hidden;
}

.sm4-slider-track,
.sm4-slider-slide {
  position: absolute;
  inset: 0;
}

.sm4-slider-slide {
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 900ms ease,
    transform 6s ease;
}

.sm4-slider-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.sm4-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm4-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(4, 34, 88, 0.9) 0%,
      rgba(4, 34, 88, 0.63) 45%,
      rgba(4, 34, 88, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(2, 23, 62, 0.08), rgba(2, 23, 62, 0.5));
}

.sm4-slider-content {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: clamp(540px, 72vw, 820px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
}

.sm4-eyebrow--glass {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  backdrop-filter: blur(12px);
}

.sm4-slider-title {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-wrap: balance;
  text-shadow: 0 18px 46px rgba(0, 24, 67, 0.26);
}

.sm4-slider-content > p {
  max-width: 620px;
  margin: 20px 0 26px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.04rem;
}

.sm4-slider-controls {
  position: absolute;
  z-index: 4;
  right: max(20px, calc((100vw - var(--sm4-max)) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sm4-slider-arrow,
.sm4-slider-dot {
  border: 0;
  cursor: pointer;
}

.sm4-slider-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 1.7rem;
  backdrop-filter: blur(12px);
}

.sm4-slider-dots {
  display: flex;
  gap: 7px;
}

.sm4-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition:
    width 180ms ease,
    background 180ms ease;
}

.sm4-slider-dot.is-active {
  width: 28px;
  background: #fff;
}

@media (max-width: 680px) {
  .sm4-hero {
    padding: 18px 0 12px;
  }

  .sm4-hero-shell {
    gap: 9px;
  }

  .sm4-hero-title {
    font-size: clamp(1.95rem, 9.1vw, 2.65rem);
  }

  .sm4-hero-intro {
    margin-top: 9px;
  }

  .sm4-media-frame {
    aspect-ratio: 16 / 7.2;
    border-radius: 17px;
  }

  .sm4-trust-track {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .sm4-trust-track::-webkit-scrollbar {
    display: none;
  }

  .sm4-trust-item {
    flex: 0 0 auto;
  }

  .sm4-slider-viewport,
  .sm4-slider-content {
    min-height: 620px;
  }

  .sm4-slider-overlay {
    background: linear-gradient(
      180deg,
      rgba(4, 34, 88, 0.28),
      rgba(4, 34, 88, 0.88) 74%,
      rgba(4, 34, 88, 0.96)
    );
  }

  .sm4-slider-content {
    justify-content: flex-end;
    padding-bottom: 96px;
  }

  .sm4-slider-title {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .sm4-slider-controls {
    right: 14px;
    bottom: 22px;
  }

  .sm4-slider-arrow {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm4-slider-slide {
    transform: none !important;
    transition: opacity 150ms linear !important;
  }
}

/* =========================================================
   TEMPLATE 4.3 — CORRECTED SIDE-BY-SIDE DESIGN
   ========================================================= */

/* HERO: breathing two-column layout on a blue full-bleed background. */
.sm4-hero {
  min-height: 100vh;
  padding: clamp(74px, 9vh, 112px) 0 clamp(22px, 4vh, 42px);
  color: #fff;
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(100, 213, 255, 0.32),
      transparent 27rem
    ),
    radial-gradient(
      circle at 5% 90%,
      rgba(71, 145, 255, 0.24),
      transparent 30rem
    ),
    linear-gradient(135deg, #075bd8 0%, #073f9d 58%, #052b70 100%);
}

.sm4-hero-backdrop {
  opacity: 0.13;
  background-position: center;
  background-size: cover;
  mix-blend-mode: screen;
}

.sm4-hero-backdrop::after {
  background: linear-gradient(
    90deg,
    rgba(4, 34, 88, 0.44),
    rgba(4, 34, 88, 0.08)
  );
}

.sm4-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  grid-template-areas:
    'copy media'
    'trust trust';
  gap: clamp(24px, 4vw, 58px);
  min-height: calc(100vh - clamp(120px, 15vh, 172px));
  align-items: center;
  align-content: center;
}

.sm4-hero-copy {
  grid-area: copy;
  max-width: 680px;
  text-align: left;
}

.sm4-hero-topline,
.sm4-hero-actions {
  justify-content: flex-start;
}

.sm4-hero-title,
.sm4-hero-intro,
.sm4-hero-support {
  margin-inline: 0;
  color: #fff;
}

.sm4-hero-title {
  font-size: clamp(3rem, 4vw, 4rem);
  text-shadow: 0 12px 42px rgba(0, 23, 65, 0.18);
  margin: 30px 0;
}

.sm4-hero-intro {
  color: rgba(255, 255, 255, 0.88);
}

.sm4-hero-support {
  color: rgba(255, 255, 255, 0.72);
}

.sm4-hero-intro a,
.sm4-hero-support a,
.sm4-hero-copy a:not(.sm4-btn) {
  color: #fff !important;
  font-weight: 800;
  text-decoration-color: rgba(255, 255, 255, 0.65);
}

.sm4-kicker,
.sm4-price-pill {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(13px);
}

.sm4-media-stage {
  grid-area: media;
  width: 100%;
  margin: 0;
}

.sm4-media-stage::before {
  inset: 8% -4% -8% 7%;
  background: rgba(100, 213, 255, 0.2);
}

.sm4-media-frame {
  aspect-ratio: 16 / 10;
  max-height: 52vh;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 34px 90px rgba(0, 29, 78, 0.34);
}

.sm4-trust-rail {
  grid-area: trust;
  margin-top: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sm4-trust-track {
  display: flex;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  flex-wrap: wrap;
}

.sm4-trust-item {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  backdrop-filter: blur(12px);
}

.sm4-trust-item .sm4-icon {
  color: #9ee9ff;
}

/* Video sound control, matching Template 1.1 behavior. */
.sm4-video-sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0b2348;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(4, 24, 54, 0.2);
  backdrop-filter: blur(12px);
}

.sm4-video-sound:hover,
.sm4-video-sound:focus-visible {
  background: #075bd8;
  color: #fff;
  outline: 0;
}

.sm4-video-sound__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.sm4-video-sound__icon::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 1px;
  width: 6px;
  height: 8px;
  border-radius: 2px 0 0 2px;
  background: currentColor;
}

.sm4-video-sound__icon::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 9px;
  height: 12px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 12px 12px 0;
}

.sm4-video-sound.is-muted .sm4-video-sound__icon::after {
  width: 10px;
  height: 2px;
  top: 8px;
  left: 7px;
  border: 0;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg);
}

/* BOOKLY: restore normal form controls and do not turn location options into CTA buttons. */
.sm4-bookly .sm-bookly-location-option,
.sm4-bookly button.sm-bookly-location-option {
  display: block !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 11px 13px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: var(--sm4-text) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

.sm4-bookly .sm-bookly-location-option:hover,
.sm4-bookly .sm-bookly-location-option.is-active {
  background: #eaf3ff !important;
  color: var(--sm4-text) !important;
}

.sm4-bookly .sm-bookly-location-option.is-selected {
  background: #075bd8 !important;
  color: #fff !important;
  font-weight: 750 !important;
}

.sm4-bookly-location-options {
  padding: 7px !important;
  background: #fff !important;
}

/* EVERYTHING YOU NEED: contained, balanced design with no empty phantom column. */
.sm4-essentials-section {
  padding: clamp(72px, 8vw, 112px) 0;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(100, 213, 255, 0.12),
      transparent 25rem
    ),
    linear-gradient(180deg, #f5f9ff, #edf5ff);
}

.sm4-essentials-section > .sm4-wrap {
  width: min(calc(100% - 40px), var(--sm4-max));
  max-width: var(--sm4-max);
}

.sm4-essentials-section .sm4-section-head {
  width: auto;
  margin: 0 0 42px;
  padding: 0;
}

.sm4-essentials-section .sm4-bento {
  display: grid;
  /* grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr); */
  grid-template-areas:
    'large price'
    'accent price';
  gap: 18px;
  border: 0;
  background: transparent;
}

.sm4-essentials-section .sm4-bento-card {
  min-height: 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(7, 91, 216, 0.11);
  border-radius: 24px;
  box-shadow: 0 20px 58px rgba(13, 58, 123, 0.09);
}

.sm4-essentials-section .sm4-bento-card--large {
  grid-area: large;
  background: #fff;
}

.sm4-essentials-section .sm4-bento-card--accent {
  grid-area: accent;
  background: linear-gradient(145deg, #eef6ff, #f9fcff);
}

.sm4-essentials-section .sm4-bento-card--price {
  grid-area: price;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(
      circle at 100% 100%,
      rgba(100, 213, 255, 0.28),
      transparent 16rem
    ),
    linear-gradient(155deg, #075bd8, #053b91);
}

/* If the optional covers card is absent, let preparation + price use two clean columns. */
.sm4-bento-card--large:nth-last-child(2) {
  grid-row: 1;
}

.sm4-essentials-section .sm4-check-grid li {
  min-height: 64px;
  align-items: center;
  background: #f8fbff;
}

/* FINAL CTA: full-bleed blue outer section, light inner card. */
.sm4-final-section {
  padding: clamp(72px, 8vw, 112px) 0;
  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(100, 213, 255, 0.25),
      transparent 24rem
    ),
    linear-gradient(135deg, #075bd8, #073f9d 58%, #052b70);
}

.sm4-final {
  color: var(--sm4-text);
  border: 1px solid rgba(255, 255, 255, 0.48);
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(100, 213, 255, 0.22),
      transparent 18rem
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(230, 242, 255, 0.96)
    );
  box-shadow: 0 32px 86px rgba(0, 28, 76, 0.28);
}

.sm4-final .sm4-eyebrow {
  border-color: rgba(7, 91, 216, 0.16);
  background: #eaf3ff;
  color: #075bd8;
}

.sm4-final .sm4-section-title {
  color: var(--sm4-ink);
}

.sm4-final .sm4-copy {
  color: var(--sm4-muted);
}

@media (max-width: 980px) {
  .sm4-hero {
    min-height: auto;
  }

  .sm4-hero-shell {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      'copy'
      'media'
      'trust';
  }

  .sm4-hero-copy {
    max-width: 780px;
  }

  .sm4-media-frame {
    max-height: none;
  }

  .sm4-essentials-section .sm4-bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      'large'
      'accent'
      'price';
  }
}

@media (max-width: 680px) {
  .sm4-hero {
    min-height: auto;
    padding: 108px 0 14px;
  }

  .sm4-hero-shell {
    gap: 12px;
  }

  .sm4-hero-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .sm4-hero-intro {
    display: block;
    margin-top: 10px;
    overflow: visible;
    font-size: 0.88rem;
    line-height: 1.38;
    -webkit-line-clamp: unset;
  }

  /* .sm4-hero-support,
  .sm4-hero-phone {
    display: none;
  } */

  .sm4-media-frame {
    aspect-ratio: 16 / 8;
    border-radius: 18px;
  }

  .sm4-video-sound {
    right: 9px;
    bottom: 9px;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .sm4-trust-track {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sm4-trust-track::-webkit-scrollbar {
    display: none;
  }

  .sm4-trust-item {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 0.7rem;
  }

  .sm4-essentials-section > .sm4-wrap {
    width: min(calc(100% - 22px), var(--sm4-max));
  }

  .sm4-essentials-section .sm4-bento-card {
    padding: 24px 18px;
    border-radius: 19px;
  }

  .sm4-final {
    padding: 30px 20px;
  }
}

.bookly-form {
  min-height: 300px !important;
}

/* =========================================================
   TEMPLATE 4 VISUAL — SHORT, IMAGE-LED PAGE STRUCTURE
   Layout additions only. Existing Template 4 typography values remain intact.
   ========================================================= */

.template-4-visual .sm4v-media-intro {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.template-4-visual .sm4v-media-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 16px;
}

.template-4-visual .sm4v-media-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-radius: var(--sm4-radius);
  background: var(--sm4-soft);
  box-shadow: var(--sm4-shadow);
  text-decoration: none;
}

.template-4-visual .sm4v-media-card:first-child {
  min-height: 420px;
}

.template-4-visual .sm4v-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.template-4-visual .sm4v-media-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 27, 58, 0.02),
    rgba(7, 27, 58, 0.76)
  );
}

.template-4-visual .sm4v-media-card-content {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
}

.template-4-visual .sm4v-media-card-content h3 {
  margin: 0 0 8px;
  color: #fff;
}

.template-4-visual .sm4v-media-card-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.template-4-visual .sm4v-media-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #fff;
  font-weight: 850;
}

@media (hover: hover) and (pointer: fine) {
  .template-4-visual .sm4v-media-card:hover img {
    transform: scale(1.045);
  }
}

.template-4-visual .sm4v-booking-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(100, 213, 255, 0.18),
      transparent 25rem
    ),
    linear-gradient(145deg, #071b3a, #0a3475);
}

.template-4-visual .sm4v-booking-band .sm4-section-title,
.template-4-visual .sm4v-booking-band .sm4-copy {
  color: #fff;
}

.template-4-visual .sm4v-booking-band .sm4-copy {
  color: rgba(255, 255, 255, 0.72);
}

.template-4-visual .sm4v-booking-band .sm4-section-index,
.template-4-visual .sm4v-booking-band .sm4-eyebrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.template-4-visual .sm4v-booking-band .sm4-eyebrow {
  background: rgba(255, 255, 255, 0.1);
}

.template-4-visual .sm4v-booking-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: center;
}

.template-4-visual .sm4v-booking-band .sm4-booking-console {
  background: #fff;
}

.template-4-visual .sm4v-split-section {
  overflow: hidden;
  background: #fff;
}

.template-4-visual .sm4v-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.template-4-visual .sm4v-split-media {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: var(--sm4-radius);
  background: var(--sm4-soft);
  box-shadow: var(--sm4-shadow);
}

.template-4-visual .sm4v-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-4-visual .sm4v-split-price {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--sm4-blue);
  color: #fff;
  font-weight: 900;
}

.template-4-visual .sm4v-compact-checks {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.template-4-visual .sm4v-compact-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--sm4-line);
  border-radius: 14px;
  background: #fbfdff;
}

.template-4-visual .sm4v-compact-checks .sm4-icon {
  margin-top: 2px;
  color: var(--sm4-blue);
}

.template-4-visual .sm4v-record-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.template-4-visual .sm4v-record-actions .sm4-btn {
  width: 100%;
}

.template-4-visual .sm4v-locations-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 14%,
      rgba(100, 213, 255, 0.18),
      transparent 22rem
    ),
    #f5f9ff;
}

.template-4-visual .sm4v-locations-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: stretch;
}

.template-4-visual .sm4v-location-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--sm4-radius);
  background: var(--sm4-soft);
  box-shadow: var(--sm4-shadow);
}

.template-4-visual .sm4v-location-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-4-visual .sm4v-location-media-overlay {
  position: absolute;
  inset: auto 22px 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(7, 27, 58, 0.72);
  color: #fff;
  backdrop-filter: blur(14px);
}

.template-4-visual .sm4v-location-media-overlay strong {
  display: block;
}

.template-4-visual .sm4v-location-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.template-4-visual .sm4v-location-panel .sm4-location-panel {
  margin-top: 26px;
}

.template-4-visual .sm4v-location-panel .sm4-location-grid {
  /* max-height: 340px; */
}

.template-4-visual .sm4v-reviews-section {
  background: #fff;
}

.template-4-visual .sm4v-reviews-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.template-4-visual .sm4v-reviews-head .sm4-section-title {
  margin-bottom: 0;
}

.template-4-visual .sm4v-final-section {
  padding-top: 0;
}

.template-4-visual .sm4v-final-visual {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(100, 213, 255, 0.28),
      transparent 20rem
    ),
    linear-gradient(135deg, var(--sm4-blue), var(--sm4-blue-dark));
}

.template-4-visual .sm4v-final-visual .sm4-section-title,
.template-4-visual .sm4v-final-visual .sm4-copy {
  color: #fff;
}

.template-4-visual .sm4v-final-visual .sm4-copy {
  color: rgba(255, 255, 255, 0.74);
}

.template-4-visual .sm4v-final-visual .sm4-eyebrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-media-grid,
  .template-4-visual .sm4v-booking-layout,
  .template-4-visual .sm4v-split,
  .template-4-visual .sm4v-locations-shell {
    grid-template-columns: 1fr;
  }

  .template-4-visual .sm4v-media-card,
  .template-4-visual .sm4v-media-card:first-child {
    min-height: 360px;
  }

  .template-4-visual .sm4v-split-media,
  .template-4-visual .sm4v-location-media {
    min-height: 440px;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-media-grid {
    gap: 12px;
  }

  .template-4-visual .sm4v-media-card,
  .template-4-visual .sm4v-media-card:first-child {
    min-height: 260px;
  }

  .template-4-visual .sm4v-media-card-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .template-4-visual .sm4v-split-media,
  .template-4-visual .sm4v-location-media {
    min-height: 320px;
  }

  .template-4-visual .sm4v-record-actions {
    grid-template-columns: 1fr;
  }

  .template-4-visual .sm4v-reviews-head {
    display: block;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL V2 — BALANCED CARDS + CARD MOTION
   No existing typography or commented CSS changed.
   ========================================================= */

/* Equal, normal-sized graphical cards */
.template-4-visual .sm4v-media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.template-4-visual .sm4v-media-card,
.template-4-visual .sm4v-media-card:first-child {
  min-height: 0;
  aspect-ratio: 4 / 3;
  box-shadow:
    0 18px 45px rgba(13, 58, 123, 0.12),
    0 4px 14px rgba(13, 58, 123, 0.06);
  transform: translateY(0);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

/* Keep images visually alive without changing card dimensions */
.template-4-visual .sm4v-media-card img,
.template-4-visual .sm4v-split-media img,
.template-4-visual .sm4v-location-media img {
  transition: transform 520ms cubic-bezier(0.16, 0.78, 0.24, 1);
}

/* Consistent elevation for the larger content cards */
.template-4-visual .sm4-booking-console,
.template-4-visual .sm4v-split-media,
.template-4-visual .sm4v-location-media,
.template-4-visual .sm4-location-panel,
.template-4-visual .sm4-reviews-shell,
.template-4-visual .sm4v-final-visual,
.template-4-visual .sm4-faq-item {
  box-shadow:
    0 20px 55px rgba(13, 58, 123, 0.11),
    0 5px 18px rgba(13, 58, 123, 0.055);
  transform: translateY(0);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.template-4-visual .sm4v-split-media {
  min-height: 0;
  aspect-ratio: 6 / 5;
}

.template-4-visual .sm4v-location-media {
  min-height: 0;
  aspect-ratio: 6 / 5;
}

/* Small checklist cards get the same polished depth */
.template-4-visual .sm4v-compact-checks li {
  box-shadow: 0 8px 24px rgba(13, 58, 123, 0.055);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

/* FAQ is optional from the existing admin Enable FAQ toggle */
.template-4-visual .sm4v-faq-section {
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(100, 213, 255, 0.1),
      transparent 22rem
    ),
    #f5f9ff;
}

.template-4-visual .sm4v-faq-section .sm4-faq-layout {
  display: block;
}

.template-4-visual .sm4v-faq-section .sm4-faq-intro {
  position: static;
  margin-bottom: 34px;
}

.template-4-visual .sm4v-faq-section .sm4-faq {
  max-width: var(--sm4-max);
  margin-inline: auto;
}

@media (hover: hover) and (pointer: fine) {
  .template-4-visual .sm4v-media-card:hover,
  .template-4-visual .sm4-booking-console:hover,
  .template-4-visual .sm4v-split-media:hover,
  .template-4-visual .sm4v-location-media:hover,
  .template-4-visual .sm4-location-panel:hover,
  .template-4-visual .sm4-reviews-shell:hover,
  .template-4-visual .sm4v-final-visual:hover,
  .template-4-visual .sm4-faq-item:hover {
    transform: translateY(-6px);
    box-shadow:
      0 30px 72px rgba(13, 58, 123, 0.16),
      0 8px 22px rgba(13, 58, 123, 0.08);
  }

  .template-4-visual .sm4v-compact-checks li:hover {
    transform: translateY(-3px);
    border-color: rgba(7, 91, 216, 0.18);
    box-shadow: 0 14px 32px rgba(13, 58, 123, 0.09);
  }

  .template-4-visual .sm4v-media-card:hover img,
  .template-4-visual .sm4v-split-media:hover img,
  .template-4-visual .sm4v-location-media:hover img {
    transform: scale(1.035);
  }
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-4-visual .sm4v-media-card,
  .template-4-visual .sm4v-media-card:first-child {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .template-4-visual .sm4v-split-media,
  .template-4-visual .sm4v-location-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-media-grid {
    grid-template-columns: 1fr;
  }

  .template-4-visual .sm4v-media-card,
  .template-4-visual .sm4v-media-card:first-child {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .template-4-visual .sm4v-split-media,
  .template-4-visual .sm4v-location-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL V3 — LOCATION CONTAINMENT + FULL-BLEED CTA
   Existing typography and commented CSS remain unchanged.
   ========================================================= */

/* Locations heading gets its own full row so media can never cover it. */
.template-4-visual .sm4v-locations-head {
  position: relative;
  z-index: 3;
  margin-bottom: 40px;
}

.template-4-visual .sm4v-locations-head .sm4-section-index {
  margin-bottom: 20px;
}

.template-4-visual .sm4v-locations-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: stretch;
}

.template-4-visual .sm4v-location-media,
.template-4-visual .sm4v-location-panel,
.template-4-visual .sm4v-location-panel .sm4-location-panel,
.template-4-visual .sm4v-location-panel .sm4-location-grid {
  min-width: 0;
  max-width: 100%;
}

.template-4-visual .sm4v-location-media {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.template-4-visual .sm4v-location-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-4-visual .sm4v-location-panel {
  width: 100%;
  justify-content: stretch;
}

.template-4-visual .sm4v-location-panel .sm4-location-panel {
  width: 100%;
  height: 100%;
  margin-top: 0;
}

.template-4-visual .sm4v-location-panel .sm4-location-grid {
  width: 100%;
  /* max-height: 420px; */
}

/* Final CTA: blue is now truly full viewport width. */
.template-4-visual .sm4v-final-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 112px);
  color: #fff;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(100, 213, 255, 0.28),
      transparent 20rem
    ),
    linear-gradient(135deg, var(--sm4-blue), var(--sm4-blue-dark));
}

.template-4-visual .sm4v-final-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 15% 80%,
    rgba(255, 255, 255, 0.08),
    transparent 24rem
  );
}

.template-4-visual .sm4v-final-section > .sm4-wrap {
  position: relative;
  z-index: 2;
}

.template-4-visual .sm4v-final-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.template-4-visual .sm4v-final-section .sm4-section-title,
.template-4-visual .sm4v-final-section .sm4-copy {
  color: #fff;
}

.template-4-visual .sm4v-final-section .sm4-copy {
  color: rgba(255, 255, 255, 0.76);
}

.template-4-visual .sm4v-final-section .sm4-eyebrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

/* The old contained blue card is no longer rendered in V3. */
.template-4-visual .sm4v-final-visual {
  box-shadow: none;
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-locations-shell,
  .template-4-visual .sm4v-final-inner {
    grid-template-columns: 1fr;
  }

  .template-4-visual .sm4v-location-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-locations-head {
    margin-bottom: 26px;
  }

  .template-4-visual .sm4v-location-media {
    aspect-ratio: 16 / 10;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL V4 — CLIENT COMPACT PASS
   Layout-only overrides. Existing font-size declarations and
   commented CSS above remain untouched.
   ========================================================= */

/* Global compact rhythm */
.template-4-visual .sm4-section {
  padding-top: clamp(44px, 5vw, 68px);
  padding-bottom: clamp(44px, 5vw, 68px);
}

/* HERO: no viewport-height treatment; fit actual content only. */
.template-4-visual .sm4-hero {
  min-height: auto !important;
  padding-top: clamp(78px, 8vw, 110px);
  padding-bottom: clamp(34px, 4vw, 52px);
}

.template-4-visual .sm4-hero-shell {
  min-height: 0 !important;
  align-items: center;
  row-gap: 18px;
}

.template-4-visual .sm4-hero-copy {
  align-self: center;
}

/* Trust is now directly above CTA and remains one line. */
.template-4-visual .sm4v-hero-trust {
  grid-area: auto;
  width: 100%;
  margin-top: 18px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.template-4-visual .sm4v-hero-trust .sm4-trust-track {
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.template-4-visual .sm4v-hero-trust .sm4-trust-track::-webkit-scrollbar {
  display: none;
}

.template-4-visual .sm4v-hero-trust .sm4-trust-item {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 10px;
}

/* Make hero media breathe less vertically. */
.template-4-visual .sm4-media-frame {
  aspect-ratio: 16 / 9;
  max-height: 430px;
}

/* TOP GRAPHIC CARDS: short landscape image + content below. */
.template-4-visual .sm4v-media-intro {
  padding-top: clamp(38px, 4vw, 54px);
  padding-bottom: clamp(38px, 4vw, 54px);
}

.template-4-visual .sm4v-media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.template-4-visual .sm4v-media-card,
.template-4-visual .sm4v-media-card:first-child {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: #fff;
}

.template-4-visual .sm4v-media-card::after {
  display: none;
}

.template-4-visual .sm4v-media-card img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.template-4-visual .sm4v-media-card-content {
  position: relative;
  inset: auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 18px 20px 20px;
  color: var(--sm4-text);
}

.template-4-visual .sm4v-media-card-content h3 {
  margin: 0 0 5px;
  color: var(--sm4-ink);
}

.template-4-visual .sm4v-media-card-content p {
  margin: 0;
  color: var(--sm4-muted);
}

.template-4-visual .sm4v-media-card-link {
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--sm4-blue);
}

/* WHAT TO BRING: compact five-column graphical strip, no image. */
.template-4-visual .sm4v-bring-section {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(124, 58, 237, 0.07),
      transparent 20rem
    ),
    linear-gradient(180deg, #ffffff 0%, #f7f1ff 100%);
}

.template-4-visual .sm4v-bring-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.template-4-visual .sm4v-bring-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.template-4-visual .sm4v-bring-meta .sm4v-split-price {
  margin: 0;
}

.template-4-visual .sm4v-bring-head .sm4-section-title {
  margin-bottom: 0;
}

.template-4-visual .sm4v-bring-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 5px solid rgba(124, 58, 237, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(
        circle at 4% 22%,
        rgba(255, 255, 255, 0.9) 0 4px,
        transparent 5px
      )
      0 0 / 30px 30px,
    linear-gradient(135deg, #f5eaff, #f9f3ff);
  box-shadow: 0 18px 44px rgba(88, 48, 137, 0.08);
}

.template-4-visual .sm4v-bring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 178px;
  padding: 18px 14px;
  text-align: center;
  border-right: 1px solid rgba(124, 58, 237, 0.12);
}

.template-4-visual .sm4v-bring-item:last-child {
  border-right: 0;
}

.template-4-visual .sm4v-bring-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: var(--sm4-ink);
}

.template-4-visual .sm4v-bring-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-4-visual .sm4v-bring-item > span:last-child {
  color: var(--sm4-ink);
  font-weight: 800;
  line-height: 1.25;
}

.template-4-visual .sm4v-bring-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-top: 20px;
}

.template-4-visual .sm4v-bring-records h3 {
  margin: 0 0 12px;
}

.template-4-visual .sm4v-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}

/* Compact remaining sections without changing typography. */
.template-4-visual .sm4v-booking-band,
.template-4-visual .sm4v-locations-section,
.template-4-visual .sm4v-faq-section,
.template-4-visual .sm4v-reviews-section {
  padding-top: clamp(48px, 5vw, 68px);
  padding-bottom: clamp(48px, 5vw, 68px);
}

.template-4-visual .sm4v-locations-head,
.template-4-visual .sm4v-reviews-head,
.template-4-visual .sm4v-faq-section .sm4-faq-intro {
  margin-bottom: 24px;
}

.template-4-visual .sm4v-location-media {
  aspect-ratio: 16 / 10;
}

.template-4-visual .sm4v-final-section {
  padding-top: clamp(48px, 5vw, 68px);
  padding-bottom: clamp(48px, 5vw, 68px);
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .template-4-visual .sm4v-bring-head,
  .template-4-visual .sm4v-bring-footer {
    grid-template-columns: 1fr;
  }

  .template-4-visual .sm4v-bring-strip {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4-hero {
    padding-top: 38px;
    padding-bottom: 28px;
  }

  .template-4-visual .sm4-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .template-4-visual .sm4v-media-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .template-4-visual .sm4v-media-card img {
    aspect-ratio: 16 / 7;
  }

  .template-4-visual .sm4v-media-card-content {
    padding: 14px 16px 16px;
  }

  .template-4-visual .sm4v-bring-strip {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
  }

  .template-4-visual .sm4v-bring-item {
    min-height: 158px;
    padding: 16px 12px;
  }

  .template-4-visual .sm4v-bring-icon {
    width: 52px;
    height: 52px;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V5 — FINAL COMPACT POLISH
   ========================================================= */

/* Medium, compact graphical cards. */
.template-4-visual .sm4v-media-card img {
  height: 210px;
  aspect-ratio: auto;
  object-fit: cover;
}

.template-4-visual .sm4v-media-card-content {
  padding: 15px 18px 17px;
  gap: 12px;
}

/* Trust: tighter so all three pills fit cleanly on one desktop line. */
.template-4-visual .sm4v-hero-trust {
  margin-top: 12px;
  margin-bottom: 12px;
}

.template-4-visual .sm4v-hero-trust .sm4-trust-track {
  gap: 6px;
  overflow: visible;
}

.template-4-visual .sm4v-hero-trust .sm4-trust-item {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 6px 8px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.template-4-visual .sm4v-hero-trust .sm4-trust-item .sm4-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}

/* What-to-bring strip: replace purple with the existing blue medical theme. */
.template-4-visual .sm4v-bring-section {
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(7, 91, 216, 0.07),
      transparent 20rem
    ),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.template-4-visual .sm4v-bring-strip {
  border-color: rgba(7, 91, 216, 0.16);
  background:
    radial-gradient(
        circle at 4% 22%,
        rgba(255, 255, 255, 0.92) 0 4px,
        transparent 5px
      )
      0 0 / 30px 30px,
    linear-gradient(135deg, #eaf3ff, #f5f9ff);
  box-shadow: 0 18px 44px rgba(7, 91, 216, 0.08);
}

.template-4-visual .sm4v-bring-item {
  border-right-color: rgba(7, 91, 216, 0.12);
}

.template-4-visual .sm4v-bring-icon {
  color: var(--sm4-blue-dark);
}

/* GP buttons + main CTA all on one line. */
.template-4-visual .sm4v-bring-footer {
  display: block;
  margin-top: 18px;
}

.template-4-visual .sm4v-bring-records h3 {
  margin: 0 0 10px;
}

.template-4-visual .sm4v-record-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.template-4-visual .sm4v-record-actions .sm4-btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-hero-trust .sm4-trust-item {
    font-size: 0.72rem;
    padding: 6px 7px;
  }

  .template-4-visual .sm4v-record-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-media-card img {
    height: 180px;
    aspect-ratio: auto;
  }

  .template-4-visual .sm4v-hero-trust .sm4-trust-track {
    overflow-x: auto;
  }

  .template-4-visual .sm4v-hero-trust .sm4-trust-item {
    flex: 0 0 auto;
    font-size: 0.7rem;
    padding: 6px 7px;
  }

  .template-4-visual .sm4v-record-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V6 — MOBILE STACK / FIT FIXES
   Desktop remains unchanged.
   ========================================================= */

@media (max-width: 680px) {
  /* What-to-bring: true vertical stack, no sideways strip. */
  .template-4-visual .sm4v-bring-strip {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .template-4-visual .sm4v-bring-item {
    min-height: 0;
    width: 100%;
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(7, 91, 216, 0.12);
  }

  .template-4-visual .sm4v-bring-item:last-child {
    border-bottom: 0;
  }

  /* Trust pills: wrap within viewport instead of clipping horizontally. */
  .template-4-visual .sm4v-hero-trust {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .template-4-visual .sm4v-hero-trust .sm4-trust-track {
    display: flex;
    flex-wrap: wrap !important;
    gap: 7px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .template-4-visual .sm4v-hero-trust .sm4-trust-item {
    flex: 1 1 calc(50% - 7px);
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .template-4-visual .sm4v-hero-trust .sm4-trust-item:last-child {
    flex-basis: 100%;
  }

  /* Hero video: keep the complete frame visible on mobile. */
  .template-4-visual .sm4-media-stage,
  .template-4-visual .sm4-media-frame {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .template-4-visual .sm4-media-frame {
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .template-4-visual .sm4-media-frame video,
  .template-4-visual .sm4-media-frame .sm4-hero-video {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #071b3a;
  }

  .template-4-visual .sm4-hero-shell,
  .template-4-visual .sm4-hero-copy,
  .template-4-visual .sm4-media-stage {
    min-width: 0;
    max-width: 100%;
    margin-top: 20px;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V7 — EDITABLE MEDIA + COMPACT LOCATIONS
   ========================================================= */

/* Card headings: smaller and single line on desktop. */
.template-4-visual .sm4v-media-card-content h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  white-space: nowrap;
}

.template-4-visual .sm4v-media-card-content p {
  margin-top: 5px;
}

/* Keep the graphical card body compact. */
.template-4-visual .sm4v-media-card-content {
  min-height: 116px;
  align-items: center;
}

/* Locations: reduce overall footprint. */
.template-4-visual .sm4v-locations-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.template-4-visual .sm4v-locations-head {
  margin-bottom: 24px;
}

.template-4-visual .sm4v-locations-shell {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: stretch;
}

.template-4-visual .sm4v-location-media {
  min-height: 0;
  aspect-ratio: 5 / 4;
  max-height: 410px;
}

.template-4-visual .sm4v-location-media-overlay {
  inset: auto 16px 16px;
  padding: 14px 16px;
}

.template-4-visual .sm4v-location-panel .sm4-location-panel {
  padding: 18px;
}

.template-4-visual .sm4v-location-panel .sm4-location-grid {
  /* max-height: 330px; */
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-media-card-content h3 {
    white-space: normal;
  }

  .template-4-visual .sm4v-locations-shell {
    grid-template-columns: 1fr;
  }

  .template-4-visual .sm4v-location-media {
    max-height: none;
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-media-card-content h3 {
    font-size: 1.05rem;
    white-space: normal;
  }

  .template-4-visual .sm4v-media-card-content {
    min-height: 0;
  }

  .template-4-visual .sm4v-locations-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .template-4-visual .sm4v-location-media {
    aspect-ratio: 16 / 9;
  }

  .template-4-visual .sm4v-location-panel .sm4-location-grid {
    /* max-height: 300px; */
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V8 — HERO IMAGE + LOCATION HEADER
   ========================================================= */

/* Dedicated hero image only. Do not reveal another image underneath. */
.template-4-visual .sm4-hero-backdrop {
  background-image: var(--sm4-hero-image) !important;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Location section: much tighter top rhythm. */
.template-4-visual .sm4v-locations-section {
  padding-top: 26px;
  padding-bottom: 34px;
}

.template-4-visual .sm4v-locations-head {
  margin-bottom: 16px;
}

.template-4-visual .sm4v-locations-kickers {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

/* Restore small mini-pill treatment specifically for Locations. */
.template-4-visual .sm4v-locations-kickers .sm4-section-index,
.template-4-visual .sm4v-locations-kickers .sm4-eyebrow {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 6px 11px;
  border-radius: 999px;
  line-height: 1;
}

.template-4-visual .sm4v-locations-kickers .sm4-section-index {
  min-width: 44px;
  justify-content: center;
}

.template-4-visual .sm4v-locations-head .sm4-section-title {
  margin-top: 0;
  margin-bottom: 0;
  max-width: 760px;
}

/* Pull the visual/search row closer to the title. */
.template-4-visual .sm4v-locations-shell {
  margin-top: 0;
}

/* Compact media/search composition a little further. */
.template-4-visual .sm4v-location-media {
  aspect-ratio: 16 / 10;
  max-height: 350px;
}

.template-4-visual .sm4v-location-panel .sm4-location-grid {
  /* max-height: 285px; */
}

.template-4-visual .sm4v-location-panel .sm4-location-panel {
  padding: 15px;
}

.template-4-visual .sm4v-location-media-overlay {
  inset: auto 14px 14px;
  padding: 12px 14px;
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-locations-section {
    padding-top: 24px;
  }

  .template-4-visual .sm4v-locations-head {
    margin-bottom: 14px;
  }

  .template-4-visual .sm4v-location-media {
    max-height: none;
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-locations-section {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .template-4-visual .sm4v-locations-kickers {
    margin-bottom: 8px;
  }

  .template-4-visual .sm4v-locations-kickers .sm4-section-index,
  .template-4-visual .sm4v-locations-kickers .sm4-eyebrow {
    padding: 5px 9px;
  }

  .template-4-visual .sm4v-location-media {
    aspect-ratio: 16 / 9;
  }

  .template-4-visual .sm4v-location-panel .sm4-location-grid {
    /* max-height: 260px; */
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V9 — LOCATION MINI PILLS
   ========================================================= */

/* Replace large 2-column location cards with compact wrapping pills. */
.template-4-visual .sm4v-location-panel .sm4-location-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  width: 100%;
  /* max-height: 260px; */
  padding: 2px 4px 4px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.template-4-visual .sm4v-location-panel .sm4-location {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 48px;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 14px;
  border: 1px solid rgba(7, 91, 216, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(13, 58, 123, 0.045);
  white-space: nowrap;
}

.template-4-visual .sm4v-location-panel .sm4-location-pin {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 0;
  background: transparent;
}

.template-4-visual .sm4v-location-panel .sm4-location-pin .sm4-icon {
  width: 18px;
  height: 18px;
}

.template-4-visual .sm4v-location-panel .sm4-location-arrow {
  display: none;
}

/* Preserve active/selected visual state in compact form. */
.template-4-visual .sm4v-location-panel .sm4-location:hover,
.template-4-visual .sm4v-location-panel .sm4-location:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(7, 91, 216, 0.24);
  box-shadow: 0 10px 22px rgba(13, 58, 123, 0.08);
}

.template-4-visual .sm4v-location-panel .sm4-location.is-active,
.template-4-visual .sm4v-location-panel .sm4-location[aria-current='true'] {
  border-color: rgba(7, 91, 216, 0.28);
  background: #eef6ff;
  color: var(--sm4-blue);
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-location-panel .sm4-location-grid {
    gap: 8px;
    /* max-height: 230px; */
  }

  .template-4-visual .sm4v-location-panel .sm4-location {
    min-height: 44px;
    padding: 7px 11px;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V10
   Location search + floating Bookly dropdown + one-line heading
   ========================================================= */

/* Location section filter:
   the pill display rule must not override the HTML hidden attribute. */
.template-4-visual .sm4v-location-panel .sm4-location[hidden] {
  display: none !important;
}

/* Locations heading: 02 + Near you + title all on one line on desktop. */
.template-4-visual .sm4v-locations-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 16px;
}

.template-4-visual .sm4v-locations-kickers {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.template-4-visual .sm4v-locations-head .sm4-section-title {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  margin: 0;
  white-space: nowrap;
}

/* BOOKLY searchable location:
   force suggestions to float over the form instead of changing layout height. */
.template-4-visual .sm-bookly-location-combobox {
  position: relative !important;
  z-index: 80;
  width: 100%;
}

.template-4-visual .sm-bookly-location-input-row {
  position: relative !important;
  z-index: 2;
}

.template-4-visual .sm-bookly-location-options,
.template-4-visual .sm-bookly-location-no-results {
  position: absolute !important;
  z-index: 99999 !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-height: 300px;
  margin: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(7, 91, 216, 0.14);
  border-radius: 14px;
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(13, 58, 123, 0.18);
}

/* Do not let Bookly wrappers clip the floating suggestions. */
.template-4-visual .sm4-bookly,
.template-4-visual .sm4-booking-console,
.template-4-visual .bookly-form,
.template-4-visual .bookly-box,
.template-4-visual .bookly-form-group,
.template-4-visual .bookly-js-service-step,
.template-4-visual .bookly-js-chain-item {
  overflow: visible !important;
}

/* Tablet/mobile: allow heading to wrap cleanly when one line no longer fits. */
@media (max-width: 980px) {
  .template-4-visual .sm4v-locations-head {
    flex-wrap: wrap;
    gap: 9px 12px;
  }

  .template-4-visual .sm4v-locations-head .sm4-section-title {
    flex-basis: 100%;
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-locations-head {
    margin-bottom: 12px;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V11
   Shorter floating location dropdown + remove section pills
   ========================================================= */

/* Remove section number / eyebrow pills throughout Template 4 Visual. */
.template-4-visual .sm4-section-index,
.template-4-visual .sm4-eyebrow {
  display: none !important;
}

/* Booking / Locations / FAQ headings no longer reserve space for hidden pills. */
.template-4-visual .sm4v-booking-layout,
.template-4-visual .sm4v-locations-head,
.template-4-visual .sm4v-faq-section .sm4-faq-intro,
.template-4-visual .sm4v-reviews-head {
  position: relative;
}

.template-4-visual .sm4v-locations-head {
  display: block;
  margin-bottom: 14px;
}

.template-4-visual .sm4v-locations-kickers {
  display: none !important;
}

.template-4-visual .sm4v-locations-head .sm4-section-title {
  width: 100%;
  max-width: none;
  margin: 0;
  white-space: normal;
}

/* Keep section title spacing compact after removing pills. */
.template-4-visual .sm4-section-title {
  margin-top: 0;
}

/* BOOKLY floating location result list:
   shorter and forced above all surrounding sections. */
.template-4-visual #booking,
.template-4-visual .sm4v-booking-band,
.template-4-visual .sm4v-booking-layout,
.template-4-visual .sm4-booking-console,
.template-4-visual .sm4-bookly,
.template-4-visual .bookly-form,
.template-4-visual .bookly-box,
.template-4-visual .bookly-form-group,
.template-4-visual .bookly-js-service-step,
.template-4-visual .bookly-js-chain-item {
  position: relative;
  overflow: visible !important;
}

.template-4-visual #booking,
.template-4-visual .sm4v-booking-band {
  z-index: 40;
}

.template-4-visual .sm4-booking-console {
  z-index: 50;
}

.template-4-visual .sm4-bookly {
  z-index: 60;
}

.template-4-visual .sm-bookly-location-combobox {
  position: relative !important;
  z-index: 999990 !important;
}

.template-4-visual .sm-bookly-location-options,
.template-4-visual .sm-bookly-location-no-results {
  position: absolute !important;
  z-index: 999999 !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-height: 210px !important;
  margin: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #fff !important;
  box-shadow: 0 22px 54px rgba(13, 58, 123, 0.22) !important;
}

/* Prevent following sections from visually painting over the popup. */
.template-4-visual #essentials,
.template-4-visual #locations,
.template-4-visual .sm4v-faq-section,
.template-4-visual .sm4v-reviews-section,
.template-4-visual .sm4v-final-section {
  position: relative;
  z-index: 1;
}

@media (max-width: 680px) {
  .template-4-visual .sm-bookly-location-options,
  .template-4-visual .sm-bookly-location-no-results {
    max-height: 180px !important;
  }

  .template-4-visual .sm4v-locations-head {
    margin-bottom: 10px;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V12
   Bring section cleanup + equal spacing + improved final CTA
   ========================================================= */

/* Remove remaining bring-section pills/price chip and pull title fully left. */
.template-4-visual .sm4v-bring-meta,
.template-4-visual .sm4v-bring-meta .sm4-eyebrow,
.template-4-visual .sm4v-bring-meta .sm4v-split-price,
.template-4-visual .sm4v-bring-section .sm4-price-pill {
  display: none !important;
}

.template-4-visual .sm4v-bring-head {
  display: block !important;
  margin-bottom: 28px;
}

.template-4-visual .sm4v-bring-head .sm4-section-title {
  max-width: 14ch;
  margin: 0;
}

/* Keep page section spacing visually consistent. */
.template-4-visual .sm4v-booking-band,
.template-4-visual .sm4v-bring-section,
.template-4-visual .sm4v-locations-section,
.template-4-visual .sm4v-faq-section,
.template-4-visual .sm4v-reviews-section,
.template-4-visual .sm4v-final-section {
  padding-top: clamp(60px, 6vw, 84px) !important;
  padding-bottom: clamp(60px, 6vw, 84px) !important;
}

.template-4-visual .sm4v-locations-head,
.template-4-visual .sm4v-bring-head,
.template-4-visual .sm4v-reviews-head,
.template-4-visual .sm4v-faq-section .sm4-faq-intro {
  margin-bottom: 28px !important;
}

/* Final CTA: stronger vertical centering, title left, less flat with faded image. */
.template-4-visual .sm4v-final-section {
  position: relative;
  overflow: hidden;
}

.template-4-visual .sm4v-final-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 38, 93, 0.28) 0%,
      rgba(7, 38, 93, 0.16) 38%,
      rgba(7, 38, 93, 0.08) 100%
    ),
    url('../assets/blue_taxi_final_fade.png') center right / cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

.template-4-visual .sm4v-final-backdrop {
  z-index: 1;
}

.template-4-visual .sm4v-final-section > .sm4-wrap {
  position: relative;
  z-index: 2;
}

.template-4-visual .sm4v-final-inner {
  min-height: 170px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center !important;
}

.template-4-visual .sm4v-final-inner > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.template-4-visual .sm4v-final-inner > div:first-child .sm4-section-title {
  margin: 0;
  text-align: left;
}

.template-4-visual .sm4-final-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
}

.template-4-visual .sm4v-final-section .sm4-btn {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-final-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .template-4-visual .sm4-final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-booking-band,
  .template-4-visual .sm4v-bring-section,
  .template-4-visual .sm4v-locations-section,
  .template-4-visual .sm4v-faq-section,
  .template-4-visual .sm4v-reviews-section,
  .template-4-visual .sm4v-final-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .template-4-visual .sm4v-bring-head .sm4-section-title {
    max-width: none;
  }

  .template-4-visual .sm4v-final-section::before {
    background-position: center center;
    opacity: 0.12;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V13
   Bring title 2-line lock + stronger section separation
   ========================================================= */

/* Bring section heading: keep it visually to 2 lines on desktop. */
.template-4-visual .sm4v-bring-head .sm4-section-title {
  max-width: 10.8ch !important;
  font-size: clamp(2.85rem, 4.9vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

/* Stronger bottom/background separation so this section does not merge into the next one. */
.template-4-visual .sm4v-bring-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(7, 91, 216, 0.08),
      transparent 20rem
    ),
    radial-gradient(
      circle at 78% 110%,
      rgba(7, 91, 216, 0.22),
      transparent 28rem
    ),
    radial-gradient(
      circle at 18% 108%,
      rgba(77, 170, 255, 0.16),
      transparent 22rem
    ),
    linear-gradient(180deg, #f7fbff 0%, #eef6ff 60%, #dfeeff 100%) !important;
}

.template-4-visual .sm4v-bring-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 160px;
  background: radial-gradient(
    70% 100% at 50% 100%,
    rgba(7, 91, 216, 0.22) 0%,
    rgba(7, 91, 216, 0.12) 38%,
    rgba(7, 91, 216, 0) 72%
  );
  pointer-events: none;
}

.template-4-visual .sm4v-bring-section > .sm4-wrap {
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-bring-head .sm4-section-title {
    max-width: 12ch !important;
    font-size: clamp(2.45rem, 5vw, 4rem);
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-bring-head .sm4-section-title {
    max-width: none !important;
    font-size: clamp(2.25rem, 8vw, 3.2rem);
    line-height: 0.96;
  }

  .template-4-visual .sm4v-bring-section::after {
    height: 120px;
    bottom: -18px;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V14
   Correct 2-line bring heading + stronger bottom glow
   ========================================================= */

/* True two-line desktop heading. */
.template-4-visual .sm4v-bring-head .sm4-section-title {
  width: 100%;
  max-width: 22ch !important;
  text-wrap: balance;
}

/* Strengthen the lower blue separation without changing the upper section tone. */
.template-4-visual .sm4v-bring-section {
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(7, 91, 216, 0.08),
      transparent 20rem
    ),
    radial-gradient(
      circle at 76% 112%,
      rgba(7, 91, 216, 0.31),
      transparent 30rem
    ),
    radial-gradient(
      circle at 18% 110%,
      rgba(77, 170, 255, 0.22),
      transparent 24rem
    ),
    linear-gradient(180deg, #f7fbff 0%, #edf6ff 54%, #d6e9ff 100%) !important;
}

.template-4-visual .sm4v-bring-section::after {
  bottom: -18px;
  height: 190px;
  background: radial-gradient(
    72% 110% at 50% 100%,
    rgba(7, 91, 216, 0.34) 0%,
    rgba(7, 91, 216, 0.19) 38%,
    rgba(7, 91, 216, 0.05) 66%,
    rgba(7, 91, 216, 0) 82%
  );
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-bring-head .sm4-section-title {
    max-width: 21ch !important;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-bring-head .sm4-section-title {
    max-width: none !important;
    text-wrap: pretty;
  }

  .template-4-visual .sm4v-bring-section::after {
    height: 145px;
    bottom: -14px;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V15
   Locations section: faded background image + full-width panel
   ========================================================= */

.template-4-visual .sm4v-locations-shell {
  position: relative;
  display: block !important;
  width: 100%;
  min-height: 0;
  padding: clamp(22px, 2.8vw, 34px);
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    135deg,
    rgba(241, 247, 255, 0.92) 0%,
    rgba(231, 241, 255, 0.9) 100%
  );
  border: 1px solid rgba(185, 210, 245, 0.7);
  box-shadow: 0 22px 60px rgba(22, 52, 110, 0.1);
}

.template-4-visual .sm4v-locations-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(247, 251, 255, 0.97) 0%,
      rgba(247, 251, 255, 0.95) 24%,
      rgba(247, 251, 255, 0.88) 48%,
      rgba(247, 251, 255, 0.92) 100%
    ),
    var(--sm4v-location-bg) center center / cover no-repeat;
  opacity: 1;
  transform: scale(1.02);
}

.template-4-visual .sm4v-locations-shell::after {
  content: '';
  position: absolute;
  inset: auto -12% -36% auto;
  width: clamp(280px, 36vw, 560px);
  height: clamp(280px, 36vw, 560px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(18, 98, 230, 0.16) 0%,
    rgba(18, 98, 230, 0.09) 35%,
    rgba(18, 98, 230, 0) 72%
  );
  z-index: 0;
  pointer-events: none;
}

.template-4-visual .sm4v-location-media {
  display: none !important;
}

.template-4-visual .sm4v-location-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
}

.template-4-visual .sm4v-location-panel .sm4-location-panel {
  width: 100%;
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: 28px;
  border: 1px solid rgba(186, 209, 243, 0.68);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(11, 38, 89, 0.08);
}

.template-4-visual .sm4v-location-panel .sm4-location-grid {
  width: 100%;
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-locations-shell {
    padding: 18px;
    border-radius: 26px;
  }

  .template-4-visual .sm4v-location-panel .sm4-location-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .template-4-visual .sm4v-locations-shell::before {
    background:
      linear-gradient(
        180deg,
        rgba(247, 251, 255, 0.96) 0%,
        rgba(247, 251, 255, 0.92) 28%,
        rgba(247, 251, 255, 0.88) 100%
      ),
      var(--sm4v-location-bg) center center / cover no-repeat;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-locations-shell {
    padding: 14px;
    border-radius: 22px;
  }

  .template-4-visual .sm4v-location-panel .sm4-location-panel {
    padding: 14px;
    border-radius: 20px;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V16
   Unified H2/section spacing + full-bleed Locations background
   ========================================================= */

/* Requested heading size across the entire template. */
.template-4-visual h2,
.template-4-visual .sm4-section-title {
  font-size: clamp(2rem, 3.6vw, 3.35rem) !important;
}

/* Requested equal vertical spacing across all standard page sections. */
.template-4-visual .sm4-section {
  padding-top: clamp(60px, 6vw, 84px) !important;
  padding-bottom: clamp(60px, 6vw, 84px) !important;
}

/* Locations image now belongs to the complete full-bleed section. */
.template-4-visual .sm4v-locations-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(241, 248, 255, 0.93) 0%,
    rgba(238, 247, 255, 0.86) 48%,
    rgba(228, 242, 255, 0.84) 100%
  );
}

.template-4-visual .sm4v-locations-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(245, 250, 255, 0.94) 0%,
      rgba(242, 249, 255, 0.88) 35%,
      rgba(235, 246, 255, 0.82) 68%,
      rgba(225, 241, 255, 0.78) 100%
    ),
    var(--sm4v-location-bg) center center / cover no-repeat;
}

.template-4-visual .sm4v-locations-section::after {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -42%;
  width: clamp(420px, 48vw, 760px);
  height: clamp(420px, 48vw, 760px);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(7, 91, 216, 0.17) 0%,
    rgba(7, 91, 216, 0.08) 42%,
    rgba(7, 91, 216, 0) 72%
  );
}

.template-4-visual .sm4v-locations-section > .sm4-wrap {
  position: relative;
  z-index: 2;
}

/* Remove the old framed outer shell completely. */
.template-4-visual .sm4v-locations-shell {
  display: block !important;
  width: 100%;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  isolation: auto;
}

.template-4-visual .sm4v-locations-shell::before,
.template-4-visual .sm4v-locations-shell::after {
  display: none !important;
}

/* Content stays inside the normal site container width. */
.template-4-visual .sm4v-location-panel {
  width: 100%;
  max-width: none;
}

.template-4-visual .sm4v-location-panel .sm4-location-panel {
  width: 100%;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: 30px;
  border: 1px solid rgba(177, 205, 242, 0.72);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 54px rgba(12, 42, 94, 0.11);
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-location-panel .sm4-location-panel {
    padding: 15px;
    border-radius: 22px;
  }

  .template-4-visual .sm4v-locations-section::before {
    background:
      linear-gradient(
        180deg,
        rgba(245, 250, 255, 0.94) 0%,
        rgba(238, 247, 255, 0.86) 100%
      ),
      var(--sm4v-location-bg) center center / cover no-repeat;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V17
   Make backend Locations image visibly fill the section
   ========================================================= */

.template-4-visual .sm4v-locations-section {
  background-color: #dfeeff !important;
  background-image: var(--sm4v-location-bg) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Use a lighter veil so the selected backend image remains visible. */
.template-4-visual .sm4v-locations-section::before {
  background: linear-gradient(
    90deg,
    rgba(239, 247, 255, 0.76) 0%,
    rgba(236, 246, 255, 0.68) 38%,
    rgba(229, 242, 255, 0.62) 68%,
    rgba(220, 237, 255, 0.58) 100%
  ) !important;
}

.template-4-visual .sm4v-location-panel .sm4-location-panel {
  background: rgba(255, 255, 255, 0.86) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-locations-section {
    background-position: center center !important;
  }

  .template-4-visual .sm4v-locations-section::before {
    background: linear-gradient(
      180deg,
      rgba(241, 248, 255, 0.76) 0%,
      rgba(232, 244, 255, 0.66) 100%
    ) !important;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V18
   Locations background — show full composition, no cover zoom
   ========================================================= */

.template-4-visual .sm4v-locations-section {
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Keep the faded image visible but secondary to the location controls. */
.template-4-visual .sm4v-locations-section::before {
  background: linear-gradient(
    90deg,
    rgba(239, 247, 255, 0.72) 0%,
    rgba(236, 246, 255, 0.64) 38%,
    rgba(229, 242, 255, 0.58) 68%,
    rgba(220, 237, 255, 0.54) 100%
  ) !important;
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-locations-section {
    background-size: auto 100% !important;
    background-position: center center !important;
  }
}

@media (max-width: 680px) {
  .template-4-visual .sm4v-locations-section {
    background-size: auto 100% !important;
    background-position: 56% center !important;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL COMPACT V19
   Locations section — clean white background, no image
   ========================================================= */

.template-4-visual .sm4v-locations-section {
  background: #ffffff !important;
  background-image: none !important;
}

.template-4-visual .sm4v-locations-section::before,
.template-4-visual .sm4v-locations-section::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.template-4-visual .sm4v-location-panel .sm4-location-panel {
  background: #ffffff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* =========================================================
   TEMPLATE 4 VISUAL — MANUAL REVIEWS SLIDER
   Compact premium slider for backend manual reviews.
   ========================================================= */
.template-4-visual .sm4v-review-slider {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(7, 91, 216, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(100, 213, 255, 0.12),
      transparent 34%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: none;
}

.template-4-visual .sm4v-review-slider__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.template-4-visual .sm4v-review-slider__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sm4-ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.template-4-visual .sm4v-review-slider__spark {
  color: #f5b301;
  font-size: 1rem;
}

.template-4-visual .sm4v-review-slider__controls {
  display: flex;
  gap: 8px;
}

.template-4-visual .sm4v-review-nav {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(7, 91, 216, 0.16);
  border-radius: 999px;
  color: var(--sm4-blue);
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.template-4-visual .sm4v-review-nav:hover,
.template-4-visual .sm4v-review-nav:focus-visible {
  color: #ffffff;
  background: var(--sm4-blue);
  transform: translateY(-1px);
}

.template-4-visual .sm4v-review-nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.template-4-visual .sm4v-manual-reviews {
  display: flex;
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.template-4-visual .sm4v-manual-reviews::-webkit-scrollbar {
  display: none;
}

.template-4-visual .sm4v-review-card {
  position: relative;
  flex: 0 0 calc((100% - 28px) / 3);
  min-width: 0;
  padding: 18px 18px 16px;
  scroll-snap-align: start;
  border: 1px solid rgba(7, 91, 216, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.template-4-visual .sm4v-review-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  right: 16px;
  color: rgba(7, 91, 216, 0.08);
  font-family: Georgia, serif;
  font-size: 3.3rem;
  line-height: 1;
  pointer-events: none;
}

.template-4-visual .sm4v-review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  color: #d7dee8;
  font-size: 0.96rem;
  line-height: 1;
}

.template-4-visual .sm4v-review-stars .is-filled {
  color: #f5b301;
}

.template-4-visual .sm4v-review-copy {
  position: relative;
  z-index: 1;
  color: var(--sm4-text);
  font-size: 0.91rem;
  line-height: 1.55;
}

.template-4-visual .sm4v-review-copy > :first-child {
  margin-top: 0;
}

.template-4-visual .sm4v-review-copy > :last-child {
  margin-bottom: 0;
}

.template-4-visual .sm4v-review-footer {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(7, 91, 216, 0.09);
}

.template-4-visual .sm4v-review-footer strong {
  color: var(--sm4-ink);
  font-size: 0.9rem;
}

.template-4-visual .sm4v-review-footer span {
  color: var(--sm4-muted);
  font-size: 0.78rem;
}

.template-4-visual .sm4v-reviews-empty {
  margin: 0;
  color: var(--sm4-muted);
  text-align: center;
}

/* Mobile VSL CTA is intentionally hidden on desktop/tablet. */
.template-4-visual .sm4v-mobile-vsl-cta {
  display: none;
}

@media (max-width: 900px) {
  .template-4-visual .sm4v-review-card {
    flex-basis: calc((100% - 14px) / 2);
  }
}

@media (max-width: 620px) {
  .template-4-visual .sm4v-review-slider {
    padding: 14px;
    border-radius: 20px;
  }

  .template-4-visual .sm4v-review-slider__top {
    margin-bottom: 12px;
  }

  .template-4-visual .sm4v-review-slider__label {
    font-size: 0.76rem;
  }

  .template-4-visual .sm4v-review-nav {
    width: 34px;
    height: 34px;
  }

  .template-4-visual .sm4v-review-card {
    flex-basis: 88%;
    padding: 16px;
  }

  /* Move the primary hero booking CTA below the VSL on mobile. */
  .template-4-visual .sm4-hero-actions > .sm4-btn--white:first-child {
    display: none !important;
  }

  .template-4-visual .sm4v-mobile-vsl-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    text-align: center;
  }

  .template-4-visual .sm4v-mobile-vsl-cta .sm4-btn {
    justify-content: center;
    min-width: min(250px, 86vw);
    margin-inline: auto;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL — MANUAL REVIEW POLISH
   Single container + aligned reviewer names.
   ========================================================= */
.template-4-visual .sm4-reviews-shell.sm4-reviews-shell--manual {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.template-4-visual .sm4-reviews-shell.sm4-reviews-shell--manual:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.template-4-visual .sm4v-manual-reviews {
  align-items: stretch;
}

.template-4-visual .sm4v-review-card {
  display: flex;
  flex-direction: column;
  height: auto;
}

.template-4-visual .sm4v-review-footer {
  margin-top: auto;
}

/* Final CTA reveal: lighter/earlier motion because this is the end of the page. */
html.sm4-motion-ready .template-4-visual .sm4v-final-inner[data-sm4-reveal] {
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 520ms cubic-bezier(0.16, 0.78, 0.24, 1),
    transform 520ms cubic-bezier(0.16, 0.78, 0.24, 1);
}

html.sm4-motion-ready
  .template-4-visual
  .sm4v-final-inner[data-sm4-reveal].sm4-visible {
  opacity: 1;
  transform: none;
}

/* LP only */
.single-sm_landing .header--row-inner .row--wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  grid-template-columns: 1fr !important;
}

/* Keep only the left slot and center it */
.single-sm_landing .header--row-inner .hfg-slot.left {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Remove right side content completely */
.single-sm_landing .header--row-inner .hfg-slot.right {
  display: none !important;
}

/* Center logo block */
.single-sm_landing .builder-item--logo,
.single-sm_landing .site-logo,
.single-sm_landing .custom-logo-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Remove nav everywhere on LP */
.single-sm_landing .builder-item--primary-menu,
.single-sm_landing .nav-menu-primary,
.single-sm_landing .nv-nav-wrap,
.single-sm_landing .primary-menu-ul {
  display: none !important;
}

/* Remove mobile menu toggle */
.single-sm_landing .navbar-toggle-wrapper,
.single-sm_landing .menu-mobile-toggle,
.single-sm_landing .nav-toggle,
.single-sm_landing [class*='mobile-toggle'] {
  display: none !important;
}

@media (max-width: 959px) {
  .sm-mobile-header-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 4%;
    transform: translateY(-50%);
    padding: 6px 18px;
    border-radius: 50px;
    background: #0a3475;
    color: #fff;
    z-index: 999999;
  }
}

@media (min-width: 960px) {
  .sm-mobile-header-book {
    display: none;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL — CENTRAL CLINIC FINDER
   Confirmed clinic dataset + API-ready map shell.
   ========================================================= */
.template-4-visual .sm4v-clinic-finder {
  background-image: none !important;
}

.template-4-visual .sm4v-clinic-finder::before,
.template-4-visual .sm4v-clinic-finder::after,
.template-4-visual .sm4v-clinic-finder .sm4v-locations-shell::before,
.template-4-visual .sm4v-clinic-finder .sm4v-locations-shell::after {
  display: none !important;
}

.template-4-visual .sm4v-locations-intro {
  max-width: 700px;
  margin: 10px 0 0;
  color: #526274;
  font-size: 16px;
  line-height: 1.65;
}

.template-4-visual .sm4v-finder-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 26px;
}

.template-4-visual .sm4v-finder-layout > * {
  min-width: 0;
}

.template-4-visual .sm4v-clinic-finder .sm4-location-panel {
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(12, 52, 117, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 41, 76, 0.08);
}

.template-4-visual .sm4v-finder-search {
  margin: 0;
}

.template-4-visual .sm4v-finder-search input {
  min-height: 52px;
  padding-right: 16px;
}

.template-4-visual .sm4v-finder-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 10px;
  color: #657386;
  font-size: 13px;
}

.template-4-visual .sm4v-finder-meta strong {
  color: #0a3475;
}

.template-4-visual .sm4v-clear-search {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0a3475;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.template-4-visual .sm4v-clinic-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 500px;
  overflow: auto;
  padding: 0 4px 2px 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.template-4-visual .sm4v-clinic-card.sm4-location {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid #e4eaf1;
  border-radius: 15px;
  background: #fff;
  color: #18293d;
  text-decoration: none;
  box-shadow: none;
  transform: none;
}

.template-4-visual .sm4v-clinic-card.sm4-location:hover {
  border-color: rgba(10, 52, 117, 0.28);
  background: #f8fbff;
  transform: none;
}

.template-4-visual .sm4v-clinic-card[hidden] {
  display: none !important;
}

.template-4-visual .sm4v-clinic-card .sm4-location-pin {
  width: 34px;
  height: 34px;
  flex: none;
}

.template-4-visual .sm4v-clinic-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.template-4-visual .sm4v-clinic-copy strong {
  color: #102b50;
  font-size: 14px;
  line-height: 1.25;
}

.template-4-visual .sm4v-clinic-address {
  color: #6b7787;
  font-size: 12px;
  line-height: 1.4;
}

.template-4-visual .sm4v-clinic-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 999px;
  color: #0a3475;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.template-4-visual .sm4v-clinic-link:hover {
  background: #eef5ff;
  color: #082b61;
}

.template-4-visual .sm4v-clinic-link .sm4-location-arrow {
  position: static;
  width: 15px;
  height: 15px;
  opacity: 1;
}

.template-4-visual .sm4v-location-empty {
  margin: 14px 0 2px;
  padding: 15px;
  border-radius: 13px;
  background: #f6f8fb;
  color: #667386;
  text-align: center;
  font-size: 13px;
}

.template-4-visual .sm4v-map-panel {
  min-height: 100%;
}

.template-4-visual .sm4v-map-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 590px;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(12, 52, 117, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(rgba(238, 245, 253, 0.72), rgba(238, 245, 253, 0.72)),
    var(--sm4v-location-bg, none) center / cover no-repeat,
    #edf4fb;
  box-shadow: 0 16px 40px rgba(16, 41, 76, 0.08);
}

.template-4-visual .sm4v-map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 52, 117, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 52, 117, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.template-4-visual .sm4v-map-placeholder__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(330px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(16, 41, 76, 0.1);
  text-align: center;
}

.template-4-visual .sm4v-map-placeholder__inner strong {
  color: #102b50;
  font-size: 18px;
}

.template-4-visual .sm4v-map-placeholder__inner span:last-child {
  color: #657386;
  font-size: 13px;
  line-height: 1.5;
}

.template-4-visual .sm4v-map-pin-large {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0a3475;
  color: #fff;
}

.template-4-visual .sm4v-map-pin-large svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .template-4-visual .sm4v-finder-layout {
    grid-template-columns: 1fr;
  }

  .template-4-visual .sm4v-map-panel {
    order: -1;
  }

  .template-4-visual .sm4v-map-placeholder {
    min-height: 300px;
  }

  .template-4-visual .sm4v-clinic-list {
    max-height: 460px;
  }
}

@media (max-width: 560px) {
  .template-4-visual .sm4v-locations-intro {
    font-size: 14px;
  }

  .template-4-visual .sm4v-finder-layout {
    gap: 14px;
    margin-top: 18px;
  }

  .template-4-visual .sm4v-clinic-finder .sm4-location-panel {
    padding: 12px;
    border-radius: 18px;
  }

  .template-4-visual .sm4v-map-placeholder {
    min-height: 235px;
    border-radius: 18px;
  }

  .template-4-visual .sm4v-map-placeholder__inner {
    width: min(290px, calc(100% - 28px));
    padding: 18px;
  }

  .template-4-visual .sm4v-clinic-list {
    max-height: 420px;
  }

  .template-4-visual .sm4v-clinic-card.sm4-location {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 66px;
    padding: 9px;
  }

  .template-4-visual .sm4v-clinic-card .sm4-location-pin {
    width: 30px;
    height: 30px;
  }

  .template-4-visual .sm4v-clinic-link {
    padding: 7px 5px;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL — CLINIC FINDER REFERENCE LAYOUT V2
   Matches the approved split list/map reference.
   ========================================================= */
.template-4-visual .sm4v-clinic-finder {
  padding: 34px 0 42px;
  background: #fff !important;
}

.template-4-visual .sm4v-reference-heading {
  margin: 0 auto 30px;
  text-align: center;
}
.template-4-visual .sm4v-reference-heading .sm4-section-title {
  max-width: 100%;
}
/* .template-4-visual .sm4v-reference-heading .sm4-section-title {
  max-width: 980px;
  margin: 0 auto;
  color: #18145f;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
} */

.template-4-visual .sm4v-finder-layout {
  display: grid;
  grid-template-columns: minmax(330px, 34%) minmax(0, 66%);
  gap: 0;
  align-items: stretch;
  max-width: 1260px;
  margin: 0 auto;
  border: 0;
  background: #fff;
}

.template-4-visual .sm4v-location-panel,
.template-4-visual .sm4v-map-panel {
  min-width: 0;
}

.template-4-visual .sm4v-clinic-finder .sm4-location-panel {
  height: 560px;
  padding: 26px 22px 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #e0e0e0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.template-4-visual .sm4v-finder-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #202020;
  font-size: 18px;
  line-height: 1.25;
}

.template-4-visual .sm4v-finder-label .sm4-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #222;
}

.template-4-visual .sm4v-finder-label .sm4-icon svg {
  width: 24px;
  height: 24px;
}

.template-4-visual .sm4v-finder-search {
  position: relative;
  margin: 0 0 24px;
}

.template-4-visual .sm4v-finder-search .sm4-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 2;
  width: 20px;
  height: 20px;
  color: #333;
  transform: translateY(-50%);
  pointer-events: none;
}

.template-4-visual .sm4v-finder-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px 0 48px;
  border: 1px solid #8c8c8c;
  border-radius: 5px;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 1;
  box-shadow: none;
}

.template-4-visual .sm4v-finder-search input::placeholder {
  color: #8b8b8b;
  opacity: 1;
}

.template-4-visual .sm4v-finder-search input:focus {
  border-color: #1d63cf;
  outline: 2px solid rgba(29, 99, 207, 0.12);
  outline-offset: 0;
}

.template-4-visual .sm4v-finder-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 2px 14px;
  border-bottom: 1px solid #e0e0e0;
  color: #222;
  font-size: 16px;
  font-weight: 700;
}

.template-4-visual .sm4v-finder-meta strong {
  color: inherit;
  font-weight: inherit;
}

.template-4-visual .sm4v-clear-search {
  color: #1764d7;
  font-size: 12px;
}

.template-4-visual .sm4v-clinic-list {
  display: block;
  height: calc(560px - 172px);
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px 18px 0;
  scrollbar-width: thin;
  scrollbar-color: #c7c7c7 transparent;
}

.template-4-visual .sm4v-clinic-list::-webkit-scrollbar {
  width: 7px;
}

.template-4-visual .sm4v-clinic-list::-webkit-scrollbar-track {
  background: transparent;
}

.template-4-visual .sm4v-clinic-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c7c7c7;
}

.template-4-visual .sm4v-clinic-card.sm4-location {
  position: relative;
  display: block;
  min-height: 0;
  padding: 16px 10px 16px 18px;
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  background: #fff;
  color: #222;
  box-shadow: none;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.template-4-visual .sm4v-clinic-card.sm4-location:hover {
  border-color: #e0e0e0;
  background: #fafcff;
}

.template-4-visual .sm4v-clinic-card.sm4-location.is-selected,
.template-4-visual .sm4v-clinic-card.sm4-location[aria-current='true'] {
  background: #f1f7ff;
  box-shadow: inset 4px 0 0 #1764d7;
}

.template-4-visual .sm4v-clinic-card.sm4-location:focus {
  outline: 0;
}

.template-4-visual .sm4v-clinic-main {
  display: grid;
  justify-items: start;
  gap: 0;
  min-width: 0;
}

.template-4-visual .sm4v-clinic-name {
  display: block;
  width: 100%;
  color: #202020;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.32;
  text-align: left;
}

.template-4-visual .sm4v-clinic-address {
  display: grid;
  gap: 2px;
  color: #707070;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
}

.template-4-visual .sm4v-book-appointment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 0;
  padding: 8px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #1764d7;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.template-4-visual .sm4v-book-appointment:hover,
.template-4-visual .sm4v-book-appointment:focus-visible {
  border-color: #b8ccec;
  background: #f3f8ff;
}

.template-4-visual .sm4v-book-appointment .sm4-icon {
  width: 17px;
  height: 17px;
}

.template-4-visual .sm4v-clinic-actions {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.template-4-visual .sm4v-clinic-directions {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: #fff;
  color: #1764d7;
  text-decoration: none;
}

.template-4-visual .sm4v-clinic-directions:hover,
.template-4-visual .sm4v-clinic-directions:focus-visible {
  border-color: #b8ccec;
  background: #f3f8ff;
}

.template-4-visual .sm4v-clinic-directions .sm4-icon {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
}

.template-4-visual .sm4v-map-panel {
  height: 560px;
}

.template-4-visual .sm4v-map-placeholder {
  position: relative;
  width: 100%;
  height: 560px;
  min-height: 560px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(221, 238, 245, 0.52), rgba(221, 238, 245, 0.52)),
    var(--sm4v-location-bg, none) center / cover no-repeat,
    #d8eef4;
  box-shadow: none;
}

.template-4-visual .sm4v-map-placeholder::before {
  opacity: 0.28;
}

.template-4-visual .sm4v-map-placeholder__inner {
  width: min(300px, calc(100% - 40px));
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.template-4-visual .sm4v-location-empty {
  margin: 18px 12px;
}

.template-4-visual .sm4v-clinic-actions .sm4v-book-appointment {
  flex: 0 1 auto;
}

@media (max-width: 900px) {
  .template-4-visual .sm4v-clinic-finder {
    padding: 26px 0 32px;
  }

  .template-4-visual .sm4v-reference-heading {
    margin-bottom: 20px;
  }

  .template-4-visual .sm4v-finder-layout {
    grid-template-columns: 1fr;
  }

  .template-4-visual .sm4v-map-panel {
    order: 0;
    height: 360px;
  }

  .template-4-visual .sm4v-clinic-finder .sm4-location-panel {
    height: 520px;
    border-right: 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .template-4-visual .sm4v-clinic-list {
    height: calc(520px - 172px);
  }

  .template-4-visual .sm4v-map-placeholder {
    height: 360px;
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .template-4-visual .sm4v-clinic-finder .sm4-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .template-4-visual .sm4v-reference-heading {
    padding: 0 18px;
  }

  .template-4-visual .sm4v-clinic-card.sm4-location {
    padding: 16px 8px 16px 16px;
  }

  .template-4-visual .sm4v-clinic-actions {
    gap: 10px;
  }

  /* .template-4-visual .sm4v-reference-heading .sm4-section-title {
    font-size: 20px;
  } */

  .template-4-visual .sm4v-clinic-finder .sm4-location-panel {
    height: 510px;
    padding: 20px 16px 0;
  }

  .template-4-visual .sm4v-finder-label {
    font-size: 17px;
  }

  .template-4-visual .sm4v-finder-search input {
    min-height: 52px;
    font-size: 15px;
  }

  .template-4-visual .sm4v-clinic-list {
    height: calc(510px - 164px);
    padding-right: 4px;
  }

  .template-4-visual .sm4v-clinic-card.sm4-location {
    grid-template-columns: minmax(0, 1fr) 38px;
    min-height: 146px;
    padding: 18px 4px 16px 18px;
  }

  .template-4-visual .sm4v-clinic-directions {
    width: 38px;
    height: 38px;
  }

  .template-4-visual .sm4v-map-panel,
  .template-4-visual .sm4v-map-placeholder {
    height: 280px;
    min-height: 280px;
  }
}

/* =========================================================
   TEMPLATE 4 VISUAL CLINIC FINDER V18
   Reference layout: fixed left results panel + full-height map
   ========================================================= */
.template-4-visual .sm4v-locations-section {
  padding-top: clamp(42px, 4.5vw, 66px) !important;
  padding-bottom: clamp(48px, 5vw, 72px) !important;
  background: #fff !important;
  background-image: none !important;
  overflow: visible !important;
}
.template-4-visual .sm4v-locations-section::before,
.template-4-visual .sm4v-locations-section::after {
  display: none !important;
}
.template-4-visual .sm4v-reference-heading {
  margin: 0 auto clamp(26px, 3vw, 42px);
  text-align: center;
}
/* .template-4-visual .sm4v-reference-heading .sm4-section-title {
  margin: 0;
  color: #15175a;
  font-size: clamp(28px, 2.65vw, 44px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.025em;
} */
.template-4-visual .sm4v-locations-shell.sm4v-finder-layout {
  display: grid !important;
  grid-template-columns: minmax(330px, 34%) minmax(0, 66%);
  width: 100%;
  min-height: 560px;
  height: min(64vw, 630px);
  max-height: 630px;
  overflow: hidden !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.template-4-visual .sm4v-location-panel {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid #e5e7eb;
  background: #fff;
}
.template-4-visual .sm4v-location-panel .sm4-location-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 24px 26px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.template-4-visual .sm4v-finder-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: #202124;
  font-size: 19px;
  line-height: 1.3;
}
.template-4-visual .sm4v-finder-label .sm4-icon {
  width: 22px;
  height: 22px;
  color: #202124;
}
.template-4-visual .sm4-location-search.sm4v-finder-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 18px;
}
.template-4-visual .sm4-location-search.sm4v-finder-search > .sm4-icon {
  position: absolute;
  left: 15px;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: #333;
  pointer-events: none;
}
.template-4-visual .sm4-location-search.sm4v-finder-search input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 47px;
  border: 1px solid #74777c;
  border-radius: 4px;
  background: #fff;
  color: #202124;
  font-size: 15px;
  outline: none;
  box-shadow: none;
}
.template-4-visual .sm4-location-search.sm4v-finder-search input:focus {
  border-color: #075bd8;
  box-shadow: 0 0 0 2px rgba(7, 91, 216, 0.08);
}
.template-4-visual .sm4v-finder-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 2px 14px;
  border-bottom: 1px solid #dfe1e5;
  color: #262626;
  font-size: 15px;
  font-weight: 600;
}
.template-4-visual .sm4v-clear-search {
  appearance: none;
  border: 0;
  background: transparent;
  color: #075bd8;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.template-4-visual .sm4v-location-panel .sm4-location-grid.sm4v-clinic-list {
  display: block !important;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0 0 14px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c8c8c8 transparent;
}
.template-4-visual
  .sm4v-location-panel
  .sm4-location-grid.sm4v-clinic-list::-webkit-scrollbar {
  width: 8px;
}
.template-4-visual
  .sm4v-location-panel
  .sm4-location-grid.sm4v-clinic-list::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: #c8c8c8;
}
.template-4-visual .sm4v-location-panel .sm4-location.sm4v-clinic-card {
  position: relative;
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100% !important;
  min-height: 160px;
  margin: 0 !important;
  padding: 10px 10px 10px !important;
  border: 0 !important;
  border-bottom: 1px solid #dfe1e5 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}
.template-4-visual .sm4v-location-panel .sm4-location.sm4v-clinic-card:hover {
  background: #f8fbff !important;
}
.template-4-visual
  .sm4v-location-panel
  .sm4-location.sm4v-clinic-card.is-selected,
.template-4-visual
  .sm4v-location-panel
  .sm4-location.sm4v-clinic-card[aria-current='true'] {
  background: #edf5ff !important;
  box-shadow: inset 4px 0 0 #075bd8 !important;
}
.template-4-visual .sm4v-clinic-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
}
.template-4-visual .sm4v-clinic-name {
  display: block;
  margin: 0 0 10px;
  color: #262626;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.template-4-visual .sm4v-clinic-address {
  display: block;
  margin: 0 0 15px;
  color: #696969;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}
.template-4-visual .sm4v-clinic-address > span {
  display: block;
}
.template-4-visual .sm4v-book-appointment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  margin-top: auto;
  padding: 8px 15px;
  border: 1px solid #d6d9df;
  border-radius: 999px;
  background: #fff;
  color: #075bd8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.template-4-visual .sm4v-book-appointment .sm4-icon {
  width: 13px;
  height: 13px;
}
.template-4-visual .sm4v-book-appointment:hover {
  border-color: #075bd8;
  background: #f7faff;
}
.template-4-visual .sm4v-clinic-directions {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-top: 0;
  place-items: center;
  border: 1px solid #d9dde3;
  border-radius: 50%;
  background: #fff;
  color: #075bd8;
  text-decoration: none;
}
.template-4-visual .sm4v-clinic-directions .sm4-icon {
  width: 17px;
  height: 17px;
  transform: rotate(-45deg);
}
.template-4-visual .sm4v-location-empty {
  margin: 18px 0;
  padding: 0 4px;
  color: #6b7280;
  font-size: 14px;
}
.template-4-visual .sm4v-map-panel {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #dff4fb;
}
.template-4-visual .sm4v-map-placeholder,
.template-4-visual #sm-clinic-map {
  width: 100%;
  height: 100% !important;
  min-height: 560px;
  border: 0 !important;
  border-radius: 0 !important;
}
.template-4-visual .sm4v-map-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      0deg,
      transparent 0 34px,
      rgba(7, 91, 216, 0.035) 35px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 34px,
      rgba(7, 91, 216, 0.035) 35px
    ),
    #dff4fb;
}
.template-4-visual .sm4v-map-placeholder__inner {
  display: flex;
  max-width: 220px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #18224b;
  text-align: center;
  box-shadow: 0 8px 28px rgba(31, 65, 98, 0.12);
}
.template-4-visual .sm4v-map-placeholder__inner > span:last-child {
  color: #7a8497;
  font-size: 12px;
  line-height: 1.45;
}
.template-4-visual .sm4v-map-pin-large {
  width: 34px;
  height: 34px;
  color: #075bd8;
}

@media (max-width: 980px) {
  .template-4-visual .sm4v-locations-shell.sm4v-finder-layout {
    grid-template-columns: 42% 58%;
    height: 560px;
  }
}
@media (max-width: 760px) {
  .template-4-visual .sm4v-reference-heading {
    margin-bottom: 24px;
  }
  .template-4-visual .sm4v-locations-shell.sm4v-finder-layout {
    display: flex !important;
    height: auto;
    max-height: none;
    flex-direction: column-reverse;
    overflow: hidden !important;
    border-radius: 0 !important;
  }
  .template-4-visual .sm4v-location-panel {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .template-4-visual .sm4v-location-panel .sm4-location-panel {
    height: auto;
    padding: 20px 18px 0 !important;
  }
  .template-4-visual .sm4v-location-panel .sm4-location-grid.sm4v-clinic-list {
    /* max-height: 390px; */
    margin: 0;
  }
  .template-4-visual .sm4v-location-panel .sm4-location.sm4v-clinic-card {
    min-height: 145px;
    padding: 10px !important;
  }
  .template-4-visual .sm4v-map-panel,
  .template-4-visual .sm4v-map-placeholder,
  .template-4-visual #sm-clinic-map {
    height: 390px !important;
    min-height: 390px;
  }
}

.sm4v-review-arrow:disabled,
[data-sm4-review-prev]:disabled,
[data-sm4-review-next]:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
