/* 
 * LOCATION DETAIL STYLES
 * Design Philosophy: Immersive & Contextual (App-like)
 */

/* --- GLOBAL STYLES (Dùng chung cho cả Mobile & Desktop) --- */
.swiper {
    width: 100%;
    height: 100%;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Local Tip Box (Thổ địa mách) */
.local-tip-box {
    background-color: #fffbeb; /* amber-50 */
    border: 1px solid #fcd34d; /* amber-300 */
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px 0;
    position: relative;
}
.local-tip-icon {
    position: absolute;
    top: -10px; left: 12px;
    background: transparent; /* [FIX] Nền trong suốt để không che text/border */
    padding: 0 4px;
    font-size: 18px;
}

/* Lớp phủ tương tác Map (để bấm mở Google Maps) */
.map-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 400; /* Cao hơn map controls */
    background: rgba(0,0,0,0.02); /* Cần có màu cực nhạt để bắt sự kiện click */
    cursor: pointer;
}

/* [NEW] Desktop Sticky Toolbar */
#desktop-sticky-bar {
    transition: top 0.3s;
}
/* Khi cuộn xuống, thanh này sẽ dính ở top. Cần đảm bảo nó nằm dưới Navbar chính (z-index Navbar thường là 50-100) */
/* Navbar base.html thường cao 60-70px. */
@media (min-width: 1024px) {
    #desktop-sticky-bar { top: 70px; } /* Điều chỉnh theo chiều cao thực tế của Navbar */
}

/* [NEW] Dropdown Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.2s ease-out forwards;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; } 

/* [NEW] Hiển thị thanh cuộn mảnh trên Desktop cho Category Bar */
.desktop-scroll-visible::-webkit-scrollbar { height: 6px; }
.desktop-scroll-visible::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
.desktop-scroll-visible::-webkit-scrollbar-track { background: transparent; }
/* Trên mobile vẫn ẩn để vuốt cho mượt */
@media (max-width: 767.98px) { .desktop-scroll-visible::-webkit-scrollbar { display: none; } }


/* [NEW] Scroll Mask (Hiệu ứng mờ 2 bên khi cuộn) */
.mask-linear-scroll {
    mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
}

/* --- [NEW] SIDEBAR DRAWER STYLES (Copy từ Location List) --- */
.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 85%;
    max-width: 320px;
    background: white;
    z-index: 3000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.sidebar-drawer.open {
    transform: translateX(0);
}
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.sidebar-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* [UPDATE] Desktop Menu Button (Inline Style) */
.btn-menu-desktop-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.2s;
    cursor: pointer;
}
.btn-menu-desktop-modern:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.btn-menu-desktop-modern .icon-box {
    width: 32px; height: 32px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.btn-menu-desktop-modern .label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #374151;
}

/* --- [NEW] SUGGESTED SECTION (Gợi ý) --- */
.suggested-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f3f4f6;
    margin-bottom: 40px;
}
.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid Layout cho Desktop */
.suggested-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card Style (Giống Service Option) */
.suggested-card {
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: var(--border-radius); /* [THEME SYNC] */
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Ẩn các dịch vụ vượt quá 4 trên desktop theo yêu cầu */
.suggested-card.extra-hot-service.hidden {
    display: none !important;
}

/* Single-Surface Highlights Strip (Triệt tiêu Hộp lồng Hộp & Tiết kiệm chiều dọc) */
.location-key-facts-strip {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 6px 12px !important;
    margin-bottom: 20px !important;
}

.location-key-facts-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.location-key-facts-grid .fact-col {
    min-width: 0 !important;
}

@media (max-width: 991.98px) {
    .location-key-facts-strip {
        padding: 4px 6px !important;
        border-radius: 12px !important;
        margin-bottom: 15px !important;
    }
    .location-key-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 !important;
    }
    .location-key-facts-grid .fact-col {
        padding: 6px 8px !important;
        min-width: 0 !important;
    }
    .location-key-facts-grid .fact-col:nth-child(2) {
        border-top: none !important;
    }
    .location-key-facts-grid .fact-col:nth-child(even) {
        border-left: 1px solid #f1f5f9 !important;
    }
    .location-key-facts-grid .fact-col:nth-child(3),
    .location-key-facts-grid .fact-col:nth-child(4) {
        border-top: 1px solid #f1f5f9 !important;
    }
}

/* Glass Buttons cho Hero Media Mobile (Chuẩn Sang Trọng & Hiện Đại) */
.location-btn-back-glass,
.location-btn-share-glass {
    position: absolute !important;
    top: 14px !important;
    z-index: 25 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
    outline: none !important;
}

.location-btn-back-glass {
    left: 14px !important;
}

.location-btn-share-glass {
    right: 14px !important;
}

.location-btn-back-glass:active,
.location-btn-share-glass:active {
    transform: scale(0.92) !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

.location-btn-back-glass i,
.location-btn-share-glass i {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Wayfinding Strip: Đơn giản, phẳng và thanh thoát */
.location-wayfinding-strip {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin-bottom: 24px !important;
}

@media (max-width: 767.98px) {
    .location-wayfinding-strip {
        padding: 12px 14px !important;
        border-radius: 12px !important;
        margin-bottom: 18px !important;
    }
}

/* Bản đồ vệ tinh hình vuông chuẩn */
.mini-map-wrapper {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
}

.mini-map-instance {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
}
.suggested-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #bfdbfe;
}
.suggested-img {
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
    background: #f3f4f6;
}
.suggested-body {
    padding: 12px;
}
.suggested-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.suggested-meta {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- [NEW] SIDEBAR BOOKING BOX STYLE (Desktop) --- */
.sidebar-booking-box {
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius); /* [THEME SYNC] */
    padding: 24px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- [NEW] DESKTOP HERO MEDIA OVERLAY (Đồng bộ phong cách Mobile Hero) --- */
.desktop-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.desktop-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 16px 20px;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.desktop-hero-content {
    max-width: calc(100% - 170px); /* Dành không gian cho nút Xem tất cả ảnh góc phải */
    pointer-events: auto;
}

.desktop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.desktop-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.desktop-hero-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    flex-wrap: wrap;
}

.desktop-hero-dot {
    opacity: 0.6;
    margin: 0 2px;
}

.desktop-hero-parent-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.desktop-hero-parent-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* [NEW] View All Photos Button (Compact & Modern) */
.btn-view-all-photos {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6); /* Nền tối để nổi trên ảnh */
    backdrop-filter: blur(4px);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex; align-items: center; gap: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
    z-index: 20;
}

.btn-view-all-photos:hover { background: rgba(0, 0, 0, 0.8); transform: scale(1.05); }

/* [PERFORMANCE FIX] Style nút bộ lọc (Copy từ Location List để đồng bộ) */
.map-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px; /* To hơn một chút so với list */
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background-color: #f3f4f6;
    color: #4b5563;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.map-filter-btn.active {
    background-color: color-mix(in srgb, var(--primary-color), transparent 90%);
    color: var(--primary-color);
    border-color: color-mix(in srgb, var(--primary-color), transparent 80%);
}
.map-filter-btn:hover { transform: scale(1.05); }

/* [PERFORMANCE] Nút Hành động lớn (Thay thế Tailwind Gradient) */
.btn-action-gradient {
    background: var(--secondary-gradient) !important; /* [FIX] Sửa tên biến và thêm !important */
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}
.btn-action-gradient:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.btn-action-primary {
    background-color: var(--primary-color);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}
.btn-action-primary:hover {
    background-color: color-mix(in srgb, var(--primary-color), black 10%);
    transform: scale(1.02);
}

/* --- [NEW] MOBILE STICKY FOOTER (Đồng bộ Service Page) --- */
.mobile-booking-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px; /* Đồng bộ chiều cao với Mobile Nav Bar chung */
    background: #ffffff; /* Nền trắng hoàn toàn */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 3001; /* [FIX] Tăng z-index cao hơn Sidebar (3000) để không bị che */
    display: flex;
    align-items: center;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom);
    gap: 8px;
}

@media (min-width: 1024px) {
    .mobile-booking-bar {
        display: none !important;
    }
}

/* Style cho nút điều hướng (Menu, Gọi) giống Mobile Nav */
.nav-item-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0 8px;
    min-width: 60px;
    height: 100%;
    color: #343a40; /* Màu chữ đen xám */
    text-decoration: none;
}
.nav-item-detail .nav-icon {
    font-size: 1.4rem;
    color: var(--primary-color); /* [THEME SYNC] Đồng bộ màu chủ đạo */
    margin-bottom: 4px;
}

.action-group { flex-grow: 1; display: flex; align-items: center; height: 100%; padding: 10px 0; }
.cta-button-mobile {
    width: 100%;
    height: 40px; /* Điều chỉnh chiều cao cho cân đối trong khung 65px */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 0.9rem;
}

/* [NEW] Action Button Variants (Màu sắc nút hành động) */
.btn-action-blue {
    background: var(--primary-color) !important; /* [THEME SYNC] */
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-action-orange {
    background: var(--secondary-gradient) !important; /* [THEME SYNC] */
    color: white !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Navigation switches at the same boundary as the shared bottom dock. */
@media (max-width: 991.98px) {
    #mainNavbar { display: none !important; }
    body { padding-top: 0 !important; }
}

/* The content layout keeps its existing 1024px breakpoint. */
@media (max-width: 1023.98px) { footer { display: none !important; }

    /* [FIX] Reset Main Container để full màn hình, loại bỏ mọi khoảng trắng thừa */
    .main-content-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important; /* [FIX] Để sticky hoạt động, overflow phải là visible */
    }

    /* [FIX] Ẩn nút Hotline nhịp đập của base.html */
    .hotline-phone-ring-wrap { display: none !important; }

    /* LAYER 1: HERO MEDIA */
    .location-hero-mobile {
        position: relative;
        height: 40vh; /* [UPDATE] Giảm xuống 40vh cho cân đối (giống Post Detail) */
        min-height: 250px;
        width: 100vw; /* [FIX] Full width viewport */
        overflow: hidden;
        background-color: #e5e7eb;
        /* [FIX] Full Bleed: Phá vỡ giới hạn padding của container cha bằng margin âm */
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    
    /* [NEW] Mobile Hero Overlay */
    .mobile-hero-overlay {
        position: absolute;
        bottom: 0; left: 0; right: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
        padding: 60px 0 60px 0; /* [UPDATE] Tăng padding đáy để không bị thẻ info che khuất */
        z-index: 10;
        color: white;
        pointer-events: none; /* Cho phép click xuyên qua để xem ảnh */
    }
    
    .mobile-hero-title {
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 6px;
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .mobile-hero-meta {
        font-size: 0.85rem;
        opacity: 0.95;
        font-weight: 500;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    /* [NEW] Mobile Image Badge (Đồng bộ Post Detail) */
    .mobile-image-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        z-index: 11;
        backdrop-filter: blur(4px);
        display: flex;
        align-items: center;
        gap: 6px;
        pointer-events: none; /* Không chặn thao tác vuốt/click */
    }
    
    /* LAYER 2: INFO CARD (Thẻ nổi) */
    .info-card-container {
        position: relative;
        margin-top: -40px; /* Kéo đè lên ảnh Hero */
        background: white;
        border-top-left-radius: var(--border-radius); /* [THEME SYNC] */
        border-top-right-radius: var(--border-radius);
        padding: 0 20px 90px 20px; /* [UPDATE] Padding top = 0 để Breadcrumb lên sát mép trên */
        z-index: 30;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
        min-height: auto; /* [FIX] Bỏ chiều cao tối thiểu gây ra khoảng trắng thừa */
    }
    
    /* LAYER 3: MINI MAP */
    .mini-map-wrapper {
        height: 180px;
        width: 100%;
        border-radius: var(--border-radius); /* [THEME SYNC] */
        overflow: hidden;
        margin-top: 24px;
        position: relative;
        border: 1px solid #f3f4f6;
    }
    
    /* Suggested Section Mobile: Horizontal Scroll */
    .suggested-grid {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 16px; /* Chừa chỗ cho shadow */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .suggested-grid::-webkit-scrollbar { display: none; }
    
    .suggested-card {
        min-width: 200px;
        max-width: 200px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

/* --- [NEW] MODERN BREADCRUMB (SEO Optimized) --- */
.modern-breadcrumb {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid #eee;
    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 */
    margin-bottom: 1.5rem;
}
.modern-breadcrumb .home-icon {
    color: var(--primary-color);
    background-color: #eef4ff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    text-decoration: none;
}
.modern-breadcrumb .home-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}
.modern-breadcrumb .cat-link {
    text-decoration: none;
}
.modern-breadcrumb .dropdown-toggle-btn {
    color: #999;
    margin-left: 4px;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}
.modern-breadcrumb .dropdown-toggle-btn:hover {
    background-color: #e9ecef;
    color: #333;
}
/* Dấu mũi tên ngăn cách (/) */
.modern-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    font-size: 1rem;
    line-height: 1;
    color: #ccc;
    padding-right: 0.5rem;
}

/* [USER] Mobile: Breadcrumb full width & Sticky */
@media (max-width: 767.98px) {
    .modern-breadcrumb {
        /* [STATE 1] Mặc định: Nằm gọn trong card, liền mạch */
        width: auto;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0; 
        border: none;
        border-bottom: 1px solid #f3f4f6; /* Đường kẻ nhẹ thay vì shadow */
        box-shadow: none; /* Bỏ bóng đổ gây cảm giác nổi */
        position: sticky; /* Dính khi cuộn */
        top: 0;
        z-index: 1020; /* Nổi lên trên nội dung */
        background: #fff; /* Nền trắng để che nội dung trượt bên dưới */
        padding: 12px 0; /* Padding dọc, ngang = 0 vì đã nằm trong container có padding */
        transition: background-color 0.3s ease, box-shadow 0.3s ease; /* [FIX] Bỏ animate layout */
        margin-bottom: 15px;
    }

    /* [STATE 2] Khi dính (Stuck): Tràn viền màn hình */
    .modern-breadcrumb.is-stuck {
        width: 100vw; /* [FIX] Full viewport width để tràn viền tuyệt đối */
        margin-left: calc(50% - 50vw); /* [FIX] Kỹ thuật Breakout căn giữa */
        margin-right: calc(50% - 50vw);
        padding: 12px 20px; /* [FIX] Thêm padding ngang để nội dung không dính mép */
        border-radius: 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Thêm bóng đổ để tách biệt */
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .modern-breadcrumb .breadcrumb-item:first-child a span {
        display: none !important;
    }
    .modern-breadcrumb .breadcrumb-item:nth-child(2) {
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    .modern-breadcrumb .cat-link {
        max-width: 30vw !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    .modern-breadcrumb li.active {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .modern-breadcrumb li.active .text-truncate {
        max-width: 36vw !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    /* [NEW] Mobile Hot Services (2 Rows Horizontal Scroll - Copy from Post List) */
    .mobile-hot-services-scroll {
        display: grid;
        grid-template-rows: repeat(2, 1fr); /* 2 hàng */
        grid-auto-flow: column; /* Xếp theo cột rồi cuộn ngang */
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        margin-right: -20px; /* Negative margin để tràn viền phải container cha */
        padding-right: 20px;
    }
    
    .mobile-hot-services-scroll::-webkit-scrollbar { display: none; }

    .mobile-hot-service-item {
        width: 260px; /* Chiều rộng thẻ cố định */
        scroll-snap-align: start;
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        padding: 0; /* [UPDATE] Bỏ padding để ảnh tràn viền */
        display: flex;
        align-items: stretch; /* [UPDATE] Kéo dãn chiều cao */
        gap: 0; /* [UPDATE] Bỏ khoảng cách, dùng padding bên info */
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
        text-decoration: none;
        color: inherit;
        overflow: hidden; /* [UPDATE] Cắt góc ảnh theo border-radius cha */
        height: 80px; /* [UPDATE] Cố định chiều cao thẻ */
    }
    
    .mobile-hot-service-item img {
        width: 80px; /* [UPDATE] Chiều rộng ảnh cố định */
        height: 100%; /* [UPDATE] Full chiều cao */
        border-radius: 0; /* [UPDATE] Bỏ bo góc riêng của ảnh */
        object-fit: cover;
        flex-shrink: 0;
    }
    
    .mobile-hot-service-info { 
        min-width: 0; 
        flex: 1; 
        padding: 10px 12px; /* [UPDATE] Thêm padding cho nội dung chữ */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .mobile-hot-service-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
    .mobile-hot-service-price { color: #dc3545; font-weight: 700; font-size: 0.85rem; }
}

/* [NEW] Sidebar Service Item (Desktop) */
.sidebar-service-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.sidebar-service-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-service-item:hover { transform: translateX(4px); }

.sidebar-service-img {
    width: 60px; height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f3f4f6;
}
.sidebar-service-info h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; line-height: 1.3; color: #333; }
.sidebar-service-item:hover h4 { color: var(--primary-color); }
.sidebar-service-price { color: #dc3545; font-weight: 700; font-size: 0.85rem; }

/* ==========================================================================
   PHASE 1: THỔ ĐỊA UX & MAGAZINE TYPOGRAPHY NÂNG CẤP (.location-desc-section)
   ========================================================================== */

.location-desc-section {
    margin-bottom: 1.5rem;
}

.location-desc-card {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color, #0284c7);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.location-desc-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #cbd5e1;
}

.desc-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.desc-badge-tag i {
    color: #0284c7;
    font-size: 11px;
}

.location-desc-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 4px 0;
}

.location-desc-subheading {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.location-story-wrapper {
    position: relative;
}

.story-quote-mark {
    position: absolute;
    top: -24px;
    right: 0;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: #0284c7;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
}

/* 1. Magazine Drop Cap & Typography cho Mô tả chi tiết (#location-desc) */
#location-desc {
    font-size: 1rem;
    line-height: 1.85;
    color: #334155;
}

#location-desc p {
    margin-bottom: 1.15rem;
}

#location-desc p:last-child {
    margin-bottom: 0;
}

#location-desc strong {
    color: #0f172a;
    font-weight: 700;
}

#location-desc > p:first-of-type::first-letter {
    float: left;
    font-size: 3.5em;
    line-height: 0.85;
    font-weight: 800;
    margin-right: 10px;
    margin-top: 2px;
    color: var(--primary-color, #0284c7);
}

@media (max-width: 768px) {
    .location-desc-card {
        padding: 16px;
        border-radius: 12px;
    }
    .location-desc-heading {
        font-size: 1.1rem;
    }
    #location-desc {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    #location-desc > p:first-of-type::first-letter {
        font-size: 2.8em;
        line-height: 0.88;
        margin-top: 0;
        margin-right: 6px;
    }
}

@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
    #location-desc > p:first-of-type::first-letter {
        float: none;
        -webkit-initial-letter: 2;
        initial-letter: 2;
        font-size: inherit;
        line-height: inherit;
        margin-right: 8px;
    }
    @media (max-width: 768px) {
        #location-desc > p:first-of-type::first-letter {
            margin-right: 6px;
        }
    }
}

/* Hỗ trợ thẻ .dropcap-lead nếu được render với chữ cái đầu riêng */
#location-desc .dropcap-lead > strong:first-child {
    font-size: 2.8em;
    line-height: 0.88;
    float: left;
    margin-right: 8px;
    font-weight: 800;
    color: var(--primary-color, #0284c7);
}

/* Định dạng H2, H3, Blockquote trong bài review địa điểm */
#location-desc h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #e0f2fe;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#location-desc h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0369a1;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

#location-desc blockquote {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    border-radius: 0 10px 10px 0;
    padding: 10px 16px;
    margin: 16px 0;
    color: #166534;
    font-size: 0.9rem;
    font-style: normal;
}

.location-story-body figure.image {
    display: block;
    clear: both;
    margin: 20px auto;
    text-align: center;
    max-width: 100%;
}

.location-story-body figure.image.image-style-side,
.location-story-body figure.image-style-side {
    float: none;
    max-width: 100%;
    margin: 20px auto;
}

#location-desc img,
.location-story-body figure.image img {
    display: block;
    margin: 16px auto;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.location-story-body figure.image img {
    margin: 0 auto;
}

.location-story-body figure.image figcaption {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .location-story-body figure.image,
    .location-story-body figure.image.image-style-side,
    .location-story-body figure.image-style-side {
        margin: 14px auto;
    }

    #location-desc img,
    .location-story-body figure.image img {
        max-height: 68vh;
        border-radius: 10px;
    }
}

/* 2. Thẻ Đặc Quyền Khách Tính Đảo (special-perk-box) */
.special-perk-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px dashed #f59e0b;
    border-radius: 14px;
    padding: 14px 18px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.perk-icon-wrap {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* 3. Tọa độ check-in con (child-locations) */
.child-locations-section {
    margin-top: 24px;
    margin-bottom: 24px;
}

.child-locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .child-locations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

.child-location-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.child-location-card:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.12);
}

.child-location-img-wrap {
    position: relative;
    width: 100%;
    height: 110px;
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .child-location-img-wrap {
        height: 130px;
    }
}

.child-location-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.child-location-card:hover .child-location-img-wrap img {
    transform: scale(1.05);
}

.child-location-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    color: #0284c7;
    gap: 4px;
    padding: 8px;
    text-align: center;
}

.child-location-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    line-height: 1.3;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    z-index: 2;
}

.child-location-content {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
}

.child-location-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.child-location-card:hover .child-location-title {
    color: #0284c7;
}

.child-location-tip {
    font-size: 11px;
    color: #64748b;
    margin: 4px 0 0 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.child-location-footer {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
}

.child-location-footer i {
    font-size: 9px;
    transition: transform 0.2s ease;
}

.child-location-card:hover .child-location-footer i {
    transform: translateX(3px);
}

/* 4. Cụm chỉ dẫn Cano 2 Mùa Gió Thổ Địa (wind-season-box) */
.wind-season-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.season-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (min-width: 640px) {
    .season-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.season-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.season-card.north-wind {
    border-left: 3.5px solid var(--pq-brand, #003eaf);
}

.season-card.south-wind {
    border-left: 3.5px solid #d97706;
}

.season-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.season-badge--north {
    color: var(--pq-brand, #003eaf);
}

.season-badge--south {
    color: #c2410c;
}

.season-pier-link {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pq-ink, #0f172a);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.season-pier-link:hover {
    color: var(--pq-brand, #003eaf);
    text-decoration: underline;
}

.season-pier-address {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 11px;
    color: var(--pq-muted, #64748b);
    margin-top: 4px;
    line-height: 1.35;
}

.season-pier-address i {
    margin-top: 2px;
    flex-shrink: 0;
}

.season-pier-summary {
    font-size: 11.5px;
    color: #475569;
    margin: 6px 0 0;
    line-height: 1.45;
}

.season-pier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.season-pier-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.season-pier-btn:hover {
    background: #eef2ff;
    border-color: var(--pq-brand, #003eaf);
    color: var(--pq-brand, #003eaf);
}

.season-pier-btn--maps {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.season-pier-btn--maps:hover {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.border-patrol-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11.5px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

