/* =====================================================================
   Service detail page (/servicedetail/{slug}).

   Moved out of the page's inline <style> block and rebuilt on the shared
   --ts-* tokens, so this page inherits the site palette instead of
   repeating hex values. Directional rules use logical properties, which
   makes the page work in RTL without a mirrored copy of this file.
   ===================================================================== */

/* Declared at the root because parts of this page — the mobile booking bar —
   render outside .sd-page. This file only loads on the service page, so the
   tokens do not reach anywhere else. */
:root {
    --sd-ink: var(--ts-ink, #101828);
    --sd-body: var(--ts-body, #475467);
    --sd-muted: var(--ts-muted, #667085);
    --sd-faint: var(--ts-faint, #98a2b3);
    --sd-brand: var(--ts-brand, #fd2692);
    --sd-green: var(--ts-green, #12b76a);
    --sd-line: var(--ts-line, rgba(16, 24, 40, .09));
    --sd-line-strong: var(--ts-line-strong, rgba(16, 24, 40, .14));
    --sd-surface: #fff;
    --sd-wash: rgba(16, 24, 40, .022);
    --sd-radius: 16px;
    --sd-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -16px rgba(16, 24, 40, .18);
}

/* ------------------------------------------------------------- surfaces */

.sd-card {
    border: 1px solid var(--sd-line) !important;
    border-radius: var(--sd-radius);
    box-shadow: var(--sd-shadow);
    background: var(--sd-surface);
}

.sd-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.015em;
    color: var(--sd-ink);
}

.sd-section-title > i {
    font-size: 20px;
    color: var(--sd-brand);
}

/* --------------------------------------------------------------- header */

.sd-title {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 31px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.028em;
    color: var(--sd-ink);
}

/* Facts about the listing, as quiet chips rather than a run-on line. */
.sd-facts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.sd-fact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid var(--sd-line);
    border-radius: 999px;
    background: var(--sd-wash);
    font-size: 13px;
    font-weight: 500;
    color: var(--sd-body);
}

.sd-fact i {
    font-size: 15px;
    color: var(--sd-faint);
}

.sd-fact.is-rating i { color: var(--ts-amber, #f79009); }
.sd-fact.is-rating b { color: var(--sd-ink); font-weight: 650; }

.sd-fact.is-featured {
    border-color: rgba(253, 38, 146, .25);
    background: rgba(253, 38, 146, .07);
    color: var(--sd-brand);
}

.sd-fact.is-featured i { color: var(--sd-brand); }

/* Share and save, aligned to the end of the title row. */
.sd-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
}

.sd-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--sd-line-strong);
    border-radius: 10px;
    background: var(--sd-surface);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sd-body);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

.sd-icon-btn i { font-size: 17px; }

.sd-icon-btn:hover {
    border-color: var(--sd-ink);
    color: var(--sd-ink);
}

.sd-icon-btn.is-saved,
.sd-icon-btn.selected {
    border-color: rgba(253, 38, 146, .35);
    background: rgba(253, 38, 146, .07);
    color: var(--sd-brand);
}

.sd-icon-btn.is-saved i,
.sd-icon-btn.selected i {
    color: var(--sd-brand);
    fill: currentColor;
}

/* -------------------------------------------------------------- gallery */

.sd-gallery-main {
    border-radius: 14px;
    overflow: hidden;
    background: #f2f4f7;
}

.sd-gallery-main img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.sd-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sd-thumb {
    width: 84px;
    height: 62px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f4f7;
    cursor: pointer;
    padding: 0;
    transition: border-color .16s ease;
}

.sd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-thumb.is-active { border-color: var(--sd-brand); }

/* The theme's carousels sat square against the card. Rounding them and
   giving the main image a soft edge is what makes the page read as current. */
.sd-page .service-carousel .img_one,
.sd-page .gallery-slider .gallery-item img {
    border-radius: 14px;
    display: block;
    width: 100%;
    object-fit: cover;
}

.sd-page .service-carousel .img_one {
    aspect-ratio: 16 / 10;
    box-shadow: 0 10px 30px -18px rgba(16, 24, 40, .55);
}

.sd-page .slider-nav-thumbnails .img_two {
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    opacity: .75;
    transition: opacity .16s ease;
}

.sd-page .slider-nav-thumbnails .img_two:hover,
.sd-page .slider-nav-thumbnails .current .img_two {
    opacity: 1;
}

/* ------------------------------------------------------------ accordions */

.sd-page .service-accordion .accordion-button {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -.015em;
    color: var(--sd-ink);
}

.sd-page .service-accordion .accordion-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sd-line);
}

.sd-page .service-accordion .accordion-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sd-count-pill {
    margin-inline-start: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sd-wash);
    border: 1px solid var(--sd-line);
    font-size: 12px;
    font-weight: 600;
    color: var(--sd-muted);
}

/* Included items read as a checklist rather than one flat grey bar. */
.sd-page .service-include li,
.sd-page .included-service li {
    font-size: 14px;
    color: var(--sd-body);
}

/* --------------------------------------------------- price / booking box */

.sd-price-card .card-body { padding: 22px; }

.sd-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--sd-line);
}

.sd-price {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.025em;
    color: var(--sd-ink);
}

.sd-price-unit { font-size: 15px; color: var(--sd-muted); }

.sd-meta-list { list-style: none; margin: 0; padding: 0; }

.sd-meta-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--sd-muted);
}

.sd-meta-list li + li { border-top: 1px dashed var(--sd-line); }
.sd-meta-list li i { font-size: 16px; color: var(--sd-faint); }

.sd-meta-list li b {
    margin-inline-start: auto;
    color: var(--sd-ink);
    font-weight: 600;
    text-align: end;
}

/* ---------------------------------------------------------- availability */

/* Real open slots, read from the same records the booking wizard uses. */
.sd-avail {
    margin-bottom: 16px;
    padding: 15px 16px;
    border: 1px solid rgba(18, 183, 106, .25);
    border-radius: 13px;
    background: rgba(18, 183, 106, .05);
}

.sd-avail-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    font-size: 13.5px;
    font-weight: 600;
    color: #067647;
}

.sd-avail-head i { font-size: 17px; }

.sd-avail-count {
    margin-inline-start: auto;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--sd-muted);
}

.sd-avail-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sd-slot {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    padding: 7px 12px;
    border: 1px solid rgba(18, 183, 106, .3);
    border-radius: 10px;
    background: var(--sd-surface);
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sd-slot:hover {
    border-color: var(--sd-green);
    box-shadow: 0 4px 12px rgba(18, 183, 106, .16);
    transform: translateY(-1px);
}

.sd-slot-day {
    font-size: 11px;
    font-weight: 500;
    color: var(--sd-muted);
}

.sd-slot-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--sd-ink);
}

.sd-avail-none {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px dashed var(--sd-line-strong);
    border-radius: 12px;
    font-size: 13.5px;
    color: var(--sd-muted);
}

.sd-avail-none i { font-size: 17px; color: var(--sd-faint); }

/* --------------------------------------------------------------- CTA */

.sd-book-btn {
    height: 50px;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 650;
    box-shadow: 0 8px 20px -8px rgba(253, 38, 146, .6);
    transition: transform .16s ease, box-shadow .16s ease;
}

.sd-book-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -8px rgba(253, 38, 146, .7);
}

/* ----------------------------------------------------- trust signals */

.sd-trust-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 15px 16px;
    border: 1px solid var(--sd-line);
    border-radius: 13px;
    background: var(--sd-wash);
}

.sd-trust-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--sd-body);
}

.sd-trust-list li + li { margin-top: 10px; }

.sd-trust-list li i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(18, 183, 106, .12);
    font-size: 14px;
    color: var(--sd-green);
}

/* ------------------------------------------------------------ reviews */

/* An empty reviews block used to render a full ratings chart of zeroes.
   With nothing to show it now states that plainly and stays small. */
.sd-reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 26px 20px;
    border: 1px dashed var(--sd-line-strong);
    border-radius: 13px;
    background: var(--sd-wash);
}

.sd-reviews-empty i { font-size: 26px; color: var(--sd-faint); }

.sd-reviews-empty h6 {
    margin: 6px 0 0;
    font-size: 15px;
    font-weight: 650;
    color: var(--sd-ink);
}

.sd-reviews-empty p {
    margin: 0;
    max-width: 340px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--sd-muted);
}

/* ---------------------------------------------------- how it works */

.sd-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
    margin: 0;
    padding: 0;
    counter-reset: sd-step;
}

.sd-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sd-step-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(253, 38, 146, .09);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sd-brand);
}

.sd-step-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--sd-muted);
}

.sd-step-text b {
    display: block;
    margin-bottom: 1px;
    font-size: 14.5px;
    font-weight: 650;
    color: var(--sd-ink);
}

@media (max-width: 575.98px) {
    .sd-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ----------------------------------------------------------- location */

.sd-address {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 13px 15px;
    margin-bottom: 14px;
    border-radius: 11px;
    background: var(--sd-wash);
    font-size: 14.5px;
    color: #344054;
}

.sd-address > i { font-size: 18px; color: var(--sd-brand); }

.sd-address-link {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sd-brand);
    text-decoration: none;
}

.sd-map-wrap { border-radius: 13px; overflow: hidden; }
.sd-map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

.sd-map-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 200px;
    border: 1px dashed var(--sd-line-strong);
    border-radius: 13px;
    color: var(--sd-faint);
}

.sd-map-empty i { font-size: 28px; }
.sd-map-empty p { margin: 0; font-size: 14px; }

/* ------------------------------------------- related / provider rows */

.sd-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 16px;
}

.sd-row-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sd-brand);
    text-decoration: none;
    white-space: nowrap;
}

.sd-row-link:hover { gap: 10px; }

.sd-mini-card {
    display: block;
    height: 100%;
    border: 1px solid var(--sd-line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--sd-surface);
    color: inherit;
    text-decoration: none;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.sd-mini-card:hover {
    transform: translateY(-2px);
    border-color: var(--sd-line-strong);
    box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
}

.sd-mini-img { display: block; aspect-ratio: 16 / 10; background: #f2f4f7; overflow: hidden; }
.sd-mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-mini-body { display: block; padding: 12px 14px 14px; }

.sd-mini-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sd-ink);
}

.sd-mini-price {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sd-brand);
}

/* ------------------------------------------------------ provider card */

.sd-provider-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 15px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--sd-line);
}

.sd-provider-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f4f7;
    box-shadow: 0 0 0 3px rgba(253, 38, 146, .12);
}

.sd-provider-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sd-provider-name {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    color: var(--sd-ink);
}

.sd-provider-sub {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--sd-muted);
}

/* --------------------------------------------------- mobile sticky CTA */

.sd-mobile-cta { display: none; }

@media (max-width: 1199.98px) {
    .sd-mobile-cta {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 1030;
        display: flex;
        align-items: center;
        gap: 12px;
        /* The end padding keeps the CTA clear of the floating chat bubble. */
        padding: 10px 84px 10px 14px;
        background: var(--sd-surface);
        border-top: 1px solid var(--ts-line-10, rgba(16, 24, 40, .1));
        box-shadow: 0 -4px 18px rgba(16, 24, 40, .08);
    }

    .sd-mobile-cta-price strong { font-size: 20px; font-weight: 700; color: var(--sd-ink); }
    .sd-mobile-cta-price span { font-size: 13px; color: var(--sd-muted); }

    .sd-mobile-cta-btn {
        margin-inline-start: auto;
        height: 44px;
        padding: 0 22px;
        border-radius: 10px;
        font-weight: 600;
    }

    /* Keep the sticky bar from covering the last of the page content. */
    body.sd-has-mobile-cta .page-wrapper { padding-bottom: 84px; }
}

/* --------------------------------------------------------- responsive */

@media (min-width: 1200px) {
    .sd-sticky-col { position: sticky; top: 92px; }
}

@media (max-width: 767.98px) {
    .sd-head-actions { margin-inline-start: 0; margin-top: 12px; }
    .sd-price-card .card-body { padding: 18px; }
    .sd-map-wrap iframe { height: 260px; }
}
