/* ==========================================================================
   Appliance + City service page (e.g. /appliance-repair/moradabad/ac-service)
   Layout modelled on the reference screenshots: product strip, type tabs,
   compact service cards with Add / Book, long article + FAQ below.
   ========================================================================== */

.sp-page { background: #fff; }
.sp-main { padding-bottom: 120px; }
.sp-wrap { max-width: 860px; margin: 0 auto; padding: 0 14px; }

.sp-breadcrumb { font-size: 0.8rem; color: var(--slate); padding: 12px 0 4px; line-height: 1.5; }
.sp-breadcrumb a { color: var(--slate); text-decoration: none; }
.sp-breadcrumb a:hover { text-decoration: underline; }
.sp-breadcrumb span { margin: 0 4px; color: #9aa6b2; }
.sp-breadcrumb strong { color: var(--blue-900); font-weight: 600; }

.sp-hero { padding: 6px 0 4px; }
.sp-hero h1 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; margin: 0 0 4px; color: var(--blue-900); }
.sp-hero-sub { margin: 0; font-size: 0.88rem; color: var(--slate); }
.sp-hero-sub strong { color: var(--green); font-size: 1rem; }
.sp-dot { color: #b3bec9; margin: 0 4px; }

/* ---------- Product strip ---------- */
.sp-strip-label { margin: 14px 0 6px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.sp-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sp-strip::-webkit-scrollbar { display: none; }
.sp-strip-item { flex: 0 0 auto; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--slate); font-size: 0.72rem; font-weight: 600; text-align: center; line-height: 1.2; }
.sp-strip-item picture, .sp-strip-item img, .sp-strip-item .sp-strip-fallback { width: 96px; height: 96px; border-radius: 8px; display: block; }
.sp-strip-item img { height: 96px; object-fit: cover; border: 2px solid transparent; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.sp-strip-item.active img { border-color: var(--accent-500); }
.sp-strip-item.active { color: var(--blue-700); }
.sp-strip-fallback { background: var(--accent-100); display: flex !important; align-items: center; justify-content: center; font-size: 2rem; }

/* ---------- Type tabs ---------- */
.sp-services { margin-top: 16px; scroll-margin-top: 80px; }
.sp-tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 14px; scrollbar-width: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab { flex: 0 0 auto; padding: 10px 16px; border: 1px solid transparent; border-bottom: none; border-radius: 6px 6px 0 0; font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; margin-bottom: -1px; background: #fff; white-space: nowrap; }
.sp-tab:not(.active) { border-color: #eef1f4; background: #fafbfc; }
.sp-tab.active { border-color: var(--line); border-bottom: 2px solid #fff; color: var(--blue-700); box-shadow: inset 0 3px 0 var(--accent-500); }

/* ---------- Service cards ---------- */
.sp-panel { display: grid; gap: 12px; }
.sp-panel[hidden] { display: none; }
.sp-card { border: 1px solid #c9d1d9; border-radius: 4px; padding: 8px; display: grid; grid-template-columns: 44% 1fr; column-gap: 8px; row-gap: 8px; background: #fff; }
.sp-card-img { position: relative; align-self: start; }
.sp-card-img picture { display: block; }
.sp-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; }
.sp-card-img .sp-strip-fallback { width: 100%; aspect-ratio: 1/1; height: auto; }
.sp-badge { position: absolute; top: 6px; left: 0; background: #111; color: #fff; font-size: 0.72rem; font-weight: 700; padding: 2px 10px 2px 5px; clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); }
.sp-card-body { min-width: 0; }
.sp-card-title { margin: 0 0 4px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.sp-price { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sp-tag { width: 13px; height: 13px; fill: var(--green); flex: 0 0 auto; }
.sp-price s { color: #7b8794; font-size: 0.8rem; }
.sp-price strong { font-size: 0.98rem; color: var(--ink); }
.sp-price { flex-wrap: wrap; }
.sp-parts { flex-basis: 100%; font-size: 0.72rem; color: #6b7785; margin-top: -2px; }
.sp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.sp-checks li { display: flex; gap: 5px; align-items: flex-start; font-size: 0.76rem; line-height: 1.35; color: #2b3138; }
.sp-check { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 2px; fill: var(--green); }
.sp-know { color: #14508a; text-decoration: none; white-space: nowrap; }
.sp-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.sp-btn { border: none; border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); line-height: 1.2; transition: transform .12s ease, filter .12s ease; }
.sp-btn:active { transform: scale(0.96); }
.sp-btn:hover { filter: brightness(1.07); }
.sp-btn svg { width: 16px; height: 16px; fill: currentColor; }
.sp-btn-add { background: #fff; color: var(--blue-700, #14508a); box-shadow: inset 0 0 0 1.5px var(--blue-700, #14508a); }
.sp-btn-add.added { background: #e7f1fa; color: #14508a; }
.sp-btn-book { background: #1b6fb0; color: #fff; }
.sp-btn-book:hover { background: #14508a; filter: none; }

@media (min-width: 640px) {
  .sp-hero h1 { font-size: 1.7rem; }
  .sp-card { grid-template-columns: 190px 1fr; }
  .sp-actions { grid-column: 1 / -1; }
  .sp-card-title { font-size: 0.98rem; }
  .sp-checks li { font-size: 0.82rem; }
}

/* ---------- Article (SEO content) ---------- */
.sp-article { margin-top: 30px; color: #2b3138; font-size: 0.9rem; line-height: 1.65; }
.sp-article h2 { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; margin: 22px 0 8px; color: var(--ink); }
.sp-article h3 { font-size: 1.02rem; margin: 16px 0 6px; color: var(--ink); scroll-margin-top: 80px; }
.sp-article p { margin: 0 0 10px; text-align: justify; }
.sp-article a { color: var(--blue-700); }
.sp-list { margin: 6px 0 12px; padding-left: 20px; }
.sp-list li { margin-bottom: 5px; }
.sp-steps { margin: 6px 0 12px; padding-left: 22px; }
.sp-steps li { margin-bottom: 6px; }
.sp-note { font-size: 0.82rem; color: var(--slate); }
.sp-table-wrap { overflow-x: auto; margin: 10px 0 8px; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.sp-table th, .sp-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.sp-table th { background: var(--mist); font-weight: 700; }
.sp-table tr:nth-child(even) td { background: #fafbfc; }

.sp-faq { margin-top: 30px; }
.sp-center-h { text-align: center; font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 14px; position: relative; padding-bottom: 10px; }
.sp-center-h::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 40px; height: 3px; background: var(--accent-500); border-radius: 2px; transform: translateX(-50%); }

.sp-links { margin-top: 26px; }
.sp-links h2 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 10px; }
.sp-links .city-chip-row { justify-content: flex-start; }

.sp-footer-services { margin: 18px 0 8px; }
.sp-footer-services h4 { margin: 0 0 8px; color: #fff; font-family: var(--font-display); }
.sp-footer-services ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.sp-footer-services a { color: inherit; opacity: 0.85; font-size: 0.88rem; }

/* ---------- Header cart ---------- */
.sp-header-cart { position: relative; background: none; border: none; color: var(--blue-900); cursor: pointer; padding: 6px; display: inline-flex; }
.sp-header-cart-badge { position: absolute; top: 0; right: -2px; background: #e11d48; color: #fff; font-size: 0.66rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---------- Floating cart bar ---------- */
.sp-cartbar { position: fixed; left: 10px; right: 84px; bottom: 80px; z-index: 150; background: var(--blue-900); color: #fff; border-radius: 12px; padding: 10px 12px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 10px 30px rgba(15, 42, 67,0.35); max-width: 560px; margin: 0 auto; animation: spSlideUp .25s var(--ease); }
.sp-cartbar[hidden] { display: none; }
.sp-cartbar-info { display: flex; flex-direction: column; line-height: 1.25; font-size: 0.85rem; }
.sp-cartbar-info span { opacity: 0.85; }
.sp-cartbar-btn { background: #2586d1; color: #fff; border: none; border-radius: 8px; padding: 10px 16px; font-weight: 700; font-size: 0.95rem; cursor: pointer; }
@media (min-width: 900px) { .sp-cartbar { bottom: 20px; right: 10px; } }
@keyframes spSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Booking sheet ---------- */
.sp-sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 42, 67,0.6); z-index: 400; display: none; align-items: center; justify-content: center; padding: 12px; overscroll-behavior: contain; }
.sp-sheet-backdrop.open { display: flex; }
.sp-sheet { background: #fff; width: 100%; max-width: 520px; max-height: 94vh; max-height: 94dvh; border-radius: 18px; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,0.3); animation: spPop .22s var(--ease); }
@keyframes spPop { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sp-sheet-head h2 { margin: 0; font-size: 1.1rem; font-family: var(--font-display); }
.sp-sheet-close { background: #fee2e2; color: #b91c1c !important; border: none; width: 38px; height: 38px; font-weight: 700; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--slate); }
.sp-sheet-body { padding: 12px 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sp-sheet-body[hidden] { display: none; }

.sp-items { display: grid; gap: 8px; }
.sp-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.sp-item-name { flex: 1; font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.sp-item-name small { display: block; font-weight: 400; color: var(--slate); }
.sp-item-price { font-weight: 700; }
.sp-item-remove { background: none; border: none; color: #b91c1c; font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0 2px; }
.sp-add-more { background: none; border: 1px dashed var(--accent-500); color: var(--accent-600); font-weight: 600; border-radius: 8px; padding: 7px; width: 100%; margin: 8px 0 4px; cursor: pointer; font-size: 0.85rem; }

.sp-field-group { margin-top: 8px; }
.sp-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--slate); margin: 10px 0 5px; }
.sp-input { width: 100%; border: 1px solid #cfd8e1; border-radius: 8px; padding: 10px 12px; font-size: 1rem; font-family: var(--font-body); background: #fff; color: var(--ink); }
.sp-input:focus { outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
textarea.sp-input { resize: vertical; min-height: 58px; }
.sp-phone-wrap { display: flex; align-items: stretch; }
.sp-phone-wrap span { display: flex; align-items: center; padding: 0 10px; background: var(--mist); border: 1px solid #cfd8e1; border-right: none; border-radius: 8px 0 0 8px; font-weight: 600; color: var(--slate); }
.sp-phone-wrap .sp-input { border-radius: 0 8px 8px 0; }
.sp-saved { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; background: var(--mist); border-radius: 10px; padding: 10px 12px; font-size: 0.88rem; }
.sp-saved[hidden] { display: none; }
.sp-saved-addr { color: var(--slate); font-size: 0.82rem; margin-top: 2px; }
.sp-link-btn { background: none; border: none; color: var(--blue-600); font-weight: 700; cursor: pointer; padding: 4px 2px; font-size: 0.88rem; white-space: nowrap; }

.sp-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.sp-chips::-webkit-scrollbar { display: none; }
.sp-chip { flex: 0 0 auto; border: 1px solid #cfd8e1; background: #fff; border-radius: 10px; padding: 7px 12px; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--ink); text-align: center; line-height: 1.25; font-family: var(--font-body); }
.sp-chip small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--slate); }
.sp-chip.active { border-color: var(--accent-500); background: var(--accent-100); color: var(--blue-700); box-shadow: 0 0 0 1px var(--accent-500) inset; }
.sp-chip:disabled { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.sp-muted { color: var(--slate); font-size: 0.85rem; }

.sp-coupon { margin-top: 12px; font-size: 0.88rem; }
.sp-coupon summary { cursor: pointer; color: var(--blue-600); font-weight: 600; }
.sp-coupon-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }

.sp-total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.9rem; }
.sp-total-row strong { font-size: 1.2rem; }
.sp-confirm { display: block; width: 100%; margin-top: 10px; background: #1b6fb0; color: #fff; border: none; border-radius: 10px; padding: 13px; font-size: 1.02rem; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; font-family: var(--font-body); }
.sp-confirm:disabled { opacity: 0.6; cursor: wait; }
.sp-confirm-alt { background: var(--blue-700); }
.sp-confirm-wa { background: #25d366; }
.sp-fine { font-size: 0.75rem; color: var(--slate); text-align: center; margin: 8px 0 0; }
.sp-otp-input { text-align: center; font-size: 1.4rem; letter-spacing: 0.4em; margin-top: 8px; }
.sp-otp-actions { display: flex; justify-content: space-between; margin-top: 8px; }
.sp-success { text-align: center; }
.sp-success-icon-unused { width: 64px; height: 64px; border-radius: 50%; background: #e7f1fa; color: #14508a; font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 10px auto; }
.sp-success h3 { margin: 4px 0 8px; font-family: var(--font-display); }
.sp-success p { margin: 4px 0; }
.sp-done-actions { display: grid; gap: 4px; margin-top: 10px; }

.sp-toast { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%) translateY(20px); background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 500; max-width: 90vw; text-align: center; }
.sp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.sp-sheet-open .sp-toast { bottom: auto; top: 14px; z-index: 10001; }

.bottom-sheet-city-grid a.active { background: var(--accent-100); border-color: var(--accent-500); }
body.sp-sheet-open { overflow: hidden; }

.bottom-nav-badge[hidden], .sp-header-cart-badge[hidden] { display: none !important; }
.sp-sheet [hidden] { display: none !important; }

/* ---------- Homepage picker inside the popup ---------- */
.sp-pick-head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.sp-pick-head img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.sp-pick-head strong { display: block; font-size: 1.05rem; }
.sp-pick-head small { color: var(--slate); font-size: 0.8rem; }
.sp-svc-list { display: grid; gap: 8px; }
.sp-svc { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid #cfd8e1; border-radius: 10px; padding: 9px 10px; cursor: pointer; font-family: var(--font-body); color: var(--ink); }
.sp-svc.on { border-color: #1b6fb0; background: #f3f8fd; box-shadow: 0 0 0 1px #1b6fb0 inset; }
.sp-svc-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #9aa6b2; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: 0 0 auto; font-size: 0.85rem; }
.sp-svc.on .sp-svc-check { background: #1b6fb0; border-color: #1b6fb0; }
.sp-svc-name { flex: 1; font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.sp-svc-name small { display: block; font-weight: 400; color: var(--slate); font-size: 0.74rem; }
.sp-svc-price { text-align: right; font-weight: 700; white-space: nowrap; }
.sp-svc-price s { display: block; font-weight: 400; color: #7b8794; font-size: 0.72rem; }

/* ---------- Big animated success tick (solid green, like the reference) ---------- */
.sp-success { padding-top: 26px; padding-bottom: 28px; }
.sp-tick-wrap { width: 150px; height: 150px; margin: 6px auto 18px; }
.sp-tick { width: 100%; height: 100%; overflow: visible; }
.sp-tick-circle { fill: #4caf30; transform-origin: 60px 60px; transform: scale(0); }
.sp-tick-mark { fill: none; stroke: #fff; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; stroke-dashoffset: 90; }
.sp-tick-wrap.play .sp-tick-circle { animation: spCirclePop .45s cubic-bezier(.34,1.56,.64,1) forwards; }
.sp-tick-wrap.play .sp-tick-mark { animation: spDraw .38s .35s ease-out forwards; }
@keyframes spCirclePop { to { transform: scale(1); } }
@keyframes spDraw { to { stroke-dashoffset: 0; } }
.sp-thanks { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: #1f2328; margin: 0 0 8px; }
.sp-thanks-sub { font-size: 1.02rem; color: #2b3138; margin: 0 auto 10px; max-width: 340px; line-height: 1.5; }
.sp-thanks-meta { font-size: 0.85rem; color: var(--slate); margin: 0 0 16px; }
.sp-confirm-done { background: #1b6fb0; max-width: 320px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .sp-tick-circle { transform: none; } .sp-tick-mark { stroke-dashoffset: 0; } .sp-tick-wrap.play .sp-tick-circle, .sp-tick-wrap.play .sp-tick-mark { animation: none; } }
.sp-select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-select-row > [hidden] { display: none; }
.sp-select-row:has(> [hidden]) { grid-template-columns: 1fr; }
.sp-select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; font-weight: 600; cursor: pointer; }
.sp-success, .sp-success p { text-align: center !important; }
.sp-sheet-head:has(#spSheetTitle:empty) { border-bottom: none; padding-bottom: 0; }

.sp-pick-head { background: #f3f8fd; border: 1px solid #c9def2; border-radius: 12px; padding: 10px; }
.sp-pick-sum { flex: 1; min-width: 0; font-size: 0.9rem; line-height: 1.4; }
.sp-pick-sum b { color: #14508a; }
.sp-pick-sum small { display: block; color: var(--slate); font-size: 0.78rem; margin-top: 2px; }
#spPickEditor { margin-top: 6px; }

/* ---------- Type step (homepage: appliance -> type -> filled form) ---------- */
.sp-type-q { font-weight: 700; font-size: 1.05rem; margin: 4px 0 12px; text-align: center; }
.sp-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.sp-type-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #cfd8e1; border-radius: 14px; padding: 10px; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--ink); transition: border-color .15s, transform .12s; }
.sp-type-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.sp-type-btn:hover { border-color: var(--accent-500); }
.sp-type-btn:active { transform: scale(0.97); border-color: #1b6fb0; background: #f3f8fd; }
.sp-pick-head + .sp-label { margin-top: 10px; }

/* ---------- Homepage popup: cards step (same look as service pages) ---------- */
.sp-cards-step { padding-bottom: 0; }
.sp-city-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sp-city-row label { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.sp-city-row .sp-select { padding-top: 8px; padding-bottom: 8px; }
.sp-cards-step .sp-tabs { margin-bottom: 10px; }
.sp-cards-step .sp-tab { font-family: var(--font-body); cursor: pointer; }
.sp-cards-step .sp-panel { padding-bottom: 12px; }
.sp-cardbar { position: sticky; bottom: 0; margin: 0 -16px; padding: 10px 16px; background: var(--blue-900); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.9rem; }
.sp-cardbar[hidden] { display: none !important; }

/* ---------- Customer cancellation ---------- */
.sp-cancel-link { display: block; margin: 14px auto 0; font-size: 0.85rem; color: #6b7785; text-decoration: underline; }
.sp-cancel-sum { background: #f5f8fb; border: 1px solid var(--line, #e3e8ee); border-radius: 10px; padding: 12px; font-size: 0.9rem; line-height: 1.5; margin-bottom: 12px; }
.sp-confirm.sp-confirm-danger { background: #c0392b; }
.sp-cancel-keep { display: block; margin: 12px auto 0; }
#spCancelDone { text-align: center; padding: 10px 0; }

/* ---------- Real customer reviews on service pages ---------- */
.sp-reviews { margin-top: 28px; }
.sp-review-sum { text-align: center; margin: 0 0 14px; color: var(--slate); font-size: 0.9rem; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.sp-review-avg { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.sp-review-stars { color: #f59e0b; letter-spacing: 1px; }
.sp-review-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .sp-review-grid { grid-template-columns: 1fr 1fr; } }
.sp-review { margin: 0; border: 1px solid var(--line, #e3e8ee); border-radius: 10px; padding: 12px 14px; background: #fff; }
.sp-review blockquote { margin: 6px 0 8px; font-style: italic; color: #2b3138; font-size: 0.92rem; line-height: 1.5; }
.sp-review figcaption { font-size: 0.78rem; color: var(--slate); }
.sp-verified { color: #1f8a3b; font-weight: 600; }

/* Service-page header cart: same black round icon as the homepage on
   desktop; hidden on phones where the bottom bar already has "Cart". */
.sp-header-cart { width: 36px; height: 36px; border-radius: 50%; background: #000; color: #fff; align-items: center; justify-content: center; padding: 0; }
.sp-header-cart:hover { background: #262626; }
.sp-header-cart-badge { top: -4px; right: -6px; border: 2px solid #fff; }
@media (max-width: 720px) { .sp-header-cart { display: none !important; } }

/* ── Blue theme: blue actions, no black/dark blocks ── */
.sp-btn-book { background: #1b6fb0; }
.sp-btn-book:hover { background: #14508a; }
.sp-btn-add { background: #e7f1fa; color: #0f3f6e; box-shadow: none; }
.sp-btn-add:hover { background: #c9def2; filter: none; }
.sp-btn-add.added { background: #fff; color: #0f3f6e; box-shadow: inset 0 0 0 1.5px #93bde6; }
.sp-badge { background: #1b6fb0; }
.sp-cartbar { background: #e7f1fa; color: #0f2a43; border: 1px solid #93bde6; box-shadow: 0 10px 30px rgba(20, 80, 138,0.25); }
.sp-cartbar-btn { background: #1b6fb0; }
.sp-cardbar { background: #e7f1fa; color: #0f2a43; border-top: 1px solid #c9def2; }
.sp-confirm { background: #1b6fb0; }
.sp-confirm-wa { background: #25d366; }
.sp-confirm-done { background: #1b6fb0; }
.sp-toast { background: #14508a; }
.sp-svc.on { border-color: #1b6fb0; background: #f3f8fd; box-shadow: 0 0 0 1px #1b6fb0 inset; }
.sp-svc.on .sp-svc-check { background: #1b6fb0; border-color: #1b6fb0; }
.sp-type-btn:active { border-color: #1b6fb0; background: #f3f8fd; }
.sp-header-cart { background: #1b6fb0; }
.sp-header-cart:hover { background: #14508a; }

/* Offer price: regular price crossed out + "₹X off" chip */
.sp-mrp { color: #6b7280; font-weight: 500; font-size: 0.92em; margin-right: 2px; text-decoration-thickness: 1.5px; }
.sp-off { background: #dcfce7; color: #166534; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }

/* optional GPS pin under the address box */
.sp-loc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.sp-loc-btn { background: #fff; border: 1.5px solid #1b6fb0; color: #14508a; font-weight: 700; font-size: 0.82rem; padding: 6px 10px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.sp-loc-btn:disabled { opacity: .6; }
.sp-loc-msg { font-size: 0.76rem; color: #64748b; flex: 1; min-width: 140px; }
.sp-loc-msg.ok { color: #15803d; font-weight: 600; }
.sp-loc-msg.err { color: #b42318; }
.sp-loc-msg a { color: #b42318; margin-left: 4px; }

/* Pick-on-map popup (pin fixed in the centre, map moves) */
.sp-map-wrap { position: fixed; inset: 0; z-index: 9000; background: rgba(15, 42, 67, .6); display: flex; align-items: center; justify-content: center; padding: 10px; }
.sp-map-wrap[hidden] { display: none; }
.sp-map-box { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; overflow: hidden; display: flex; flex-direction: column; max-height: 94vh; }
.sp-map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 10px 12px; }
.sp-map-head small { display: block; color: #64748b; font-size: 0.76rem; }
.sp-map-x { background: none; border: 0; font-size: 1.2rem; cursor: pointer; padding: 2px 6px; }
.sp-map-area { position: relative; height: 60vh; min-height: 280px; }
.sp-map { position: absolute; inset: 0; }
.sp-map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 2.2rem; line-height: 1; z-index: 500; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.sp-map-layers { position: absolute; right: 8px; top: 8px; z-index: 500; display: flex; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.25); overflow: hidden; }
.sp-map-layers button { border: 0; background: #fff; padding: 6px 10px; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.sp-map-layers button.on { background: #14508a; color: #fff; }
.sp-map-foot { display: flex; gap: 8px; padding: 10px 12px 4px; }
.sp-map-ok { flex: 1; background: #14508a; color: #fff; border: 0; border-radius: 10px; padding: 10px; font-weight: 700; font-size: 0.92rem; cursor: pointer; font-family: inherit; }
.sp-map-msg { font-size: 0.78rem; color: #b42318; padding: 0 12px 10px; min-height: 1em; }

/* Desktop: bigger photos (mobile unchanged) */
@media (min-width: 900px) {
  .sp-card { grid-template-columns: 240px 1fr; column-gap: 14px; }
  .sp-card-title { font-size: 1.08rem; }
  .sp-strip-item { width: 116px; font-size: 0.8rem; }
  .sp-strip-item picture, .sp-strip-item img, .sp-strip-item .sp-strip-fallback { width: 116px; height: 116px; }
  .sp-strip-item img { height: 116px; }
}

/* ── Service card v2 (2026-09-28): photo + title/price side by side,
   checklist full width below, two big equal buttons (blue Add, green Book) ── */
.sp-panel { gap: 16px; }
.sp-card { border: 1px solid #c3ccd6; border-radius: 18px; padding: 16px; column-gap: 16px; row-gap: 14px;
  grid-template-columns: 42% 1fr; grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "img title" "img price" "checks checks" "actions actions"; }
.sp-card-body { display: contents; }
.sp-card-img { grid-area: img; }
.sp-card-img img { border-radius: 12px; }
.sp-card-title { grid-area: title; align-self: start; margin: 2px 0 0; font-size: 1.12rem; font-weight: 700; line-height: 1.35; color: #111827; }
.sp-price { grid-area: price; align-self: start; margin: 0; gap: 10px; }
.sp-tag { width: 20px; height: 20px; fill: #f5a524; }
.sp-price s, .sp-mrp { color: #374151; font-weight: 700; font-size: 1.05rem; }
.sp-price strong { font-size: 1.55rem; font-weight: 800; color: #1d8fd6; line-height: 1.1; }
.sp-badge { top: 8px; left: 8px; background: #1f2a37; color: #fff; font-size: 0.8rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; clip-path: none; }
.sp-checks { grid-area: checks; gap: 10px; }
.sp-checks li { font-size: 0.98rem; line-height: 1.45; color: #1f2937; gap: 10px; }
.sp-check { width: 20px; height: 20px; margin-top: 2px; }
.sp-check circle { display: none; }
.sp-check path { stroke: #16a34a; stroke-width: 3.2; }
.sp-actions { grid-area: actions; gap: 12px; }
.sp-btn { flex: 1 1 0; justify-content: center; min-height: 48px; font-size: 1.05rem; font-weight: 700; padding: 10px 14px; }
.sp-btn svg { width: 20px; height: 20px; }
.sp-btn-add, .sp-btn-add:hover { background: #0ea5e9; color: #fff; box-shadow: none; }
.sp-btn-add:hover { filter: brightness(1.06); }
.sp-btn-add.added { background: #fff; color: #0369a1; box-shadow: inset 0 0 0 2px #0ea5e9; }
.sp-btn-book, .sp-btn-book:hover { background: #16a34a; color: #fff; }
.sp-btn-book:hover { background: #15803d; }
@media (max-width: 360px) {
  .sp-card { padding: 12px; column-gap: 12px; }
  .sp-card-title { font-size: 1rem; }
  .sp-price strong { font-size: 1.3rem; }
}
@media (min-width: 900px) {
  .sp-card { grid-template-columns: 240px 1fr; grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "img title" "img price" "img checks" "img actions"; }
  .sp-actions { max-width: 420px; }
  .sp-card-title { font-size: 1.2rem; }
}
/* Popup (homepage "Book Now" sheet) is narrow even on desktop — always use
   the phone layout there: points full width, buttons full width. */
@media (min-width: 721px) {
  .sp-sheet .sp-card { grid-template-columns: 42% 1fr; column-gap: 16px; grid-template-rows: auto 1fr auto auto;
    grid-template-areas: "img title" "img price" "checks checks" "actions actions"; }
  .sp-sheet .sp-actions { max-width: none; }
  .sp-sheet .sp-card-title { font-size: 1.12rem; }
}
/* City/service pages: use more of the screen on desktop */
@media (min-width: 1100px) { .sp-wrap { max-width: 1040px; } }
/* Readable contrast (WCAG AA) — same look, slightly deeper shades */
.sp-hero-sub strong { color: #177a3f; }
.sp-btn-add, .sp-btn-add:hover { background: #0373b5; }
.sp-btn-add.added { color: #0369a1; box-shadow: inset 0 0 0 2px #0373b5; background: #fff; }
.sp-btn-book, .sp-btn-book:hover { background: #15803d; }
.sp-btn-book:hover { background: #166534; }
.sp-price strong { color: #1877c0; }
.sp-know { text-decoration: underline; text-underline-offset: 2px; }
