/* ==========================================================================
   TRANG LIÊN HỆ & TÌM CỬA HÀNG (STORE LOCATOR)
   ========================================================================== */
/* ==========================================================================
   FIX LỖI HEADER VÀ TỶ LỆ TRANG LIÊN HỆ
   ========================================================================== */
/* 1. Ép Header hiện nền trắng, có vạch ngăn cách và luôn nổi lên trên cùng */
.site-header .h-icon svg {
    stroke: #000000 !important;
}
.site-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #eaeaea !important;
    z-index: 9999 !important;
    width: 100%;
}

/* 2. Đẩy nội dung xuống dưới Header và khóa chặt tỷ lệ 100vh */
.ap-contact-page {
    padding-top: 110px !important; /* Độ cao đẩy xuống để chừa chỗ cho Header */
	padding-bottom: 60px !important; /* TẠO 60px KHOẢNG TRẮNG Ở ĐÁY */
    height: 100vh;
    box-sizing: border-box; /* Phép thuật ở đây: Ép phần padding nằm gọn trong 100vh */
    background: #fff;
    /* overflow: hidden; */
	
}

.ap-store-locator-wrapper {
    display: flex;
    height: 100%; /* Kéo dài xuống tận đáy màn hình */
}

/* --- CỘT TRÁI: SIDEBAR (CÓ THANH CUỘN ĐỘC LẬP) --- */
.locator-sidebar {
    width: 480px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid #eaeaea;
}

.sidebar-header {
    padding: 40px;
    border-bottom: 1px solid #eaeaea;
}

.contact-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 3rem;
    font-weight: 100;
    line-height: 1.1;
    color: #111;
    margin-bottom: 20px;
}
.contact-title em {
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 2px;
}
.contact-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Form Search */
.locator-search {
    display: flex;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.locator-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #111;
}
.locator-search input::placeholder { color: #999; }
.btn-search-icon {
    background: transparent; border: none; cursor: pointer; color: #555;
}

.btn-current-location {
    display: block; font-size: 12px; color: #111; text-decoration: none; margin-bottom: 30px;
}

/* Bộ lọc Buttons */
.locator-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-tag {
    background: transparent;
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-tag:hover { border-color: #111; color: #111; }
.filter-tag.active { background: #111; color: #fff; border-color: #111; }

/* Danh sách cửa hàng (Cuộn chuột) */
.sidebar-store-list {
    flex: 1;
    overflow-y: auto; /* Cho phép cuộn dọc */
    padding: 40px;
}
/* Ẩn thanh cuộn cho đẹp */
.sidebar-store-list::-webkit-scrollbar { width: 4px; }
.sidebar-store-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.store-count { font-size: 14px; font-weight: bold; margin-bottom: 20px; color: #111; }
.store-item { margin-bottom: 40px; }
.store-img { width: 100%; height: auto; margin-bottom: 15px; }
.store-info h3 { font-size: 16px; margin-bottom: 10px; color: #111; }
.store-info p { font-size: 16px; color: #fff; line-height: 1.5; margin-bottom: 15px; }
.btn-store-detail {
    font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    color: #111; text-decoration: none; border-bottom: 1px solid #111; padding-bottom: 2px;
}

/* --- CỘT PHẢI: BẢN ĐỒ --- */
.locator-map {
    flex: 1; /* Chiếm toàn bộ không gian còn lại */
    position: relative;
    background: #f0f0f0;
}

/* Kỹ thuật hô biến Google Maps màu mè thành màu Xám Bạc Luxury */
.locator-map iframe {
    filter: grayscale(100%) contrast(110%) brightness(105%);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 991px) {
    .ap-contact-page { height: auto; overflow: auto; }
    .ap-store-locator-wrapper { flex-direction: column; height: auto; }
    .locator-sidebar { width: 100%; height: auto; border-right: none; }
    .sidebar-store-list { overflow-y: visible; padding: 20px 40px; }
    .locator-map { height: 60vh; } /* Bản đồ cao 60% màn hình trên đt */
}

/* --- TRANG TRÍ CHI TIẾT CỦA KHỐI CHI NHÁNH ĐỘNG --- */
.store-item {
    margin-bottom: 50px;
    background: #fff;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f1f1;
}
.store-item:last-child {
    border-bottom: none; /* Chi nhánh cuối cùng xóa gạch chân ngăn cách */
}
.store-info h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #111;
    margin: 15px 0 12px;
}
.info-line {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
}
.hours-line {
    margin-top: 12px;
    background: #f9f9f9;
    padding: 10px 15px;
    border-left: 2px solid #111;
}

/* THIẾT KẾ NÚT ĐẶT LỊCH HẸN BẢN LUXURY CHỮ MẢNH, KHUNG ĐẬM */
.store-action-btn {
    margin-top: 20px;
}
.btn-branch-book {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid #111;
    transition: all 0.3s ease;
}
.btn-branch-book:hover {
    background: transparent;
    color: #111 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ==========================================================================
   3. NHUỘM ĐEN CHỮ VÀ ICON TRONG HEADER ĐỂ KHÔNG BỊ "TÀNG HÌNH"
   ========================================================================== */
.site-header a, 
.site-header span,
.site-header .menu-item a {
    color: #111111 !important; /* Ép chữ sang đen tuyền */
}

/* Đổi màu luôn cả các icon (nếu có dùng SVG như kính lúp, menu hamburger, user...) */
.site-header svg {
    color: #111111 !important;
    stroke: #111111 !important; 
}

/* Đổi màu chữ khi hover (di chuột vào) cho sinh động */
.site-header a:hover,
.site-header .menu-item a:hover {
    color: #666666 !important; /* Xám đi một chút khi hover */
}
/* ==========================================================================
   4. ÉP LOGO VÀ NÚT MENU HAMBURGER SANG MÀU ĐEN (CHUẨN CLASS CỦA THEME)
   ========================================================================== */
/* Ép Logo ảnh sang màu đen */
.site-header .main-logo img {
    filter: brightness(0) !important; 
    transition: all 0.3s ease;
}

/* Đổi màu 3 gạch của nút Menu Mobile sang đen */
.site-header .mobile-toggle .line {
    background-color: #111111 !important;
}

/* Đổi màu khi hover logo (tùy chọn) */
.site-header .main-logo img:hover {
    filter: brightness(0) opacity(0.6) !important;
}

/* ==========================================================================
   5. LẬT MÀU KHỐI CHI NHÁNH SANG NỀN ĐEN - CHỮ TRẮNG (DARK MODE LUXURY)
   ========================================================================== */
.store-item {
    background-color: #050505; /* Đen tuyền siêu sâu */
    margin-bottom: 40px;
    border-bottom: none; 
}

/* Ép ảnh dính sát vào phần nền đen bên dưới, không để hở viền trắng */
.store-thumb-box img {
    margin-bottom: 0 !important;
    display: block;
}

/* Tạo khoảng thở bên trong khối đen */
.store-info {
    padding: 30px 25px; 
}

/* Tiêu đề Chi nhánh - Chữ trắng, nét mỏng */
.store-info h3 {
    color: #ffffff;
    font-weight: 300; 
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* Các dòng thông tin - Chữ xám sáng, có vạch ngăn cách mỏng bên dưới */
.info-line {
    color: #fff;
    font-size: 16px;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.info-line:last-of-type {
    border-bottom: none; /* Dòng cuối thì bỏ vạch ngang */
}

/* Biến Icon định vị thành màu trắng */
.info-line svg {
    color: #ffffff;
    stroke: #ffffff;
}

/* Khối Giờ hoạt động - Bỏ cái nền xám cũ đi */
.hours-line {
    background: transparent !important;
    border-left: none !important;
    padding: 0 !important;
}
.hours-line strong {
    color: #ffffff;
    font-weight: 500;
}
.hours-line span {
    color: #aaaaaa !important; /* Chữ giờ giấc xám nhạt đi một chút */
}

/* Đảo màu nút "Đặt lịch hẹn": Nền trắng - Chữ đen */
.btn-branch-book {
    background: #ffffff;
    color: #000000 !important;
    border: 1px solid #ffffff;
    margin-top: 10px;
}
.btn-branch-book:hover {
    background: #000000;
    color: #ffffff !important;
    border-color: #ffffff;
}

/* ==========================================================================
   6. DROPDOWN GIỜ HOẠT ĐỘNG (ACCORDION LUXURY)
   ========================================================================== */
/* Bỏ class cũ */
.hours-accordion {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Định hình khung dropdown */
.hours-accordion details {
    border-top: 1px solid #222222;
    border-bottom: 1px solid #222222;
    padding: 12px 0;
    margin-bottom: 15px;
}

/* Thanh tiêu đề có thể click */
.hours-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    list-style: none; /* Ẩn mũi tên mặc định của trình duyệt */
    outline: none;
}
.hours-accordion summary::-webkit-details-marker {
    display: none; /* Ẩn mũi tên trên Safari/Chrome cũ */
}

/* Căn chỉnh Icon Lịch và Chữ */
.hours-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dấu + / - bên phải */
.toggle-icon::after {
    content: '+';
    font-size: 16px;
    font-weight: 300;
    color: #888888;
}
.hours-accordion details[open] .toggle-icon::after {
    content: '-';
    color: #ffffff;
}

/* Nội dung xổ xuống (Lịch từng ngày) */
.hours-dropdown {
    padding-top: 15px;
    color: #cccccc;
    font-size: 13px;
    line-height: 2.2; /* Giãn dòng rộng ra cho giống lịch trình */
}