/* AMLAB Slider Frontend Styles */

/* Container */
.amlab-slider-container {
    margin: 30px 0;
    padding: 0 15px;
}

/* Swiper Custom Styles */
.amlab-slider-container .swiper {
    width: 100%;
    padding-bottom: 40px;
    perspective: 1200px; /* Tạo hiệu ứng 3D */
    overflow: hidden; /* Ẩn các slide ngoài viewport */
}

.amlab-slider-container .swiper-wrapper {
    transform-style: preserve-3d; /* Giữ hiệu ứng 3D cho children */
}
.amlab-stores-container .swiper-wrapper{
    gap: 10px;
}
.amlab-slider-container .swiper-slide {
    height: auto;
    width: 400px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    transform-style: preserve-3d;
    flex-shrink: 0; /* Không cho slide co lại */
}

/* Slide bên trái - nghiêng về phía sau, lùi về sau */
.amlab-slider-container .swiper .swiper-slide-prev {
    opacity: 0.8;
    transform: scale(0.8) rotateX(15deg) rotateY(-10deg) translateX(-30px) translateZ(-100px);
}

/* Slide active - không nghiêng, ở giữa */
.amlab-slider-container .swiper .swiper-slide-active {
    transform: scale(1.1) rotateX(0deg) rotateY(0deg) translateX(0) translateZ(0);
    opacity: 1;
    z-index: 2;
}

/* Slide bên phải - nghiêng về phía sau, lùi về sau */
.amlab-slider-container .swiper .swiper-slide-next {
    opacity: 0.8;
    transform: scale(0.8) rotateX(15deg) rotateY(10deg) translateX(30px) translateZ(-100px);
}

/* Các slide khác - ẩn hoàn toàn để chỉ hiển thị 3 slides */
.amlab-slider-container .swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5) rotateX(20deg) translateZ(-200px);
    pointer-events: none;
}
/* Slider Item - New Structure */
.single.box_item_slide {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: right top;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.amlab-slider-item {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}
.hanoi__cuisine--content .tabbed-content ul{
    gap: 10px
}
.hanoi__cuisine--content .tabbed-content ul li{
    padding: 0 20px;
    border-radius: 8px;
    background: #fff;
}
.hanoi__cuisine--content .tabbed-content ul li.active{
    background: #ffc800;
}
.hanoi__cuisine--content .tabbed-content ul li a{
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 700;
}
/* Item Image */
.item_slide {   
    width: 100%;
    height: 60%;
    object-fit: contain;
    vertical-align: top;
    display: block;
    /* border-radius: 8px; */
    margin: auto;
}

/* Eye Button (View Stores) */
.eye-button {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    visibility: hidden;
    opacity: 0;
}

/* Chỉ hiển thị eye button khi slide đang active */
.amlab-slider-container .swiper .swiper-slide-active .eye-button {
    visibility: visible;
    opacity: 1;
}

.eye-button:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.eye-button img,
.eye-button svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
    color: #333;
}

/* Price Box Container */
.hanoi__cuisine--price{
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}
.amlab-slider-container .swiper .swiper-slide-active .hanoi__cuisine--price{
    visibility: visible;
    opacity: 1;
}
.hanoi__cuisine--price {
    margin: 0 auto;
    width: 90%;
    padding: 8px;
    background: linear-gradient(to top, white, #ffc800);
    border-radius:10px;
    /* position: absolute; */
    bottom: 3rem;
    left: -1rem;
    pointer-events: none;
}

.hanoi__cuisine--price * {
    pointer-events: auto;
}

/* Gradient Border Box */
.gradient__border--box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    /* backdrop-filter: blur(10px); */
}

/* Price Header */
.cuisine__price--header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.cuisine__price--header p{
    color: #000;
}
.cuisine__price--star,
.cuisine__price--location,
.cuisine__price--rate {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(12px, 1.1vw, 16px);
    color: #333;
    font-weight: 500;
}

.cuisine__price--star img,
.cuisine__price--location img,
.cuisine__price--rate img,
.cuisine__price--star svg,
.cuisine__price--location svg,
.cuisine__price--rate svg {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.cuisine__price--star svg,
.cuisine__price--location svg,
.cuisine__price--rate svg {
    color: #333;
}

.cuisine__price--star p,
.cuisine__price--location p,
.cuisine__price--rate p {
    margin: 0;
    font-size: clamp(12px, 1.1vw, 14px);
    line-height: 1.4;
}

/* Divider */
.w-1.bg-gray.h-8 {
    width: 1px;
    height: 20px;
    background: #ddd;
    margin: 0 8px;
}

.ml-8 {
    margin-left: 8px;
}

.mr-8 {
    margin-right: 8px;
}

/* Landscape Split Info */
.landscape__split-infor {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 15px 0;
}

/* Price Text (Description) */
.cuisine__price--text {
    margin-top: 15px;
}

.cuisine__price--text p {
    margin: 0;
    font-size: clamp(12px, 1.1vw, 14px);
    color: #000;
    line-height: 150%;
}

/* Swiper Navigation */
.amlab-slider-container .swiper-button-next,
.amlab-slider-container .swiper-button-prev {
    color: #3498db;
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.amlab-slider-container .swiper-button-next:hover,
.amlab-slider-container .swiper-button-prev:hover {
    background: #3498db;
    color: #fff;
    transform: scale(1.1);
}

.amlab-slider-container .swiper-button-next::after,
.amlab-slider-container .swiper-button-prev::after {
    font-size: clamp(16px, 1.5vw, 24px);
    font-weight: 700;
}

/* Swiper Pagination */
.amlab-slider-container .swiper-pagination {
    bottom: 0 !important;
}

.amlab-slider-container .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #bdc3c7;
    opacity: 1;
    transition: all 0.3s ease;
}

.amlab-slider-container .swiper-pagination-bullet-active {
    background: #3498db;
    transform: scale(1.2);
}

/* Popup Overlay */
.amlab-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.amlab-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Content */
.amlab-popup-content {
    background: #fff;
    border-radius: 12px;
    max-width: 1290px;
    max-height: 90vh;
    height: 65%;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 0.625rem gray;
}

.amlab-popup-overlay.active .amlab-popup-content {
    transform: translateY(0);
}

/* Popup Close Button */
.amlab-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: #c33;
    border: none;
    border-radius: 50%;
    /* font-size: 24px; */
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    min-height: 37px !important;
}

.amlab-popup-close:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

/* Popup Header */
.amlab-popup-header {
    padding: 10px 20px;
    /* border-bottom: 1px solid #eee; */
    background: #f8f9fa;
}

.amlab-popup-title {
    margin: 0;
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    color: #b34b1e;
}

/* Popup Body */
.amlab-popup-body {
    padding: 0;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

/* Popup Layout 2 cột */
.amlab-popup-layout {
    display: flex;
    height: 100%;
    max-height: calc(90vh - 80px);
}

/* Cột trái: Sidebar items */
.amlab-popup-left {
    width: 280px;
    min-width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.amlab-items-sidebar {
    padding: 20px;
}

.amlab-sidebar-title {
    margin: 0 0 20px 0;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.amlab-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amlab-sidebar-item {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
}

.amlab-sidebar-item:hover {
    background: #fff9e6;
    /* border-color: #ffc800; */
}

.amlab-sidebar-item.active {
    background: rgb(255, 233, 152);
    /* border-color: #ffc800; */
}

.amlab-sidebar-item-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    flex-basis: 35%;
    
}

.amlab-sidebar-item-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.amlab-sidebar-item-name {
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 500;
    color: #333;
    flex-grow: 1;
    flex-basis: 65%;
}

/* Cột phải: Stores và Gallery */
.amlab-popup-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8f9fa;
}

/* Phần trên: Stores */
.amlab-popup-right-top {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
    border-bottom: 1px solid #e0e0e0;
    min-height: 0;
}

.amlab-stores-title {
    margin: 0 0 20px 0;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.amlab-stores-container {
    padding: 0 20px;
}

/* Phần dưới: Gallery */
.amlab-popup-right-bottom {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
    background: #fafafa;
    min-height: 0;
    max-height: 50%;
}

.amlab-gallery-title {
    margin: 0 0 20px 0;
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.amlab-gallery-container {
    min-height: 150px;
}

.amlab-gallery-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.amlab-gallery-placeholder p {
    margin: 0;
    font-size: 14px;
}

.amlab-gallery-swiper {
    width: 100%;
    padding: 10px 0;
}

.amlab-gallery-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.amlab-gallery-swiper .swiper-slide {
    width: 100%;
    height: auto;
    margin: 0 !important;
}

.amlab-gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* width: 30%;
    min-width: 150px; */
}

.amlab-gallery-item:active {
    cursor: grabbing;
}

.amlab-gallery-item:hover {
    /* transform: scale(1.05); */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.amlab-no-gallery {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.amlab-no-gallery p {
    margin: 0;
    font-size: 14px;
}

/* Loading State */
.amlab-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.amlab-loading p {
    margin: 0;
    font-size: clamp(14px, 1.3vw, 18px);
}

/* No Stores */
.amlab-no-stores {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.amlab-no-stores p {
    margin: 0;
    font-size: clamp(14px, 1.3vw, 18px);
}

/* Stores List */
.amlab-stores-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Store Item */
.amlab-store-item {
    display: flex;
    gap: 20px;
    padding: 6px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
    margin-bottom: 15px;
    width: auto !important;
    min-width: 33.3%;
    margin: 0 !important;
}

.amlab-store-item:hover {
    border-color: #ffc800;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.1);
    /* transform: translateY(-2px); */
}

.amlab-store-item.active {
    border-color: #ffc800;
    box-shadow: 0 0 0.625rem rgb(224 224 224);
}

/* Store Image */
.amlab-store-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.amlab-store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Store Info */
.amlab-store-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* gap: 8px; */
}
.amlab-store-info .flex-center{
    display: flex;
    align-items: center;
    gap: 5px;
}
.amlab-store-name {
    margin: 0 0 5px 0;
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 500;
    color: #000;
}

.amlab-store-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(12px, 1.1vw, 14px);
    line-height: 1;
    /* color: #f39c12; */
}

.rating-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.amlab-store-hours,
.amlab-store-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(12px, 1.1vw, 14px);
    color: #828282;
}

.hours-icon,
.price-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.amlab-store-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #828282;
    text-decoration: none;
    border-radius: 6px;
    font-size: clamp(10px, 1.1vw, 12px);
    font-weight: 400;
    transition: background 0.3s ease;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.amlab-store-map-link:hover {
    background: #2980b9;
}

.map-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.amlab-store-gallery {
    margin-top: 10px;
    font-size: clamp(11px, 1vw, 15px);
    color: #999;
}

/* Error Messages */
.amlab-error {
    padding: 15px;
    background: #fee;
    color: #c33;
    border-radius: 6px;
    margin: 20px 0;
}

.amlab-no-items {
    padding: 15px;
    background: #f0f0f0;
    color: #666;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}
.amlab-store-card{
    display: flex;
    gap: 5px;
}
.swiper-slide.list__cuisine--item.swiper-slide-active {
    border: 0.125rem solid #ffc800;
}

.hanoi__cuisine--content .mySwiper .swiper-button-next,
.hanoi__cuisine--content .mySwiper .swiper-button-prev {
    width: 39rem;
    height: 40rem;
    top: 1%;
    opacity: 0;
}

.hanoi__cuisine--content .swiper-button-next:after {
    content: "";
    position: absolute;
    background-image: url("/wp-content/uploads/2024/04/Group-1000004123.svg");
    background-repeat: no-repeat;
    background-position: center;
    width: 5rem;
    height: 2.5rem;
}

.hanoi__cuisine--content .swiper-button-prev:after {
    content: "";
    position: absolute;
    background-image: url("/wp-content/uploads/2024/04/Group-1000004123-1.svg");
    background-repeat: no-repeat;
    background-position: center;
    width: 5rem;
    height: 2.5rem;
}

.close_landscape__popup {
    position: absolute;
    left: 50%;
    bottom: 90%;
    z-index: 1;
    background: white;
    padding: 0.5rem;
    box-shadow: rgb(50 50 93 / 25%) 0 50px 100px -20px,
        rgb(0 0 0 / 30%) 0 30px 60px -30px;
    border-radius: 50%;
}

.cuisine__content--button--wrapper button {
    padding: 0 1.25rem !important;
    border-radius: 0.5rem;
}



/* Responsive */
@media (max-width: 64em) {
    .amlab-popup-overlay{
        padding: 0 !important;
    }
    .amlab-slider-container {
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100vw;
    }
    .amlab-slider-container .swiper {
        width: 100vw;
        perspective: 1400px;
    }
    .row.hanoi__cuisine--content .large-12{
        padding: 0 !important;
    }
    .hanoi-cuisine-bg img{
        object-fit: cover;
        height: 50rem;
        max-width: none !important;
    }
    .amlab-slider-container .swiper .swiper-slide-active .eye-button,
    .amlab-slider-container .swiper-button-next,
    .amlab-slider-container .swiper-button-prev{
        display: none;
    }
    .single.box_item_slide{
        overflow: visible;
    }
    .amlab-slider-container .swiper .swiper-slide-active .hanoi__cuisine--price{
        position: relative;
        bottom: 0;
        left: 50%;
        padding: 5px;
        transform: translate(-50%, -40%);
        width: 90vw;
        z-index: 1000;
    }
    .amlab-item-image {
        height: 200px;
    }
    
    .amlab-popup-content {
        max-width: 100%;
        max-height: 95vh;
        /* margin: 10px; */
        bottom: -100px;
    }
    
    .amlab-popup-header {
        padding: 20px;
    }
    
    .amlab-popup-layout {
        flex-direction: column;
        max-height: calc(95vh - 80px);
    }
    
    .amlab-popup-left {
        width: 100%;
        min-width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .amlab-items-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
    }
    
    .amlab-sidebar-item {
        min-width: 120px;
        flex-direction: column;
        text-align: center;
    }
    
    .amlab-popup-right {
        flex: 1;
        min-height: 0;
    }
    
    .amlab-popup-right-top,
    .amlab-popup-right-bottom {
        padding: 15px;
    }
    
    .amlab-popup-right-bottom {
        max-height: 40%;
    }
    
    .amlab-store-item {
        flex-direction: column;
    }
    
    .amlab-store-image {
        width: 100%;
        height: 200px;
    }
    
    .amlab-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
   
}