@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

body {
    font-family: "Plus Jakarta Sans", Arial;
    font-size: var(--fs-14);
    color: var(--Light_mode-Gray_Scale-5);
    background: #121414;
}

/* NEW HEADER */
.new-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 72px;
    background: transparent;
    border-bottom: 1px solid #333;
    color: #fff;
    position: relative;
    z-index: 100;
    margin-bottom: 62px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 48px;
}

.header-logo img {
    height: 36px;
    background: #fff;
    padding: 2px;
    border-radius: 2px;
    margin-right: 12px;
}

.header-logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--Light-Primary-Base, #C5A059);
}

.header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-menu li {
    margin-right: 32px;
    height: 72px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-menu li a {
    color: #e6e6e6;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.header-menu li.active a,
.header-menu li:hover a {
    color: var(--Light-Primary-Base, #C5A059);
}

.header-menu li.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--Light-Primary-Base, #C5A059);
    border-radius: 3px 3px 0 0;
}

.header-user {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.header-user_info {
    text-align: right;
    margin-right: 12px;
    display: none;
}

@media (min-width: 768px) {
    .header-user_info {
        display: block;
    }

}

.header-user_info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.header-user_info p {
    margin: 4px 0 0 0;
    font-size: 10px;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-user_thumb img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.header-user:hover .header-user_thumb img {
    border-color: var(--Light-Primary-Base, #C5A059);
}

.header-hamburger {
    display: none;
    cursor: pointer;
    margin-left: 16px;
}

/* Dropdown */
.header-user_dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #292929;
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    width: 180px;
    list-style: none;
    padding: 8px 0;
    margin-top: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 101;
}

.header-user:hover .header-user_dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-user_dropdown li a {
    display: block;
    padding: 10px 16px;
    color: #e6e6e6;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.header-user_dropdown li a:hover {
    background: #3d3d3d;
    color: var(--Light-Primary-Base, #C5A059);
}

/* Logout là <button> trong <form> (không phải <a> như template gốc) để submit POST thật -
   copy lại style của ".header-user_dropdown li a" cho khớp UI gốc. */
.header-user_dropdown li form {
    margin: 0;
}

.header-user_dropdown li .header-logout-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: #e6e6e6;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease;
}

.header-user_dropdown li .header-logout-btn:hover {
    background: #3d3d3d;
    color: var(--Light-Primary-Base, #C5A059);
}

/* Responsive */
@media (max-width: 991px) {
    .header-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1c1c1c;
        padding: 8px 16px;
        z-index: 100;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .header-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header-menu li {
        margin: 4px 0;
        height: 42px;
    }

    .header-menu li.active::after {
        display: none;
    }

    .header-menu li.active a {
        color: var(--Light-Primary-Base, #C5A059);
    }

    .header-hamburger {
        display: block;
    }

    .hamburger-svg .line {
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    .header-hamburger.active .hamburger-svg .top {
        transform: translateY(6px) rotate(45deg);
    }

    .header-hamburger.active .hamburger-svg .middle {
        opacity: 0;
    }

    .header-hamburger.active .hamburger-svg .bottom {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 575px) {
    .header-logo span {
        display: none;
    }

    .header-logo {
        margin-right: 0;
    }

    .header-user_dropdown {
        right: -40px;
    }

    .new-header {
        margin-bottom: 12px;
    }
}

/* =========================================
   DANH SÃƒÆ’Ã‚ CH PHÃƒÆ’Ã¢â‚¬â„¢NG - DASHBOARD
   ========================================= */
.page-danhsachphong {
    background: #121414;
    min-height: 100vh;
}

/* Header Section */
.dsp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.dsp-header_title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.dsp-header_title p {
    font-size: 14px;
    color: #a3a3a3;
    margin: 0;
}

.btn-primary-gold {
    background: #e3bc73;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-gold:hover {
    background: #cba864;
}

/* Room Grid */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.room-card {
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.room-card:hover {
    border-color: #555;
    transform: translateY(-4px);
}

.room-card--disabled {
    opacity: 0.6;
}

.room-card--disabled .room-card_image img {
    filter: grayscale(100%);
    opacity: 0.8;
}

.room-card_image {
    position: relative;
    width: 100%;
    height: 180px;
}

.room-card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 1;
}

.room-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.room-badge--ready {
    background: #e3bc73;
    color: #1a1a1a;
}

.room-badge--hot {
    background: #f44336;
    color: #fff;
}

.room-card_content {
    padding: 20px;
    flex: 1;
}

.room-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.room-id {
    font-size: 12px;
    color: #e3bc73;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.room-location {
    font-size: 13px;
    color: #a3a3a3;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-location i {
    color: #e3bc73;
}

.room-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #e6e6e6;
    margin-bottom: 20px;
}

.room-info-row b {
    color: #a3a3a3;
    font-weight: normal;
}

.room-price-box {
    display: flex;
    justify-content: space-between;
    background: #2a2a2a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-item label {
    font-size: 11px;
    color: #a3a3a3;
    text-transform: uppercase;
    font-weight: 600;
}

.price-item strong {
    font-size: 15px;
    color: #fff;
}

.price-item strong.text-gold {
    color: #e3bc73;
    font-size: 16px;
}

/* Utilities group */
.room-utilities {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px dashed #333;
    padding-bottom: 16px;
}

.util-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.util-item label {
    font-size: 10px;
    color: #a3a3a3;
    text-transform: uppercase;
}

.util-item span {
    font-size: 12px;
    color: #e6e6e6;
    font-weight: 600;
}

/* Meta Card (Bottom info) */
.room-meta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.meta-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.meta-links a {
    color: #e6e6e6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-links a i {
    font-size: 15px;
    color: #a3a3a3;
}

.zalo-icon {
    background: #005ce6;
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
}

.meta-date {
    margin: 0;
    font-size: 12px;
    color: #a3a3a3;
}

.meta-update {
    color: #3b82f6;
}

.meta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.icon-circle:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.icon-inactive {
    background: #ced4da !important;
}

.icon-orange {
    background: #f17e01;
}

.icon-blue {
    background: #005ce6;
}

.room-card_footer {
    display: flex;
    padding: 16px 20px;
    gap: 8px;
    border-top: 1px solid #333;
}

.room-card_footer button {
    padding: 12px 10px;
    font-size: 12px;
}

@media (max-width: 767px) {
    .dsp-header {
        flex-direction: column;
        gap: 16px;
    }

    .room-grid {
        grid-template-columns: 1fr;
    }
}

/* Global Modal Styles */
.legacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.legacy-modal.show {
    visibility: visible;
    opacity: 1;
}

.legacy-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.legacy-modal-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    background: #1c1c1c;
    /* Dark theme background */
    border-radius: 8px;
    border: 1px solid #4e4539;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    overflow-y: auto;
    max-height: 90vh;
    color: #fff;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.legacy-modal.show .legacy-modal-container {
    transform: scale(1);
}

.legacy-modal-header {
    padding: 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #272a2b;
}

.modal-title-wrapper {
    flex: 1;
}

.legacy-modal-close {
    padding: 0;
    background: none;
    border: none;
    font-size: 24px;
    color: #a3a3a3;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legacy-modal-close:hover {
    color: #fff;
}

.legacy-modal-body {
    padding: 24px;
}

/* Stepper Styles */
.legacy-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 140px;
    gap: 8px;
}

.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e3bc73;
    color: #121414;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
}

.stepper-label {
    font-size: 14px;
    font-weight: 600;
    color: #e3bc73;
    text-align: center;
}

.stepper-line {
    flex: 1;
    height: 1px;
    background: #444;
    max-width: 150px;
    margin: 0 16px;
    margin-bottom: 24px;
    /* align with circles vertically */
}

/* Modifier: completed (same as active for now) */
.stepper-item.completed .stepper-label {
    color: #fff;
}

/* Modifier: inactive */
.stepper-item.inactive .stepper-circle {
    background: #333;
    color: #fff;
}

.stepper-item.inactive .stepper-label {
    color: #fff;
}

/* Modal Room Info specific styles */
.modal-room-info {
    margin-bottom: 24px;
}

/* =========================================
   CHI TIáº¾T PHÃ’NG MODAL
   ========================================= */
.detail-layout {
    display: flex;
    gap: 32px;
}

.detail-left {
    width: 380px;
    flex-shrink: 0;
}

.detail-right {
    flex: 1;
}

/* Image Gallery */
.detail-image-gallery .main-image {
    position: relative;
    border-radius: var(--radius-12);
    overflow: hidden;
    margin-bottom: var(--sp-12);
    cursor: pointer;
}

.detail-image-gallery .main-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.image-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.thumbnail-list .thumb {
    width: calc(25% - 9px);
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.btn-download-all {
    width: 100%;
    margin-top: var(--sp-12);
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--Light-Tertiary-95);
    border: 1px solid var(--Light-Secondary-40);
    border-radius: var(--radius-8);
    font-size: var(--fs-14);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
}

.btn-download-all:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--Light-Tertiary-70);
}

.thumb-more {
    position: relative;
    width: calc(25% - 9px);
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.thumb-more .thumb-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.thumb-more span {
    position: relative;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    z-index: 2;
}

/* Meta Box */
.detail-meta-box {
    background: var(--Light-Secondary-20);
    border-radius: var(--radius-8);
    padding: var(--sp-16);
    margin-top: var(--sp-24);
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: var(--sp-8) 0;
    border-bottom: 1px solid var(--Light-Secondary-30);
    font-size: var(--fs-14);
    color: var(--Light-Tertiary-70);
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-row strong {
    color: var(--Light-Tertiary-95);
}

.meta-dates {
    font-size: var(--fs-12);
    color: var(--Light-Neutral-80);
}

/* Action Buttons */
.detail-action-btns {
    display: flex;
    gap: var(--sp-12);
    margin-top: var(--sp-16);
}

.btn-detail-outline {
    flex: 1;
    background: transparent;
    border: 1px solid var(--Light-Secondary-50);
    color: var(--Light-Tertiary-95);
    padding: 10px;
    border-radius: var(--radius-8);
    cursor: pointer;
    transition: 0.2s;
    font-size: var(--fs-14);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
}

.btn-detail-outline:hover {
    border-color: var(--Light-Primary-Base);
    color: var(--Light-Primary-Base);
}

/* Right Section Titles */
.detail-section-title {
    font-size: var(--fs-16);
    font-weight: 600;
    color: var(--Light-Tertiary-95);
    text-transform: uppercase;
    margin: 0 0 var(--sp-16) 0;
    padding-top: var(--sp-16);
}

.detail-right .detail-section-title:first-child {
    padding-top: 0;
}

/* Price Grid */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-16);
    margin-bottom: var(--sp-32);
}

.price-box {
    background: var(--Light-Secondary-10);
    border-radius: var(--radius-8);
    padding: var(--sp-16);
}

.price-box label {
    display: block;
    font-size: var(--fs-12);
    color: var(--Light-Neutral-80);
    text-transform: uppercase;
    margin-bottom: var(--sp-8);
}

.price-box strong {
    display: block;
    font-size: var(--fs-20);
    color: var(--Light-Tertiary-95);
    font-weight: 600;
}

.price-box strong span {
    font-size: var(--fs-14);
    font-weight: 400;
    color: var(--Light-Neutral-80);
}

.status-icons {
    display: flex;
    gap: var(--sp-12);
    font-size: var(--fs-20);
    color: var(--Light-Tertiary-95);
}

/* New Info Block Layout */
.info-block-wrapper {
    margin-bottom: var(--sp-32);
}

.info-block {
    margin-bottom: var(--sp-16);
    padding-bottom: var(--sp-16);
    border-bottom: 1px solid var(--Light-Secondary-30);
}

.info-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-block-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    margin-bottom: var(--sp-12);
}

.info-text-item {
    font-size: var(--fs-14);
    color: var(--Light-Tertiary-70);
}

.info-text-item strong {
    color: var(--Light-Tertiary-95);
    font-weight: 600;
}

.info-block-check-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-12);
}

.info-check-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-14);
    font-weight: 600;
    padding-right: var(--sp-12);
}

.info-check-item.unchecked {
    color: var(--Light-Secondary-50);
}

.info-check-item.unchecked i {
    color: var(--Light-Secondary-50);
    font-size: var(--fs-18);
}

.info-check-item.checked {
    color: var(--Light-Primary-Base);
}

.info-check-item.checked i {
    color: var(--Light-Primary-Base);
    font-size: var(--fs-18);
}

/* Deposit Box */
.deposit-box {
    background: var(--Light-Secondary-10);
    border: 1px solid var(--Light-Primary-30);
    border-radius: var(--radius-12);
    padding: var(--sp-24);
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--sp-24);
}

.deposit-item {
    text-align: center;
}

.deposit-item strong {
    display: block;
    font-size: var(--fs-24);
    color: var(--Light-Tertiary-95);
    margin-bottom: var(--sp-8);
}

.deposit-item label {
    font-size: var(--fs-12);
    color: var(--Light-Neutral-80);
    text-transform: uppercase;
}

/* Note Box */
.note-box {
    background: var(--Light-Primary-10);
    border: 1px solid var(--Light-Primary-30);
    border-radius: var(--radius-12);
    padding: var(--sp-16);
}

.note-box label {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    color: var(--Light-Primary-Base);
    font-size: var(--fs-14);
    font-weight: 600;
    margin-bottom: var(--sp-8);
}

.note-box p {
    margin: 0;
    font-size: var(--fs-14);
    color: var(--Light-Tertiary-70);
    line-height: 1.5;
}

/* Footer specific */
.detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-text-gold {
    background: none;
    border: none;
    color: var(--Light-Primary-Base);
    font-weight: 600;
    font-size: var(--fs-16);
    display: flex;
    align-items: center;
    gap: var(--sp-8);
    cursor: pointer;
}

.footer-actions {
    display: flex;
    gap: var(--sp-16);
    align-items: center;
}

.btn-detail-text {
    background: none;
    border: none;
    color: var(--Light-Tertiary-95);
    font-size: var(--fs-16);
    cursor: pointer;
    padding: var(--sp-8) var(--sp-16);
}

.modal-room-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.modal-room-location {
    font-size: 12px;
    color: #d0c4b3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-room-location i {
    color: #a3a3a3;
}

.modal-room-prices {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.modal-price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: #1f1f1f;
    border-radius: 6px;
    padding: 16px;
    gap: 4px;
}

.modal-price-item label {
    font-size: 11px;
    color: #a3a3a3;
    text-transform: uppercase;
    font-weight: 600;
}

.modal-price-item strong {
    font-size: 16px;
    color: #fff;
}

.modal-price-item strong.text-gold {
    color: #e3bc73;
}

/* Global Form Styles */
.form-group {
    position: relative;
}

.c-form-border {
    width: 100%;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1f1f1f;
    box-sizing: border-box;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
}

.c-form-border.is-invalid {
    border-color: #ff4d4f !important;
}

.c-form-border:focus-within {
    border-color: #e3bc73;
}

.c-form-border.has-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    font-size: 14px;
}

.legacy-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.text-danger {
    color: #ff4d4f;
}

.c-form-border .c_input,
.c_input {
    width: 100%;
    height: auto;
    padding: 16px 12px;
    border: none;
    font-size: 13px;
    color: #fff;
    background: transparent;
    box-sizing: border-box;
    outline: none;
}

.c-form-border .c_input:focus,
.c_input:focus {
    outline: none;
}

.form-hint {
    font-size: 11px;
    color: #a3a3a3;
    margin-top: 4px;
    display: block;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    width: 16px;
    height: 16px;
    accent-color: #e3bc73;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
}

.legacy-modal-footer {
    padding: 16px 24px;
    text-align: right;
    border-top: 1px solid #333;
}

/* =========================================
   RESPONSIVE DESIGN CHO MODAL CHI TIáº¾T
   ========================================= */
@media (max-width: 991px) {
    .detail-layout {
        flex-direction: column;
    }

    .detail-left {
        width: 100%;
        margin-bottom: var(--sp-24);
    }

    .legacy-modal-container {
        margin: 20px auto;
        width: calc(100% - 40px) !important;
        max-width: 100% !important;
        max-height: calc(100vh - 40px);
    }
}

@media (max-width: 767px) {
    .price-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-block-text-grid {
        grid-template-columns: 1fr;
    }

    .info-block-check-grid {
        grid-template-columns: 1fr 1fr;
    }

    .deposit-box {
        flex-direction: column;
        gap: var(--sp-16);
        padding: var(--sp-16);
    }

    .detail-footer {
        flex-direction: column;
        gap: var(--sp-16);
        align-items: flex-start;
    }

    .footer-actions {
        width: 100%;
        justify-content: space-between;
    }

    .legacy-modal-header {
        padding: 16px;
    }

    .legacy-modal-body {
        padding: 16px !important;
    }

    .detail-image-gallery .main-image img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .price-grid {
        grid-template-columns: 1fr;
    }

    .info-block-check-grid {
        grid-template-columns: 1fr;
    }

    .thumbnail-list .thumb {
        height: 50px;
    }

    .thumbnail-list .thumb-more {
        height: 50px;
    }

    .thumbnail-list .thumb-more span {
        font-size: 12px;
    }
}

/* =========================================
   ADVANCED FILTER BAR
   ========================================= */
.dsp-filter-wrapper {
    background-color: var(--Light-Secondary-10);
    border: 1px solid var(--Light-Neutral-30);
    border-radius: var(--radius-12);
    padding: var(--sp-16) var(--sp-24);
    margin-bottom: var(--sp-24);
}

.dsp-filter-basic {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-16);
    align-items: flex-end;
    margin-bottom: var(--sp-16);
}

.dsp-filter-basic:last-child,
.dsp-filter-basic-row2 {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--Light-Neutral-60);
    text-transform: uppercase;
}

/* Price Range */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    margin-top: 10px;
}

.input-money-wrapper {
    position: relative;
    width: 100%;
}

.input-money-wrapper .input-money {
    width: 100%;
    background: var(--Light-Secondary-20);
    border: 1px solid var(--Light-Neutral-30);
    color: var(--Light-Tertiary-Base);
    padding: 8px 30px 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    height: 38px;
}

.input-money-wrapper .input-money:focus {
    border-color: var(--Light-Primary-Base);
    outline: none;
}

.input-money-wrapper .currency-symbol {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--Light-Primary-Base);
    font-weight: 600;
}

.price-separator {
    color: var(--Light-Neutral-60);
}

/* noUiSlider Customization */
.price-slider-ui {
    height: 6px;
    border: none;
    background: var(--Light-Secondary-30);
    border-radius: 4px;
    margin: 8px 10px 16px 10px;
    box-shadow: none;
}

.price-slider-ui .noUi-connect {
    background: var(--Light-Primary-Base);
}

.price-slider-ui .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--Light-Primary-Base);
    border: 2px solid var(--Light-Primary-Base);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    top: -7px;
    right: -10px;
    cursor: grab;
}

.price-slider-ui .noUi-handle:active {
    cursor: grabbing;
}

.price-slider-ui .noUi-handle::before,
.price-slider-ui .noUi-handle::after {
    display: none;
}

/* Tooltip styling */
.price-slider-ui .noUi-tooltip {
    display: none;
    background: var(--Light-Neutral-60);
    color: #fff;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    bottom: 120%;
}

.price-slider-ui .noUi-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: var(--Light-Neutral-60) transparent transparent transparent;
}

.price-slider-ui .noUi-handle:hover .noUi-tooltip,
.price-slider-ui .noUi-active .noUi-tooltip {
    display: block;
}

/* Actions */
.filter-actions-right {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.btn-toggle-advanced {
    background-color: transparent;
    color: var(--Light-Tertiary-Base);
    border: 1px solid var(--Light-Neutral-30);
    padding: 0 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-toggle-advanced:hover,
.btn-toggle-advanced.active {
    background-color: var(--Light-Secondary-20);
    color: var(--Light-Primary-Base);
    border-color: var(--Light-Primary-Base);
}

.btn-search {
    height: 38px;
    padding: 0 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-status-toggles {
    display: flex;
    gap: 8px;
}

.btn-status-toggle {
    background-color: transparent;
    border: 1px solid var(--Light-Neutral-30);
    color: var(--Light-Neutral-60);
    height: 38px;
    padding: 0 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-status-toggle:hover {
    background-color: var(--Light-Secondary-20);
}

.btn-status-toggle.active {
    border-color: var(--Light-Primary-Base);
    color: var(--Light-Primary-Base);
}

.btn-status-toggle i.fa-fire {
    color: #f97316;
}

.btn-status-toggle i.fa-home {
    color: #10b981;
}

/* Advanced Section */
.dsp-filter-advanced {
    margin-top: var(--sp-24);
    padding-top: var(--sp-24);
    border-top: 1px solid var(--Light-Neutral-30);
}

.advanced-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--Light-Tertiary-Base);
    margin-bottom: var(--sp-16);
    text-align: center;
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-16);
}

/* =========================================
   TOM SELECT OVERRIDES (DARK THEME)
   ========================================= */
.ts-wrapper .ts-control {
    background-color: var(--Light-Secondary-20) !important;
    border: 1px solid var(--Light-Neutral-30) !important;
    border-radius: 6px !important;
    color: var(--Light-Tertiary-Base) !important;
    padding: 16px 12px !important;
    box-shadow: none !important;
    min-height: 38px;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--Light-Primary-Base) !important;
    box-shadow: 0 0 0 1px var(--Light-Primary-Base) !important;
}

.ts-wrapper .ts-control input {
    color: var(--Light-Tertiary-Base) !important;
}

.ts-dropdown {
    background-color: var(--Light-Secondary-20) !important;
    border: 1px solid var(--Light-Neutral-30) !important;
    border-radius: 6px !important;
    color: var(--Light-Tertiary-Base) !important;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.ts-dropdown .active {
    background-color: var(--Light-Secondary-10) !important;
    color: var(--Light-Primary-Base) !important;
}

.ts-dropdown .option {
    padding: 8px 12px;
}

.ts-dropdown .option:hover {
    background-color: var(--Light-Secondary-10);
}

.ts-control>* {
    vertical-align: middle;
}

.ts-wrapper.single .ts-control:after {
    border-color: var(--Light-Neutral-60) transparent transparent transparent !important;
}

/* =========================================
   MOBILE FILTER BUTTON & MODAL
   ========================================= */
.btn-mobile-filter {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--Light-Primary-Base);
    color: var(--Light-Secondary-10);
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    /* Pill shape */
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-mobile-filter:hover {
    background-color: var(--Light-Primary-60);
}

.mobile-filter-header {
    display: none;
    /* Hidden on desktop */
}

/* =========================================
   RESPONSIVE FILTER BAR
   ========================================= */
@media (max-width: 1200px) {
    .filter-group {
        min-width: 150px;
    }
}

@media (max-width: 991px) {
    .dsp-filter-basic {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-16);
    }

    .price-range-group,
    .filter-actions-right,
    .filter-status-toggles {
        grid-column: span 2;
    }

    .filter-actions-right {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .advanced-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {

    /* Floating Button */
    .btn-mobile-filter {
        display: flex;
    }

    /* Make filter wrapper a fullscreen modal */
    .dsp-filter-wrapper {
        display: none;
        /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--Light-Secondary-10);
        z-index: 1000;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        padding: 20px;
        padding-bottom: 80px;
        /* Space at bottom */
    }

    .dsp-filter-wrapper.show-mobile {
        display: block;
        animation: slideUpFilter 0.3s ease forwards;
    }

    @keyframes slideUpFilter {
        from {
            transform: translateY(100%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--Light-Neutral-30);
    }

    .mobile-filter-header h3 {
        margin: 0;
        font-size: 18px;
        color: var(--Light-Tertiary-Base);
    }

    .btn-close-filter {
        background: transparent;
        border: none;
        color: var(--Light-Tertiary-Base);
        font-size: 20px;
        cursor: pointer;
    }

    .price-range-group {
        width: 100%;
    }

    .filter-actions-right {
        flex-direction: column;
    }

    .btn-toggle-advanced,
    .btn-search {
        width: 100%;
        justify-content: center;
    }

    .advanced-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   TOAST NOTIFICATION
   ========================================= */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ht-toast {
    background: #1c1c1c;
    border: 1px solid var(--Light-Neutral-30);
    border-left: 4px solid var(--Light-Primary-Base);
    color: var(--Light-Tertiary-Base);
    padding: 12px 20px;
    border-radius: 8px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 320px;
}

.ht-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.ht-toast-icon {
    font-size: 20px;
}

.ht-toast-success {
    border-left-color: #10b981;
}

.ht-toast-success .ht-toast-icon {
    color: #10b981;
}

.ht-toast-error {
    border-left-color: #ef4444;
}

.ht-toast-error .ht-toast-icon {
    color: #ef4444;
}

.ht-toast-warning {
    border-left-color: #f59e0b;
}

.ht-toast-warning .ht-toast-icon {
    color: #f59e0b;
}

.ht-toast-info {
    border-left-color: #3b82f6;
}

.ht-toast-info .ht-toast-icon {
    color: #3b82f6;
}

.ht-toast-content {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.ht-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.ht-toast-title::after {
    content: ":";
}

.ht-toast-message {
    font-size: 14px;
    color: var(--Light-Neutral-60);
    margin: 0;
    white-space: nowrap;
}

.ht-toast-close {
    background: transparent;
    border: none;
    color: var(--Light-Neutral-60);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}

.ht-toast-close:hover {
    color: var(--Light-Tertiary-Base);
}

/* =========================================
   FORM VALIDATION (SYSTEM WIDE)
   ========================================= */
.form-group.is-error .c-form-border,
.form-group.is-error .login__input {
    border-color: #ef4444 !important;
}

.form-group.is-error .c_input,
.form-group.is-error textarea {
    color: #ef4444 !important;
}

@media (max-width: 768px) {
    .toast-container {
        left: 24px;
        right: 24px;
    }

    .ht-toast {
        min-width: unset;
        width: 100%;
    }
}

/* =========================================
   HTVALIDATE NOTIFICATION (.noti)
   ========================================= */
.noti {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1c1c1c;
    border: 1px solid var(--Light-Neutral-30);
    border-left: 4px solid var(--Light-Neutral-50);
    color: var(--Light-Tertiary-Base);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    min-width: 320px;
    opacity: 0;
    transform: translateX(120%);
    animation: noti-show-hide 4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.noti.success {
    border-left-color: #10b981;
}

.noti .noti_top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.noti .noti_top i {
    font-size: 20px;
}

.noti.success .noti_top i {
    color: #10b981;
}

.noti .noti_top h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.noti p {
    margin: 0;
    font-size: 13px;
    color: var(--Light-Neutral-60);
}

@keyframes noti-show-hide {
    0% {
        opacity: 0;
        transform: translateX(120%);
    }

    10% {
        opacity: 1;
        transform: translateX(0);
    }

    85% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(120%);
    }
}

/* Infinite Scroll Loading Animation */
.infinite-scroll-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    margin: 20px 0;
}

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(184, 134, 11, 0.2);
    border-right-color: #B8860B;
    /* Gold color */
    border-radius: 50%;
    animation: spinner-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

.loading-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: pulse-text 1.5s ease-in-out infinite;
}

.not-found-data{
    color: white;
}

@keyframes spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-text {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}