/* Booking imagery: card thumbnails, hero carousel, photo grid, fullscreen viewer.
   Every surface here is absent unless a service actually has images — the
   typographic layout is the default, not the fallback. */

/* Slot 02 — service card thumbnail. Fixed footprint so cards never reflow. */
html body #booking-main-area .booking-image-thumb {
    width: 88px !important;
    height: 88px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: #f7f7f8 !important;
    box-shadow: inset 0 0 0 1px rgba(5, 5, 5, 0.09) !important;
}

html body #booking-main-area .booking-image-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

html body #booking-main-area .booking-image-thumb.is-initials {
    color: rgba(5, 5, 5, 0.42) !important;
    -webkit-text-fill-color: rgba(5, 5, 5, 0.42) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
}

/* Slot 03 — hero, 16:9, full-bleed above a title. */
html body .booking-image-hero {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #f2f2f4 !important;
}

html body .booking-image-hero-track {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x !important;
}

html body .booking-image-hero-track::-webkit-scrollbar {
    display: none !important;
}

html body .booking-image-hero-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    scroll-snap-align: start !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

html body .booking-image-hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

html body .booking-image-hero-badge {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    min-height: 30px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: rgba(5, 5, 5, 0.72) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

html body .booking-image-hero-badge-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2px !important;
}

html body .booking-image-hero-badge-grid i {
    width: 4px !important;
    height: 4px !important;
    border-radius: 1px !important;
    background: #ffffff !important;
    display: block !important;
}

html body .booking-image-hero-dots {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 12px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    pointer-events: none !important;
}

html body .booking-image-hero-dots span {
    width: 5px !important;
    height: 5px !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    transition: width 140ms ease !important;
}

html body .booking-image-hero-dots span.is-active {
    width: 18px !important;
    background: #ffffff !important;
}

/* Photo grid sheet. */
html body .booking-image-grid-sheet {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100010 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

html body .booking-image-grid-scrim {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(5, 5, 5, 0.55) !important;
}

html body .booking-image-grid-panel {
    position: relative !important;
    max-height: 88dvh !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 28px 28px 0 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

html body .booking-image-grid-grabber {
    width: 44px !important;
    height: 5px !important;
    margin: 10px auto 0 !important;
    border-radius: 3px !important;
    background: rgba(5, 5, 5, 0.14) !important;
    flex: 0 0 auto !important;
}

html body .booking-image-grid-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 16px 20px 12px !important;
    flex: 0 0 auto !important;
}

html body .booking-image-grid-head strong {
    display: block !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

html body .booking-image-grid-head span {
    display: block !important;
    margin-top: 2px !important;
    color: rgba(5, 5, 5, 0.5) !important;
    -webkit-text-fill-color: rgba(5, 5, 5, 0.5) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

html body .booking-image-grid-head button {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #f7f7f8 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

html body .booking-image-grid-head button::before {
    content: "" !important;
    width: 12px !important;
    height: 12px !important;
    background:
        linear-gradient(#050505, #050505) center/12px 2px no-repeat,
        linear-gradient(#050505, #050505) center/2px 12px no-repeat !important;
    rotate: 45deg !important;
}

html body .booking-image-grid-body {
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    padding: 4px 20px calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: min-content !important;
    align-items: start !important;
    gap: 10px !important;
}

html body .booking-image-grid-tile {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #f2f2f4 !important;
    aspect-ratio: 1 / 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* The first image reads as the cover, so it spans the row. */
html body .booking-image-grid-tile.is-cover {
    grid-column: 1 / -1 !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 20px !important;
}

html body .booking-image-grid-tile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Fullscreen viewer. */
html body .booking-image-viewer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100020 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #0c0b09 !important;
}

html body .booking-image-viewer-top {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 14px !important;
}

html body .booking-image-viewer-close,
html body .booking-image-viewer-spacer {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
}

html body .booking-image-viewer-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

html body .booking-image-viewer-close::before {
    content: "" !important;
    width: 12px !important;
    height: 12px !important;
    background:
        linear-gradient(#ffffff, #ffffff) center/12px 2px no-repeat,
        linear-gradient(#ffffff, #ffffff) center/2px 12px no-repeat !important;
    rotate: 45deg !important;
}

html body .booking-image-viewer-count {
    color: rgba(255, 255, 255, 0.66) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.66) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
}

html body .booking-image-viewer-stage {
    flex: 1 !important;
    min-height: 0 !important;
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    overscroll-behavior: contain !important;
}

html body .booking-image-viewer-stage::-webkit-scrollbar {
    display: none !important;
}

html body .booking-image-viewer-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    scroll-snap-align: center !important;
}

html body .booking-image-viewer-slide img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 8px !important;
}

html body .booking-image-viewer-strip {
    flex: 0 0 auto !important;
    display: flex !important;
    gap: 6px !important;
    padding: 16px 20px calc(env(safe-area-inset-bottom, 0px) + 20px) !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

html body .booking-image-viewer-strip::-webkit-scrollbar {
    display: none !important;
}

html body .booking-image-viewer-thumb {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    opacity: 0.45 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

html body .booking-image-viewer-thumb.is-active {
    opacity: 1 !important;
    box-shadow: 0 0 0 2px #ffffff !important;
}

html body .booking-image-viewer-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* An open image layer owns the screen. */
html body.booking-image-layer-open #bottom-nav,
html body.booking-image-layer-open #mobile-bottom-nav-underlay {
    display: none !important;
}

/* Card head becomes a three-column row when a thumbnail is present. */
html body #booking-main-area .booking-guest-session.has-image .booking-guest-session-head {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 12px !important;
}

/* A thumbnail eats horizontal room, so the title runs a size smaller here to
   keep it from stacking three lines deep. */
html body #booking-main-area .booking-guest-session.has-image .booking-guest-title {
    font-size: 21px !important;
    line-height: 1.12 !important;
}

html body #booking-main-area .booking-guest-session.has-image .booking-image-thumb {
    width: 72px !important;
    height: 72px !important;
    border-radius: 16px !important;
}

html body #booking-main-area .booking-guest-session-thumb {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 0 !important;
}

@media (max-width: 380px) {
    html body #booking-main-area .booking-guest-session.has-image .booking-guest-session-head {
        grid-template-columns: 72px minmax(0, 1fr) auto !important;
        gap: 12px !important;
    }

    html body #booking-main-area .booking-image-thumb {
        width: 72px !important;
        height: 72px !important;
    }
}

/* Slot 03 — hero at the top of the pick-a-time sheet, full-bleed. */
/* The sheet body is a flex column, so the hero must not be allowed to shrink
   below its aspect ratio — otherwise it collapses and the badge lands on the
   copy below it. */
html body #mobileBookingModal.is-time-sheet .booking-image-hero {
    flex: 0 0 auto !important;
    align-self: stretch !important;
    margin: 0 0 4px !important;
    border-radius: 0 !important;
}

html body #mobileBookingModal.is-time-sheet .mobile-booking-sheet:has(.booking-image-hero) .mobile-booking-sheet-grabber {
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    background: rgba(255, 255, 255, 0.72) !important;
}

/* With a hero present the "ALL N" badge owns the top-right corner, so the
   sheet's close button moves left rather than sitting on top of it. */
html body #mobileBookingModal.is-time-sheet .mobile-booking-sheet:has(.booking-image-hero) .mobile-booking-checkout-close {
    left: 18px !important;
    right: auto !important;
    background: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
}

/* The badge and dots must sit above the hero's scroll track. */
html body .booking-image-hero-badge,
html body .booking-image-hero-dots {
    z-index: 2 !important;
}
