/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* --- 0. BACKGROUND & BREADCRUMB --- */
#content.blog-wrapper { background-color: #f4f5f6; padding-bottom: 50px; }

/* Style Breadcrumb (Giống ảnh) */
.bds-breadcrumb-container {
    padding: 10px 0; /* Khoảng cách trên dưới */
    background: transparent;
}
.bds-breadcrumb {
    font-size: 13px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.bds-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: 0.2s;
}
.bds-breadcrumb a:hover {
    color: #d0021b; /* Hover đỏ */
}
.bds-breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
    font-size: 12px;
}
.bds-breadcrumb .current {
    color: #222; /* Màu đen cho bài hiện tại */
    font-weight: 500;
    /* Cắt bớt nếu tiêu đề quá dài */
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px;
    display: inline-block; vertical-align: bottom;
}

/* --- 1. SLIDER ẢNH --- */
.slider-container-main { position: relative; border-radius: 8px; overflow: hidden; background: #eee; }
.mySwiper2 { width: 100%; height: 480px; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.bds-image-counter { position: absolute; bottom: 15px; right: 15px; z-index: 50; background: rgba(0, 0, 0, 0.65); color: #fff; padding: 4px 12px; border-radius: 16px; font-size: 13px; font-weight: 600; display: flex; align-items: center; pointer-events: none; }
#current-slide-num { color: #ffc107; margin-right: 3px; }
.mySwiper { margin-top: 10px; height: 80px; padding-bottom: 2px; }
.mySwiper .swiper-slide { opacity: 0.6; border-radius: 4px; overflow: hidden; cursor: pointer; transition: 0.2s; border: 1px solid transparent; }
.mySwiper .swiper-slide-thumb-active { opacity: 1; border: 2px solid #d0021b; }

/* --- 2. STYLE BOX TRẮNG (CARD) --- */
.bds-section-box { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid #e8e8e8; }

/* --- 3. TIÊU ĐỀ & GIÁ --- */
.info-box .entry-title, .bds-info-primary .entry-title { font-size: 24px; font-weight: 700; color: #222; margin-top: 0; margin-bottom: 15px; line-height: 1.3; }
.bds-meta-group { margin-bottom: 0; }
.bds-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.price-value { font-size: 20px; color: #d0021b; font-weight: 800; }
.price-unit, .area-value { font-size: 15px; color: #222; font-weight: 600; display: flex; align-items: center; }
.price-unit::before, .area-value::before { content: "·"; margin: 0 8px; color: #999; font-weight: 800; }
.bds-address { font-size: 14px; color: #555; display: flex; align-items: flex-start; }
.bds-address i { margin-right: 8px; margin-top: 3px; color: #999; }

/* --- 4. BẢNG THÔNG SỐ (GRID 2 CỘT) --- */
.bds-specs-section h3, .bds-content-body h3 { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 20px; margin-top: 0; }
.specs-grid-layout { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 50px; row-gap: 0; }
.spec-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
.spec-item:last-child { border-bottom: none; }
.spec-icon { width: 24px; margin-right: 12px; color: #9b9b9b; font-size: 18px; display: flex; justify-content: center; }
.spec-content { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.spec-label { font-size: 14px; color: #777; }
.spec-value { font-size: 14px; color: #222; font-weight: 600; text-align: right; }

/* --- 5. SIDEBAR --- */
.seller-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.seller-header { display: flex; align-items: center; margin-bottom: 16px; }
.seller-header .avatar { width: 50px; height: 50px; border-radius: 50%; margin-right: 12px; border: 1px solid #eee; }
.seller-header .name { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 4px; }
.btn-contact { border-radius: 6px; font-weight: 700; height: 44px; margin-bottom: 10px !important; text-transform: none; display: flex; justify-content: center; align-items: center; }
.btn-zalo { background: #fff !important; color: #2e7d32 !important; border: 1px solid #2e7d32 !important; }
.bds-widget-box { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #e8e8e8; }
.widget-title { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.widget-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.tagcloud-custom a { background: #fff; border: 1px solid #ddd; border-radius: 20px; padding: 5px 12px; margin: 0 5px 8px 0; font-size: 13px; display: inline-block; color: #555; }

/* --- 6. XEM THÊM / THU GỌN --- */
.desc-wrapper { position: relative; overflow: hidden; transition: all 0.5s ease; }
.content-collapsed { max-height: 250px; }
.content-expanded { max-height: none; }
.desc-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)); pointer-events: none; }
.desc-toggle-btn { text-align: center; margin-top: 15px; color: #2e7d32; cursor: pointer; font-weight: 600; font-size: 14px; }

/* --- 7. TIN LIÊN QUAN (ICON & FONT CHỈNH SỬA) --- */
.related-posts-section h3 { font-size: 18px; font-weight: 700; color: #222; margin-top: 0; margin-bottom: 20px; }
.related-card { border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden; background: #fff; height: 100%; transition: 0.3s; }
.related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card-link { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card-img { height: 180px; position: relative; background: #f0f0f0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-overlay-time { position: absolute; bottom: 8px; left: 8px; color: #fff; font-size: 11px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.8); z-index: 10; }
.img-overlay-count { position: absolute; bottom: 8px; right: 8px; color: #fff; font-size: 11px; background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 4px; display: flex; align-items: center; }
.img-overlay-count i { margin-right: 4px; font-size: 10px; }
.like-icon { position: absolute; top: 8px; right: 8px; color: #fff; font-size: 18px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.card-info { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* [ĐÃ SỬA: Font nhỏ & Icon xám] */
.card-specs-row { font-size: 12px; color: #555; margin-bottom: 6px; display: flex; align-items: center; }
.card-specs-row i { margin-right: 3px; color: #999; }
.card-specs-row .sep { margin: 0 3px; color: #ccc; }

.card-price-row { color: #d0021b; font-weight: 700; font-size: 16px; margin-top: auto; }

/* --- 8. MŨI TÊN SLIDER (TRÒN TRẮNG) --- */
.swiper-button-next, .swiper-button-prev { width: 36px !important; height: 36px !important; background-color: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.15); margin-top: -18px !important; transition: 0.2s; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 14px !important; color: #333; font-weight: 700; }
.swiper-button-next { right: 15px !important; }
.swiper-button-prev { left: 15px !important; }
.swiper-button-next:hover, .swiper-button-prev:hover { background-color: #f9f9f9; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transform: scale(1.05); }
.swiper-button-disabled { opacity: 0 !important; cursor: default; }
.related-posts-section .swiper-button-next, .related-posts-section .swiper-button-prev { z-index: 100; }

/* Mobile */
@media (max-width: 767px) {
    .mySwiper2 { height: 280px; }
    .specs-grid-layout { grid-template-columns: 1fr; column-gap: 0; }
    .entry-title { font-size: 20px; }
    .bds-breadcrumb .current { max-width: 200px; }
}







/* --- 1. NỀN & HỘP TRẮNG (BOXED) --- */
#content.blog-wrapper {
    background-color: #f4f5f6; /* Nền xám */
    padding-top: 20px; padding-bottom: 50px;
}
.bds-white-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid #fff;
}
.header-box { overflow: visible !important; z-index: 20; position: relative; margin-bottom: 5px; }
.listing-box { min-height: 300px; z-index: 10; }

/* --- 2. HEADER ELEMENTS --- */
.bds-archive-breadcrumb { font-size: 13px; color: #999; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; }
.bds-archive-breadcrumb a { color: #999; text-decoration: none; }
.bds-archive-breadcrumb .sep { margin: 0 8px; font-size: 12px; color: #ccc; }
.bds-archive-breadcrumb .current { color: #222; font-weight: 500; }
.archive-title { font-size: 24px; font-weight: 800; color: #222; margin-top: 0; margin-bottom: 20px; }

/* --- 3. CUSTOM DROPDOWN (POPUP TRẮNG) --- */
.bds-filter-bar { display: flex !important; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-btn-static { background: #222; color: #fff; border-radius: 20px; padding: 0 16px; height: 36px; display: flex; align-items: center; font-size: 13px; font-weight: 700; margin-right: 5px; }
.filter-btn-static i { margin-right: 6px; }

.custom-dropdown { position: relative; display: inline-block; }

/* Nút bấm (Viên thuốc) */
.dropdown-trigger {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 24px;
    padding: 0 35px 0 34px; height: 36px;
    display: flex; align-items: center; cursor: pointer;
    font-size: 13px; font-weight: 600; color: #222; transition: 0.2s; white-space: nowrap;
    position: relative; user-select: none;
}
.dropdown-trigger:hover { background: #f9f9f9; border-color: #999; }
.dropdown-trigger i:first-child { position: absolute; left: 12px; font-size: 13px; color: #222; }
.dropdown-trigger .arrow { position: absolute; right: 12px; font-size: 10px; color: #999; }

/* Menu Popup */
.dropdown-menu {
    display: none; position: absolute; top: 45px; left: 0;
    background: #fff; min-width: 220px; border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); border: 1px solid #eee;
    z-index: 1000; padding: 8px 0; animation: fadeIn 0.2s;
}
.dropdown-menu::before { content: ""; position: absolute; top: -6px; left: 20px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); border-left: 1px solid #eee; border-top: 1px solid #eee; }
.dropdown-menu ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.dropdown-menu li { padding: 10px 16px; font-size: 14px; color: #333; cursor: pointer; border-bottom: 1px solid #f9f9f9; margin: 0; }
.dropdown-menu li:hover { background-color: #f5f5f5; color: #d0021b; }
.dropdown-menu li.selected { color: #d0021b; font-weight: 700; background: #fff5f5; }

/* Active & Open */
.custom-dropdown.is-active .dropdown-trigger { background: #222; border-color: #222; color: #fff; }
.custom-dropdown.is-active .dropdown-trigger i, .custom-dropdown.is-active .dropdown-trigger .arrow { color: #fff; }
.custom-dropdown.is-open .dropdown-menu { display: block; }
.custom-dropdown.is-open .dropdown-trigger .arrow { transform: rotate(180deg); }
.filter-reset { font-size: 13px; color: #333; font-weight: 500; text-decoration: underline; margin-left: 10px; cursor: pointer; }
.filter-reset:hover { color: #d0021b; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* --- 4. LISTING CARD --- */
.archive-item { margin-bottom: 20px; height: 100%; border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.archive-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-3px); }
.card-link { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card-img { height: 180px; position: relative; background: #f0f0f0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-overlay-time { position: absolute; bottom: 8px; left: 8px; color: #fff; font-size: 11px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.8); z-index: 10; }
.img-overlay-count { position: absolute; bottom: 8px; right: 8px; color: #fff; font-size: 11px; background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 4px; display: flex; align-items: center; }
.img-overlay-count i { margin-right: 4px; font-size: 10px; }
.like-icon { position: absolute; top: 8px; right: 8px; color: #fff; font-size: 18px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.card-info { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 14px; font-weight: 600; color: #222; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-specs-row { font-size: 12px; color: #555; margin-bottom: 6px; display: flex; align-items: center; }
.card-specs-row i { margin-right: 3px; color: #999; }
.card-specs-row .sep { margin: 0 3px; color: #ccc; }
.card-price-row { color: #d0021b; font-weight: 700; font-size: 16px; margin-top: auto; }
.archive-pagination { text-align: center; margin-top: 20px; border-top: 1px solid #eee; padding-top: 20px; }
.archive-pagination .page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; margin: 0 3px; color: #333; text-decoration: none; font-size: 14px; }
.archive-pagination .current { background: #d0021b; color: #fff; border-color: #d0021b; }

/* Mobile */
@media (max-width: 767px) {
    .bds-filter-bar { gap: 8px; }
    .custom-dropdown { flex-grow: 1; width: 48%; }
    .dropdown-trigger { width: 100%; padding: 0 30px; }
    .dropdown-menu { min-width: 200px; left: 0; }
    .bds-white-box { padding: 15px; }
}


























@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}