.m-accomm-loop-item-widget {
    display: block;
    width: 100%;
    position: relative;
}

.accomm-item {
    position: relative;
    width: 100%;
}
.accomm-item-inner {
    border-radius: 10px;
    box-shadow: 0 0 1px 1px #ddd;
    overflow: hidden;
}

/* amenity */
.accomm-box-image .amenity-wrap {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    background-color: #ddd;
    border-radius: 10px 0 3px 0;
    z-index: 2;
}
.accomm-box-image .amenity {
    position: relative;
    cursor: pointer;
}
.amenity .icon {
    display: block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    padding: 0px 7px;
    color: #777;
}
.amenity .icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.accomm-box-image .amenity .name {
    position: absolute;
    bottom: 100%;
    width: max-content;
    max-width: 150px;
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0;
    visibility: hidden;
    transition: .2s;
}
.accomm-box-image .amenity:hover .name {
    transform: translate(-50%, -6px);
    opacity: 1;
    visibility: visible;
}
.accomm-box-image .amenity .name::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border: 3px solid #333;
}


/* gallery */
.accomm-box-image .image {
    display: block;
    width: 100%;
    padding-top: 56.25%;
    position: relative;
}
.accomm-box-image .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.accomm-box-image .m-swiper-pagi {
    position: absolute;
    left: 0;
    bottom: 0px;
    z-index: 1;
    text-align: center;
}
.accomm-box-image .m-swiper-pagi .swiper-pagination-bullet {
    border: 1px solid #fff;
    width: 8px;
    height: 8px;
    background-color: #fff;
    transition: .3s;
}
.accomm-box-image .m-swiper-pagi .swiper-pagination-bullet-active {
    background-color: var(--e-global-color-primary);
}

/* title */
.accomm-box-text {
    padding: 15px 20px 20px;
    background-color: #fff;
}
.accomm-box-text .title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.accomm-box-text .title {
    flex: 1;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.3;
    color: var(--e-global-color-primary);
}
.accomm-box-text .title a {
    color: inherit;
}
.accomm-box-text .open-popup-button {
    border: 1px solid var(--e-global-color-primary);
    color: var(--e-global-color-primary);
    display: block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 100%;
    cursor: pointer;
    transition: .2s;
}
.accomm-box-text .open-popup-button:hover {
    background-color: var(--e-global-color-primary);
    color: #fff;
}
.accomm-box-text .open-popup-button::before {
    content: "\e64b";
    font-family: 'themify';
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}
@media only screen and (max-width: 767px) {
    .accomm-box-text .title {
        font-size: 16px;
    }
}

/* meta */
.accomm-box-text .meta-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 15px;
}
.accomm-box-text .meta {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.accomm-box-text .meta.has-tooltip {
    cursor: pointer;
}
.accomm-box-text .meta .tooltip {
    position: absolute;
    bottom: 100%;
    width: max-content;
    max-width: 150px;
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0;
    visibility: hidden;
    transition: .2s;
}
.accomm-box-text .meta:hover .tooltip {
    transform: translate(-50%, -6px);
    opacity: 1;
    visibility: visible;
}
.accomm-box-text .meta .tooltip::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border: 3px solid #333;
}
.accomm-box-text .meta .icon {
    display: block;
    width: 16px;
    height: 16px;
}
.accomm-box-text .meta .icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.accomm-box-text .meta .text {
    flex: 1;
}

/* price */
.accomm-item .price-wrap {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}
.accomm-item .mphb-price {
    font-size: 20px;
    font-weight: bold;
    color: #ba9d29;
    line-height: 1;
}
.accomm-item .mphb-price-period {
    font-size: 12px;
}
.accomm-item .mphb-discount-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.accomm-item .mphb-discount-percent {
    background: #ba9d2a;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    padding: 2px 4px;
    line-height: 1;
}
.accomm-item .mphb-old-price .mphb-price {
    font-size: 12px;
    font-weight: normal;
    color: #777;
    text-decoration: line-through;
}

/* button */
.accomm-box-text .button-wrap {
    margin-top: 20px;
}
.accomm-item .button-detail {
    display: block;
    border-radius: 6px;
    padding: 8px 15px;
    background-color: var(--e-global-color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    transition: .3s;
}
.accomm-item .button-detail:hover {
    background-color: var(--e-global-color-secondary);
}
@media only screen and (max-width: 767px) {
    .accomm-item .button-detail {
        font-size: 14px;
    }
}

/* popup */
.accomm-item-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    z-index: 10;
}
.accomm-item-popup.show {
    opacity: 1;
    visibility: visible !important;
}
.accomm-item-popup .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;
}
.accomm-item-popup .popup-inner {
    position: relative;
    width: 100%;
    max-width: 1245px;
    max-height: calc(100vh - 30px);
    padding: 0 15px;
    margin: 0 auto;
}
.accomm-item-popup .popup-wrap {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.accomm-item-popup .popup-header {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 0 10px -5px #ccc;
    position: relative;
}
.popup-header .title {
    flex: 1;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}
.popup-header .button-close {
    border: 1px solid #555;
    color: #555;
    display: block;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    border-radius: 100%;
    cursor: pointer;
    opacity: 0.5;
    transition: .2s;
}
.popup-header .button-close:hover {
    opacity: 1;
}
.popup-header .button-close::before {
    content: "\e646";
    font-family: 'themify';
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}
@media only screen and (max-width: 767px) {
    .popup-header .title {
        font-size: 18px;
    }
}

.accomm-item-popup .popup-footer {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    box-shadow: 0 0 10px -5px #555;
    position: relative;
}
.popup-footer .price-wrap {
    margin-top: 0;
}
@media only screen and (min-width: 768px) {
    .popup-footer .mphb-discount-wrap {
        justify-content: flex-end;
    }
    .popup-footer .price-wrap {
        text-align: right;
    }
}
@media only screen and (max-width: 767px) {
    .accomm-item-popup .popup-footer {
        justify-content: space-between;
    }
}

.accomm-item-popup .popup-body {
    --safe: 200px;
    overflow-y: auto;
    max-height: calc(100vh - var(--safe));
    min-height: 400px;
    position: relative;
}
.popup-body::-webkit-scrollbar {
    width: 5px;
}
.popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.popup-body::-webkit-scrollbar-thumb {
    background: var(--e-global-color-primary);
    border-radius: 5px;
}
.accomm-item-popup .popup-body .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: url('/wp-content/plugins/mona-addon/assets/images/icon-loading.svg');
    background-size: contain;
}

.accomm-item .gallery-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    gap: 2px;
}

.gallery-grid .grid-item:first-child { grid-area: 1 / 1 / 5 / 5; }
.gallery-grid .grid-item:nth-child(2) { grid-area: 1 / 5 / 3 / 7; }
.gallery-grid .grid-item:nth-child(3) { grid-area: 1 / 7 / 3 / 9; }
.gallery-grid .grid-item:nth-child(4) { grid-area: 3 / 5 / 5 / 7; }
.gallery-grid .grid-item:nth-child(5) { grid-area: 3 / 7 / 4 / 8; }
.gallery-grid .grid-item:nth-child(6) { grid-area: 3 / 8 / 4 / 9; }
.gallery-grid .grid-item:nth-child(7) { grid-area: 4 / 7 / 5 / 8; }
.gallery-grid .grid-item:nth-child(8) { grid-area: 4 / 8 / 5 / 9; }

.grid-item {
    background-color: #cecece;
}
.grid-item .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.grid-item .icon {
    font-size: 24px;
    line-height: 1;
}
.grid-item .icon::before {
    content: "\e64e";
    font-family: 'themify';
}

.accomm-item-popup .accomm-box-text {
    display: flex;
    padding: 20px;
    gap: 20px;
}
.accomm-item-popup .accomm-box-text [class^=col] {
    width: 100%;
}
@media only screen and (min-width: 768px) {
    .accomm-item-popup .accomm-box-text [class^=col] {
        max-width: 50%;
        flex-basis: 50%;
    }
}
@media only screen and (max-width: 767px) {
    .accomm-item-popup .accomm-box-text {
        flex-wrap: wrap;
    }
}

.accomm-item-popup .accomm-box-text .meta-wrap {
    flex-direction: column;
    margin: 0;
}
.accomm-item-popup .accomm-box-text .meta {
    font-size: inherit;
}

.accomm-box-text .amenity-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 20px;
}
.accomm-box-text .amenity {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    padding: 2px 10px 2px 3px;
}
.accomm-box-text .amenity .icon {
    width: 30px;
    height: 30px;
}

/* fix lightbox */
.dialog-widget[id^=elementor-lightbox-slideshow-gal] .swiper:not(.elementor-slideshow--ui-hidden) .elementor-slideshow__header {
    display: flex !important;
    opacity: 1 !important;
}