/* Modern Appointment Booking Page Styles */

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --text-primary: #2c3e50;
    --text-muted: #6c757d;
}

#serviceDetailOverlay {
    display: none !important;
}

/* Global Styles */
html,
body {
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
}

.appointment-booking-container {
    min-height: 100vh;
}

/* Header Styles */
.booking-header {
    color: white;
    padding: 3rem 0;

}

.header-content {
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

/* Filters Card */
.filters-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.filters-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    outline: none;
}

.clinic-select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Service Filter */
.service-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-checkbox {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.service-checkbox:hover {
    border-color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.05);
}

.service-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.service-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Reset Button */
.btn-reset-filters {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--light-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-reset-filters:hover {
    background-color: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Clinics Section */
.clinics-section {
    margin-top: 0;
    margin-right: 110px;
    transition: margin-right 0.3s ease;
}

.clinics-scroll-feed.hidden-initial {
    display: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clinics-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.75rem 0 1rem;
}

.clinics-feed-wrapper {
    position: relative;
    z-index: 1;
}

.clinics-scroll-feed {
    box-sizing: border-box;
    height: calc(100vh - 90px);
    max-height: calc(100vh - 90px);
    min-height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
    padding-right: 0;
    padding-left: 0;
}

.clinics-scroll-feed::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.clinics-scroll-feed {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.clinic-card-wrapper {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.clinics-nav-button {
    position: fixed;
    right: 40px;
    width: 56px;
    height: 56px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 2200;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

.clinics-nav-button:hover {
    background: #0f172a;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.3);
}

/* TikTok Top Navigation (Global) */
.tiktok-top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2500;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
}

.tiktok-nav-items {
    display: flex;
    align-items: center;
    gap: 24px;
    pointer-events: auto;
}

.tiktok-nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.tiktok-nav-btn.active {
    color: #ffffff;
    transform: scale(1.1);
}

.tiktok-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.tiktok-nav-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    user-select: none;
}

.clinics-nav-rewind {
    bottom: 20rem;
}

.clinics-nav-prev {
    bottom: 14rem;
}

.clinics-nav-next {
    bottom: 8.5rem;
}

@media (max-width: 1199px) {
    .clinics-nav-button {
        width: 42px;
        height: 42px;
        right: 30px;
    }

    .clinics-nav-prev {
        bottom: 14rem;
    }

    .clinics-nav-next {
        bottom: 8.5rem;
    }
}

@media (max-width: 767px) {
    .clinics-nav-button {
        display: none;
    }
}

.clinic-card {
    min-height: 520px;
    max-width: 760px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .clinics-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
    }

    .clinic-card {
        background: white;
        border-radius: 2rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.06);
        height: auto;
        min-height: 400px;
        border: 1px solid rgba(0,0,0,0.05);
        overflow: hidden;
    }

    .clinic-card-wrapper {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        width: 100%;
    }

    .clinics-scroll-feed {
        overflow-y: visible;
        height: auto;
        max-height: none;
        padding: 20px 0;
    }
    
    .clinics-section {
        margin-top: 1rem;
    }

    .clinic-video-hover-overlay {
        border-radius: 2rem;
    }
}

/* Clinic Card */
.clinic-card-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    width: 100%;
    position: relative;
}

.clinic-card {
    width: 100%;
    max-width: 760px;
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    position: relative;
    flex: 1;
    min-width: 0;
    align-self: stretch;
}

.clinic-video-hover-overlay {
    position: absolute;
    inset: 0;
    z-index: 22;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 15, 42, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.clinic-video-hover-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.16), transparent 38%);
    filter: blur(8px);
}

.clinic-video-hover-overlay .video-source-panel {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    z-index: 3;
    pointer-events: none;
}

.clinic-video-hover-overlay .video-source-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.clinic-video-hover-overlay .video-swipe-hint {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
    line-height: 1.3;
}

.clinic-video-hover-overlay .glass-play-btn {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 24px 40px rgba(59, 92, 234, 0.18);
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    padding: 0;
}

.clinic-video-hover-overlay .glass-play-btn:hover,
.clinic-video-hover-overlay .glass-play-btn:focus {
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 48px rgba(59, 92, 234, 0.28);
    outline: none;
}

.clinic-card:hover .clinic-video-hover-overlay,
.clinic-video-hover-overlay.show-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.clinic-card:hover .clinic-video-hover-overlay,
.clinic-video-hover-overlay:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.clinic-card-wrapper:hover .clinic-card,
.clinic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.clinic-card-side-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 60px;
    flex-shrink: 0;
    padding-top: 10px;
}

.clinic-card-side-actions .action-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    background: #fff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.clinic-card-side-actions .action-btn:hover {
    background: #f8fafc;
    color: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.05);
}

.clinic-card-side-actions .action-btn:nth-child(3) {
    background: #ff9f43;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:nth-child(4) {
    background: #10b981;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:nth-child(5) {
    background: #a855f7;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:nth-child(6) {
    background: #0d6efd;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:nth-child(7) {
    background: #6c757d;
    color: #ffffff;
}

.clinic-card-side-actions .action-btn:hover {
    transform: scale(1.1);
    box-shadow: none;
}

.clinic-card-side-actions .action-btn.bookmarked {
    background: rgba(220, 53, 69, 0.18);
    color: #dc3545;
}

@media (min-width: 1200px) {
    .clinic-card-side-actions {
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-end;
        margin-bottom: 2rem;
        gap: 1rem;
        position: relative;
        z-index: 24;
    }

    .clinic-card-side-actions .action-btn {
        width: 52px;
        height: 52px;
        background: rgba(15, 23, 42, 0.9) !important; /* Deep dark background for visibility */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #ffffff !important;
        font-size: 1.15rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .clinic-card-side-actions .action-btn:hover {
        background: #0f172a !important;
        transform: scale(1.15) translateX(5px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.3);
    }

    /* Keep the original accent colors for specific actions but with higher saturation */
    .clinic-card-side-actions .action-btn:nth-child(1) { color: #ff6b81 !important; } /* Heart */
    .clinic-card-side-actions .action-btn:nth-child(2) { color: #5f63f2 !important; } /* Info */
    .clinic-card-side-actions .action-btn:nth-child(3) { color: #ff9f43 !important; } /* Directions */
    .clinic-card-side-actions .action-btn:nth-child(4) { color: #10b981 !important; } /* Phone */
    .clinic-card-side-actions .action-btn:nth-child(5) { color: #a855f7 !important; } /* Share */
    .clinic-card-side-actions .action-btn:nth-child(6) { color: #0d6efd !important; } /* Hours */
    .clinic-card-side-actions .action-btn:nth-child(7) { color: #667eea !important; } /* Book Now */

    .clinic-card-side-actions .action-btn i {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }

    .clinic-card-body {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
        color: white;
        padding: 2rem 1.25rem 1.5rem !important;
        z-index: 23;
        border-radius: 0;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .clinic-card-body * {
        pointer-events: auto;
    }

    .clinic-card-header {
        height: 100% !important;
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .clinic-name a {
        color: white !important;
        font-size: 1.4rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    .clinic-location-wrapper {
        margin-bottom: 1.5rem;
        pointer-events: auto;
    }

    .clinic-location-link {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.6rem 1.25rem;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 50px;
        color: white !important;
        text-decoration: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .clinic-location-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .location-icon {
        font-size: 1.1rem;
        color: #ff6b81 !important; /* Standout location icon color */
    }

    .location-text {
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .staff-section {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .staff-title {
        color: white !important;
        font-size: 0.8rem !important;
    }

    .staff-item {
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .staff-name, .staff-role {
        color: white !important;
    }

    .service-tag {
        background: var(--primary-color) !important;
        color: white !important;
        border: none !important;
    }
}

@media (max-width: 1199px) {
    .clinics-section {
        margin-right: 70px;
    }

    .clinic-card-wrapper {
        flex-direction: column;
    }

    .clinic-card-side-actions {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .clinic-card-side-actions .action-btn {
        width: 42px;
        height: 42px;
    }

    .clinic-card-body,
    .clinic-card-footer {
        padding-right: 1.5rem;
    }
}

@media (max-width: 767px) {

    /* =============================================
       1. RESET ALL WRAPPERS
       ============================================= */
    body, html {
        overflow: hidden;
        height: 100dvh;
        background: #000;
    }

    /* Collapse all Bootstrap wrappers so they're invisible */
    .container,
    .col-md-12,
    .d-md-flex,
    .col-md-8,
    .col-lg-8,
    .col-xl-8,
    .row,
    .container-fluid,
    .clinics-feed-wrapper {
        all: unset !important;
        display: contents !important;
    }

    /* Hide services by default on mobile */
    .service-top-wrapper {
        display: none !important;
    }

    /* =============================================
       3. CLINIC FEED — FIXED FULLSCREEN
       ============================================= */

    /* Hide desktop-only chrome */
    .booking-header,
    .filters-card,
    .section-title,
    .clinics-nav-button {
        display: none !important;
    }

    /* The scroll feed becomes the true fullscreen layer */
    .clinics-scroll-feed {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        scroll-snap-type: y mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        z-index: 1 !important;
        background: #000;
    }

    .clinics-scroll-feed::-webkit-scrollbar {
        display: none !important;
    }

    /* Grid: single-column vertical stack */
    .clinics-grid {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    /* Each wrapper = one fullscreen slide */
    .clinic-card-wrapper {
        position: relative !important;
        width: 100vw !important;
        height: 100dvh !important;
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        overflow: hidden !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #000;
    }

    /* TikTok bottom gradient (dark vignette) */
    .clinic-card-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65%;
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.88) 0%,
            rgba(0,0,0,0.5) 40%,
            transparent 100%
        );
        z-index: 8;
        pointer-events: none;
    }

    /* The card fills the wrapper */
    .clinic-card {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: #111 !important;
        display: block !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* Card header = background photo, fills entirely */
    .clinic-card-header {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        background: #111 !important;
        overflow: hidden !important;
    }

    .clinic-logo {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block !important;
    }

    /* Status badge repositioned */
    .clinic-status {
        position: absolute;
        top: 58px;
        left: 14px;
        z-index: 20;
    }

    /* =============================================
       4. VIDEO OVERLAY
       ============================================= */
    .clinic-video-hover-overlay {
        position: absolute !important;
        inset: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        z-index: 5 !important;
        background: linear-gradient(135deg, #000000 0%, #1a1a2e 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .clinic-video-hover-overlay::before {
        display: none !important;
    }

    .glass-play-btn {
        display: flex !important;
        position: relative;
        z-index: 2;
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        min-height: 100px !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 2px solid rgba(255, 255, 255, 0.28) !important;
        box-shadow: 0 24px 40px rgba(59, 92, 234, 0.18) !important;
        color: #ffffff !important;
        font-size: 1.8rem !important;
        cursor: pointer !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
    }

    .glass-play-btn:hover {
        transform: scale(1.12) !important;
        background: rgba(255, 255, 255, 0.18) !important;
        box-shadow: 0 28px 48px rgba(59, 92, 234, 0.28) !important;
    }

    .glass-play-btn:active {
        transform: scale(0.92) !important;
    }

    .video-source-panel {
        position: absolute !important;
        top: 58px !important;
        right: 14px !important;
        left: auto !important;
        z-index: 20 !important;
    }

    /* =============================================
       5. BOTTOM-LEFT CLINIC INFO
       ============================================= */
    .clinic-card-body {
        position: absolute !important;
        left: 14px !important;
        right: 76px !important;
        bottom: 80px !important;
        top: auto !important;
        z-index: 15 !important;
        padding: 0 !important;
        background: transparent !important;
        color: #fff !important;
        flex: unset !important;
        border-radius: 0 !important;
        pointer-events: none;
    }

    .clinic-card-body * {
        pointer-events: auto;
    }

    .clinic-name {
        margin-bottom: 4px !important;
    }

    .clinic-name a {
        color: #fff !important;
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 6px rgba(0,0,0,0.8) !important;
        text-decoration: none !important;
        line-height: 1.2;
    }

    .clinic-location-wrapper {
        margin-bottom: 8px !important;
    }

    .clinic-location-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: rgba(255,255,255,0.88) !important;
        font-size: 0.88rem !important;
        font-weight: 500 !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        text-decoration: none !important;
    }

    .location-icon {
        color: #ff6b81 !important;
        font-size: 0.85rem !important;
    }

    .staff-section {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        margin: 0 !important;
    }

    .staff-title {
        color: rgba(255,255,255,0.75) !important;
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    }

    .staff-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        overflow: hidden !important;
        max-height: 52px !important;
        flex-wrap: nowrap !important;
    }

    .staff-item {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    .avatar-img {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        border: 1.5px solid rgba(255,255,255,0.7) !important;
        object-fit: cover !important;
    }

    .staff-name {
        color: #fff !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.8) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }

    .staff-role {
        display: none !important;
    }

    .clinic-card-footer {
        display: none !important;
    }

    /* =============================================
       6. RIGHT-SIDE ACTION BUTTONS
       ============================================= */
    .clinic-card-side-actions {
        position: absolute !important;
        right: 10px !important;
        bottom: 80px !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 20px !important;
        z-index: 20 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .clinic-card-side-actions .action-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        border: none !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        transition: transform 0.15s ease !important;
        box-shadow: none !important;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7)) !important;
        padding: 0 !important;
    }

    .clinic-card-side-actions .action-btn:active {
        transform: scale(0.88) !important;
    }

    /* =============================================
       7. SERVICES OVERLAY — HORIZONTAL SLIDING CAROUSEL
       Keeps the original story-ring carousel UI, just floated
       over the video feed as a dark overlay panel.
       ============================================= */
    #serviceTopWrapper {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 150;
        background: rgba(0, 0, 0, 0.88);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        overflow: hidden;
        flex-direction: column;
        justify-content: center;
        padding: 0;
    }

    #serviceTopWrapper.active {
        display: flex !important;
    }

    #serviceTopWrapper * {
        pointer-events: auto;
    }

    /* Header title inside the services overlay */
    .mobile-services-header {
        display: none;
    }

    #serviceTopWrapper.active .mobile-services-header {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 60px 20px 20px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .services-header-back {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        transition: background 0.2s ease;
    }

    .services-header-back:active {
        background: rgba(255, 255, 255, 0.3);
    }

    .mobile-services-header h2 {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 800;
        color: #fff;
        line-height: 1.2;
    }

    .mobile-services-header h2 span {
        display: block;
        font-size: 0.75rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.5);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 2px;
    }

    /* Keep the carousel section visible and scrollable horizontally */
    #serviceTopWrapper.active .services-carousel-section {
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 12px 0 24px !important;
        transform: none !important;
        flex-shrink: 0;
    }

    /* Keep horizontal scroll, just remove the clip */
    #serviceTopWrapper.active .service-carousel-container {
        transform: none !important;
        overflow: visible !important;
        position: relative !important;
        padding: 0 16px;
    }

    #serviceTopWrapper.active .services-carousel-wrapper {
        overflow: visible !important;
    }

    /* The carousel itself stays as a flex row (horizontal scroll) */
    #serviceTopWrapper.active .service-carousel {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 14px !important;
        padding: 4px 4px 16px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #serviceTopWrapper.active .service-carousel::-webkit-scrollbar {
        display: none;
    }

    /* Individual story tabs — enhanced for dark background */
    #serviceTopWrapper.active .service-story-tab {
        flex-shrink: 0 !important;
        scroll-snap-align: start;
        opacity: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    #serviceTopWrapper.active .service-story-tab:active {
        transform: scale(0.95);
    }

    /* Story ring circles — slightly smaller, with glow on dark bg */
    #serviceTopWrapper.active .service-circle-container {
        width: 80px !important;
        height: 80px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 0 2px rgba(255,255,255,0.12) !important;
    }

    #serviceTopWrapper.active .service-circle-placeholder {
        font-size: 2rem !important;
    }

    #serviceTopWrapper.active .service-circle-ring {
        border-color: rgba(255,255,255,0.15) !important;
    }

    #serviceTopWrapper.active .service-story-tab.selected .service-circle-ring,
    #serviceTopWrapper.active .service-story-tab:hover .service-circle-ring {
        border-color: rgba(255,255,255,0.6) !important;
        box-shadow: 0 0 0 3px rgba(102,126,234,0.5) !important;
    }

    /* Info text — white on dark */
    #serviceTopWrapper.active .service-story-info {
        width: 80px !important;
        text-align: center !important;
    }

    #serviceTopWrapper.active .service-story-name {
        color: #ffffff !important;
        font-size: 0.78rem !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
        line-height: 1.3;
    }

    #serviceTopWrapper.active .service-story-price {
        color: #a78bfa !important;
        font-size: 0.74rem !important;
        margin-top: 1px !important;
    }

    /* Keep arrow navs hidden on mobile (touch scrolls) */
    #serviceTopWrapper.active .carousel-nav {
        display: none !important;
    }

    /* =============================================
       8. MOBILE SERVICES GRID (GLASSMORPHISM)
       ============================================= */
    .mobile-services-grid-wrapper {
        flex: 1;
        overflow-y: auto;
        padding: 10px 16px 100px;
        -webkit-overflow-scrolling: touch;
    }

    .services-grid-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding-bottom: 20px;
    }

    .service-grid-card {
        perspective: 1000px;
        animation: cardEntrance 0.5s ease-out forwards;
        opacity: 0;
    }

    @keyframes cardEntrance {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Apply staggered delay to cards */
    .service-grid-card:nth-child(1) { animation-delay: 0.05s; }
    .service-grid-card:nth-child(2) { animation-delay: 0.1s; }
    .service-grid-card:nth-child(3) { animation-delay: 0.15s; }
    .service-grid-card:nth-child(4) { animation-delay: 0.2s; }
    .service-grid-card:nth-child(n+5) { animation-delay: 0.25s; }

    .service-card-glass {
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        overflow: hidden;
        height: 100%;
        display: flex;
        flex-direction: column;
        transition: transform 0.2s ease, background 0.2s ease;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .service-card-glass:active {
        transform: scale(0.96);
        background: rgba(255, 255, 255, 0.1);
    }

    .service-card-top {
        position: relative;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 15px;
    }

    .service-card-image-circle {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .service-grid-card:active .service-card-image-circle {
        transform: scale(1.1);
    }

    .service-card-img-inner {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-card-img-inner.is-logo {
        object-fit: contain;
        padding: 15px;
    }

    .service-card-badge-floating {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 4px 10px;
        border-radius: 12px;
        color: #fff;
        font-size: 0.65rem;
        font-weight: 800;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .service-card-details {
        padding: 12px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .service-card-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 8px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    .service-card-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.72rem;
    }

    .service-card-arrow {
        width: 22px;
        height: 22px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 0.6rem;
    }

}

/* =============================================
   9. SERVICE DETAIL VIEW (MOBILE & DESKTOP)
   ============================================= */
#serviceDetailOverlay, #locationTimeDrawer {
    position: fixed !important;
    z-index: 3000 !important;
    background: #fff !important;
    display: none !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#serviceDetailOverlay.active, #locationTimeDrawer.active {
    display: flex !important;
}

/* Mobile: Fullscreen Overlay */
@media (max-width: 767px) {
    #serviceDetailOverlay, #locationTimeDrawer {
        inset: 0 !important;
        transform: translateY(100%) !important;
    }
    #serviceDetailOverlay.active, #locationTimeDrawer.active {
        transform: translateY(0) !important;
    }
}

/* Desktop: Side Drawer */
@media (min-width: 768px) {
    #serviceDetailOverlay, #locationTimeDrawer {
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 450px !important;
        transform: translateX(100%) !important;
        border-left: 1px solid rgba(0,0,0,0.05) !important;
        border-top-left-radius: 32px !important;
        border-bottom-left-radius: 32px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-shadow: -15px 0 45px rgba(0,0,0,0.15) !important;
    }
    #serviceDetailOverlay.active, #locationTimeDrawer.active {
        transform: translateX(0) !important;
    }
}

    @keyframes detailSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .detail-main-img.is-logo {
        object-fit: contain !important;
        padding: 40px;
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    }

    /* Drawer Backdrop */
    .drawer-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 2999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .drawer-backdrop.active {
        display: block;
        opacity: 1;
    }

    .detail-container {
        padding: 0 0 40px 0;
        display: flex;
        flex-direction: column;
        min-height: 100%;
        color: #0f172a;
    }

    .detail-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 100;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .detail-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .detail-back-btn, .detail-fav-btn, .detail-status-btn, .detail-close-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        background: transparent;
        color: #0f172a;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .detail-close-btn {
        background: #f1f5f9;
        margin-left: 8px;
    }

    .detail-status-btn {
        background: #f0f9ff;
        color: #0284c7;
        font-size: 1rem;
    }

    .detail-status-btn:active {
        transform: scale(0.9);
        background: #e0f2fe;
    }

    .detail-back-btn:active, .detail-fav-btn:active, .detail-close-btn:active {
        background: #f1f5f9;
        transform: scale(0.9);
    }

    .detail-body {
        padding: 0 24px;
        flex: 1;
    }

    .detail-title-section {
        text-align: center;
        margin-bottom: 24px;
    }

    .detail-name {
        font-size: 1.75rem;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 4px;
    }

    .detail-tagline {
        color: #64748b;
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .detail-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        background: #f0fdfa;
        color: #0d9488;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 700;
    }

    .detail-image-section {
        position: relative;
        width: 100%;
        height: 240px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 40px;
    }

    .detail-image-blob {
        position: absolute;
        width: 220px;
        height: 220px;
        background: #eff6ff;
        border-radius: 50%;
        z-index: 1;
    }

    .detail-main-img {
        position: relative;
        z-index: 2;
        max-width: 85%;
        max-height: 85%;
        object-fit: contain;
        filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
    }

    .detail-sparkle {
        position: absolute;
        z-index: 3;
        color: #2dd4bf;
        font-size: 1.4rem;
    }

    .sparkle-1 { top: 20%; right: 15%; }
    .sparkle-2 { bottom: 15%; left: 15%; }

    .detail-highlights {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 32px;
    }

    .highlight-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .highlight-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    .icon-blue { background: #eff6ff; color: #3b82f6; }
    .icon-teal { background: #f0fdfa; color: #0d9488; }
    .icon-green { background: #f0fdf4; color: #16a34a; }

    .highlight-item span {
        font-size: 0.75rem;
        font-weight: 600;
        color: #475569;
        line-height: 1.2;
    }

    .detail-duration-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
        background: #f8fafc;
        border-radius: 16px;
        margin-bottom: 32px;
    }

    .duration-icon {
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .duration-text .label {
        font-size: 0.75rem;
        color: #64748b;
        margin: 0;
    }

    .duration-text .value {
        font-size: 0.95rem;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
    }

    .detail-cost-section {
        margin-bottom: 40px;
    }

    .cost-label {
        font-size: 0.85rem;
        color: #64748b;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .cost-value {
        font-size: 1.75rem;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 16px;
    }

    .payment-plan-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: #f0f9ff;
        border: 1px solid #e0f2fe;
        border-radius: 16px;
    }

    .plan-label {
        font-size: 0.8rem;
        color: #0369a1;
        margin-bottom: 2px;
    }

    .plan-value {
        font-size: 1.1rem;
        font-weight: 800;
        color: #0c4a6e;
        margin: 0;
    }

    .plan-value span {
        font-size: 0.8rem;
        font-weight: 500;
        color: #38bdf8;
    }

    .plan-icon {
        color: #0284c7;
        font-size: 1.2rem;
    }

    .detail-footer {
        padding: 0 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .btn-get-started {
        width: 100%;
        height: 56px;
        background: #0f172a;
        color: #fff;
        border: none;
        border-radius: 999px;
        font-size: 1.05rem;
        font-weight: 700;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .btn-get-started:active {
        transform: scale(0.98);
        background: #1e293b;
    }

    .btn-see-included {
        background: transparent;
        border: none;
        color: #64748b;
        font-size: 0.9rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .included-section {
        margin-top: 10px;
    }

    .included-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        background: #f8fafc;
        border-radius: 12px;
    }

    .included-content.active {
        max-height: 300px;
        margin-top: 12px;
        padding: 16px;
    }

    .included-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .included-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.85rem;
        color: #475569;
    }

    .included-list li i {
        color: #10b981;
    }

    /* Fallback Logo Styling */
    .service-card-img.is-logo {
        object-fit: contain !important;
        padding: 25px;
        background: rgba(255, 255, 255, 0.05);
    }

    .detail-main-img.is-logo {
        object-fit: contain !important;
        padding: 40px;
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    }
}





.clinic-card-header {
    position: relative;
    height: 50%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clinic-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-logo-placeholder {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.clinic-card.video-active .tiktok-video-overlay,
.clinic-card.video-active .clinic-video-hover-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.clinic-card.video-active .clinic-logo {
    opacity: 0.18;
}

.clinic-video-hover-overlay.video-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 25 !important;
}

.clinic-video-player-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
}

.clinic-video-player-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.clinic-video-player-iframe,
.clinic-video-player-container video,
.clinic-video-player-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.clinic-video-play-pause-btn {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 30;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.clinic-video-play-pause-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.clinic-video-player-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 30;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.clinic-video-player-close:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.18);
}

.clinic-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-open {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

/* TikTok Video Overlay */
.tiktok-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.clinic-card-header:hover .tiktok-video-overlay {
    opacity: 1;
}

.tiktok-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
}

.tiktok-play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.tiktok-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: white;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Clinic Card Body */
.clinic-card-body {
    padding: 1.5rem;
    flex: 1;
    border-radius: 24px 24px 0 0;
}

.clinic-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.clinic-location {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* Staff Section */
.staff-section {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.staff-title,
.services-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
}

.staff-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--light-bg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.staff-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

.staff-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.staff-info {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.staff-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.25rem 0;
    text-transform: capitalize;
}

.staff-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.service-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.no-staff {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.75rem;
}

/* Services Section */
.services-section {
    margin-bottom: 0;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    background-color: var(--light-bg);
    font-size: 0.9rem;
}

.service-name {
    font-weight: 500;
    color: var(--text-primary);
}

.service-price {
    font-weight: 700;
    color: var(--primary-color);
}

/* Clinic Card Footer */
.clinic-card-footer {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.btn-book-clinic {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-book-clinic:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-book-clinic:active {
    transform: translateY(0);
}

/* No Clinics Message */
.no-clinics-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-clinics-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Booking Modal */
.modal-content {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
}

.booking-info-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
    font-weight: bold;
}

.form-control-lg {
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    outline: none;
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: var(--light-bg);
}

.doctor-card:hover {
    border-color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.05);
}

.doctor-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doctor-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
}

/* Available Slots */
.available-slots-section {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.slot-button {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}

.slot-button:hover:not(:disabled) {
    border-color: var(--primary-color);
    background-color: rgba(102, 126, 234, 0.05);
}

.slot-button.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: var(--primary-color);
}

.slot-button:disabled {
    background-color: #e9ecef;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Patient Details Section */
.patient-details-section {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Form Check */
.form-check {
    padding-left: 2rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: -2rem;
    cursor: pointer;
    border: 1.5px solid var(--border-color);
    accent-color: var(--primary-color);
}

.form-check-label {
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Modal Footer */
.modal-footer {
    padding: 0.5rem;
    background-color: var(--light-bg);
    border-radius: 0 0 1.25rem 1.25rem;
    display: flex-column;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e9ecef;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #dee2e6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .clinics-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .filters-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }

    .clinics-grid {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .booking-header {
        padding: 2rem 0;
    }

    .page-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .filters-card {
        padding: 1.5rem;
    }

    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .modal-dialog-scrollable {
        max-height: 100vh;
    }
}

/* Scrollbar Styles */
.staff-list::-webkit-scrollbar,
.services-list::-webkit-scrollbar {
    width: 6px;
}

.staff-list::-webkit-scrollbar-track,
.services-list::-webkit-scrollbar-track {
    background: transparent;
}

.staff-list::-webkit-scrollbar-thumb,
.services-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.staff-list::-webkit-scrollbar-thumb:hover,
.services-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clinic-card {
    animation: slideInUp 0.5s ease-out;
}

/* ========================================
   Top Page Service Carousel Section
   ======================================== */

.services-carousel-section {
    background: white;
    padding: 2rem 0;
    margin-bottom: 1rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.services-carousel-wrapper {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.services-carousel-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Instagram-Style Service Carousel
   ======================================== */

.service-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-carousel {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2.5rem 1rem;
    flex: 1;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    justify-content: center;
    align-items: flex-end;
    min-height: 340px;
}

.service-carousel.active-dragging {
    cursor: grabbing;
    user-select: none;
}

.services-carousel-section {
    overflow: hidden;
    position: relative;
    transition: max-height 0.35s ease, padding 0.35s ease, margin 0.35s ease;
    max-height: 430px;
    padding: 0;
    margin-bottom: 1rem;
    width: calc(100% + 40px);
    margin-left: -20px;
}

.services-carousel-section.collapsed {
    position: relative;
    z-index: 55;
    max-height: 600px;
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
}

.services-carousel-section.hidden-stories {
    display: none;
    max-height: 0;
    padding: 0;
    margin: 0;
}

.services-carousel-section.collapsed .service-carousel-container {
    transform: translateY(0);
}

.services-carousel-section.hidden-stories {
    display: none;
    max-height: 0;
    padding: 0;
    margin: 0;
}

.service-top-wrapper {
    position: relative;
    z-index: 1001 !important;
    transition: opacity 0.35s ease, visibility 0.35s ease, height 0.35s ease, margin 0.35s ease;
}

.service-top-wrapper.hidden-top {
    display: none;
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

.service-carousel-container {
    position: relative;
    transition: transform 0.35s ease;
}

.service-carousel-container::before,
.service-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.service-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* On dark mode/active view, the milky end should be dark */
#serviceTopWrapper.active .service-carousel-container::before {
    background: linear-gradient(to right, #0f172a 0%, transparent 100%);
}
#serviceTopWrapper.active .service-carousel-container::after {
    background: linear-gradient(to left, #0f172a 0%, transparent 100%);
}

.services-carousel-section.collapsed .service-carousel-container {
    transform: translateY(24px);
}

.services-carousel-section.hidden-stories .service-carousel-container {
    transform: translateY(-100%);
}

/* Hide scrollbar while keeping functionality */
.service-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.service-story-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    opacity: 0.8;
}

.service-story-tab:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.08);
}

.service-story-tab.selected {
    opacity: 1;
}

/* Circular Service Container */
.service-circle-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.service-story-tab:hover .service-circle-container {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-story-tab.selected .service-circle-container {
    background: white;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

/* Service Circle Image */
.service-circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Placeholder Icon */
.service-circle-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    font-size: 3rem;
}

/* Circle Ring (Instagram-like border) */
.service-circle-ring {
    position: absolute;
    inset: -4px;
    border: 3px solid transparent;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: none;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.service-story-tab.selected .service-circle-ring {
    border-color: #667eea;
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.6), inset 0 0 10px rgba(102, 126, 234, 0.4);
}

.service-story-tab:hover .service-circle-ring {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.service-story-tab.selected .service-circle-ring {
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Service Info */
.service-story-info {
    text-align: center;
    width: 140px;
}

.service-story-name {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: break-word;
}

.service-story-price {
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-prev {
    left: -1rem;
}

.carousel-nav-next {
    right: -1rem;
}

/* Media Queries - Carousel Navigation */
@media (max-width: 768px) {
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-nav-prev {
        left: -0.5rem;
    }

    .carousel-nav-next {
        right: -0.5rem;
    }
}

/* Responsive Adjustments for Service Carousel */
@media (max-width: 992px) {
    .services-carousel-section {
        position: relative;
        z-index: 999;
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }

    .services-carousel-section.collapsed {
        position: relative;
        z-index: 1000;
        max-height: 80px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        margin-bottom: 1.75rem;
    }

    .services-carousel-section.hidden-stories {
        display: none;
        margin: 0;
    }

    .services-carousel-wrapper {
        padding: 0 1rem;
    }

    .services-carousel-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-circle-container {
        width: 120px;
        height: 120px;
    }

    .service-circle-placeholder {
        font-size: 2.5rem;
    }

    .service-story-info {
        width: 120px;
    }

    .service-story-name {
        font-size: 0.9rem;
    }

    .service-story-price {
        font-size: 0.8rem;
    }

    .service-carousel {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services-carousel-section {
        padding: 0.75rem 0;
        margin-bottom: 0.5rem;
    }

    .services-carousel-section.collapsed {
        max-height: 100%;
        padding: 0.75rem 0;
        margin-bottom: 0.5rem;
    }

    .services-carousel-section.collapsed .service-carousel-container {
        transform: translateY(0);
    }

    .services-carousel-section.hidden-stories {
        display: none;
        margin: 0;
    }

    .services-carousel-wrapper {
        padding: 0 0.5rem;
    }

    .clinics-scroll-feed.hidden-initial {
        display: block;
    }

    .services-carousel-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .service-circle-container {
        width: 100px;
        height: 100px;
    }

    .service-circle-placeholder {
        font-size: 2rem;
    }

    .service-story-info {
        width: 100px;
    }

    .service-story-name {
        font-size: 0.8rem;
    }

    .service-story-price {
        font-size: 0.75rem;
    }

    .service-carousel {
        gap: 1.5rem;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .services-carousel-section {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
    }

    .services-carousel-wrapper {
        padding: 0 0.25rem;
    }

    .services-carousel-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }

    .services-carousel-title i {
        font-size: 1.5rem;
    }

    .service-circle-container {
        width: 85px;
        height: 85px;
    }

    .service-circle-placeholder {
        font-size: 1.75rem;
    }

    .service-circle-ring {
        border-width: 2px;
    }

    .service-story-info {
        width: 85px;
    }

    .service-story-name {
        font-size: 0.75rem;
        margin: 0 0 0.25rem 0;
    }

    .service-story-price {
        font-size: 0.65rem;
    }

    .service-carousel {
        gap: 1rem;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .carousel-nav-prev {
        left: -0.25rem;
    }

    .carousel-nav-next {
        right: -0.25rem;
    }
}

@media (max-width: 576px) {
    .service-circle-container {
        width: 90px;
        height: 90px;
    }

    .service-circle-placeholder {
        font-size: 1.75rem;
    }

    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .service-carousel-wrapper {
        gap: 0.75rem;
    }

    .service-carousel {
        gap: 1rem;
        padding: 0.75rem 0;
    }
}

/* Animation for service selection */
@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.service-story-tab {
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.service-story-tab.selected .service-circle-container {
    animation: pulse-ring 1.5s infinite;
}
/* TikTok Video Modal */
.tiktok-video-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.tiktok-video-modal {
    position: relative;
    background: #000;
    border-radius: 1.5rem;
    padding: 1.5rem;
    max-width: 600px;
    width: 90vw;
    max-height: 85vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s ease-out;
    overflow: hidden;
}

.tiktok-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tiktok-clinic-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tiktok-clinic-name i {
    color: #00f7ef;
    font-size: 1.3rem;
}

.tiktok-video-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tiktok-video-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.tiktok-video-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 1rem;
    overflow: auto;
}

.tiktok-video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ============================================
   CLINIC BOTTOM SHEET STYLES
   ============================================ */

/* Bottom Sheet Overlay */
.clinic-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clinic-sheet-overlay.active {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 1;
  pointer-events: auto;
}

/* Bottom Sheet Container */
.clinic-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 30px;
  z-index: 1000;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -2px 30px rgba(0, 0, 0, 0.15);
}

.clinic-bottom-sheet.active {
  transform: translateY(0);
}

/* Drag Handle */
.clinic-sheet-handle {
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* Sheet Content */
.clinic-sheet-content {
  max-width: 100%;
}

/* Clinic Header */
.clinic-sheet-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.clinic-sheet-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(85, 110, 230, 0.1);
}

.clinic-sheet-info {
  flex: 1;
}

.clinic-sheet-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 4px;
}

.clinic-sheet-location {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Action Buttons */
.clinic-sheet-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.clinic-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.clinic-profile-btn {
  background: linear-gradient(135deg, #556ee6 0%, #2f80ed 100%);
  box-shadow: 0 4px 15px rgba(85, 110, 230, 0.3);
}

.clinic-profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(85, 110, 230, 0.4);
}

.clinic-profile-btn:active {
  transform: translateY(0);
}

.clinic-book-btn {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

.clinic-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 188, 156, 0.4);
}

.clinic-book-btn:active {
  transform: translateY(0);
}

.clinic-action-btn i {
  font-size: 1.2rem;
}

/* Service Detail Modal - Responsive Sizing */
#serviceDetailModal .modal-dialog {
  max-width: 900px;
  margin: 1.75rem auto;
}

#serviceDetailModal .modal-content {
  max-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
}

#serviceDetailModal .modal-body {
  overflow-y: auto;
  flex: 1;
}

/* Remove conflicting Bootstrap modal styles */
#serviceDetailModal .modal-header,
#serviceDetailModal .modal-footer {
  border: none;
  padding: 0;
  background: none;
}

/* Large screens - centered modal with proper spacing */
@media (min-width: 992px) {
  #serviceDetailModal .modal-dialog {
    max-width: 900px;
    margin: 2rem auto;
    height: auto;
  }

  #serviceDetailModal .modal-content {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    border-radius: 1.5rem;
  }

  .service-gallery-section {
    max-height: 500px;
  }
}

/* Tablet view - larger modal */
@media (max-width: 991px) and (min-width: 768px) {
  #serviceDetailModal .modal-dialog {
    max-width: 95%;
    margin: 1.5rem auto;
  }
}

/* Mobile - fullscreen modal */
@media (max-width: 767px) {
  #serviceDetailModal .modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  #serviceDetailModal .modal-content {
    height: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  #serviceDetailModal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
  }

  .service-gallery-section {
    max-height: 300px;
  }

  .service-info-section {
    padding: 1.5rem !important;
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .clinic-bottom-sheet {
    padding: 12px 16px 20px;
  }

  .clinic-sheet-header {
    gap: 12px;
  }

  .clinic-sheet-image {
    width: 70px;
    height: 70px;
  }

  .clinic-sheet-name {
    font-size: 1.1rem;
  }

  .clinic-action-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  #serviceDetailModal .modal-dialog {
    margin: 0;
  }
}
