/* ==========================================================================
   Salon provider page V2 — mobile-first video-forward redesign
   (design_handoff_salon_booking). Tokens are final per the design handoff.
   Class prefix: pp2-
   ========================================================================== */

:root {
    --pp2-pink: #E50050;
    --pp2-pink-dark: #C10045;
    --pp2-pink-border: #F0DAE0;
    --pp2-pink-tint: #F9E8EC;
    --pp2-ink: #111111;
    --pp2-text: #1A1A1A;
    --pp2-body: #4A4744;
    --pp2-muted: #8A8580;
    --pp2-faint: #A39C94;
    --pp2-faint-2: #B0AAA3;
    --pp2-surface-warm: #FBF5F1;
    --pp2-chip-fill: #F5F3F0;
    --pp2-chip-fill-2: #F7F4F1;
    --pp2-border: #EEEAE5;
    --pp2-border-2: #ECE7E1;
    --pp2-border-3: #F0ECE7;
    --pp2-border-4: #F4F0EB;
    --pp2-border-5: #EFEAE4;
    --pp2-border-6: #E4DED7;
    --pp2-border-warm: #F1E7DF;
    --pp2-gold: #FFC24B;
    --pp2-green: #3FA86B;
    --pp2-green-bg: #EAF7EF;
    --pp2-disabled-bg: #EDE8E2;
    --pp2-disabled-text: #B4ADA5;
    --pp2-shadow-btn: 0 4px 12px rgba(229, 0, 80, 0.35);
    --pp2-shadow-btn-lg: 0 6px 18px rgba(229, 0, 80, 0.4);
    --pp2-shadow-card: 0 8px 22px rgba(0, 0, 0, 0.06);
    --pp2-shadow-reel: 0 6px 18px rgba(0, 0, 0, 0.12);
    --pp2-shadow-bar: 0 -6px 20px rgba(0, 0, 0, 0.05);
    --pp2-font: -apple-system, 'SF Pro Text', system-ui, 'Segoe UI', sans-serif;
}

/* Clipped, not display:none — text kept for assistive tech and crawlers has
   to stay in the accessibility tree. Page-scoped because the V2 salon page
   also renders inside the embed layout, which has no .sr-only of its own. */
.pp2-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Layout chrome: V2 is an app-like screen — hide the white-label header and
   feed footer, but KEEP the shared feed sidebar (desktop) + bottom nav (mobile)
   so the salon page carries the same navigation as the rest of the site.
   -------------------------------------------------------------------------- */
/* This stylesheet only loads on the V2 page, so these can be unprefixed —
   no body-class dependency means no flash of chrome before deferred JS runs. */
.wl-header,
.feed-footer {
    display: none !important;
}

body {
    background: var(--pp2-surface-warm);
}

.wl-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Desktop: reserve the 56px sidebar rail on the left (the sidebar is
   position:fixed, so this keeps the page column clear of it). Matches the
   offset the feed-booking layout normally applies. */
@media (min-width: 768px) {
    .wl-content {
        margin-left: 56px !important;
    }
}

/* Centered phone-width column on larger screens; edge-to-edge on mobile. */
.pp2-page {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    color: var(--pp2-text);
    font-family: var(--pp2-font);
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 481px) {
    .pp2-page {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    }
}

.pp2-page a {
    color: inherit;
    text-decoration: none;
}

/* The hidden attribute always wins, even over component display rules
   (flex/grid/inline-flex) — one guard for the whole page. */
.pp2-page [hidden],
.pp2-reviews-modal[hidden] {
    display: none !important;
}

.pp2-hidescroll {
    scrollbar-width: none;
}

.pp2-hidescroll::-webkit-scrollbar {
    display: none;
}

.pp2-scroll {
    /* Clear the shared mobile navigation; there is no generic booking bar. */
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    .pp2-scroll {
        padding-bottom: 40px;
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.pp2-hero {
    position: relative;
    height: 340px;
    background: var(--pp2-chip-fill);
}

/* The hero image and everything overlaid on it. On desktop this becomes the
   large tile of the photo mosaic, so the overlay/name/watch button stay
   anchored to the picture rather than to the whole gallery. */
.pp2-hero__main {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Mosaic tiles + "Voir les N photos" are desktop-only (see the >= 1024px
   block in provider-page-v2-overlays.css). */
.pp2-hero__tiles,
.pp2-hero__gallery-btn {
    display: none;
}

.pp2-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pp2-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.75) 100%);
}

.pp2-hero__actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 10px;
}

.pp2-glass-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pp2-glass-btn:active {
    transform: scale(0.92);
}

.pp2-hero__watch {
    position: absolute;
    top: 16px;
    left: 16px;
    display: none;
    align-items: center;
    gap: 7px;
    padding: 7px 13px 7px 9px;
    border: 0;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.pp2-hero__watch.is-visible {
    display: inline-flex;
}

.pp2-hero__watch:active {
    transform: scale(0.95);
}

.pp2-hero__watch-play {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp2-hero__watch-label {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.pp2-hero__bottom {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 22px;
}

.pp2-hero__badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.92);
    margin-bottom: 11px;
}

.pp2-hero__badge.is-visible {
    display: inline-flex;
}

.pp2-hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pp2-ink);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.15);
    animation: pp2Pulse 2s ease-in-out infinite;
}

.pp2-hero__badge-text {
    color: var(--pp2-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Closed / opens-later state: same white pill, static grey dot */
.pp2-hero__badge--closed .pp2-hero__badge-dot {
    background: var(--pp2-faint-2);
    box-shadow: none;
    animation: none;
}

.pp2-hero__name {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.pp2-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
}

.pp2-hero__rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pp2-hero__stars {
    color: var(--pp2-gold);
    font-size: 14px;
    letter-spacing: 1px;
}

.pp2-hero__rating-value {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pp2-hero__rating-count {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Active salon promotion (same business rule as the V1 banner)
   -------------------------------------------------------------------------- */
.pp2-promo {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 16px 20px 0;
    padding: 15px 16px;
    border-radius: 16px;
    background: linear-gradient(100deg, #FF445F 0%, var(--pp2-pink) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(229, 0, 80, 0.2);
}

.pp2-promo__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    opacity: 0.92;
}

.pp2-promo__body {
    flex: 1;
    min-width: 0;
}

.pp2-promo__title {
    margin: 0 0 3px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.pp2-promo__until {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.3;
    opacity: 0.88;
}

.pp2-promo__badge {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

@media (max-width: 359px) {
    .pp2-promo__badge {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.pp2-section {
    padding: 22px 0 4px;
}

.pp2-section__head {
    padding: 0 20px;
    margin-bottom: 14px;
}

.pp2-section__title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0;
}

.pp2-section__subtitle {
    font-size: 13px;
    color: var(--pp2-muted);
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Featured — "Les plus réservées"
   -------------------------------------------------------------------------- */
.pp2-featured {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 20px 8px;
}

.pp2-featured-card {
    flex: 0 0 auto;
    width: 196px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pp2-border);
    box-shadow: var(--pp2-shadow-card);
}

.pp2-featured-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--pp2-pink-tint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--pp2-pink-dark);
    text-transform: uppercase;
}

.pp2-featured-card__star {
    flex: 0 0 auto;
}

.pp2-featured-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.pp2-featured-card__video {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 7px;
    border: 0;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
}

.pp2-featured-card__video:active {
    transform: scale(0.94);
}

.pp2-featured-card__details {
    margin-top: 5px;
    color: var(--pp2-muted);
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pp2-featured-card__body {
    padding: 12px 13px 12px;
}

.pp2-featured-card__name {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pp2-featured-card__duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pp2-muted);
    font-size: 12px;
}

.pp2-featured-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.pp2-featured-card__price {
    font-size: 16px;
    font-weight: 800;
    color: var(--pp2-text);
}

.pp2-featured-card .pp2-btn-book-outline {
    padding: 7px 13px;
    font-size: 12.5px;
}

.pp2-featured-card__price .pp2-price-old {
    font-size: 13px;
    font-weight: 600;
    color: var(--pp2-muted);
    text-decoration: line-through;
    margin-left: 5px;
}

/* --------------------------------------------------------------------------
   Full menu — chips + service rows
   -------------------------------------------------------------------------- */
.pp2-menu {
    padding: 26px 0 4px;
}

.pp2-menu__title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin: 0 0 12px;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Subcategory filter chips (Prestations tab)
   -------------------------------------------------------------------------- */
.pp2-chips {
    display: flex;
    gap: 9px;
    padding: 16px 20px 2px;
    overflow-x: auto;
}

.pp2-chip {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid var(--pp2-border-6);
    border-radius: 100px;
    background: #fff;
    color: var(--pp2-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.pp2-chip.is-active {
    background: var(--pp2-ink);
    border-color: var(--pp2-ink);
    color: #fff;
}

.pp2-search {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 18px;
    border-radius: 100px;
    border: 1px solid var(--pp2-border-6);
    background: #fff;
    margin: 0 20px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pp2-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--pp2-text);
    font-family: inherit;
}

.pp2-search input::-webkit-search-cancel-button {
    display: none;
}

.pp2-search__clear {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--pp2-disabled-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pp2-menu__empty {
    text-align: center;
    padding: 30px 10px;
    color: var(--pp2-muted);
    font-size: 14px;
}

.pp2-cat {
    margin: 0 20px 10px;
}

.pp2-cat__head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px 14px 18px;
    border: 0;
    border-radius: 14px;
    background: #F7F5F3;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
    text-align: left;
}

.pp2-cat__bar {
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--pp2-ink);
}

.pp2-cat__name {
    flex: 1;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--pp2-text);
}

.pp2-cat__count {
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: 100px;
    background: var(--pp2-disabled-bg);
    color: var(--pp2-muted);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp2-cat__chevron {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--pp2-border-6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.pp2-cat.is-open .pp2-cat__chevron {
    transform: rotate(180deg);
}

.pp2-cat__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Spotlight — "Services mis en avant" */
.pp2-menu__groups {
    padding: 0;
}

.pp2-service-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid var(--pp2-border-5);
    background: #fff;
}

/* Thumbnail: the salon's own service photo. Services without one keep a
   text-only row — see _pp2-service-row.blade.php. */
.pp2-service-row__media {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
}

.pp2-service-row__img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    /* Service photos are usually a portrait of the finished look — keep the
       top of the frame rather than centring on a shoulder. */
    object-position: center top;
    background: var(--pp2-chip-fill);
}

.pp2-price-atom {
    white-space: nowrap;
}

/* Narrow phones: the text column is what the thumbnail eats into, so give it
   back the pixels the picture can spare. */
@media (max-width: 420px) {
    .pp2-service-row {
        gap: 12px;
        padding: 14px;
    }

    .pp2-service-row__media {
        width: 52px;
        height: 52px;
    }
}

.pp2-service-row__duration {
    color: var(--pp2-muted);
    font-size: 13px;
    margin-top: 5px;
}

.pp2-service-row__price {
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
}

.pp2-service-row__info {
    flex: 1;
    min-width: 0;
}

.pp2-service-row__name-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pp2-service-row__name {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.pp2-video-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border: 0;
    border-radius: 100px;
    background: var(--pp2-pink-tint);
    color: var(--pp2-pink-dark);
    font-size: 10px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
}

.pp2-video-tag:active {
    transform: scale(0.92);
}



.pp2-btn-book-outline {
    flex: 0 0 auto;
    display: inline-block;
    padding: 9px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--pp2-border-6);
    color: var(--pp2-text) !important;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    background: #fff;
}

.pp2-btn-book-outline:active {
    background: var(--pp2-chip-fill);
}

/* --------------------------------------------------------------------------
   Offrir tab — gift-card details (purchase continues on /cartes-cadeaux)
   -------------------------------------------------------------------------- */
.pp2-gift {
    padding: 8px 0 28px;
}

.pp2-gift__card {
    margin: 0 20px;
    padding: 22px 20px;
    border: 1px solid var(--pp2-border-5);
    border-radius: 18px;
    background: #fff;
}

.pp2-gift__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--pp2-pink);
}

.pp2-gift__title {
    margin: 8px 0 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--pp2-text);
}

.pp2-gift__text {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--pp2-muted);
}

.pp2-gift__amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pp2-gift__amount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 100px;
    border: 1.5px solid var(--pp2-border-6);
    background: var(--pp2-chip-fill);
    color: var(--pp2-text);
    font-size: 14px;
    font-weight: 800;
}

.pp2-gift__points {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.pp2-gift__points li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pp2-body);
}

.pp2-gift__points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pp2-pink);
}

.pp2-gift__cta {
    display: block;
    margin-top: 20px;
    padding: 15px;
    border-radius: 100px;
    background: var(--pp2-pink);
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    box-shadow: var(--pp2-shadow-btn-lg);
}

.pp2-gift__cta:active {
    transform: scale(0.97);
}
