/* 
 * SERVICE OPTION DETAIL STYLES
 * Structure:
 * 1. Global Resets & Layout
 * 2. Image Carousel (Slick)
 * 3. Main Info & Badges
 * 4. Sidebar Booking Box (Desktop)
 * 5. Mobile Elements (Hero, Sticky Bar)
 * 6. Description Tabs
 * 7. Reviews Section
 * 8. Related Services
 * 9. Modals & Forms
 * 10. Animations & Utilities
 */

/* --- 1. GLOBAL RESETS & LAYOUT --- */
.service-detail {
    padding-bottom: 60px; /* Khoảng trống cho footer */
}

/* Ẩn các nút nổi mặc định để tránh rối mắt (đã có thanh đáy riêng) */
.floating-contact-left, 
.floating-contact-right,
.zalo-floating, 
.phone-floating,
.call-now-button, 
.zalo-chat-widget,
#fab-consult-group,
.fab-wrapper,
.hotline-phone-ring-wrap,
.fab-item-wrapper { 
    display: none !important; 
}

/* --- 2. IMAGE CAROUSEL (SLICK) --- */
/* Reset ảnh trong phạm vi trang chi tiết dịch vụ (tránh ảnh hưởng logo menu/header) */
.service-detail img { max-width: 100%; height: auto; display: block; }
.slick-slide img { display: block; width: 100%; height: auto; }

/* [TỐI ƯU CLS] Giữ chỗ không gian cho Slider trước khi JS chạy */
.main-carousel {
    display: block;
    width: 100%;
    aspect-ratio: 16/9; /* Tỷ lệ chuẩn 16:9 */
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    contain: paint;
    margin-bottom: 10px;
}

/* Trạng thái trước khi Slick Init */
.main-carousel:not(.slick-initialized) > div { display: none; }
.main-carousel:not(.slick-initialized) > div:first-child { display: block; }

/* Ép ảnh Main Slider về tỷ lệ 16:9 */
.main-carousel .slick-slide img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
    transition: transform 0.5s ease;
}
/* Zoom ảnh khi rê chuột */
.main-carousel .slick-slide:hover img {
    transform: scale(1.1);
    cursor: zoom-in;
}

/* Thumbnail Carousel */
.thumbnail-carousel { margin-top: 10px; }
.thumbnail-carousel .slick-slide { padding: 0 6px; } /* Khoảng cách giữa các thumb */

/* [FIX CLS] Thumbnail Carousel: Xếp ngang trước khi Slick chạy để tránh vỡ layout dọc */
.thumbnail-carousel:not(.slick-initialized) {
    display: flex;
    gap: 10px;
    overflow: hidden;
}
.thumbnail-carousel:not(.slick-initialized) .thumbnail-item {
    flex: 0 0 20%; /* Hiển thị 5 ảnh trên 1 hàng */
    min-width: 0;
}

.thumbnail-carousel .thumbnail-item {
    display: block;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.6;
    filter: grayscale(30%);
}
.thumbnail-carousel .thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }

/* Hover & Active State */
.thumbnail-carousel .thumbnail-item:hover { opacity: 0.9; filter: grayscale(0); }
.thumbnail-carousel .slick-current .thumbnail-item,
.thumbnail-carousel .thumbnail-item.thumb-active {
    border-color: var(--primary-color);
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 15px; right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 15;
    pointer-events: none;
    backdrop-filter: blur(4px);
    display: flex; align-items: center;
}

/* [NEW] Nút Xem Video trên ảnh */
.btn-play-video-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 6px; /* Padding đều các cạnh */
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Hiệu ứng bung ra mượt */
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    max-width: 46px; /* Chỉ hiện icon ban đầu */
    height: 46px;
    overflow: hidden;
}

.btn-play-video-overlay .play-icon-pulse {
    flex-shrink: 0;
}

.btn-play-video-overlay .video-text {
    opacity: 0;
    white-space: nowrap;
    padding-left: 10px;
    padding-right: 12px;
    transition: opacity 0.3s ease 0.1s; /* Chữ hiện ra sau khi mở rộng */
}

.btn-play-video-overlay:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #cc0000;
    transform: translateY(-2px);
    max-width: 200px; /* Chiều rộng đủ để chứa chữ */
}

.btn-play-video-overlay:hover .video-text {
    opacity: 1;
}

.play-icon-pulse {
    width: 32px;
    height: 32px;
    background: #cc0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    padding-left: 2px; /* Căn chỉnh icon play tam giác */
    box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(204, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(204, 0, 0, 0); }
}

/* [NEW] Hint xem ảnh (Full size) - Tinh tế & Sang trọng */
.view-gallery-hint {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none; /* Click xuyên qua vào ảnh để mở Fancybox */
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0.9;
    transition: all 0.3s ease;
}
.main-visual-wrapper:hover .view-gallery-hint {
    opacity: 1;
    transform: scale(1.05); /* Hiệu ứng zoom nhẹ khi rê chuột vào khung ảnh */
    background: rgba(0, 0, 0, 0.7);
}
.view-gallery-hint.auto-fade-out {
    opacity: 0;
}

/* [RESTORE] Modern Breadcrumb Styles */
.modern-breadcrumb {
    position: sticky;
    top: var(--site-header-height, 76px);
    z-index: 1020;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid #eee;
    margin-bottom: 1.5rem;
    overflow: visible; /* Để dropdown hiển thị được ra ngoài */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* [FIX] Bỏ animate layout để tránh lỗi lơ lửng menu */
}

/* Mobile không có Navbar nên dính luôn sát top */
@media (max-width: 991.98px) {
    .modern-breadcrumb {
        top: 0 !important;
    }
}

/* [NEW] Trạng thái khi dính (cả Desktop và Mobile) */
.modern-breadcrumb.is-stuck {
    margin-left: var(--offset-left, 0px);
    margin-right: var(--offset-right, 0px);
    padding-left: calc(var(--offset-left, 0px) * -1 + 15px);
    padding-right: calc(var(--offset-right, 0px) * -1 + 15px);
    
    border-radius: 0; /* Bỏ bo góc */
    border-left: none;
    border-right: none;
    background: #ffffff; /* [FIX] Đổi nền trắng đặc để sửa lỗi Bootstrap Popper tính sai tọa độ fixed */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* [NEW] Style cuộn ngang cho Breadcrumb & Fix Dropdown bị nhỏ */
.breadcrumb-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.breadcrumb-scroll::-webkit-scrollbar { display: none; }
.modern-breadcrumb .dropdown-menu {
    min-width: 280px; /* Tăng chiều rộng để nội dung thoải mái hơn */
    white-space: normal; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important; /* Đổ bóng sâu, sang trọng */
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 16px !important; /* [NEW] Bo góc mượt mà hơn */
}

/* [NEW] Custom Dropdown Menu for Breadcrumb */
.custom-dropdown-menu {
    padding: 10px 0;
    animation: dropdownFade 0.15s ease-out;
}
/* Chuyển hiệu ứng trượt vào các phần tử con để không xung đột vị trí với Bootstrap Popper */
.custom-dropdown-menu > li {
    animation: dropdownSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-dropdown-menu .dropdown-item {
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 10px;
    width: calc(100% - 20px);
    background-color: transparent;
}
.custom-dropdown-menu .dropdown-item:hover,
.custom-dropdown-menu .dropdown-item:focus {
    background-color: #f8f9fa;
    transform: translateX(4px);
}
.custom-dropdown-menu .dropdown-item:active {
    background-color: #eef4ff;
    transform: scale(0.98);
}

/* Tùy chỉnh thanh cuộn cho dropdown nếu quá dài */
.custom-dropdown-menu::-webkit-scrollbar { width: 6px; }
.custom-dropdown-menu::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.custom-dropdown-menu::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
.custom-dropdown-menu::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

/* Chỉ giữ lại hiệu ứng mờ cho khung ngoài */
@keyframes dropdownFade { from { opacity: 0; } to { opacity: 1; } }
/* Hiệu ứng trượt cho các dòng bên trong */
@keyframes dropdownSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* [USER] Mobile: Breadcrumb full width & Sticky (Đồng bộ Location Detail) */
@media (max-width: 767.98px) {
    .view-gallery-hint {
        bottom: 12px;
        left: 12px;
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* --- 3. MAIN INFO & BADGES --- */
.service-title-main {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Smart Badges Overlay */
.smart-badge-overlay {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 10;
    display: flex; flex-direction: column; gap: 6px;
    pointer-events: none;
}
.smart-badge-overlay.is-inline { flex-direction: row; align-items: center; }

.smart-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem; font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    cursor: pointer; pointer-events: auto;
}
.smart-badge.badge-gift { background: linear-gradient(135deg, #ff7e5f, #feb47b); animation: pulse-gift 1.5s infinite ease-in-out; }
.smart-badge.badge-percent { background: linear-gradient(135deg, #e53935, #f55f5f); animation: pulse-percent 1.5s infinite ease-in-out; }
.smart-badge.badge-weekday { background: linear-gradient(135deg, #43a047, #66bb6a); animation: pulse-weekday 1.5s infinite ease-in-out; }
.smart-badge.promo-more { background: #fff; color: #ff6b6b; justify-content: center; }
.smart-badge:hover { animation-play-state: paused; }

/* Nút chia sẻ nổi trên ảnh */
.btn-share-overlay {
    position: absolute; top: 12px; right: 12px; z-index: 20;
    width: 32px; height: 32px; padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.05);
    color: #333;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
}
.btn-share-overlay:hover { background: #fff; color: var(--primary-color); transform: scale(1.1); }

/* --- 4. SIDEBAR BOOKING BOX (DESKTOP) --- */
.right-sidebar-sticky {
    position: static;
}

.sidebar-booking-box,
.sidebar-contact-box,
.sidebar-guarantee-box,
.sidebar-reviews-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    margin-bottom: 18px;
}

#stickySidebarCtaCard {
    position: -webkit-sticky;
    position: sticky;
    top: 85px;
    z-index: 30;
    border: 1.5px solid #0284c7;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.16);
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.review-card-mini {
    transition: all 0.2s ease;
}
.review-card-mini:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

.sidebar-booking-box .sidebar-service-name {
    font-size: 1.5rem; font-weight: 800; color: #2c3e50; margin-bottom: 1rem;
}

/* Service Switcher */
.option-switcher { margin-bottom: 1rem; }
.service-switcher-btn {
    background-color: #fff; border: 1px solid #e0e0e0;
    color: #333; font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px; padding: 10px 16px;
    transition: all 0.2s ease;
}
.service-switcher-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.service-switcher-menu {
    max-height: 60vh; overflow-y: auto;
    border: 1px solid #eee; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px; padding: 0; margin-top: 8px !important;
}
.service-switcher-menu .dropdown-header {
    background-color: #f8f9fa; position: sticky; top: 0; z-index: 2;
    border-bottom: 1px solid #eee; font-size: 0.8rem; font-weight: 700;
    color: #666; padding: 8px 16px; text-transform: uppercase;
}
.service-switcher-menu .dropdown-item {
    padding: 10px 16px; border-bottom: 1px solid #f5f5f5; white-space: normal;
}
.service-switcher-menu .dropdown-item.active { background-color: var(--primary-color); color: #fff; }
.service-switcher-menu .dropdown-item.active .text-muted { color: rgba(255,255,255,0.8) !important; }

/* Meta Info & Price */
.sidebar-meta-info {
    margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #eee;
}
.sidebar-meta-info p { font-size: 0.9rem; color: #555; margin-bottom: 0.5rem; }
.sidebar-meta-info p i { margin-right: 8px; color: var(--primary-color); }

.price-section { margin-bottom: 1.5rem; }
/* [RESTORE] Highlight background for price section */
.price-section-highlight {
    background-color: #f0f5fa;
    padding: 1rem;
    border-radius: 8px;
}
.price-label { font-size: 0.9rem; color: #666; display: block; line-height: 1.2; }
.price-value {
    font-size: 1.7rem; font-weight: 700; color: var(--danger-color);
    line-height: 1.2; word-break: break-word;
}
.price-row-flex { display: flex; align-items: stretch; justify-content: center; }
.price-row-flex > div:not(.price-separator) { flex: 1; text-align: center; min-width: 0; }
/* [FIX] Chuyển separator thành đường kẻ mảnh (border) thay vì khối nền */
.price-separator { 
    width: 0; 
    border-right: 1px solid #ccc; 
    background-color: transparent; 
    margin: 0 1rem; 
}

/* Promotions & Inclusions */
.sidebar-promotions {
    background-color: #fffaf0; border: 1px dashed var(--warning-color);
    border-radius: 8px; padding: 15px; margin-bottom: 1.5rem;
    display: flex; flex-direction: column; gap: 12px;
}
.promo-item { 
    display: flex; align-items: flex-start; font-size: 0.9rem; color: #555;
    border-bottom: 1px dashed rgba(0,0,0,0.1); padding-bottom: 12px; /* [RESTORE] Đường kẻ phân cách */
}
.promo-item:last-child { border-bottom: none; padding-bottom: 0; }
.promo-item > i { color: var(--warning-color); margin-right: 10px; margin-top: 4px; flex-shrink: 0; }
.promo-item strong { color: #333; margin-right: 5px; }

.sidebar-inclusions, .sidebar-highlights {
    margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
}
.inclusions-title {
    font-size: 0.92rem;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 4px;
}
.inclusions-list-sidebar, .highlights-list-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.inclusions-list-sidebar li, .highlights-list-sidebar li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 0.81rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
    min-width: 0;
}
.highlights-list-sidebar li {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border: 1px solid #fde68a;
}
.inclusions-list-sidebar li {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
}
.inclusions-list-sidebar li.bento-span-full,
.highlights-list-sidebar li.bento-span-full,
.inclusions-list-sidebar li:last-child:nth-child(odd),
.highlights-list-sidebar li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.inclusions-list-sidebar li span,
.highlights-list-sidebar li span {
    min-width: 0;
    overflow-wrap: break-word;
}
.inclusions-list-sidebar li i,
.highlights-list-sidebar li i {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin: 0;
}
.highlights-list-sidebar li i {
    background: #fef3c7;
    color: #d97706 !important;
}
.inclusions-list-sidebar li i {
    background: #dcfce7;
    color: #15803d !important;
}

/* CTA Buttons - Đồng bộ Theme Ocean Blue */
.cta-button {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    background-color: #0284c7 !important;
    border: none !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
    color: white !important;
}
.cta-button:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45) !important;
    color: white !important;
}
.cta-button:active {
    transform: scale(0.98);
}
.best-offer-badge {
    position: absolute; top: -10px; left: 0; right: 0; margin: auto; width: fit-content;
    background: linear-gradient(to right, #ffd700, #ffc107); color: #c62828;
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
    padding: 2px 8px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 20; border: 1px solid #fff; animation: float-badge 3s ease-in-out infinite;
}
@keyframes float-badge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* [RESTORE] Các style phụ trợ cho Sidebar (Nút liên hệ, Ghi chú) */
.booking-note {
    font-size: 0.85rem; color: #e07b00; text-align: center; margin-top: 0.5rem;
}
.form-title {
    font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; color: #333;
}
.zalo-button-sidebar {
    background-color: #28a745; border-color: #28a745; color: white; font-weight: 700;
}
.zalo-button-sidebar:hover { background-color: #218838; color: white; }

.messenger-button-sidebar {
    background-color: #0084ff; border-color: #0084ff; color: white; font-weight: 700;
}
.messenger-button-sidebar:hover { background-color: #0073e6; color: white; }

/* [FIX] Responsive giá tiền trên màn hình nhỏ */
@media (max-width: 400px) { .sidebar-booking-box .price-value { font-size: 1.3rem; } }

/* --- 5. MOBILE ELEMENTS --- */
/* Mobile Custom Design CTA */
.mobile-custom-design-cta {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.custom-design-box {
    background: linear-gradient(180deg, #f0faff 0%, #e1f5fe 100%);
    padding: 24px 18px;
    border-radius: 16px;
    border: 1px solid #b3e5fc;
    box-shadow: 0 4px 14px rgba(3, 169, 244, 0.08);
}
.btn-custom-design-pulse {
    background: linear-gradient(45deg, #2196F3, #03A9F4); border: none;
    padding: 12px 20px; font-size: 1rem; text-transform: uppercase;
    animation: pulse-blue 2s infinite;
}
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(33, 150, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
}

/* Mobile Sticky Footer */
.mobile-booking-bar {
    position: fixed; bottom: 0; left: 0; right: 0; height: 65px;
    background: #ffffff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 3001; display: flex; align-items: center;
    padding: 0 10px; padding-bottom: env(safe-area-inset-bottom); gap: 8px;
}
.nav-item-detail {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: none; border: none; padding: 0 8px; min-width: 50px; height: 100%;
    color: #343a40; text-decoration: none; cursor: pointer;
}
.nav-item-detail .nav-icon { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 4px; }
.nav-item-detail .nav-text { font-size: 0.65rem; font-weight: 600; line-height: 1; }

.action-group { flex-grow: 1; display: flex; align-items: center; height: 100%; padding: 10px 0; }
.cta-button-mobile {
    width: 100%; height: 40px; border-radius: 20px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 0; position: relative; overflow: hidden;
}
.cta-button-mobile::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shine 3s infinite;
}
@keyframes shine { 0% { transform: translateX(-100%); } 20% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
.cta-button-mobile .action-text { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.5px; line-height: 1.1; }
.cta-button-mobile .action-price { font-size: 0.7rem; font-weight: 500; opacity: 0.95; text-transform: none; line-height: 1.1; }

/* A04-B01: thử nhận diện trên gói Hòn Tranh cơ bản. */
:is(.service-detail--brand, .mobile-booking-bar--brand) {
    --service-brand-action: #0369a1;
    --service-brand-sand: #faf7f0;
    --service-brand-ink: #163346;
}

.service-detail--brand .sidebar-booking-box .price-section-highlight {
    background: var(--service-brand-sand) !important;
}

.service-detail--brand .price-section-highlight .price-value {
    color: var(--service-brand-ink);
    font-variant-numeric: tabular-nums;
}

:is(.service-detail--brand, .mobile-booking-bar--brand) .cta-button {
    background: var(--service-brand-action) !important;
    box-shadow: none !important;
    text-transform: none;
    letter-spacing: normal;
    transition: background-color 0.15s ease !important;
}

:is(.service-detail--brand, .mobile-booking-bar--brand) .cta-button:hover,
:is(.service-detail--brand, .mobile-booking-bar--brand) .cta-button:active {
    background: #075985 !important;
    transform: none;
}

.mobile-booking-bar--brand {
    border-top: 1px solid #e2e8f0;
    box-shadow: none;
}

.mobile-booking-bar--brand[data-mobile-task-dock] .nav-item-detail {
    min-width: 56px;
}

.mobile-booking-bar--brand .nav-item-detail .nav-icon {
    color: currentColor;
}

.mobile-booking-bar--brand .nav-item-detail .nav-text,
.mobile-booking-bar--brand .cta-button-mobile .action-price {
    font-size: 0.75rem;
    line-height: 1.2;
}

.mobile-booking-bar--brand .cta-button-mobile {
    height: auto;
    min-height: 44px;
    padding: 4px 8px;
}

.mobile-booking-bar--brand .cta-button-mobile::after {
    content: none;
}

.mobile-booking-bar--brand .best-offer-badge {
    background: var(--service-brand-sand);
    color: #76500d;
    box-shadow: none;
    animation: none;
    text-transform: none;
    letter-spacing: normal;
}

:is(.service-detail--brand .cta-button, .mobile-booking-bar--brand button):focus-visible {
    outline: 2px solid var(--service-brand-action);
    outline-offset: 2px;
}

/* --- 6. DESCRIPTION TABS --- */
.service-description {
    background-color: #fff; border: 1px solid #f0f0f0;
    border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px; overflow: hidden;
}
.service-description .nav-tabs {
    background-color: #f9f9f9; padding: 15px 20px; border-bottom: 1px solid #eee;
    gap: 10px; margin-bottom: 0; flex-wrap: nowrap; overflow-x: auto;
}
.service-description .nav-tabs::-webkit-scrollbar { height: 0px; background: transparent; }
.service-description .nav-link {
    border: 1px solid transparent; background-color: #fff; color: #6c757d;
    font-weight: 600; border-radius: 50px; padding: 10px 24px;
    transition: all 0.3s ease; white-space: nowrap; display: flex; align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.service-description .nav-link:hover { background-color: #f8f9fa; color: #495057; }
.service-description .nav-link.active {
    background-color: var(--primary-color); color: #fff; border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 119, 190, 0.3); transform: translateY(-2px);
}
.service-description .tab-content { padding: 30px; color: #444; line-height: 1.6; }

/* Keep the editorial opening in the description, not in operational instructions. */
.service-description #description > p:first-of-type::first-letter {
    font-size: 3.5em;
    margin-top: 0;
}
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
    .service-description #description > p:first-of-type::first-letter {
        float: none;
        -webkit-initial-letter: 2;
        initial-letter: 2;
        font-size: inherit;
        line-height: inherit;
    }
}
.service-description #itinerary > p:first-of-type::first-letter,
.service-description #policy > p:first-of-type::first-letter {
    float: none;
    -webkit-initial-letter: normal;
    initial-letter: normal;
    font: inherit;
    color: inherit;
    margin: 0;
}

/* Visual Journey Timeline cho Tab Lịch trình (#itinerary) */
.service-description #itinerary > ul,
.service-description #itinerary > ol {
    list-style: none;
    padding-left: 22px;
    margin-left: 8px;
    margin-top: 14px;
    margin-bottom: 18px;
    border-left: none;
}
.service-description #itinerary > ul > li,
.service-description #itinerary > ol > li {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-description #itinerary > ul > li:last-child,
.service-description #itinerary > ol > li:last-child {
    margin-bottom: 0;
}
.service-description #itinerary > ul > li:hover,
.service-description #itinerary > ol > li:hover {
    border-color: #bae6fd;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.06);
}
.service-description #itinerary > ul > li::before,
.service-description #itinerary > ol > li::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0284c7;
    border: 2.5px solid #e0f2fe;
    box-shadow: 0 0 0 2px #fff;
    box-sizing: border-box;
    z-index: 2;
}
.service-description #itinerary > ul > li:not(:last-child)::after,
.service-description #itinerary > ol > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: -24px;
    top: 24px;
    bottom: -38px;
    border-left: 2px dashed rgba(2, 132, 199, 0.45);
    z-index: 1;
}
.service-description #itinerary > ul > li > strong:first-of-type,
.service-description #itinerary > ol > li > strong:first-of-type {
    color: #0369a1;
    font-weight: 750;
}

/* Clear Trust Sections cho Tab Chính sách (#policy) */
.service-description #policy h2,
.service-description #policy h3 {
    font-size: 1.18rem;
    font-weight: 750;
    color: #0f172a;
    margin-top: 22px;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.35;
}
.service-description #policy > h2:first-child,
.service-description #policy > h3:first-child {
    margin-top: 4px;
}
.service-description #policy > ul {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px 14px 32px;
    margin-bottom: 18px;
}
.service-description #policy > ul.list-unstyled {
    padding: 14px 16px;
    list-style: none;
}
.service-description #policy > ul > li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.service-description #policy > ul > li:last-child {
    margin-bottom: 0;
}
.service-description #policy blockquote {
    background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%);
    border-left: 4px solid #0284c7;
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-style: normal;
}
.service-description #policy blockquote ul {
    background: transparent;
    border: none;
    padding-left: 18px;
    margin-bottom: 0;
}
.service-description #policy blockquote ul.list-unstyled {
    padding-left: 0;
    list-style: none;
}
@media (max-width: 767.98px) {
    .service-description .tab-content {
        padding: 18px 14px;
    }
    .service-description #itinerary > ul,
    .service-description #itinerary > ol {
        padding-left: 18px;
        margin-left: 4px;
    }
    .service-description #itinerary > ul > li,
    .service-description #itinerary > ol > li {
        padding: 10px 12px;
    }
    .service-description #itinerary > ul > li::before,
    .service-description #itinerary > ol > li::before {
        left: -25px;
        top: 15px;
    }
    .service-description #itinerary > ul > li:not(:last-child)::after,
    .service-description #itinerary > ol > li:not(:last-child)::after {
        left: -20px;
        top: 21px;
        bottom: -35px;
    }
}

/* --- 6.5. OTHER SIBLING OPTIONS (COMPARISON LIST) --- */
.other-options-heading {
    font-size: 1.05rem;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 12px;
}
.other-options-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}
.other-option-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}
.other-option-card:last-child { border-bottom: none; }
.other-option-card:hover { background-color: #f8fafc; color: inherit; }
.other-option-card.is-current {
    background: #f0f9ff;
    border-left: 3px solid #0284c7;
    padding-left: 11px;
}
.other-option-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}
.other-option-card.is-current .other-option-title { color: #0369a1; }
.badge-viewing-inline {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: #0284c7;
    color: #ffffff;
    vertical-align: 1px;
    margin-left: 4px;
}
.other-option-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.other-option-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    min-width: 0;
}
.other-option-promo {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 650;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}
.other-option-promo-more {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #b91c1c;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    padding: 2px 6px;
    border-radius: 6px;
}
.other-option-price {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
}
.other-option-price .price-num {
    font-size: 1.02rem;
    font-weight: 800;
    color: #dc2626;
}
.other-option-price .price-unit {
    font-size: 0.76rem;
    color: #64748b;
}

/* --- 7. REVIEWS SECTION --- */
.reviews-section { margin-bottom: 30px; }
.section-title-simple {
    font-size: 1.1rem; font-weight: 700; color: #333; margin-bottom: 15px;
    display: flex; align-items: center; justify-content: space-between;
}
.reviews-scroll-container {
    display: flex; overflow-x: auto; gap: 15px; flex-wrap: nowrap;
    padding-bottom: 10px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.reviews-scroll-container::-webkit-scrollbar { display: none; }

/* Slick slide and its single card stretch together; the horizontal inset is the card gap. */
.reviews-scroll-container.slick-initialized { display: block; overflow: hidden; padding: 0; }
.reviews-scroll-container .slick-list { margin: 0 -6px; padding: 5px 0 12px; }
.reviews-scroll-container .slick-track { display: flex; align-items: stretch; }
.review-card {
    min-width: 280px; max-width: 280px;
    background: #f8f9fa; border: 1px solid #e2e8f0; border-radius: var(--border-radius);
    padding: 14px; font-size: 0.9rem; cursor: pointer;
    display: flex; flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reviews-scroll-container.slick-initialized .review-card {
    display: flex; flex-direction: column;
    height: auto; align-self: stretch; margin: 0 6px;
    min-width: 0 !important; max-width: none !important;
}
.review-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--primary-color); }

.review-user { display: flex; align-items: flex-start; margin-bottom: 10px; }
.review-user > div { min-width: 0; flex: 1; }
.review-avatar {
    width: 36px !important; height: 36px !important; min-width: 36px !important;
    flex-shrink: 0; border-radius: 50%; background: #ddd; margin-right: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: #666; font-size: 0.8rem; object-fit: cover;
}
.review-card p {
    display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5;
    -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.45;
}
.review-card .review-proof { margin-top: auto !important; }

/* --- 8. RELATED SERVICES --- */
.related-services-section { margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.related-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Slick slide and card stretch to the tallest title, with a visible gap on both sides. */
.related-services-grid.slick-initialized { display: block; overflow: hidden; padding: 0; }
.related-services-grid .slick-list { margin: 0 -7px; padding: 7px 0 14px; }
.related-services-grid .slick-track { display: flex; align-items: stretch; }
.related-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: var(--border-radius);
    overflow: hidden; transition: box-shadow 0.2s ease, border-color 0.2s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    height: 100%; display: flex; flex-direction: column; padding: 0 !important;
}
.related-services-grid.slick-initialized .related-card {
    height: auto; align-self: stretch; margin: 0 7px; min-width: 0; max-width: none;
}
.related-card:hover { box-shadow: 0 7px 20px rgba(0,0,0,0.1); border-color: var(--primary-color); }

.related-card-img { position: relative; padding-top: 66.66%; overflow: hidden; display: block; width: 100%; /* [FIX] Đảm bảo ảnh full chiều rộng */ }
.related-card-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.related-card:hover .related-card-img img { transform: scale(1.05); }

.related-card-body { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.related-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card-title a { color: #333; text-decoration: none; transition: color 0.2s; }
.related-card-title a:hover { color: var(--primary-color); }
.related-card-price { color: var(--danger-color); font-weight: 700; font-size: 1.1rem; margin-top: auto; }

/* --- 9. MODALS & FORMS --- */
.modal { z-index: 10000 !important; }
.modal-backdrop { z-index: 9999 !important; }
.fancybox__container { z-index: 20000 !important; }

.money-zone { background-color: #f8f9fa; border: 1px solid #e9ecef; }
.cta-submit-btn {
    background: var(--secondary-gradient); border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); font-weight: 800; text-transform: uppercase;
    transition: all 0.3s ease;
}
.cta-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: color-mix(in srgb, var(--secondary-color), black 10%) !important;
    transform: translateY(-1px);
}

#bookingForm .form-group label { font-size: 0.9rem; font-weight: 600; color: #333; margin-bottom: 0.5rem; }
#bookingForm .form-control { height: 44px; }
#bookingForm textarea.form-control { height: auto; }

.booking-success-container { text-align: center; padding: 20px 10px; }
.success-icon-wrapper { font-size: 3.5rem; margin-bottom: 0.5rem; line-height: 1; }
.emergency-contact {
    background-color: #fff3cd; color: #856404; padding: 8px 15px;
    border-radius: 6px; display: inline-block; font-size: 0.9rem; border: 1px dashed #ffeeba;
}
.emergency-contact a { color: #856404; font-weight: bold; text-decoration: none; }

/* --- 10. ANIMATIONS & UTILITIES --- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }

@keyframes pulse-gift { 0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } 50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(255, 126, 95, 0.4); } 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } }
@keyframes pulse-percent { 0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } 50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(229, 57, 53, 0.4); } 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } }
@keyframes pulse-weekday { 0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } 50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(67, 160, 71, 0.4); } 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } }

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 767.98px) {
    body { padding-bottom: 80px; } /* Chừa chỗ cho footer mới */
    
    /* Ẩn Navbar trên cùng */
    #mainNavbar { display: none !important; }
    body { padding-top: 0 !important; }

    /* Full width image section: vừa khít mép màn hình không gây thanh cuộn ngang */
    .image-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }
    .main-carousel .slick-slide img { border-radius: 0 !important; }

    /* Mobile Tabs: padding gọn gàng */
    .service-description .nav-tabs { gap: 4px; justify-content: space-between; padding: 6px 4px !important; }
    .service-description .nav-item { flex: 1; min-width: 0; }
    .service-description .nav-link { padding: 8px 2px; font-size: 13px; justify-content: center; width: 100%; }
    .service-description .nav-link i { margin-right: 4px !important; font-size: 12px; }

    /* [ZERO-WASTE] Tối ưu tab content trên Mobile để văn bản và bảng rộng rãi */
    .service-description .tab-content {
        padding: 10px 6px !important;
    }

    /* [ZERO-WASTE] Tối ưu đệm hộp đặt nhanh trên Mobile: tiết kiệm tối đa chiều ngang */
    .sidebar-booking-box {
        padding: 10px 8px !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* [ZERO-WASTE] Tối ưu các khối con trong box đặt nhanh mobile */
    .sidebar-booking-box .price-section-highlight {
        padding: 8px 6px !important;
    }
    .sidebar-booking-box .sidebar-promotions {
        padding: 8px 6px !important;
        gap: 8px !important;
    }
    .sidebar-booking-box .promo-item {
        padding-bottom: 8px !important;
    }
    .sidebar-booking-box .service-switcher-btn {
        padding: 8px 10px !important;
    }
    .sidebar-booking-box .service-title-main {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    /* Single-Surface: only the image is full bleed; content has one 12px safe edge. */
    .service-detail > .row { margin-inline: 0 !important; }
    .service-detail > .row > .col-md-8,
    .service-detail > .row > .col-md-4 { padding-inline: 0 !important; min-width: 0; }
    .service-detail .sidebar-booking-box.d-md-none {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    .service-detail .sidebar-booking-box.d-md-none .price-section-highlight {
        background: var(--service-brand-sand, transparent) !important;
        border: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
        margin-bottom: 12px !important;
    }
    .service-detail .sidebar-booking-box.d-md-none .option-switcher { margin-bottom: 10px !important; }
    .service-detail .sidebar-booking-box.d-md-none .service-switcher-btn { box-shadow: none !important; }
    .service-detail .sidebar-booking-box.d-md-none .sidebar-highlights,
    .service-detail .sidebar-booking-box.d-md-none .sidebar-inclusions {
        margin: 0 !important;
        padding: 12px 0 !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    .service-detail .sidebar-booking-box.d-md-none .sidebar-meta-info {
        margin: 0 !important;
        padding: 10px 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        border-bottom: 0 !important;
    }
    .service-detail .sidebar-booking-box.d-md-none .sidebar-meta-info p { margin-bottom: 4px; color: #475569; }
    .service-detail .sidebar-booking-box.d-md-none .highlights-list-sidebar,
    .service-detail .sidebar-booking-box.d-md-none .inclusions-list-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .service-detail .sidebar-booking-box.d-md-none .highlights-list-sidebar li,
    .service-detail .sidebar-booking-box.d-md-none .inclusions-list-sidebar li {
        padding: 6px 8px !important;
        font-size: 0.78rem;
        color: #1e293b;
        min-width: 0;
    }
    .service-detail .sidebar-booking-box.d-md-none .sidebar-promotions {
        background: transparent !important;
        border: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        padding: 12px 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    .service-detail .service-description {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        margin-bottom: 14px !important;
    }
    .service-detail .service-description .nav-tabs {
        background: transparent !important;
        border-block: 1px solid #e2e8f0 !important;
        padding: 6px 12px !important;
    }
    .service-detail .service-description .nav-link { box-shadow: none !important; }
    .service-detail .service-description .tab-content { padding: 14px 12px !important; }

    /* Size the slides themselves so the gallery reserves their full height. */
    .service-detail .thumbnail-carousel { margin-block: 6px 12px; }
    .service-detail .thumbnail-carousel .thumbnail-item { aspect-ratio: 4/3; border-radius: 5px; }
    .service-detail .thumbnail-carousel .slick-slide { padding: 0 3px; }
    .service-detail .thumbnail-carousel .slick-current .thumbnail-item,
    .service-detail .thumbnail-carousel .thumbnail-item.thumb-active { transform: none; box-shadow: none; }
    .service-detail .other-options-section,
    .service-detail .reviews-section,
    .service-detail .related-services-section { padding-inline: 12px !important; }
    .service-detail .other-option-card { padding: 10px 12px; gap: 6px; }
    .service-detail .other-option-title { font-size: 0.85rem; letter-spacing: -0.01em; }
    .service-detail .other-option-bottom { gap: 4px; }
    .service-detail .other-option-meta { flex: 1 1 auto; gap: 3px; }
    .service-detail .other-option-promo { gap: 2px; padding: 2px 3px; font-size: 0.66rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .service-detail .other-option-promo-more { flex-shrink: 0; padding: 2px 3px; font-size: 0.66rem; }
    .service-detail .other-option-price { gap: 1px; }
    .service-detail .other-option-price .price-num { font-size: 0.88rem; }
    .service-detail .other-option-price .price-unit { font-size: 0.66rem; }

    .service-detail .mobile-custom-design-cta { margin-block: 14px !important; }
    .service-detail .mobile-custom-design-cta .custom-design-box { padding: 14px 12px !important; border-radius: 12px; }
    .service-detail .mobile-custom-design-cta h5 { font-size: 0.95rem !important; margin-bottom: 4px !important; }
    .service-detail .mobile-custom-design-cta p { font-size: 0.82rem !important; line-height: 1.35; margin-bottom: 10px !important; }
    .service-detail .mobile-custom-design-cta .btn-custom-design-pulse {
        padding: 8px 12px; font-size: 0.85rem; text-transform: none; animation: none;
    }
    .service-detail .reviews-scroll-container.slick-initialized .review-card { align-self: flex-start; }
    .service-detail .review-card p { -webkit-line-clamp: 3; line-clamp: 3; }
    .service-detail .review-card .review-proof { margin-top: 8px !important; }

    /* Mobile Title & Review Button */
    .section-title-simple { flex-wrap: nowrap; gap: 8px; }
    .section-title-simple span { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .section-title-simple .btn { padding: 4px 10px !important; font-size: 0.75rem !important; white-space: nowrap; flex-shrink: 0; }

    /* Related Services Horizontal Scroll */
    .related-services-grid {
        display: flex; overflow-x: auto; gap: 15px; padding: 5px 5px 10px 5px;
        scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .related-services-grid::-webkit-scrollbar { display: none; }
    .related-card { min-width: 220px; max-width: 220px; flex-shrink: 0; }

    /* [ZERO-WASTE] Mobile: Breadcrumb nằm gọn sát lề tinh tế */
    .modern-breadcrumb,
    .modern-breadcrumb.is-stuck {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 8px !important;
        border: 1px solid #eee !important;
        padding: 6px 8px !important;
        margin-bottom: 10px !important;
    }

    /* Hide desktop booking box */
    .booking-section { display: none; }
    .service-detail { padding-bottom: 0 !important; }
    .reviews-section { margin-bottom: 10px !important; }
    .related-services-section { margin-top: 10px !important; padding-top: 10px !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }
    .main-content-wrapper { padding-bottom: 0 !important; }
}

@media (max-width: 1200px) {
    .sidebar-booking-box .price-value { font-size: 1.35rem; }
}

/* [NEW] Mobile responsive cho nút Video */
@media (max-width: 767.98px) {
    .btn-play-video-overlay {
        bottom: 15px;
        left: 15px;
        padding: 4px; /* Chỉ giữ padding vừa đủ cho icon tròn */
        border-radius: 50px;
        gap: 0;
        width: 32px; /* Kích thước cố định ban đầu */
        height: 32px;
        overflow: hidden; /* Che phần chữ */
        transition: width 0.3s ease, padding 0.3s ease; /* Hiệu ứng mở rộng */
    }
    .btn-play-video-overlay .play-icon-pulse {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
        padding-left: 2px;
        flex-shrink: 0;
    }
    .btn-play-video-overlay .video-text {
        opacity: 0;
        white-space: nowrap;
        font-size: 0.75rem;
        padding-left: 6px;
        padding-right: 8px;
        transition: opacity 0.3s ease;
    }
    .btn-play-video-overlay:hover,
    .btn-play-video-overlay:active {
        width: 130px; /* Đủ rộng để hiện chữ */
        background: rgba(255, 255, 255, 0.95);
    }
    .btn-play-video-overlay:hover .video-text,
    .btn-play-video-overlay:active .video-text {
        opacity: 1;
        color: #cc0000;
    }
}

/* [FIX] Mobile: Đẩy Badge sang phải để nằm cùng hàng với nút Back */
@media (max-width: 767.98px) {
    .smart-badge-overlay {
        top: 12px; /* Giữ nguyên top như desktop */
        left: 54px; /* Né nút Back (12px left + 32px width + 10px gap) */
    }
}

/* [NEW] Reading Progress Bar Styles */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000; /* Cao hơn tất cả */
    pointer-events: none;
}
.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); /* Gradient đẹp mắt */
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* [NEW] Session Picker Cards & Cross-Sell Styles */
.cursor-pointer {
    cursor: pointer;
}
.session-pill-card {
    transition: all 0.2s ease-in-out;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff;
    user-select: none;
}
.session-pill-card:hover {
    border-color: #94a3b8 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}
.session-pill-card.active {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.15) !important;
}
.session-pill-card.active .session-title {
    color: #059669 !important;
}
.session-pill-card.active .indicator-icon {
    color: #10b981 !important;
}
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =======================================================
   MULTI-TIER OPTIONS & STEPPER ENHANCEMENTS (Desktop & Mobile)
   ======================================================= */
.multi-tier-item {
    transition: all 0.2s ease;
    gap: 12px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    box-shadow: none;
    background-color: #ffffff;
}
.multi-tier-item:last-child {
    border-bottom: none !important;
}
.multi-tier-item:hover {
    background-color: #f8fafc !important;
}

/* ==========================================================================
   [UNIFIED STEPPER] ĐỒNG NHẤT HÌNH DẠNG & BACKGROUND CHO TẤT CẢ STEPPER
   ========================================================================== */
#bookingForm .quantity-stepper,
.tier-stepper {
    display: inline-flex !important;
    align-items: stretch !important;
    background-color: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: none !important;
    height: 38px !important;
    flex-shrink: 0 !important;
}

/* Nút trừ và cộng - đồng nhất nền #f1f5f9 và chiều cao khớp 100% */
#bookingForm .quantity-stepper .btn-minus,
#bookingForm .quantity-stepper .btn-plus,
.tier-stepper .btn-tier-minus,
.tier-stepper .btn-tier-plus {
    background-color: #f1f5f9 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #334155 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    user-select: none !important;
    box-shadow: none !important;
}

#bookingForm .quantity-stepper .btn-minus:hover,
#bookingForm .quantity-stepper .btn-plus:hover,
.tier-stepper .btn-tier-minus:hover,
.tier-stepper .btn-tier-plus:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

#bookingForm .quantity-stepper .btn-minus:active,
#bookingForm .quantity-stepper .btn-plus:active,
.tier-stepper .btn-tier-minus:active,
.tier-stepper .btn-tier-plus:active {
    background-color: #cbd5e1 !important;
}

/* Ô nhập chữ số - đồng nhất nền #f1f5f9, chiều cao khớp 100%, viền chia ngăn nắp */
#bookingForm .quantity-stepper input[type="number"],
.tier-stepper input.tier-qty {
    background-color: #f1f5f9 !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid #cbd5e1 !important;
    border-right: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    height: 100% !important;
    min-height: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-weight: 800 !important;
    color: #0284c7 !important;
    font-size: 1.05rem !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

#bookingForm .quantity-stepper input[type="number"]:focus,
.tier-stepper input.tier-qty:focus {
    background-color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ẩn mũi tên mặc định của input type=number */
#bookingForm .quantity-stepper input[type="number"]::-webkit-outer-spin-button,
#bookingForm .quantity-stepper input[type="number"]::-webkit-inner-spin-button,
.tier-stepper input.tier-qty::-webkit-outer-spin-button,
.tier-stepper input.tier-qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Kích thước riêng của tier-stepper (Đa gói) trên Desktop */
.tier-stepper {
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
}
.tier-stepper .btn-tier-minus,
.tier-stepper .btn-tier-plus {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
}
.tier-stepper input.tier-qty {
    width: 44px !important;
    min-width: 44px !important;
}

/* Kích thước riêng của quantity-stepper (Người lớn / Trẻ em) trên Desktop */
#bookingForm .quantity-stepper .btn-minus,
#bookingForm .quantity-stepper .btn-plus {
    width: 42px !important;
    min-width: 42px !important;
}

/* ==========================================================================
   [NEW] TỐI ƯU KHỐI ĐA GÓI / ĐA DỊCH VỤ TRÊN MOBILE (FLAT DIVIDER LIST)
   ========================================================================== */
.promo-smart-notification {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.promo-smart-message {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #334155;
    font-size: .72rem;
    font-weight: 400;
    line-height: 1.4;
}

.promo-smart-message > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #0284c7;
}

.promo-smart-message.is-applied {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.promo-smart-message.is-applied > i { color: #16a34a; }

.promo-smart-message.is-tip {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.promo-smart-message.is-tip > i { color: #f59e0b; }

@media (max-width: 576px) {
    #multiOptionSection {
        padding: 10px 10px !important;
        background: #f8fafc !important;
        border-radius: 12px !important;
    }
    #multiTierOptionsList {
        padding-top: 10px !important;
        margin-top: 8px !important;
    }
    #multiTierOptionsList > .d-flex.flex-column {
        gap: 0 !important;
        background: #ffffff !important;
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
        overflow: hidden !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }
    .multi-tier-item {
        padding: 8px 10px !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
    }
    .multi-tier-item:last-child {
        border-bottom: none !important;
    }
    .multi-tier-item:hover {
        background-color: #f8fafc !important;
    }
    .multi-tier-title {
        font-size: 0.81rem !important;
        line-height: 1.35 !important;
        letter-spacing: -0.15px !important;
    }
    .multi-tier-title .badge-viewing {
        font-size: 0.58rem !important;
        padding: 1px 5px !important;
        vertical-align: 1px !important;
    }
}

/* ==========================================================================
   [NEW] TỐI ƯU HEADER & THANH TABS TRÊN MOBILE (GỌN GÀNG & NỔI BẬT TAB ACTIVE)
   ========================================================================== */
@media (max-width: 767.98px) {
    .lead-modal-header {
        padding: 12px 16px !important;
    }
    .lead-modal-title {
        font-size: 1.05rem !important;
        line-height: 1.35 !important;
        margin-bottom: 2px !important;
        font-weight: 700 !important;
    }
    .lead-modal-subtitle {
        font-size: 0.76rem !important;
        line-height: 1.3 !important;
        opacity: 0.9 !important;
    }
    .lead-modal-title-box {
        padding-right: 32px !important;
    }
    .lead-modal-header .btn-close {
        top: 10px !important;
        right: 12px !important;
        transform: scale(0.85) !important;
    }
}

/* Thanh Tabs chuyển chế độ: Đặt Nhanh vs Trọn Chuyến */
.booking-mode-tabs {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

.booking-mode-tabs .nav-link {
    color: #475569 !important;
    border: 1px solid transparent !important;
    transition: all 0.22s ease-in-out !important;
    font-size: 0.84rem;
}

.booking-mode-tabs .nav-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.7) !important;
    color: #0f172a !important;
}

.booking-mode-tabs .nav-link.active {
    background: var(--pq-action, #0369a1) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    border-color: var(--pq-action, #0369a1) !important;
}

@media (max-width: 576px) {
    .booking-mode-tabs .nav-link {
        font-size: 0.78rem !important;
        padding: 6px 6px !important;
    }
}

/* Badge +X Khuyến mãi (promo-more) */
.promo-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.promo-more:hover {
    transform: scale(1.08);
    background-color: #fee2e2 !important;
}

/* ==========================================================================
   [NEW] TỐI ƯU CÁC TRƯỜNG NHẬP LIỆU TRONG BOOKING MODAL TRÊN MOBILE
   ========================================================================== */
@media (max-width: 767.98px) {
    #bookingModal .modal-body {
        padding: 12px 10px !important;
    }
    #bookingForm .form-control,
    #bookingForm .input-group-text {
        height: 40px !important;
        min-height: 40px !important;
        font-size: 15px !important;
        padding: 6px 10px !important;
        border-radius: 8px !important;
    }
    #bookingForm .form-label {
        font-size: 0.82rem !important;
        margin-bottom: 4px !important;
        font-weight: 700 !important;
    }
    #bookingForm .row.g-3 {
        --bs-gutter-y: 0.65rem !important;
        --bs-gutter-x: 0.65rem !important;
    }
    #bookingForm .row.g-3.mb-3 {
        margin-bottom: 0.65rem !important;
    }
    /* Đồng bộ kích thước & hình dạng Stepper trên Mobile */
    #bookingForm .quantity-stepper,
    .tier-stepper {
        height: 36px !important;
        border-radius: 7px !important;
    }
    #bookingForm .quantity-stepper .btn-minus,
    #bookingForm .quantity-stepper .btn-plus {
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        font-size: 0.8rem !important;
    }
    #bookingForm .quantity-stepper input[type="number"] {
        height: 36px !important;
        font-size: 1rem !important;
    }
    .tier-stepper {
        width: 106px !important;
        min-width: 106px !important;
        max-width: 106px !important;
    }
    .tier-stepper .btn-tier-minus,
    .tier-stepper .btn-tier-plus {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 36px !important;
        font-size: 0.75rem !important;
    }
    .tier-stepper input.tier-qty {
        width: 42px !important;
        min-width: 42px !important;
        height: 36px !important;
        font-size: 0.95rem !important;
    }
    /* Thẻ chọn buổi học / lịch trình */
    .session-pill-card {
        padding: 8px 10px !important;
        border-radius: 8px !important;
    }
    .session-pill-card .session-title {
        font-size: 0.82rem !important;
    }
    /* Money Zone */
    .money-zone {
        padding: 10px 12px !important;
        margin-bottom: 0.75rem !important;
    }
    .money-zone #final-price-display {
        font-size: 1.35rem !important;
    }
    /* Nút xác nhận giữ chỗ */
    #bookingForm .cta-submit-btn {
        padding: 11px 16px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }
}


