.demo-product-tabs {
    display: flex;
    gap: 4px;
    background: #eceff1;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 12px;
}

.demo-product-tabs button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    color: #616161;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.demo-product-tabs button.active {
    background: #fcd34d;
    color: #000;
    font-weight: 600;
}

body.demo-hotel-searching { overflow: hidden; }
.demo-hotel-search-loader {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 18, 24, .62);
    backdrop-filter: blur(3px);
}
.demo-hotel-search-loader.show { display: flex; }
.demo-hotel-loader-card {
    width: min(540px, 100%);
    overflow: hidden;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 26px 75px rgba(0,0,0,.35);
    animation: demoHotelLoaderIn .22s ease-out;
}
.demo-hotel-loader-progress {
    height: 5px;
    overflow: hidden;
    background: #eef1f5;
}
.demo-hotel-loader-progress span {
    display: block;
    width: 42%;
    height: 100%;
    background: linear-gradient(90deg,#d4a017,#fcd34d,#fff0a5);
    animation: demoHotelProgress 1.25s ease-in-out infinite;
}
.demo-hotel-loader-scene {
    position: relative;
    width: 250px;
    height: 112px;
    margin: 26px auto 4px;
    border-bottom: 3px solid #fcd34d;
}
.demo-hotel-loader-scene .building {
    position: absolute;
    bottom: 0;
    border: 3px solid #314d99;
    border-bottom: 0;
    background: repeating-linear-gradient(0deg,#fff 0 8px,#fde68a 9px 12px);
}
.demo-hotel-loader-scene .b1 { left: 24px; width: 46px; height: 58px; }
.demo-hotel-loader-scene .b2 { left: 94px; width: 58px; height: 92px; }
.demo-hotel-loader-scene .b3 { right: 22px; width: 52px; height: 70px; }
.demo-hotel-loader-scene .hotel-icon {
    position: absolute;
    top: 5px;
    left: 12px;
    font-size: 23px;
    animation: demoHotelIcon 2s ease-in-out infinite;
}
.demo-hotel-loader-card h3 {
    margin: 16px 20px 5px;
    color: #172033;
    font-size: 20px;
    font-weight: 700;
}
.demo-hotel-loader-card > p {
    margin: 0 20px 18px;
    color: #6b7280;
    font-size: 13px;
}
.demo-hotel-loader-info {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
    font-size: 13px;
}
.demo-hotel-loader-info strong {
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.demo-hotel-loader-card small {
    display: block;
    padding: 12px 18px 17px;
    color: #94a3b8;
}
@keyframes demoHotelLoaderIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes demoHotelProgress {
    from { transform: translateX(-110%); }
    to { transform: translateX(340%); }
}
@keyframes demoHotelIcon {
    0%,100% { transform: translateX(0); }
    50% { transform: translateX(200px); }
}
@media (max-width: 560px) {
    .demo-hotel-loader-info { flex-direction: column; gap: 5px; }
    .demo-hotel-loader-info strong { max-width: 100%; }
}

body.demo-hotels-mode #routeModal,
body.demo-hotels-mode #loading {
    display: none !important;
    pointer-events: none !important;
}

.demo-hotel-inplace {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.demo-hotel-inplace .offer-row {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.demo-hotel-inplace .offer-row.selected {
    border-color: #fcd34d;
    background: #fffbeb;
}

body.demo-hotels-mode #ui-datepicker-div {
    display: none !important;
    pointer-events: none !important;
}

body.demo-hotels-mode #search-form {
    position: relative;
    isolation: isolate;
}

#demo-hotel-panel input,
#demo-hotel-panel select,
#demo-hotel-panel textarea {
    cursor: text !important;
}

#demo-hotel-panel button,
.demo-product-tabs button {
    cursor: pointer !important;
}

.demo-hotel-carousel-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-hotel-gallery,
.demo-hotel-gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
    flex: 1;
}

.demo-hotel-gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f4f6;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.demo-hotel-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demo-gallery-nav {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #111827;
}

.demo-gallery-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.demo-hotel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.demo-hotel-lightbox-inner {
    position: relative;
    max-width: min(960px, 100%);
    width: 100%;
    text-align: center;
}

.demo-lb-img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 10px;
    object-fit: contain;
    background: #000;
}

.demo-lb-close {
    position: absolute;
    top: -12px;
    right: -4px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
}

.demo-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
}

.demo-lb-prev { left: 8px; }
.demo-lb-next { right: 8px; }

.demo-lb-counter {
    margin-top: 10px;
    color: #e5e7eb;
    font-size: 14px;
}

@media (max-width: 768px) {
    .demo-hotel-gallery,
    .demo-hotel-gallery-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.demo-hotel-map-wrap {
    margin-bottom: 8px;
}

.demo-hotel-map {
    width: 100%;
    height: 240px;
    border: 0;
    border-radius: 10px;
    background: #e5e7eb;
}

.demo-hotel-section {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.demo-hotel-section h6 {
    margin-bottom: 8px;
}

.demo-hotel-fac-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.demo-hotel-fac-tags span {
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.cancellation-list {
    margin-top: 4px;
}

.cancellation-item {
    font-size: 12px;
    color: #4b5563;
    margin-top: 2px;
}

body.demo-hotels-mode #search-form .card-body > *:not(#demo-product-tabs):not(#demo-hotel-panel) {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 0 !important;
    z-index: -999 !important;
}

body.demo-hotels-mode #search-form .card-body > #demo-product-tabs,
body.demo-hotels-mode #search-form .card-body > #demo-hotel-panel {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 2 !important;
}

body.demo-hotels-mode #demo-hotel-panel input,
body.demo-hotels-mode #demo-hotel-panel .hotel-destination-wrap input,
body.demo-hotels-mode #demo-hotel-panel input[type="date"],
body.demo-hotels-mode #demo-hotel-panel input[type="text"] {
    cursor: text !important;
}

body.demo-hotels-mode .demo-product-tabs button,
body.demo-hotels-mode #demo-hotel-panel button {
    cursor: pointer !important;
}
body.demo-hotels-mode #search-form .d-flex:has(#Oneway),
body.demo-hotels-mode #search-form .d-flex:has(#Roundtrip),
body.demo-hotels-mode #search-form #Oneway,
body.demo-hotels-mode #search-form #Roundtrip,
body.demo-hotels-mode .demo-flight-only {
    display: none !important;
}

body.demo-hotels-mode .demo-home-extra {
    display: none !important;
}

body.demo-hotels-results-mode .demo-home-extra {
    display: none !important;
}

body.demo-hotels-results-mode main .demo-search-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

#demo-hotel-panel .hotel-destination-wrap {
    position: relative;
}

#demo-hotel-panel .hotel-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin-top: 2px;
}

#demo-hotel-panel .hotel-autocomplete-item {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
}

#demo-hotel-panel .hotel-autocomplete-item:hover {
    background: #fff8dc;
}

#demo-hotel-results-wrap {
    margin-top: 16px;
}

.demo-hotel-summary-bar {
    background: #fcd34d;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-weight: 500;
}

.demo-hotel-list-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 14px;
    align-items: stretch;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.demo-hotel-list-card .thumb {
    width: 160px;
    min-width: 160px;
    height: 110px;
    border-radius: 8px;
    object-fit: cover;
    background: #f3f4f6;
}

.demo-hotel-list-card .info {
    flex: 1;
    min-width: 0;
}

.demo-hotel-list-card .price-box {
    min-width: 140px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.demo-hotel-list-card .price-usd {
    color: #1977cc;
    font-weight: 700;
    font-size: 1.2rem;
}

.demo-hotel-list-card .stars {
    color: #fcd34d;
    font-size: 12px;
}

#demo-hotel-panel .offer-row {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    background: #fafafa;
    font-size: 13px;
}

#demo-hotel-panel .offer-row.selected {
    border-color: #fcd34d;
    background: #fffbeb;
}

#demo-hotel-panel .cancellation-item,
#demo-hotel-panel .traveller-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    background: #fff;
    font-size: 13px;
}

@media (max-width: 767px) {
    .demo-hotel-list-card {
        flex-direction: column;
    }

    .demo-hotel-list-card .thumb {
        width: 100%;
        min-width: 0;
    }

    .demo-hotel-list-card .price-box {
        align-items: flex-start;
        text-align: left;
    }
}
