/* =========================================
   Single beauty_center profile
   Loaded on is_singular('beauty_center')
   ========================================= */

.bt-profile-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
}
.bt-profile-wrapper .bt-list-container { margin: 0 !important; }
.bt-card.bt-single-card { border-color: var(--bt-gold) !important; }
.bt-card.bt-single-card:hover { transform: none !important; }

.bt-hero-title-wrapper {
    position: absolute;
    bottom: 40px;
    right: 0;
    z-index: 10;
    pointer-events: none;
}
.bt-hero-title {
    background-color: #ffffff;
    color: var(--bt-primary) !important;
    padding: 5px 15px 5px 25px;
    border-radius: 50px 0 0 50px;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700;
    display: inline-block;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.1);
    pointer-events: auto;
}
.bt-mobile-title-container { display: none; }

/* Gallery carousel */
.bt-carousel-wrapper {
    padding: 15px 25px 0 25px !important;
    margin: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
}
.bt-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    margin: 0 !important;
}
.bt-carousel-track::-webkit-scrollbar { display: none; }
.bt-carousel-item {
    flex: 0 0 calc(33.333% - 2.6px) !important;
    max-width: calc(33.333% - 2.6px) !important;
    aspect-ratio: 1 / 1 !important;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: block;
    background: #f4f4f4;
    border-radius: 8px;
}
.bt-carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease;
}
.bt-zoom-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 38, 59, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bt-zoom-icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}
.bt-carousel-item:hover .bt-zoom-icon { opacity: 1; }

/* Meta & description */
.bt-single-meta-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
    background: transparent;
    border: none;
}
.bt-single-meta-list li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    list-style-type: none !important;
}
.bt-single-meta-list strong {
    color: var(--bt-primary);
    margin-left: 8px;
    display: inline-block;
    min-width: 60px;
}
.bt-description-full {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    text-align: justify;
}

/* Aparat iframe */
.bt-standalone-iframe-wrapper {
    padding: 0 25px 25px 25px !important;
    margin: 0 !important;
}
.bt-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    z-index: 2;
}
.bt-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Lightbox */
.bt-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92) !important;
    z-index: 999999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.bt-lightbox-overlay.active { opacity: 1; visibility: visible; }
.bt-lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.bt-lightbox-overlay.active .bt-lightbox-img { transform: scale(1); }
.bt-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1000000;
}
.bt-lightbox-close:hover { color: var(--bt-gold); }

/* Single responsive */
@media (min-width: 768px) {
    .bt-carousel-item {
        flex: 0 0 calc(20% - 3.2px) !important;
        max-width: calc(20% - 3.2px) !important;
    }
    .bt-hero-title {
        font-size: 18px !important;
        padding: 8px 20px 8px 30px;
    }
    .bt-hero-title-wrapper { bottom: 50px; }
}

@media (max-width: 767px) {
    .bt-single-meta-list {
        margin-bottom: 12px !important;
        background-color: var(--bt-bg-gray) !important;
        padding: 15px !important;
        border-radius: 8px;
        margin-bottom: 20px !important;
    }
    .bt-single-meta-list strong {
        min-width: auto !important;
        margin-left: 5px !important;
    }

    .bt-profile-wrapper { padding-bottom: 90px !important; }
    .bt-single-card .bt-media-wrapper {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
    }
    .bt-carousel-wrapper {
        padding: 4px 0 0 0 !important;
        margin: 0 !important;
        background-color: #fff;
    }
    .bt-carousel-track {
        gap: 4px !important;
        padding-bottom: 0 !important;
    }
    .bt-carousel-item { border-radius: 0 !important; }

    .bt-mobile-title-container {
        display: block;
        padding: 15px 25px 0 25px !important;
        text-align: center;
        margin-bottom: 15px;
    }
    .bt-mobile-title {
        color: var(--bt-primary);
        font-size: 20px !important;
        font-weight: 900;
        margin: 0 !important;
        line-height: 1.4;
    }

    .bt-floating-bar {
        position: fixed;
        bottom: 15px;
        left: 41px;
        right: 41px;
        background-color: var(--bt-gold);
        border-radius: 8px;
        padding: 10px 15px;
        display: flex;
        gap: 10px;
        z-index: 9999;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }
    .bt-floating-btn {
        flex: 1;
        background-color: #fff;
        color: var(--bt-primary) !important;
        border-radius: 6px;
        text-align: center;
        padding: 8px 0;
        font-size: 13px !important;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-decoration: none !important;
        transition: all 0.2s ease;
        border: 1px solid transparent;
    }
    .bt-floating-btn svg {
        width: 16px !important;
        height: 16px !important;
        fill: var(--bt-primary) !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
    }
    .bt-floating-btn:hover,
    .bt-floating-btn:active {
        background-color: var(--bt-gold);
        border: 1px solid #fff !important;
    }
}
