/* ==========================================================================
   Our Services — interactive body map + treatment tickets
   Reuses the site's existing .ms-section / .ms-eyebrow / .ms-heading /
   .ms-subtext rules (home-css/home.css) for the shared background, colors,
   and typography. This file only styles the parts unique to this section:
   the tappable body diagram, the filter key, and the treatment tickets.
   Color/font values below are pulled directly from home.css and style.css
   so the section matches the rest of the site exactly.
   ========================================================================== */

:root {
    --smap-gold: #e8a83a;
    --smap-gold-deep: #c9841a;
    --smap-gold-soft: rgba(232, 168, 58, .12);
    --smap-gold-line: rgba(232, 168, 58, .18);
    --smap-ink: #ffffff;
    --smap-ink-soft: rgba(255, 255, 255, .65);
    --smap-ink-faint: rgba(255, 255, 255, .45);
    --smap-panel-bg: linear-gradient(145deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .02) 100%);
    --smap-radius: 18px;
}

/* ---------- panel: figure + key ---------- */

.smap-panel {
    margin-top: 44px;
    background: var(--smap-panel-bg);
    border: 1px solid var(--smap-gold-line);
    border-radius: var(--smap-radius);
    padding: 30px 26px 26px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: center;
    backdrop-filter: blur(6px);
}

.smap-panel-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.smap-panel-head p {
    font-family: Barlow, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--smap-ink-soft);
    margin: 0 0 6px;
}

.smap-reset {
    appearance: none;
    border: 1.5px solid var(--smap-gold-line);
    background: transparent;
    color: var(--smap-ink-soft);
    font-family: Barlow, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
    visibility: hidden;
}

.smap-reset.show { visibility: visible; }

.smap-reset:hover {
    border-color: var(--smap-gold);
    color: var(--smap-gold);
    background: var(--smap-gold-soft);
}

/* ---------- body figure + hotspots ---------- */

/* Fixed to exactly the image's rendered box (not the grid column) so the
   percentage-positioned hotspot buttons always line up with the artwork,
   even on the single-column layout used under 767px. */
.smap-figure {
    position: relative;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.smap-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.smap-hotspot {
    appearance: none;
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smap-hotspot::before,
.smap-hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
}

/* outer ring, only visible on hover / active */
.smap-hotspot::before {
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 1.4px solid var(--smap-gold);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}

/* inner dot, always visible */
.smap-hotspot::after {
    width: 11px;
    height: 11px;
    margin: -5.5px 0 0 -5.5px;
    background: #fff;
    border: 1.6px solid rgba(255, 255, 255, .75);
    transition: background .15s ease, border-color .15s ease;
}

.smap-hotspot:hover::after,
.smap-hotspot.active::after {
    background: var(--smap-gold);
    border-color: var(--smap-gold);
}

.smap-hotspot.active::before {
    opacity: 1;
    transform: scale(1.15);
}

.smap-hotspot:focus-visible::before {
    opacity: 1;
}

/* ---------- filter key ---------- */

.smap-key {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.smap-key-item {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    background: none;
    text-align: left;
    font-family: Barlow, sans-serif;
    width: 100%;
    transition: background .15s ease, border-color .15s ease;
}

.smap-key-item:hover { background: var(--smap-gold-soft); }

.smap-key-item.active {
    border-color: var(--smap-gold-line);
    background: var(--smap-gold-soft);
}

.smap-key-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--smap-ink-faint);
    flex-shrink: 0;
    transition: background .15s ease;
}

.smap-key-item.active .smap-key-dot,
.smap-key-item:hover .smap-key-dot { background: var(--smap-gold); }

.smap-key-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--smap-ink);
}

.smap-key-text span {
    display: block;
    font-size: 12.5px;
    color: var(--smap-ink-soft);
    margin-top: 1px;
}

.smap-key-match {
    margin-left: auto;
    padding-left: 14px;
    font-size: 12.5px;
    color: var(--smap-ink-soft);
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.smap-key-match strong {
    color: var(--smap-gold);
    font-weight: 700;
}

@media (max-width: 640px) {
    .smap-key-match { display: none; }
}

.smap-result-count {
    font-family: Barlow, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--smap-gold);
    margin: 18px 0 0;
    min-height: 18px;
    text-align: center;
}

/* ---------- treatment tickets ---------- */

.smap-tickets {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.smap-ticket {
    background: var(--smap-panel-bg);
    border: 1px solid var(--smap-gold-line);
    border-radius: var(--smap-radius);
    display: grid;
    grid-template-columns: 1fr 180px;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
    position: relative;
    backdrop-filter: blur(6px);
}

.smap-ticket.smap-hidden { display: none; }

.smap-ticket:hover {
    border-color: rgba(232, 168, 58, .5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(232, 168, 58, .12);
    transform: translateY(-4px);
}

.smap-ticket-main { padding: 24px 24px 22px; }

.smap-ticket-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.smap-ticket-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--smap-gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.smap-ticket-icon svg {
    width: 23px;
    height: 23px;
    color: var(--smap-gold-deep);
}

.smap-ticket-name {
    font-family: Oswald, sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: var(--smap-ink);
    margin: 0;
    line-height: 1.3;
}

/* "New" badge — flags recently-added treatments; inline so it never
   disturbs the card grid or ticket layout. */
.smap-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 2px 9px 2px 7px;
    border-radius: 30px;
    background: var(--smap-gold-soft);
    border: 1px solid var(--smap-gold);
    color: var(--smap-gold);
    font-family: Barlow, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.6;
    vertical-align: middle;
    animation: smap-badge-pulse 1.8s ease-in-out infinite;
}

.smap-badge-new::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--smap-gold);
    flex-shrink: 0;
    animation: smap-badge-dot 1.8s ease-in-out infinite;
}

@keyframes smap-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 168, 58, .35); }
    50% { box-shadow: 0 0 0 5px rgba(232, 168, 58, 0); }
}

@keyframes smap-badge-dot {
    0%, 50% { opacity: 1; }
    75% { opacity: .3; }
    100% { opacity: 1; }
}

.smap-ticket-origin {
    font-family: Barlow, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--smap-ink-soft);
    margin: 2px 0 0;
}

.smap-ticket-best {
    font-family: Barlow, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--smap-gold);
    margin: 0 0 8px;
}

.smap-ticket-desc {
    font-family: Barlow, sans-serif;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--smap-ink-soft);
    margin: 0;
    max-width: 48ch;
}

/* perforated stub divider, same idea as the site's other ticket-styled UI */
.smap-ticket-stub {
    border-left: 2px dashed var(--smap-gold-line);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.smap-ticket-stub::before,
.smap-ticket-stub::after {
    content: "";
    position: absolute;
    left: -9px;
    width: 18px;
    height: 18px;
    background: #0d0d0d;
    border-radius: 50%;
    border: 1px solid var(--smap-gold-line);
}

.smap-ticket-stub::before { top: -9px; }
.smap-ticket-stub::after { bottom: -9px; }

.smap-pressure-label {
    font-family: Barlow, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--smap-ink-soft);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.smap-pressure-dots { display: flex; gap: 4px; margin-top: 5px; }

.smap-pdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.smap-pdot.on { background: var(--smap-gold); }

.smap-ticket-price {
    font-family: Oswald, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--smap-gold);
}

.smap-ticket-price span {
    display: block;
    font-family: Barlow, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--smap-ink-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.smap-ticket-duration {
    font-family: Barlow, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--smap-ink-soft);
}

.smap-ticket-book {
    appearance: none;
    border: 1.5px solid var(--smap-gold-line);
    background: transparent;
    color: var(--smap-gold);
    font-family: Barlow, sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.smap-ticket-book:hover {
    background: var(--smap-gold);
    color: #0d0d0d;
    border-color: var(--smap-gold);
}

.smap-empty-state {
    padding: 40px 24px;
    text-align: center;
    color: var(--smap-ink-soft);
    font-family: Barlow, sans-serif;
    font-size: 14.5px;
    border: 1.5px dashed var(--smap-gold-line);
    border-radius: var(--smap-radius);
    display: none;
    margin-top: 20px;
}

.smap-empty-state.show { display: block; }

/* ---------- reserve / WhatsApp footer ---------- */

.smap-reserve {
    margin-top: 40px;
    padding: 26px 28px;
    background: linear-gradient(135deg, #9f6916 0%, #896528 50%, #794f0f 100%);
    border: 1px solid var(--smap-gold);
    border-radius: var(--smap-radius);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.smap-reserve h3 {
    font-family: Oswald, sans-serif;
    font-weight: 500;
    font-size: 19px;
    color: #fff;
    margin: 0 0 4px;
}

.smap-reserve p {
    font-family: Barlow, sans-serif;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .85);
    margin: 0;
    line-height: 1.6;
}

.smap-reserve-cta {
    appearance: none;
    border: none;
    background: #fff;
    color: var(--smap-gold-deep);
    font-family: Barlow, sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 24px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: background .2s ease;
}

.smap-reserve-cta:hover { background: rgba(255, 255, 255, .85); }

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

@media (max-width: 767px) {
    .smap-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .smap-ticket { grid-template-columns: 1fr; }
    .smap-ticket-stub {
        border-left: none;
        border-top: 2px dashed var(--smap-gold-line);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    .smap-ticket-stub::before,
    .smap-ticket-stub::after { top: -9px; left: auto; }
    .smap-ticket-stub::before { left: -9px; }
    .smap-ticket-stub::after { right: -9px; left: auto; }
    .smap-ticket-book { width: auto; }
    .smap-reserve { flex-direction: column; align-items: flex-start; }
    .smap-reserve-cta { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .smap-hotspot::before,
    .smap-ticket,
    .smap-reset,
    .smap-key-item,
    .smap-ticket-book,
    .smap-reserve-cta { transition: none !important; }

    .smap-badge-new,
    .smap-badge-new::before { animation: none !important; }
}
