.wl-search-form {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
    box-shadow: none;
}

.wl-search-form .col {
    padding-bottom: 0;
}

.wl-search-form .row {
    display: flex;
    align-items: center;
    position: relative;
}

/* Column separators */
.wl-search-form .col:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    color: #ddd;
    font-size: 20px;
    font-weight: 300;
    z-index: 10;
}

/* Input with icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 45px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    width: 28px;
    height: 29px;
}

.search-icon svg path {
    stroke: #666;
    stroke-width: 1.5;
}

.input-with-icon .form-control {
    border: none;
    background: transparent;
    text-align: left;
    padding-left: 50px; /* Tăng từ 35px lên 50px */
    padding-right: 15px;
    box-shadow: none;
}

.wl-search-form .form-control {
    height: 45px;
    border: none;
    border-radius: 0;
    padding: 10px 15px 10px 50px;
    font-size: 16px;
    background: transparent;
    margin: 0;
    line-height: 1.4;
}

.wl-search-form .form-control:focus {
    border: none;
    box-shadow: none;
    background: transparent;
    outline: none;
}

.wl-search-form .form-control::placeholder {
    color: #999;
    text-align: left;
}

.dropdown-menu {
    min-width: 200px;
}

/* Custom Dropdown Base Styles */
.custom-dropdown-wrapper,
.price-dropdown-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.dropdown-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: left;
    width: 100%;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-display {
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: left;
}

.selected-count,
.price-range-text {
    color: #666;
    text-align: left;
    flex: 1;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #000;
    font-size: 12px;
    margin-left: 5px;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.custom-dropdown.open .dropdown-menu {
    display: block;
}

/* Quận Dropdown Styles */
#quan-menu {
    max-height: 250px;
    overflow-y: auto;
}

.selected-items {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: none;
}

.selected-items.has-items {
    display: block;
}

.selected-item {
    display: inline-block;
    background: #129C94;
    color: white;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 15px;
    font-size: 12px;
}

.selected-item .remove-item {
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
}

.dropdown-options {
    padding: 5px 0;
}

.dropdown-option {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: rgba(18, 156, 148, 0.1);
}

/* Hide checkbox in quận dropdown */
.dropdown-option input[type="checkbox"] {
    display: none;
}

.dropdown-option label {
    cursor: pointer;
    flex: 1;
    margin: 0;
    width: 100%;
    text-align: left;
}

/* Price Dropdown Styles */
.price-dropdown-menu {
    padding: 20px;
    min-width: 300px;
    right: 0;
    left: auto;
}

.price-inputs-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-align: left;
}

.price-input {
    width: 100%;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    text-align: left;
}

.price-input:focus {
    border-color: #129C94;
    outline: none;
}

.price-slider-wrapper {
    margin-bottom: 20px;
}

.price-slider {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
}

/* Slider colors */
.ui-slider .ui-slider-range {
    background: #129C94 !important;
}

.ui-slider .ui-slider-handle {
    background: #129C94 !important;
    border: 2px solid #129C94 !important;
}

.price-buttons {
    display: flex;
    gap: 10px;
}

.btn-price-reset,
.btn-price-apply {
    flex: 1;
    height: 35px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-price-reset {
    background: #f5f5f5;
    color: #666;
}

.btn-price-reset:hover {
    background: #e9ecef;
}

.btn-price-apply {
    background: #129C94;
    color: white;
}

.btn-price-apply:hover {
    background: #0C7B73;
}

.btn-search {
    background: linear-gradient(135deg, #129C94 0%, #0C7B73 100%);
    color: white;
    border: none;
    height: 45px;
    width: 100%;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.btn-search:hover {
    background: linear-gradient(135deg, #0C7B73 0%, #129C94 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(18, 156, 148, 0.3);
}

.search-input-wrapper,
.custom-dropdown-wrapper,
.price-dropdown-wrapper,
.search-button-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.search-input-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 45px;
}

.search-button-wrapper {
    height: 100%;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch; /* Thay đổi từ center thành stretch */
    position: relative;
}

@media (max-width: 768px) {
    .wl-search-form .col {
        margin-bottom: 15px;
    }

    .wl-search-form .col:not(:last-child)::after {
        display: none;
    }

    .price-dropdown-menu {
        left: 0;
        right: 0;
        min-width: auto;
    }

    .dropdown-display {
        background: white;
    }

    .wl-search-form .form-control {
        border: 1px solid #ddd;
        border-radius: 5px;
        background: white;
    }
}

/* Smooth transitions for all interactive elements */
.dropdown-display,
.form-control,
.btn-search {
    transition: all 0.3s ease;
}

.search-input-wrapper {
    position: relative;
}

.autocomplete-container {
    position: absolute;
    top: calc(100% + 10px); /* Cách parent box 10px */
    left: -10px; /* Offset để align với parent box */
    right: -10px; /* Offset để align với parent box */
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px; /* Match với border-radius của parent form */
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin: 0;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.autocomplete-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-product:hover {
    background-color: #e8f4f8;
}

.autocomplete-street:hover {
    background-color: #f0f8e8;
}

.autocomplete-item i {
    margin-right: 10px;
    color: #666;
    width: 16px;
    flex-shrink: 0;
}

.autocomplete-product i {
    color: #007cba;
}

.autocomplete-street i {
    color: #28a745;
}

.autocomplete-text {
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

.autocomplete-text strong {
    background-color: #fff3cd;
    color: #856404;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 700;
}

.autocomplete-description {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
    flex-shrink: 0;
    line-height: 1.3;
}

.autocomplete-description strong {
    background-color: #d4edda;
    color: #155724;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

.autocomplete-loader,
.autocomplete-no-results {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
    border-radius: 8px;
}

.autocomplete-loader {
    background: #f8f9fa;
}

.autocomplete-product {
    position: relative;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .autocomplete-container {
        left: -10px;
        right: -10px;
        top: calc(100% + 5px);
        border-radius: 5px;
    }

    .autocomplete-item:first-child {
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }

    .autocomplete-item:last-child {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }
}

.woocommerce-pagination {
    margin: 30px 0;
    text-align: center;
}

.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.woocommerce-pagination .page-numbers li {
    margin: 0;
}

.woocommerce-pagination .page-numbers button,
.woocommerce-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.woocommerce-pagination .page-numbers button:hover {
    background: #f8f9fa;
    border-color: #129C94;
    color: #129C94;
}

.woocommerce-pagination .page-numbers .current {
    background: #129C94;
    color: white;
    border-color: #129C94;
}

.display_type_none .term-description::before {
    border: 0 !important;
}

/* Thêm responsive styles cho pagination */
@media (max-width: 768px) {
    .woocommerce-pagination .page-numbers button,
    .woocommerce-pagination .page-numbers span {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 35px;
        text-align: center;
    }

    .woocommerce-pagination .page-numbers .prev,
    .woocommerce-pagination .page-numbers .next {
        padding: 6px 8px;
    }

    .woocommerce-pagination ul.page-numbers {
        gap: 3px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Touch feedback cho dropdown */
    .dropdown-option:active {
        background-color: rgba(18, 156, 148, 0.2) !important;
        transform: scale(0.98);
    }

    /* Touch feedback cho buttons */
    .btn-search:active {
        transform: translateY(-1px) scale(0.98);
    }

    .btn-price-apply:active,
    .btn-price-reset:active {
        transform: scale(0.95);
    }

    /* Touch feedback cho pagination */
    .woocommerce-pagination .page-numbers button:active,
    .woocommerce-pagination .page-numbers a:active {
        transform: scale(0.95);
        background: #129C94 !important;
        color: white !important;
        border-color: #129C94 !important;
    }

    /* Increase touch targets */
    .dropdown-display {
        min-height: 44px;
        padding: 8px 12px;
    }

    .form-control {
        min-height: 44px;
    }

    .btn-search {
        min-height: 44px;
    }
}

/* noUiSlider custom styles */
.noUi-target {
    background: #ddd;
    border-radius: 3px;
    border: none;
    box-shadow: none;
    height: 6px;
}

.noUi-handle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid #129C94 !important;
    background: #fff !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    right: -10px !important;
    top: -7px !important;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none !important;
}

.noUi-connect {
    background: #129C94 !important;
}

.noUi-horizontal .noUi-handle {
    width: 20px !important;
    height: 20px !important;
}

/* Active state */
.noUi-handle:active,
.noUi-handle.noUi-active {
    border-color: #0C7B73 !important;
    background: #f0f9ff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 0 4px rgba(18, 156, 148, 0.2) !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .noUi-handle {
        width: 24px !important;
        height: 24px !important;
        right: -12px !important;
        top: -8px !important;
    }

    .noUi-target {
        height: 8px !important;
    }

    /* Increase touch area */
    .noUi-handle::before {
        content: "";
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        background: transparent;
        border-radius: 50%;
    }
}

#header{
    border-bottom: 1px solid #dee2e6;
}

#selected-hang-items {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 9999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  line-height: 1;
}

.remove-tag {
  cursor: pointer;
  font-weight: 700;
}

#selected-quan-items {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}


/* Wrapper dropdown price */
.price-dropdown-wrapper {
  position: relative;
}

/* Slider 2 đầu */
.range-slider {
  position: relative;
  width: 100%;
  height: 30px;
  margin-bottom: 10px;
}

/* Track màu xanh */
.range-slider .slider-track {
  position: absolute;
  height: 6px;
  background: #129C94;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  border-radius: 3px;
  z-index: 1;
}

/* Input range */
.range-slider input[type=range] {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}

/* Thumb */
.range-slider input[type=range]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #129C94;
  cursor: pointer;
  margin-top: 0;
}
.range-slider input[type=range]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #129C94;
  cursor: pointer;
}

/* Input số */
.price-inputs-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.price-input-group input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Nút áp dụng / đặt lại */
.price-buttons {
  display: flex;
  gap: 10px;
}
.price-buttons button {
  padding: 2px 12px;
  border: none;
  border-radius: 4px;
  background: #129C94;
  color: #fff;
  cursor: pointer;
}
.price-buttons button.btn-price-reset {
  background: #ccc;
  color: #000;
}

/* ============================================================
 * PREMIUM OVERHAUL FOR CATEGORY & DISTRICT ARCHIVE PAGES
 * Scope: .category-page-row (Cho thuê văn phòng Hà Nội)
 * Brand Colors: Primary #129C94, Dark teal #063443, Muted gray #5B6C76
 * ============================================================ */

/* 1. Global Reset & Typography */
.category-page-row,
.category-page-row :where(h1, h2, h3, h4, h5, h6, p, a, span, label, input, select, button) {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.category-page-row {
    padding-top: 25px !important;
    padding-bottom: 60px !important;
}

#breadcrumbs {
    margin-top: 10px !important;
    margin-bottom: 25px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #5B6C76 !important;
}
#breadcrumbs a {
    color: #5B6C76 !important;
    transition: color 0.2s ease !important;
}
#breadcrumbs a:hover {
    color: #129C94 !important;
}

/* 2. Premium Search Filter Bar Overhaul */
.category-page-row .wl-search-form {
    background: #ffffff !important;
    padding: 20px 24px !important;
    border-radius: 16px !important;
    border: 1px solid #E1E8EC !important;
    box-shadow: 0 10px 30px rgba(6, 52, 67, 0.05) !important;
    margin-bottom: 35px !important;
}

/* Make grid layout breathe */
.category-page-row .wl-search-form .row {
    align-items: flex-end !important;
}

/* Soft column divider styling */
.category-page-row .wl-search-form .col:not(:last-child)::after {
    color: #E1E8EC !important;
    font-size: 22px !important;
    font-weight: 200 !important;
}

/* Icons & Placeholder overrides */
.category-page-row .search-icon svg path {
    stroke: #129C94 !important;
}
.category-page-row .input-with-icon .form-control {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #063443 !important;
}
.category-page-row .input-with-icon .form-control::placeholder {
    color: #8C9BA5 !important;
}

/* Dropdown styling */
.category-page-row .dropdown-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #8C9BA5 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 6px !important;
}

.category-page-row .dropdown-display {
    border-bottom: 1px solid transparent !important;
    padding-bottom: 6px !important;
}
.category-page-row .dropdown-display:hover {
    border-bottom-color: #129C94 !important;
}
.category-page-row .selected-count,
.category-page-row .price-range-text,
.category-page-row .selected-hang {
    color: #063443 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}
.category-page-row .dropdown-arrow {
    color: #129C94 !important;
    font-size: 11px !important;
}

/* Dropdown Menu styling */
.category-page-row .dropdown-menu {
    border-radius: 12px !important;
    border: 1px solid #E1E8EC !important;
    box-shadow: 0 12px 36px rgba(6, 52, 67, 0.12) !important;
    margin-top: 12px !important;
    padding: 12px !important;
    background: #ffffff !important;
}
.category-page-row .dropdown-search input {
    border: 1px solid #E1E8EC !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13.5px !important;
}
.category-page-row .dropdown-option {
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #172B35 !important;
}
.category-page-row .dropdown-option:hover {
    background-color: rgba(18, 156, 148, 0.06) !important;
    color: #129C94 !important;
}

/* Custom Price Slider styling */
.category-page-row .price-dropdown-menu {
    padding: 24px !important;
    border-radius: 16px !important;
    min-width: 320px !important;
}
.category-page-row .price-input-group label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #8C9BA5 !important;
    text-transform: uppercase !important;
}
.category-page-row .price-input {
    border: 1px solid #E1E8EC !important;
    border-radius: 8px !important;
    color: #063443 !important;
    font-weight: 600 !important;
    padding: 6px 10px !important;
}
.category-page-row .btn-price-reset,
.category-page-row .btn-price-apply {
    height: 38px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}
.category-page-row .btn-price-reset {
    background: #F3F4F6 !important;
    color: #5B6C76 !important;
}
.category-page-row .btn-price-apply {
    background: #129C94 !important;
    color: #ffffff !important;
}
.category-page-row .btn-price-apply:hover {
    background: #0C7B73 !important;
}

/* Form Submit Button */
.category-page-row .btn-search {
    background: #129C94 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    height: 46px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(18, 156, 148, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.category-page-row .btn-search:hover {
    background: #0C7B73 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(18, 156, 148, 0.35) !important;
}

/* 3. District Navigation Tag List Overhaul */
.category-page-row .SectionBuildingTagList {
    margin-bottom: 25px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}
.category-page-row .SectionBuildingTag {
    background: rgba(18, 156, 148, 0.05) !important;
    color: #129C94 !important;
    border: 1px solid rgba(18, 156, 148, 0.12) !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.category-page-row .SectionBuildingTag:hover {
    background: #129C94 !important;
    color: #ffffff !important;
    border-color: #129C94 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(18, 156, 148, 0.2) !important;
}

/* 4. Page Headers & Inner Structure */
.category-page-row .SectionBuildingHeader {
    border-bottom: none !important;
    margin-bottom: 30px !important;
    padding-bottom: 0 !important;
}
.category-page-row .SectionBuildingTitle {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #063443 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 12px !important;
}
.category-page-row .SectionBuildingHeader p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #5B6C76 !important;
}
.category-page-row .BuildingQuanHeader {
    border-bottom: 1px solid #E1E8EC !important;
    padding-bottom: 12px !important;
    margin-top: 40px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}
.category-page-row .BuildingQuanTitle {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #063443 !important;
    letter-spacing: -0.019em !important;
    margin: 0 !important;
}
.category-page-row .BuildingQuanLink {
    color: #129C94 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
.category-page-row .BuildingQuanLink:hover {
    color: #0C7B73 !important;
}

/* 5. Modern Building Cards */
.category-page-row .building-item {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #E1E8EC !important;
    box-shadow: 0 4px 20px rgba(6, 52, 67, 0.025) !important;
    margin-bottom: 30px !important;
    overflow: hidden !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.category-page-row .building-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 30px rgba(6, 52, 67, 0.07) !important;
    border-color: rgba(18, 156, 148, 0.18) !important;
}

/* Image zoom transition */
.category-page-row .building-item .thumb {
    height: 190px !important;
    overflow: hidden !important;
    border-radius: 14px 14px 0 0 !important;
    position: relative !important;
}
.category-page-row .building-item .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.category-page-row .building-item:hover .thumb img {
    transform: scale(1.05) !important;
}

/* Card Body Content */
.category-page-row .building-item .content {
    padding: 20px !important;
}
.category-page-row .BuildingItemName {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #063443 !important;
    text-transform: none !important;
    height: 42px !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    transition: color 0.2s ease !important;
}
.category-page-row .BuildingItemName:hover {
    color: #129C94 !important;
}
.category-page-row .BuildingItemLocation {
    font-size: 13px !important;
    color: #5B6C76 !important;
    height: auto !important;
    margin-bottom: 16px !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Card Footer Meta Row */
.category-page-row .building-item .meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid #F0F4F6 !important;
    padding-top: 14px !important;
    margin-top: 14px !important;
}
.category-page-row .building-item .meta .price {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #129C94 !important;
    width: auto !important;
}

/* Interest Button ("Quan tâm") Redesign */
.category-page-row .BuildingItemContent .BuildingItemCare {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background-color: rgba(18, 156, 148, 0.05) !important;
    color: #129C94 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    line-height: 1.2 !important;
    height: auto !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    border: 1px solid transparent !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.category-page-row .BuildingItemContent .BuildingItemCare:hover {
    background-color: #129C94 !important;
    color: #ffffff !important;
}
.category-page-row .BuildingItemContent .BuildingItemCare.active {
    background-color: #129C94 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(18, 156, 148, 0.2) !important;
}
.category-page-row .BuildingItemContent .BuildingItemCare i {
    margin-right: 0 !important;
    font-size: 12px !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .category-page-row .SectionBuildingTitle {
        font-size: 21px !important;
    }
    .category-page-row .BuildingQuanTitle {
        font-size: 16px !important;
    }
    .category-page-row .BuildingQuanLink {
        font-size: 12px !important;
    }
}

/* ============================================================
   NEW SECTIONS STYLING (Rankings, Suggestions, FAQ, Market)
   ============================================================ */

/* Common Section Layout */
.wl-listing-section {
    padding: 60px 0 !important;
    border-top: 1px solid #E1E8EC !important;
}

.wl-section-header {
    margin-bottom: 40px !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wl-section-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #063443 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.02em !important;
}

.wl-section-subtitle {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #5B6C76 !important;
}

/* 1. Ranking Section */
.wl-ranking-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
}

.wl-ranking-card {
    background: #ffffff !important;
    border: 1px solid #E1E8EC !important;
    border-radius: 16px !important;
    padding: 30px 24px !important;
    text-align: center !important;
    height: 100% !important;
    box-shadow: 0 4px 20px rgba(6, 52, 67, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.wl-ranking-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(6, 52, 67, 0.08) !important;
    border-color: rgba(18, 156, 148, 0.25) !important;
}

.wl-ranking-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

.wl-ranking-icon {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 20px !important;
    color: #129C94 !important;
    transition: transform 0.3s ease !important;
}

.wl-ranking-card:hover .wl-ranking-icon {
    transform: scale(1.1) !important;
}

.wl-ranking-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #063443 !important;
    margin-bottom: 12px !important;
}

.wl-ranking-card-desc {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #5B6C76 !important;
    margin-bottom: 0 !important;
}

/* 2. Suggestions/News Section */
.wl-suggestions-row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.wl-suggestion-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #E1E8EC !important;
    overflow: hidden !important;
    height: 100% !important;
    box-shadow: 0 4px 20px rgba(6, 52, 67, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.wl-suggestion-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(6, 52, 67, 0.08) !important;
    border-color: rgba(18, 156, 148, 0.25) !important;
}

.wl-suggestion-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    height: 100% !important;
}

.wl-suggestion-img {
    height: 200px !important;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.5s ease !important;
}

.wl-suggestion-card:hover .wl-suggestion-img {
    transform: scale(1.04) !important;
}

.wl-suggestion-content {
    padding: 24px !important;
}

.wl-suggestion-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #063443 !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

.wl-suggestion-desc {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #5B6C76 !important;
    margin-bottom: 0 !important;
}

.wl-suggestions-more {
    margin-top: 35px !important;
}

.wl-btn-more {
    display: inline-block !important;
    padding: 10px 24px !important;
    border: 1px solid #129C94 !important;
    border-radius: 30px !important;
    color: #129C94 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0.03em !important;
    transition: all 0.2s ease !important;
}

.wl-btn-more:hover {
    background: #129C94 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(18, 156, 148, 0.2) !important;
}

.wl-btn-primary {
    display: inline-block !important;
    padding: 12px 28px !important;
    background: #129C94 !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    text-transform: none !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 4px 14px rgba(18, 156, 148, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    text-decoration: none !important;
}

.wl-btn-primary:hover {
    background: #0C7B73 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(18, 156, 148, 0.3) !important;
}

/* 3. FAQ Section */
.wl-faq-list {
    max-width: 880px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.wl-faq-item {
    background: #F6FAFB !important;
    border-radius: 14px !important;
    border: 1px solid #E1E8EC !important;
    overflow: hidden !important;
    transition: border-color 0.32s cubic-bezier(.2,.7,.2,1), box-shadow 0.32s cubic-bezier(.2,.7,.2,1) !important;
    margin-bottom: 12px !important;
}

.wl-faq-item[open] {
    background: #ffffff !important;
    border-color: rgba(18, 156, 148,.35) !important;
    box-shadow: 0 2px 8px rgba(6,52,67,.06) !important;
}

.wl-faq-item summary {
    cursor: pointer !important;
    padding: 20px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    list-style: none !important;
    outline: none !important;
}

.wl-faq-item summary::-webkit-details-marker {
    display: none !important;
}

.wl-faq-q {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #063443 !important;
}

.wl-faq-toggle {
    flex-shrink: 0 !important;
    width: 36px !important;
    height: 36px !important;
    background: #E6F6F8 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #129C94 !important;
    transition: transform 0.32s cubic-bezier(.2,.7,.2,1), background 0.32s cubic-bezier(.2,.7,.2,1) !important;
}

.wl-faq-item[open] .wl-faq-toggle {
    transform: rotate(180deg) !important;
    background: #129C94 !important;
    color: #ffffff !important;
}

.wl-faq-a {
    padding: 0 24px 22px !important;
    color: #172B35 !important;
}

.wl-faq-a p {
    color: #5B6C76 !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    margin: 0 0 .6em !important;
}

.wl-faq-a p:last-child {
    margin-bottom: 0 !important;
}

.wl-faq-a ul {
    list-style: disc !important;
    padding-left: 20px !important;
    margin: 0 0 .4em !important;
    color: #5B6C76 !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
}

.wl-faq-a ul li {
    margin-bottom: .25em !important;
}

.wl-faq-a strong {
    color: #063443 !important;
}

/* 4. Market Section */
.wl-market-row {
    align-items: center !important;
}

.wl-market-text .wl-section-title {
    margin-bottom: 20px !important;
}

.wl-market-text p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #5B6C76 !important;
    margin-bottom: 16px !important;
}

.wl-market-table-wrapper {
    background: #ffffff !important;
    border: 1px solid #E1E8EC !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(6, 52, 67, 0.015) !important;
    margin: 24px 0 !important;
}

.wl-market-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

.wl-market-table th,
.wl-market-table td {
    padding: 12px 18px !important;
    text-align: left !important;
    font-size: 14px !important;
}

.wl-market-table th {
    background-color: #063443 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.05em !important;
}

.wl-market-table td {
    color: #172B35 !important;
    border-bottom: 1px solid #F0F4F6 !important;
}

.wl-market-table tr:last-child td {
    border-bottom: none !important;
}

.wl-market-table tr:nth-child(even) td {
    background-color: rgba(6, 52, 67, 0.01) !important;
}

.wl-market-table td a {
    color: #063443 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.wl-market-table td a:hover {
    color: #129C94 !important;
}

.wl-market-table td strong {
    color: #129C94 !important;
    font-weight: 700 !important;
}

.wl-market-more {
    margin-top: 10px !important;
    text-align: center !important;
}

.wl-market-image-wrapper {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(6, 52, 67, 0.08) !important;
}

.wl-market-image {
    width: 100% !important;
    height: 500px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.wl-market-image-wrapper:hover .wl-market-image {
    transform: scale(1.05) !important;
}

.wl-image-badge {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    background: rgba(6, 52, 67, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.wl-image-badge span {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    display: block !important;
    text-align: center !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .wl-listing-section {
        padding: 40px 0 !important;
    }
    
    .wl-ranking-card,
    .wl-suggestion-card {
        margin-bottom: 20px !important;
    }
    
    .wl-ranking-row,
    .wl-suggestions-row {
        margin-bottom: -20px !important;
    }
    
    .wl-market-image-wrapper {
        margin-top: 30px !important;
    }
    
    .wl-market-image {
        height: 280px !important;
    }
    
    .wl-market-table th,
    .wl-market-table td {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    .wl-faq-item summary {
        padding: 16px 18px !important;
    }
    
    .wl-faq-q {
        font-size: 14.5px !important;
    }
}

/* ============================================================
 * Phân trang bài viết — trang category blog (devtung-mvc)
 * Khớp palette teal #129C94 với pagination WooCommerce sẵn có.
 * ============================================================ */
.dt-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 40px 0 8px;
}
.dt-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #063443;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    transition: all .15s ease;
}
.dt-pagination__item:hover {
    border-color: #129C94;
    color: #129C94;
}
.dt-pagination__item.is-current {
    background: #129C94;
    border-color: #129C94;
    color: #fff;
    cursor: default;
}
.dt-pagination__nav {
    font-size: 20px;
    font-weight: 700;
}
.dt-pagination__dots {
    display: inline-flex;
    align-items: flex-end;
    padding: 0 4px;
    color: #999;
    font-weight: 600;
}
@media (max-width: 768px) {
    .dt-pagination { gap: 4px; }
    .dt-pagination__item {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 14px;
    }
    .dt-pagination__item:active {
        transform: scale(0.95);
    }
}
