html,
body,
.wrapper {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background: #ffffff;
}

/* Modern filter toggle button */
#toggleFilters {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px 0 rgba(63, 184, 175, 0.10) !important;
    border: none !important;
    color: var(--icon-color) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    outline: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
    z-index: 99999 !important;
}

#toggleFilters:hover,
#toggleFilters:focus {
    background: #21706c;
    opacity: 1;
    box-shadow: 0 8px 32px 0 rgba(63, 184, 175, 0.22);
}

/* #toggleFilters svg {
    margin-bottom: 12px;
    margin-top: 2px;
    width: 28px;
    height: 28px;
    display: block;
    stroke: #fff;
} */

#toggleFilters span {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    color: #e0e0ff;
    text-shadow: 0 1px 4px #1a1423;
}

#toggleFilters[disabled],
#toggleFilters.disabled {
    pointer-events: none;
    opacity: 0.15;
    filter: grayscale(0.7);
}

/* Filter panel glassmorphism style */
#filters {
    border-radius: 24px;
    top: 10px;
    left: 0;
    bottom: 10px;
    overflow: hidden;
    height: auto;
    position: fixed;
    /* top: 0;
    left: 0;
    bottom: 0;
    height: 100vh; */
    margin: 0;
    display: flex;
    flex-direction: column;
    /* gap: 20px; */
    padding: 0 20px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 370px;
    max-width: calc(100dvw - 20px);
    z-index: 100000;
    border-right: 1px solid rgba(226, 226, 226, 0.5);
    transition: all 0.3s ease-in-out;
    transform: translateX(-100%);
    box-sizing: border-box;
}

#filters .insideFilter {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* padding: 25px 20px 0px 20px; */
    padding: 10px 10px 0 0;
    flex: 1;
    height: 100%;
    overflow-y: auto;
}

#filters.open~#toggleFilters,
#toggleFilters[aria-hidden="true"] {
    display: none !important;
}

/* #statusFilter {
  display: block;
  width: 100%;
  padding: 14px 10px;
  font-size: 17px;
  border: 1.7px solid #cce5e2;
  border-radius: 8px;
  background: #f9fdfa;
  font-weight: 500;
  color: #21706c;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 4px;
  transition: border-color 0.18s, box-shadow 0.2s;
} */
/* #statusFilter:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px #e0f7f6;
} */

/* Modern slider styles for noUiSlider */
.slider label {
    font-size: 15px;
    color: black;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 3px;
    letter-spacing: 0.2px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 3px;
}

.noUi-target,
.noUi-target * {
    box-shadow: none !important;
}

.noUi-target {
    border-radius: 10px !important;
    background: #f1f3f4 !important;
    border: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 6px !important;
}

.slider>.noUi-target {
    width: 95%;
    margin-left: 0;
    margin-right: 0;
    display: block;
}

.noUi-connect {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.noUi-handle {
    background-color: #fff !important;
    border: 1.2px solid #ccc !important;
    height: 20px !important;
    width: 20px !important;
    top: -6px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: transform 0.15s ease-in-out, border-color 0.15s !important;
    transform: translateX(-50%) !important;
}

.noUi-handle:active {
    border-color: #5a67d8 !important;
}

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

#results {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
    max-height: none;
    overflow-y: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 300px;
}

.polyhotspot {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 20px rgba(63, 184, 175, 0.11),
        0 1.5px 8px rgba(80, 80, 80, 0.03);
    border-left: 6px solid var(--primary);
    font-size: 14px;
    color: #234240;
    font-weight: 500;
    transition: box-shadow 0.18s;
}

.polyhotspot-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.polyhotspot-info {
    flex: 1;
}

.polyhotspot-thumbnail {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.polyhotspot-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.booking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.polyhotspot-thumbnail:hover .booking-overlay {
    opacity: 1;
}

.polyhotspot-thumbnail:hover img {
    transform: scale(1.1);
}

.booking-btn {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.booking-btn:hover {
    background: var(--icon-color);
}

.deposit-btn {
    margin-top: 26px;
    align-self: center;
    position: static !important;
    float: none !important;
    right: auto !important;
    top: auto !important;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.deposit-btn:hover {
    background: #2a9085;
}

.polyhotspot b {
    font-size: 14px;
    color: var(--primary);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.polyhotspot:not(:last-child) {
    margin-bottom: 8px;
}

.polyhotspot span {
    font-size: 15px;
    color: #888;
}

/* Responsive */
@media (max-width: 600px) {
    #filters {
        /* width: calc(100% - 100px);
        min-width: 0;
        max-width: 100vw;
        padding: 0px;
        border-radius: 0 14px 14px 0;
        margin-top: 0px;
        margin-bottom: 0px;
        left: 0; */
        padding: 0 15px
    }

    #closeFilters {
        /* top: 5px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 1.5rem !important; */
    }

    #filters.open #closeFilters {
        /* left: calc(100dvw - 100px) !important; */
    }

    #toggleFilters {
        width: 34px;
        min-width: 34px;
        max-width: 34px;
        height: 120px;
        padding: 8px 0 8px 0;
        font-size: 12px;
        border-radius: 0 10px 10px 0;
    }

    #toggleFilters span {
        font-size: 11px;
        font-weight: 500;
    }

    #websiteLogo {
        height: 32px !important;
        /* top: 8px !important;
        left: 8px !important; */
    }

    .view-buttons {
        gap: 4px;
        bottom: 7px;
    }

    .view-buttons a {
        padding: 7px 10px;
        font-size: 12px;
        border-radius: 6px;
        min-width: 60px;
    }

    .polyhotspot-content {
        flex-direction: column;
        gap: 12px;
    }

    .polyhotspot-thumbnail {
        width: 100%;
        height: 160px;
    }

    #results {
        gap: 8px;
        margin-top: 8px;
    }
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 7px;
    background: #fff;
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-color);
    border-radius: 6px;
}

/*
#hotspottext {
  position: absolute !important;
  max-height: 310px !important;
  max-width: 270px !important;
  width: auto !important;
  min-width: 210px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  padding: 10px 7px !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  font-size: 13px !important;
}
*/

.iframe-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: opacity 0.3s ease !important;
}

.iframe-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: white !important;
}

#hotspottext {
    position: absolute !important;
    max-width: var(--popup-width) !important;
    min-width: var(--popup-width) !important;
    width: var(--popup-width) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: var(--popup-round) !important;
    padding: 0 !important;
    font-size: 13px !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    z-index: 10000 !important;
    border: none !important;
    filter: none !important;
    box-sizing: border-box;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
}

#hotspottext * {
    box-sizing: border-box;
}

#hotspottext>button.close-popup-btn {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    background: none !important;
    border: none !important;
    font-size: 19px !important;
    cursor: pointer !important;
    color: #666 !important;
    padding: 4px !important;
    line-height: 1 !important;
    z-index: 1010 !important;
}

#hotspottext>button.close-popup-btn:hover {
    color: #222 !important;
}

.popup-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;
    color: #333;
    font-size: 13px !important;
    animation: fadeIn 0.4s ease;
    padding: 0;
    margin: 0;
    background: transparent;
    position: relative;
    z-index: 1001;
    padding-bottom: 28px;
}

.popup-info .thumb {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    aspect-ratio: 326/183;
    object-fit: cover;
    object-position: center;
}

.popup-info .title {
    font-size: 20px !important;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary);
    text-align: center;
    width: 100%;
    line-height: 100%;
    position: relative;
    padding-bottom: 15px;
    margin-top: 15px;
}

.popup-info .title::after {
    content: "";
    width: 140px;
    height: 1px;
    background-color: #C9C9C9;
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.popup-info .inside {
    padding: 0 40px;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.popup-info .note {
    font-size: 12px;
    font-weight: 400;
    list-style: 100%;
    color: #5D5D5D;
    text-align: center;
    margin-top: 25px;
    padding: 0 40px;
}

.popup-info .item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
}

.popup-info .item .label {
    font-size: 12px;
    font-weight: 400;
    line-height: 100%;
    color: #848484;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.popup-info .item .value {
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    color: #1D1D1D;
    text-align: left;
    white-space: normal;
}

.popup-info .item .value.price {
    font-size: 20px;
    font-weight: 800;
    line-height: 100%;
    text-align: left;
}

.popup-info .item .value.status {
    padding: 3px 10px;
    font-size: 11px;
    text-transform: uppercase;
    color: #FFF;
    font-weight: 800;
}

.popup-info .wrap_btn {
    padding: 0 40px;
    width: 100%;
    margin-top: 20px;
}

.popup-info .desc {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px !important;
    line-height: 1.35;
    color: #555;
    margin-bottom: 1px;
}

.popup-info .desc:last-child {
    margin-bottom: 0;
}

.popup-info .desc b.available {
    color: #28a745;
}

.popup-info .desc b.sold {
    color: #dc3545;
}

.popup-info .booking-btn,
.popup-info .deposit-btn {
    align-self: center !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    float: none !important;
    width: auto !important;
    z-index: auto !important;
    background: var(--primary) !important;
    color: #fff !important;
    padding: 6px 15px !important;
    border-radius: 5px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(63, 184, 175, 0.08);
    cursor: pointer;
    transition: background 0.22s;
}

.popup-info .booking-btn:hover,
.popup-info .deposit-btn:hover {
    background: var(--icon-color) !important;
}

#hotspottext button:not(.close-popup-btn) {
    position: static !important;
    top: auto !important;
    right: auto !important;
    float: none !important;
    z-index: auto !important;
    padding: 6px 15px !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

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

/* @keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */
#viewer {
    background: linear-gradient(135deg, #f5e6ca, #fff5e1);
}

/* Style for the bottom fixed view-buttons group */
.view-buttons {
    position: fixed;
    /* Fix to the window */
    left: 50%;
    /* Center horizontally */
    bottom: 20px;
    /* Spacing from bottom */
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    z-index: 99998;
    pointer-events: none;
    /* Only child buttons are clickable */
}

.view-buttons a {
    pointer-events: auto;
    /* Make buttons clickable */
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    color: var(--icon-color);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 2px 14px 0 rgba(63, 184, 175, 0.08);
    border: none;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.18s, color 0.18s, box-shadow 0.2s, opacity 0.2s;
    cursor: pointer;
    opacity: 1;
}

.view-buttons a:hover,
.view-buttons a:focus {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(63, 184, 175, 0.17);
    outline: none;
}

.view-buttons a:not(:first-child) {
    opacity: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.32);
    color: #fff;
    box-shadow: 0 2px 14px 0 rgba(63, 184, 175, 0.08);
}

.gg_contextmenu {
    display: none !important;
    pointer-events: none !important;
}

.popup-info .view-detail-btn {
    align-self: center !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
    float: none !important;
    width: auto !important;
    z-index: auto !important;
    background: #63b3ed !important;
    /* màu xanh dương dịu khác biệt deposit */
    color: #fff !important;
    padding: 6px 15px !important;
    border-radius: 5px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(63, 179, 237, 0.08);
    cursor: pointer;
    transition: background 0.22s;
}

.popup-info .view-detail-btn:hover {
    background: #2563eb !important;
}


@media (max-width: 600px) {
    .view-buttons {
        gap: 7px;
        bottom: 13px;
    }

    .view-buttons a {
        padding: 10px 16px;
        font-size: 15px;
        border-radius: 8px;
    }
}

/* Đảm bảo container luôn full chiều rộng cửa sổ */
#container {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow: hidden !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    background: #fff !important;
    z-index: 1;
}

/* Ép các phần tử con (canvas, img) của Object2VR fit chiều rộng */
#container>* {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Nút tròn nhỏ nhắn cho Day/Night */
.circle-btn {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px;
    min-width: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.32) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px 0 rgba(63, 184, 175, 0.10) !important;
    border: none !important;
    font-size: 18px !important;
    color: #fff !important;
    transition: background 0.18s, color 0.18s, box-shadow 0.2s, opacity 0.2s !important;
    cursor: pointer !important;
    position: relative !important;
    outline: none !important;
    margin: 0 4px !important;
    opacity: 1 !important;
    padding: 0 !important;
}

.circle-btn.active {
    /* background: var(--icon-system-hover-color) !important; */
    background: #fff !important;
    color: #fff !important;
    box-shadow: 0 4px 16px 0 rgba(63, 184, 175, 0.17) !important;
}

.circle-btn:focus,
.circle-btn:hover {
    /* background: var(--icon-system-hover-color) !important; */
    background: #fff !important;
    color: #fff !important;
    box-shadow: 0 4px 16px 0 rgba(63, 184, 175, 0.17) !important;
}

.circle-btn[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    background: #222;
    color: #fff;
    padding: 6px 16px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    letter-spacing: 0.04em;
    writing-mode: initial !important;
    text-orientation: initial !important;
}

.circle-btn[data-tooltip]::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 7px 0 7px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #222;
    opacity: 0;
    transition: opacity 0.22s;
    z-index: 101;
}

.circle-btn:hover[data-tooltip]::before,
.circle-btn:focus[data-tooltip]::before,
.circle-btn:hover[data-tooltip]::after,
.circle-btn:focus[data-tooltip]::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.circle-btn i {
    font-size: 18px;
    background: linear-gradient(45deg, #4a8bff, #8f60ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.2s;
}

.circle-btn:hover i {
    transform: scale(1.2);
}

body.theme-day {
    background: #fff !important;
    color: #222 !important;
}

body.theme-night {
    background: #181c23 !important;
    color: #e0e0e0 !important;
}

body.theme-night .wrapper {
    background: #181c23 !important;
}

body.theme-night #filters {
    background: rgba(30, 34, 44, 0.92) !important;
    color: #e0e0e0 !important;
    border-left: 1.5px solid #23272f !important;
}

body.theme-night #results {
    background: transparent !important;
    color: #e0e0e0 !important;
}

body.theme-night .circle-btn {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #fff !important;
}

body.theme-night .circle-btn.active,
body.theme-night .circle-btn:focus,
body.theme-night .circle-btn:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

body.theme-night .circle-btn[data-tooltip]::before {
    background: #222 !important;
    color: #fff !important;
}

body.theme-night .circle-btn[data-tooltip]::after {
    border-color: #222 transparent transparent transparent !important;
}

body.theme-night #container {
    background: #181c23 !important;
}

/* Sidebar dọc bên phải */
.sidebar-vertical {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    /* z-index: 100010; */
    z-index: 1000;
    background: transparent;
    padding: 0 8px 0 0;
}

.sidebar-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px 0 rgba(63, 184, 175, 0.10) !important;
    border: none !important;
    font-size: 22px !important;
    color: var(--icon-system-color) !important;
    transition: background 0.18s, color 0.18s, box-shadow 0.2s, opacity 0.2s !important;
    cursor: pointer !important;
    position: relative !important;
    outline: none !important;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
}

/* .sidebar-btn:focus,
.sidebar-btn:hover {
    background: var(--icon-system-hover-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px 0 rgba(63, 184, 175, 0.17) !important;
} */

.sidebar-btn[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    background: #222;
    color: #fff;
    padding: 6px 16px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    letter-spacing: 0.04em;
}

.sidebar-btn[data-tooltip]::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 7px 8px 7px 0;
    border-style: solid;
    border-color: transparent #222 transparent transparent;
    opacity: 0;
    transition: opacity 0.22s;
    z-index: 101;
}

.sidebar-btn:hover[data-tooltip]::before,
.sidebar-btn:focus[data-tooltip]::before,
.sidebar-btn:hover[data-tooltip]::after,
.sidebar-btn:focus[data-tooltip]::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.sidebar-btn i {
    font-size: 18px;
    background: linear-gradient(45deg, #4a8bff, #8f60ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.2s;
}

.sidebar-btn:hover i {
    transform: scale(1.2);
}

/* Overlay cho iframe */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.32);
    z-index: 100020;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(63, 184, 175, 0.18);
    padding: 0;
    width: 90vw;
    max-width: 600px;
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.sidebar-overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
    background: #f8f8f8;
}

.close-sidebar-overlay {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 1001;
    padding: 2px 8px;
    border-radius: 6px;
    transition: background 0.18s;
}

.close-sidebar-overlay:hover {
    background: #eee;
    color: #222;
}

#toggleFilters.circle-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px 0 rgba(63, 184, 175, 0.10) !important;
    border: none !important;
    font-size: 20px !important;
    color: var(--icon-system-color) !important;
    transition: background 0.18s, color 0.18s, box-shadow 0.2s, opacity 0.2s !important;
    cursor: pointer !important;
    position: relative !important;
    outline: none !important;
    margin: 0 4px !important;
    opacity: 1 !important;
    padding: 0 !important;
}

/* #toggleFilters.circle-btn:focus,
#toggleFilters.circle-btn:hover {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px 0 rgba(63, 184, 175, 0.17) !important;
} */

#toggleFilters.circle-btn[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    background: #222;
    color: #fff;
    padding: 6px 16px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    letter-spacing: 0.04em;
    writing-mode: initial !important;
    text-orientation: initial !important;
}

#toggleFilters.circle-btn[data-tooltip]::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 7px 0 7px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #222;
    opacity: 0;
    transition: opacity 0.22s;
    z-index: 101;
}

#toggleFilters.circle-btn:hover[data-tooltip]::before,
#toggleFilters.circle-btn:focus[data-tooltip]::before,
#toggleFilters.circle-btn:hover[data-tooltip]::after,
#toggleFilters.circle-btn:focus[data-tooltip]::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.icon-sliders svg {
    width: 22px;
    height: 22px;
    display: block;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-btn {
    height: 50px;
    border-radius: 12px;
    width: 100%;
    background: linear-gradient(90deg, #5592FE 0%, #954BF0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #fff;
    text-transform: uppercase;
    border: 0;
    box-shadow: unset;
    outline: 0;
    cursor: pointer;
}

.payment-btn.disabled {
    background: linear-gradient(90deg, rgba(85, 146, 254, 0.5) 0%, rgba(255, 86, 89, 0.5) 100%);
    pointer-events: none;
}

.popup-info .wrap_image {
    position: relative;
}

.popup-info .wrap_image:hover span {
    opacity: 1;
    pointer-events: all;
    cursor: pointer;
}

.popup-info .wrap_image span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 1;
    background: #000000B2;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    opacity: 0;
    transition: all 0.2s;
    pointer-events: none;
}

.filterComponent {
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px
}

.insideFilter::-webkit-scrollbar {
    width: 5px;
}

.insideFilter::-webkit-scrollbar-track {
    background: #ffffff00;
    border-radius: 3px;
    margin: 10px 0;
}

.insideFilter::-webkit-scrollbar-thumb {
    background: #dddddd;
    border-radius: 3px;
    margin: 0 6px;
}

.insideFilter::-webkit-scrollbar-thumb:hover {
    background: #dddddd;
}

#filters h2 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-color: #ffffff;
    padding: 15px 0;
    z-index: 10;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    text-transform: uppercase;
    position: relative;
    margin: 0;
}