/* Service offer page: provider profile (services variant of core/module_detail.html). */
.sp-page { --sp-ink: #153e35; --sp-green: #0b5745; --sp-orange: #f68429; --sp-line: #e7e5df; --sp-soft: #f4f2ec; --sp-muted: #64748b; }

/* Provider header: light patterned card with a thick brand-green frame */
.sp-hero {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center;
  margin-bottom: 14px; padding: 20px; border: 3px solid var(--sp-green); border-radius: 22px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 92% 12%, rgba(246, 132, 41, .16) 0 90px, transparent 91px),
    radial-gradient(circle at 78% 115%, rgba(11, 87, 69, .10) 0 120px, transparent 121px),
    radial-gradient(rgba(11, 87, 69, .09) 1.2px, transparent 1.3px) 0 0 / 16px 16px,
    linear-gradient(135deg, #fffdf8 0%, #f6f3ea 100%);
  box-shadow: 0 10px 30px rgba(21, 62, 53, .07);
}
.sp-avatar {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #dcebe5, #b9d5ca); color: var(--sp-green); font-size: 34px; font-weight: 800;
  border: 4px solid #fff; box-shadow: 0 0 0 3px var(--sp-green);
}
.sp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sp-orange); }
.sp-hero h1 { margin: 2px 0 0; font-size: 1.45rem; line-height: 1.2; color: var(--sp-ink); }
.sp-spec { margin: 4px 0 0; color: #334155; }
.sp-badges { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-badge { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--sp-line); color: var(--sp-ink); font-size: 12px; font-weight: 600; }
.sp-badge--rating { background: var(--sp-orange); border-color: var(--sp-orange); color: #fff; }
.sp-badge--live { background: #dff0e8; border-color: #bcd9cd; color: var(--sp-green); }
.sp-hero-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-hero-actions .favorite-form { margin: 0; }
.sp-hero .favorite-button, .sp-action {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid #cfd8d3;
  background: #fff; color: var(--sp-ink); font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer;
}
.sp-hero .favorite-button::before { content: "♡"; font-size: 15px; line-height: 1; }
.sp-hero .favorite-button[aria-pressed="true"] { border-color: var(--sp-green); color: var(--sp-green); }
.sp-hero .favorite-button[aria-pressed="true"]::before { content: "♥"; }
@media (min-width: 900px) {
  .sp-hero { grid-template-columns: auto minmax(0, 1fr) auto; padding: 24px 28px; }
  .sp-avatar { width: 104px; height: 104px; font-size: 40px; }
  .sp-hero h1 { font-size: 1.75rem; }
  .sp-hero-actions { grid-column: auto; flex-direction: column; align-self: start; }
}

/* Anchor tabs */
/* width: 0 + min-width: 100% keeps the scrolling tab row from widening the page column. */
.sp-tabs { width: 0; min-width: 100%; box-sizing: border-box; position: sticky; top: 72px; z-index: 20; display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; overflow-x: auto; scrollbar-width: none; background: #fff; border: 1px solid var(--sp-line); border-radius: 12px; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tabs a { flex: 0 0 auto; padding: 7px 12px; border-radius: 9px; color: var(--sp-muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sp-tabs a:hover, .sp-tabs a:focus-visible { background: #e6f1ed; color: var(--sp-green); }
.sp-section { scroll-margin-top: 136px; }
.sp-section h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.sp-section h2 small { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--sp-muted); }

/* Quick facts */
.sp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .sp-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-fact { padding: 12px; border-radius: 12px; background: var(--sp-soft); min-width: 0; }
.sp-fact b { display: block; color: var(--sp-ink); font-size: 15px; overflow-wrap: anywhere; }
.sp-fact span { font-size: 12px; color: var(--sp-muted); }

/* Portfolio mosaic */
.sp-mosaic { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
.sp-mosaic--1 { grid-template-columns: 1fr; grid-auto-rows: 260px; }
@media (min-width: 640px) {
  .sp-mosaic--3, .sp-mosaic--4, .sp-mosaic--5 { grid-template-columns: 2fr 1fr 1fr; }
  .sp-mosaic--3 .sp-tile:first-child, .sp-mosaic--4 .sp-tile:first-child, .sp-mosaic--5 .sp-tile:first-child { grid-row: span 2; }
  .sp-mosaic--4 .sp-tile:last-child { grid-column: span 2; }
}
.sp-tile { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #e7e5df; cursor: zoom-in; }
.sp-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.sp-tile:hover img { transform: scale(1.03); }
.sp-tile-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 48, 41, .55); color: #fff; font-size: 20px; font-weight: 800; }

/* Coverage */
.sp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chips li { padding: 5px 11px; border-radius: 999px; background: #e6f1ed; border: 1px solid #bcd9cd; color: var(--sp-green); font-size: 13px; font-weight: 600; }
.sp-chips li { display: inline-flex; align-items: center; gap: 6px; }
.sp-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sp-green); }
.sp-note, .sp-muted { margin: 10px 0 0; font-size: 12.5px; color: var(--sp-muted); }
.sp-muted { margin: 0; font-size: 14px; }

/* Weekly hours */
.sp-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sp-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; background: var(--sp-soft); color: var(--sp-muted); font-size: 11px; text-align: center; border: 2px solid transparent; }
.sp-day b { color: var(--sp-ink); font-size: 13px; }
.sp-day--open_interval { background: #e6f1ed; color: var(--sp-green); }
.sp-day--by_appointment { background: #fff1e4; color: #b45f17; }
.sp-day.is-today { border-color: var(--sp-green); }
.sp-status { padding: 3px 9px; border-radius: 999px; background: var(--sp-soft); font-weight: 700 !important; }
.sp-status--working { background: #dff0e8; color: var(--sp-green) !important; }
.sp-status--appointment, .sp-status--later { background: #fff1e4; color: #b45f17 !important; }

/* Reviews */
.sp-rating { display: flex; gap: 20px; align-items: center; margin-bottom: 6px; }
.sp-score { display: flex; flex-direction: column; align-items: center; }
.sp-score b { font-size: 40px; line-height: 1; color: var(--sp-ink); }
.sp-score span { color: var(--sp-orange); letter-spacing: 2px; }
.sp-score small { color: var(--sp-muted); font-size: 11px; }
.sp-bars { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 4px; font-size: 11px; color: var(--sp-muted); }
.sp-bars li { display: grid; grid-template-columns: 12px 1fr 24px; gap: 8px; align-items: center; }
.sp-bars i { position: relative; height: 6px; border-radius: 3px; background: var(--sp-soft); overflow: hidden; }
.sp-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--sp-orange); }
.sp-review { border-top: 1px solid var(--sp-line); padding-top: 12px; margin-top: 12px; }
.sp-review header { font-size: 13px; color: var(--sp-ink); }
.sp-review time { color: var(--sp-muted); font-size: 12px; }
.sp-stars { color: var(--sp-orange); letter-spacing: 1px; }
.sp-review p { margin: 6px 0 0; color: #334155; line-height: 1.55; }

/* Contact column */
.sp-price { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--sp-green); }
.sp-mode { display: inline-block; margin: 4px 0 0; padding: 3px 8px; border-radius: 6px; background: #fff1e4; color: #b45f17; font-size: 11px; font-weight: 700; }
.sp-contact-card .ld-contact { margin-top: 14px; }
.sp-trust { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--sp-muted); }
.sp-trust li::before { content: "✓ "; color: var(--sp-green); font-weight: 700; }

/* Similar providers */
.sp-similar-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #fff; border: 1px solid var(--sp-line); border-radius: 14px; text-decoration: none; color: var(--sp-ink); }
.sp-similar-card:hover { border-color: #bcd9cd; }
.sp-similar-card img, .sp-similar-initial { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: linear-gradient(135deg, #dcebe5, #b9d5ca); display: grid; place-items: center; color: var(--sp-green); font-size: 32px; font-weight: 800; }
.sp-similar-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-similar-body strong { font-size: 14px; line-height: 1.3; }
.sp-similar-meta { color: var(--sp-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-similar-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--sp-line); font-size: 12.5px; font-weight: 700; color: var(--sp-green); }
.sp-similar-rating { color: var(--sp-orange); }

@media (max-width: 899px) {
  .sp-tabs { top: 100px; }
  .sp-section { scroll-margin-top: 164px; }
  .sp-layout { display: flex; flex-direction: column; gap: 0; }
  .sp-main { display: contents; }
  .sp-main > .sp-section { order: 2; }
  .sp-main > #sp-overview { order: 0; }
  .sp-side { order: 1; }
  .sp-contact-card .ld-safety { font-size: 12px; }
}
@media (max-width: 420px) {
  .sp-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
