/* Hotel Landing */
/* SEARCH WIDGET START */

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

.hl-search-window.active-border {
    border-bottom: 1px solid var(--light-border-color);
}

.hl-search-form,
.hl-search-append {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out, opacity 0.5s ease-out;
}

.hl-search-form.active {
    max-height: 24rem;
    opacity: 1;
    overflow: initial;
}

.hl-search-append.active {
    max-height: 4rem;
    opacity: 1;
    overflow: initial;
    margin-bottom: 1rem;
}

.h-icon {
    width: 1rem;
    height: 1rem;
}

.hl-search-control {
    border: 1px solid var(--light-border-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.hl-search-control:focus,
.hl-search-control:focus-visible,
.hl-search-control:focus-within {
    border-color: var(--primary-color);
}

.hl-search-control-label {
    color: var(--dark-border-color);
}

.hl-search-control-input {
    color: var(--secondary-text-color);
}
.hl-search-control-input.hasDatepicker {
    cursor: pointer;
}

.hl-search-control-arrow-icon {
    right: 0.25rem;
}

.hl-search-guests {
    justify-content: space-between;
    cursor: pointer;
}

.bts5 .hl-search-button {
    width: 100%;
    min-width: 8.75rem;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0.25rem;
}

.bts5 .hl-search-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.loader {
    display: block;
    border: 0.25rem solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    margin: auto;
    animation: spin 2s linear infinite;
}

.hotel-widget-rooms_guests-settings {
    width: 14rem;
}

.hl-search-append input[type='radio'] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
}

.hl-search-append input[type='radio']:checked {
    background-color: white;
}

.hl-search-append input[type='radio']:checked::before {
    content: '';
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--secondary-color); /* Inner circle color */
    position: absolute;
    top: 3px;
    left: 3px;
}

.hl-search-append label {
    color: var(--secondary-text-color);
}

@media (min-width: 768px) {
    .hl-search-window.active-border {
        border-bottom: none;
    }

    .hl-search-form {
        max-height: 24rem;
        opacity: 1;
        overflow: initial;
    }

    .hl-search-append {
        max-height: 4rem;
        opacity: 1;
        overflow: initial;
    }

    .hl-search-control {
        border-right-color: transparent;
        border-radius: 0;
        flex: auto;
    }

    .hl-search-destination {
        border-radius: 0.25rem 0 0 0.25rem;
    }

    .hl-search-destination input[readonly] {
        color: var(--highlight-text-color);
    }

    .bts5 .hl-search-button {
        width: auto;
        border-radius: 0 0.25rem 0.25rem 0;
    }

    .hl-search-form,
    .hl-search-append {
        max-height: fit-content;
    }
}

@media (min-width: 1280px) {
    .hl-search-destination {
        flex: 2;
    }
}

/* SEARCH WIDGET END */

/* FILTERS START */
.container-section .hl-hotel-filters-section {
    border: 1px solid var(--light-border-color);
    border-radius: 0.25rem;
}

.hl-hotel-close-filters {
    top: 0.5rem;
    right: 0.5rem;
}

.hl-hotel-filters-title {
    border-bottom: 1px solid var(--light-border-color);
}

.container-section .hl-hotel-filters-clear,
.container-section .hl-hotel-filters-more {
    color: var(--primary-color);
    font-size: 0.75rem;
    border-bottom: 1px solid var(--primary-color);
    letter-spacing: 0.8px;
}

.container-section .hl-hotel-filters-clear:hover,
.container-section .hl-hotel-filters-more:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    text-decoration: none;
}

.hl-hotel-filter_name {
    border: 1px solid var(--light-border-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--secondary-text-color);
}

.hl-hotel-filter_name:focus,
.hl-hotel-filter_name:focus-within,
.hl-hotel-filter_name:focus-visible {
    border-color: var(--primary-color);
}

.hl-hotel-filter_name-search {
    top: 0.5rem;
    right: 0.5rem;
}

.hl-hotel-filter-arrow-icon {
    width: 0.75rem;
    height: 0.5rem;
    margin: 0 0.625rem 0.25rem 0.125rem;
}

.hl-hotel-tripadvisor-sidebar .hl-hotel-filter-arrow-icon {
    margin-right: 2px;
}
.hl-hotel-nightly-rate ul li > *,
.hl-hotel-star-sidebar ul li > *,
.hl-hotel-tripadvisor-sidebar ul li > *,
.hl-hotel-landmarks ul li > * {
    color: var(--highlight-text-color);
    font-size: 0.875rem;
    cursor: pointer;
}

.hl-hotel-nightly-rate ul li input,
.hl-hotel-star-sidebar ul li input,
.hl-hotel-tripadvisor-sidebar ul li input,
.hl-hotel-landmarks ul li input {
    border: 1px solid var(--primary-color);
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 2px;
}

.hl-hotel-nightly-rate ul li input:checked,
.hl-hotel-star-sidebar ul li input:checked,
.hl-hotel-tripadvisor-sidebar ul li input:checked,
.hl-hotel-landmarks ul li input:checked {
    appearance: auto;
}

.hl-hotel-nightly-rate ul li span,
.hl-hotel-star-sidebar ul li span,
.hl-hotel-tripadvisor-sidebar ul li span,
.hl-hotel-landmarks ul li span {
    font-size: 0.75rem;
}

.hl-hotel-tripadvisor-sidebar .tripadvisor-rating-logo {
    width: 1.375rem;
    margin-right: 2px;
}

.hl-hotel-tripadvisor-sidebar .tripadvisor-rating-text {
    margin: 0 0.5rem;
}

.dimmed {
    opacity: 0.25;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hl-hotel-filters-section_wrapper {
        width: 25%;
        min-width: 13.5rem;
        position: initial;
    }
}

/* FILTERS END */

/* RESULTS SECTION START */
.hotel-result-summary-header {
    font-size: 1.125rem;
    color: var(--secondary-text-color);
}

.hotel-result-summary-number {
    font-size: 1rem;
    color: var(--dark-border-color);
}

.hotel-result-summary-sort-by {
    color: var(--highlight-text-color);
    width: 100%;
}

.hotel-result-summary-sort-by a,
.hotel-result-summary-sort-by select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid var(--light-border-color);
    border-radius: 0.25rem;
    color: var(--highlight-text-color);
    cursor: pointer;
    background: url('/common_resources/tawframework/img/hotel-dropdown-icon.png') right 0.5rem center no-repeat;
    background-size: 1rem;
    width: 50%;
}

.hotel-result-summary-sort-by a {
    background-image: url('/common_resources/tawframework/img/hotel-filter-icon.png');
}

.hotel-result-summary-sort-by a:hover,
.hotel-result-summary-sort-by select:hover {
    border-color: var(--primary-color);
    text-decoration: none;
    color: var(--highlight-text-color);
    cursor: pointer;
}

.hl-hotel-result-summary-map-view {
    border: 1px solid var(--secondary-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.container-section .hl-hotel-result-summary-map-view:hover,
.container-section .hl-hotel-map-view:hover {
    text-decoration: none;
}

.hl-hotel-map-view {
    background: url('/common_resources/tawframework/img/hotel-map-view.png') center no-repeat transparent;
    background-size: cover;
}

.hl-hotel-map-view span {
    display: inline-block;
    width: 9rem;
    background-color: white;
    border: 1px solid var(--secondary-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.hl-hotel-result-item {
    border: 1px solid var(--light-border-color);
    border-radius: 0.25rem;
}

.container-section .hl-hotel-result-item a {
    color: var(--secondary-text-color);
}

.container-section .hl-hotel-result-item a:hover {
    color: var(--secondary-text-color);
    text-decoration: none;
}

.container-section .hl-hotel-result-item a .hl-hotel-view-details-cta {
    font-size: 0.75rem;
    background-color: transparent;
    text-decoration: underline;
    border: none;
    color: var(--primary-color);
}

.container-section .hl-hotel-result-item a:hover .hl-hotel-view-details-cta {
    color: var(--secondary-color);
}

.hl-hotel-result-item_photo-container {
    width: 100%;
    max-height: 14.5rem;
}

.hl-hotel-result-item_photo-container img {
    object-fit: cover;
}

.hl-hotel-item_special-offer {
    color: var(--green-color);
    font-size: 0.75rem;
}

.hotel-distance {
    color: var(--dark-border-color);
}

.hl-hotel-result-item .hl-hotel-save-msg,
.room-details-refundable-msg {
    width: fit-content;
    color: var(--secondary-color);
    font-size: 0.625rem;
    border-radius: 6.25rem;
    background-color: var(--green-tr-light-color);
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
}

.hl-hotel-result-item .hl-hotel-pricing {
    font-size: 1.125rem;
    font-weight: bold;
    direction: rtl;
    line-height: 0.75;
}

.hl-hotel-result-item .hl-hotel-pricing del,
.hl-hotel-result-item .hl-hotel-pricing span,
.hl-hotel-result-item .hl-hotel-average-rate {
    font-size: 0.75rem;
    color: var(--dark-border-color);
    font-weight: normal;
}

.hl-hotel-result-item .total-avg-pricing-rate {
    font-size: 1.625rem;
    line-height: 1.875rem;
    word-spacing: -4px;
}

:is(.hl-hotel-result-item, .room-details) .total-rate {
    font-size: 1.625rem;
    line-height: 1.375rem;
    word-spacing: -4px;
}

:is(.hl-hotel-result-item, .room-details) .total-rate-label{
    font-size: 1rem;
    line-height: 1.375rem;
}

:is(.hl-hotel-result-item, .room-details) .total-rate del {
    color: var(--highlight-text-color);
}

:is(.hl-hotel-result-item, .room-details) .loyalty-hotel-detail-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    margin: 0;
}

.hl-hotel-back-to-top {
    top: 2.25rem;
    right: 0;
}

.hotel-map-pane {
    height: 100%;
    border-radius: 0.25rem;
}

.map-card {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.map-card a {
    background-color: white;
    border-radius: 0.25rem;
}

.map-pin, .map-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    background-color: var(--primary-color);
    border-radius: 0.25rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.map-pin::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0.5rem 0.5rem 0 0.5rem;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.map-pin.active, .map-pin.active:hover {
    padding: 0.125rem;
    background-color: white;
    border: 2px solid #e87a1e;
    color: var(--ebg-black-color);
}

.map-pin.active::after, .map-pin.active:hover::after {
    border-color: #e87a1e transparent transparent transparent;
}

.map-pin:hover, .map-cluster:hover {
    background-color: var(--secondary-color);
}

.map-pin:hover::after {
    border-color: var(--secondary-color) transparent transparent transparent;
}

.hotel-results .close-card {
    background: var(--ebg-card-shadow);
    border-radius: 0.75rem;
    padding: 0.125rem;
    right: 0.25rem;
    top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
}

.hotel-results .close-card img {
    filter: brightness(0) invert(1);
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

.map-container {
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

@media (min-width: 768px) {
    .hotel-result-summary-sort-by {
        width: fit-content;
    }

    .hotel-result-summary-sort-by select {
        width: 14.5rem;
    }

    .hl-hotel-result-item_photo-container {
        width: 25%;
        min-width: 14.5rem;
        min-height: 14.5rem;
    }
    .hl-hotel-result-item_detail-container .hotel-short-desc p {
        max-height: 5rem;
        overflow: hidden;
    }

    .hl-hotel-results-section_wrapper {
        width: 75%;
    }

    .hl-hotel-item_special-offer {
        font-size: 1rem;
    }

    .map-pin, .map-cluster {
        padding: 0.5rem;
        font-size: 1.125rem;
    }

    .map-pin.active, .map-pin.active:hover {
        padding: 0.375rem;
        border: 3px solid #e87a1e;
    }

    .hotel-results .close-card {
        background: white;
    }

    .hotel-results .close-card img {
        filter: unset;
    }
    
    .map-card {
        bottom: 2rem;
        left: 2rem;
        right: 1rem;
    }
}

@media (min-width: 992px) {
    .hl-hotel-result-item_detail-container {
        width: 65%;
    }

    .hl-hotel-result-item_pricing-container {
        width: 45%;
    }

    .hl-hotel-result-item .hl-hotel-pricing {
        direction: ltr;
        font-size: 1.75rem;
    }

    .hl-hotel-result-item .hl-hotel-pricing del,
    .hl-hotel-result-item .hl-hotel-pricing span,
    .hl-hotel-result-item .hl-hotel-average-rate {
        font-size: 1.125rem;
    }

    .container-section .hl-hotel-result-item a .hl-hotel-view-details-cta {
        display: none;
        font-size: 0.75rem;
        color: white;
        text-decoration: none;
        border-radius: 0.25rem;
    }

    .container-section .hl-hotel-result-item a:hover .hl-hotel-view-details-cta {
        display: block;
        color: white;
        border: 1px solid var(--primary-color);
        background-color: var(--primary-color);
    }

    .container-section .hl-hotel-result-item a:hover .hl-hotel-view-details-cta:hover {
        border-color: var(--secondary-color);
        background-color: var(--secondary-color);
    }

    .hl-hotel-result-item .hl-hotel-save-msg,
    .hl-hotel-result-item .loyalty-hotel-detail-badge {
        position: initial;
    }
}

@media (min-width: 1280px) {
    .hl-hotel-result-item_detail-container {
        width: 65%;
    }

    .hl-hotel-result-item_pricing-container {
        width: 35%;
    }
}

/* RESULTS SECTION END */

.landmark-filtered,
.name-filtered,
.price-filtered,
.rating-filtered,
.filter_after_page,
.filter_prior_to_page,
.nightly-rate-filtered,
.bedroom-filtered {
    display: none !important;
}

/* EVERYTHING THAT ABOVE THIS LINE ^^^^^^ IS REFACTORED */

/* Utility */

.hasDatepicker {
    caret-color: transparent !important;
}

.pac-container {
    z-index: 100000;
    -webkit-overflow-scrolling: auto !important;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0); /* fixes iphone z-index bug */
}

.ui-datepicker {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0); /* fixes iphone z-index bug */
}

/* HOTEL DETAILS PAGE - START */
.container-section.hl-hotel-dp-header-section h1 {
    font-size: 0.875rem;
}

.hl-hotel-dp-header-section_ratings span {
    font-size: 1.125rem;
}

.hl-hotel-dp-header-section p {
    font-size: 0.875rem;
    color: var(--secondary-text-color);
}

.hl-hotel-dp-header-section .hl-hotel-dp-header_hotel-distance {
    color: var(--highlight-text-color);
}

.hl-hotel-dp-header-section_promo_description {
    color: var(--primary-icon-color);
}

/* Gallery Start */
.hl-hotel-gallery-photo {
    flex: 1;
    width: calc(100% / 3);
}

.hl-hotel-gallery-photo.small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
}

.slider .slide img,
.hl-hotel-gallery-photo img {
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.hl-hotel-more-photo-cta {
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.375rem 0.875rem;
}

.hl-hotel-more-photo-cta:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.slider .slide {
    max-height: 480px;
    height: calc(100vw - 10rem);
}

.slider ul.slick-dots {
    width: 30%;
    display: flex;
    position: absolute;
    bottom: 0.5rem;
    margin: 0;
    padding: 0;
    overflow: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    left: calc(50% - 4rem);
}

.slider ul.slick-dots button {
    border: none;
    color: transparent;
    border-radius: 50%;
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0;
    margin-right: 4px;
}

.slider ul.slick-dots .slick-active button {
    background-color: white;
}

@media (min-width: 768px) {
    .hb-slider-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .hb-slider-container.active {
        display: flex;
    }

    .hb-slider-container .hb-slider-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        background: white;
        padding: 2rem;
        border-radius: 0.5rem;
        width: 75%;
        max-width: 768px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .slider ul.slick-dots {
        width: 20%;
    }

    .hb-slider-container .slider {
        width: 90%;
    }

    .slider .slide {
        max-height: 480px;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .slider .slick-next.slick-arrow {
        right: -0.5rem;
    }

    .slider .slick-prev.slick-arrow {
        left: -0.5rem;
    }

    .hb-slider-container .hb-slider-close-cta {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }

    .hb-slider-container .hb-slider-close-cta:hover {
        text-decoration: none;
    }
}

/* Gallery End */

/* Tabs Start */
.hl-hotel-dp-tabs li {
    font-size: 0.875rem;
    color: var(--highlight-text-color);
    padding-bottom: 0.75rem;
}

.hl-hotel-dp-tabs li:hover,
.hl-hotel-dp-tabs li.active,
.hl-hotel-dp-tabs li.active:hover {
    font-weight: 700;
    color: var(--secondary-text-color);
    border-bottom: 2px solid var(--primary-color);
    cursor: pointer;
}

.hl-hotel-dp-tabs li:hover {
    font-weight: 400;
}

/* Tabs Content */
.hl-hotel-dp-tab.overview ul,
.hl-hotel-dp-tab.amenities ul,
.room-details-description ul {
    list-style-type: disc;
}

.room-details-night {
    background-color: var(--light-grey-bg-color);
    font-size: 0.75rem;
    width: 3.75rem;
}

.room-details-night del {
    color: var(--dark-border-color);
    line-height: 1;
}

.room-description-cta a {
    font-size: 0.75rem;
    text-decoration: underline;
}

.room-description-cta a::after {
    background: url('/img/hb-dark-blue-arrow-icon.svg') center right no-repeat transparent;
    content: '';
    width: 0.5rem;
    height: 1rem;
    margin-left: 0.5rem;
    transition: transform 0.5s ease;
}

.room-description-cta a.active::after {
    transform: rotateZ(90deg);
    margin-top: 0.25rem;
}

.room-description-cta p {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-out;
    opacity: 0;
}

.room-description-cta p.active {
    padding-top: 0.5rem;
    max-height: fit-content;
    opacity: 1;
}

.room-details-refundable-msg {
    position: initial;
}

.room-details-average-nightly-rate del {
    color: var(--dark-border-color);
}

.room-details-average-nightly-rate span {
    font-size: 1.125rem;
}

.average-nightly-rate-per-night-label {
    color: var(--dark-border-color);
    white-space: nowrap;
}

.room-details-description-pricing .hl-hotel-book-room-cta {
    font-size: 0.75rem;
    color: white;
    border-radius: 0.25rem;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
}

.hl-hotel-book-room-cta:hover {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}

/* Tabs End */
.hl-hotel-msg {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Tooltip styling */
.hl-hotel-msg-content {
    opacity: 0;
    width: 280px;
    background-color: #353535;
    color: #fff;
    z-index: 9999;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(66, 43, 43, 0.25);
    pointer-events: none;
    word-spacing: normal;
}


/* Tooltip arrow */
.hl-hotel-msg-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #353535 transparent transparent transparent;
}

/* Show on hover */
.hl-hotel-msg:hover .hl-hotel-msg-content {
    visibility: visible !important;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 640px) {
    .hl-hotel-dp-tab.amenities ul {
        column-count: 2;
        column-gap: 1rem;
    }
}

@media (min-width: 768px) {
    .container-section.hl-hotel-dp-header-section h1 {
        font-size: 1.5rem;
    }

    .hl-hotel-dp-tab.amenities ul {
        column-count: 3;
        column-gap: 2rem;
    }

    /* Tabs Content */
    .room-details-summary,
    .room-details-description {
        width: 50%;
        min-height: 10.5rem;
    }

    .room-details {
        border: 1px solid var(--light-border-color);
        border-radius: 0.25rem;
    }

    .room-details-summary {
        border-right: 1px solid var(--light-border-color);
    }

    .room-details-night {
        font-size: 0.875rem;
        width: 4rem;
    }

    .room-details-description-info {
        width: 60%;
    }

    .room-details-description-pricing {
        width: 40%;
    }

    .room-details-left-image {
        width: 18%;
        height: max-content;
    }

    .room-details-left-image img {
        max-width: 366px;
        object-fit: contain;
        max-height: 280px;
    }

    .room-gallery-icon {
        bottom: 11px;
        right: 11px;
        height: 22px;
        width: 22px;
        object-fit: fill;
    }

    .room-details-average-nightly-rate del {
        font-size: 1.125rem;
    }

    .room-details-average-nightly-rate span {
        font-size: 1.75rem;
    }

    .room-details-room-info {
        font-size: 0.875rem;
    }
}

/* Tabs End */

/* HOTEL DETAILS PAGE - END */
