﻿#formQuickOrder .form-select, #formQuickOrder .form-control {
    background-color: rgba(255, 255, 255, .79);
}

#formQuickOrder .form-floating > .form-select ~ label::after, #formQuickOrder .form-floating > .form-control ~ label::after {
    background-color: transparent;
}

/* Chrome, Safari, Edge, Opera */
#formQuickOrder input[type=number]::-webkit-outer-spin-button,
#formQuickOrder input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
#formQuickOrder input[type=number] {
    -moz-appearance: textfield;
}

/* List */
.heading {
    height: 600px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

    .heading::after {
        content: '';
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.48) 100%);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 0;
    }

    .heading .product-banner {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        width: 100%;
        height: 100%;
    }

.sort-item {
    display: flex;
    justify-content: space-between;
}

.product-search {
    position: absolute;
    bottom: 64px;
    left: 0;
    right: 0;
    z-index: 1;
}

    .product-search .mdi-animation::before {
        rotate: 225deg;
        font-size: 10px;
    }

    .product-search .input-group {
        border: none !important;
        background-color: transparent !important;
        gap: 0 !important;
    }

        .product-search .input-group > :not(:first-child) {
            margin-left: 0 !important;
        }

        .product-search .input-group > div.form-floating > :is(.form-control, .form-select) {
            border: 1px solid var(--search-border-color) !important;
            border-radius: 0 !important;
            box-shadow: none !important;
        }

        /* Ô nằm sau bỏ viền bên trái */
        .product-search .input-group > div.form-floating:nth-of-type(n+2) > :is(.form-control, .form-select) {
            border-left: none !important;
        }

        /* Bo góc ô đầu tiên */
        .product-search .input-group > div.form-floating:first-of-type > :is(.form-control, .form-select) {
            border-top-left-radius: var(--bs-border-radius) !important;
            border-bottom-left-radius: var(--bs-border-radius) !important;
        }

.flex-lg-first {
    flex: 5 !important;
}

.flex-lg-equal {
    flex: 3 !important;
}

/* Detail */
.prod-title {
    max-width: 70%;
}

.btn-gallery {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: #fff;
    padding: 7px 14px;
    border: .5px solid;
    border-radius: var(--bs-border-radius);
}

#bookingForm iframe {
    width: 100%;
    height: 168px;
}
/* Image Gallery */
.image-gallery {
    --image-radius: var(--bs-border-radius);
}

    .image-gallery a {
        display: block;
        overflow: hidden;
        border-radius: var(--image-radius);
    }

    .image-gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s ease;
    }

    .image-gallery a:hover img {
        transform: scale(1.17) rotate(2deg);
    }

.gallery-single a {
    aspect-ratio: 2.68 / 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    height: 386px;
}

.gallery-main {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
}

.gallery-side {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-thumb {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-more {
    position: relative;
}

    .gallery-more::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        border-radius: var(--bs-border-radius-lg);
    }

.gallery-more-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* Order */
.order-container {
    padding: 0;
    background: #fff;
    max-width: 560px;
    overflow: hidden;
    border-radius: .5rem;
    margin: auto;
}

    .order-container .order-header {
        background: linear-gradient(110.49deg, #774AA1 0%, #2C1245 100%);
        text-align: center;
        padding: 20px 24px;
    }

    .order-container .order-detail {
        border: 1px solid var(--bs-border-color);
        border-left: 5px solid var(--bs-primary);
        border-radius: .5rem;
        margin: 1rem auto;
        padding: .5rem 1rem;
    }

        .order-container .order-detail tr td:first-child {
            white-space: nowrap;
            vertical-align: top;
        }

        .order-container .order-detail .order-name {
            vertical-align: baseline;
            overflow: hidden;
            text-overflow: ellipsis;
        }

#golfTab .nav-link {
    background-color: #fff;
    border: 0;
    color: #212529;
    font-weight: 500;
}

    #golfTab .nav-link.active {
        border-bottom: 3px solid var(--bs-primary);
        color: var(--bs-primary);
    }

/* Quick order */
#formQuickOrder .dropdown-pax,
#bookingForm .dropdown-pax {
    padding-top: 0;
    padding-bottom: 0;
    min-width: 286px;
}

#formQuickOrder .pax-select,
#formQuickOrder .room-select,
#bookingForm .pax-select,
#bookingForm .room-select {
    margin-left: auto;
}

    #formQuickOrder .pax-select .input-numb,
    #formQuickOrder .room-select .input-numb,
    #bookingForm .pax-select .input-numb,
    #bookingForm .room-select .input-numb {
        font-size: 16px;
        font-weight: 500;
        text-align: center;
        border: none !important;
        outline: none !important;
        padding: 0 !important;
        width: 36px;
        background: none;
    }

    #formQuickOrder .pax-select .btn-updown,
    #formQuickOrder .room-select .btn-updown,
    #bookingForm .pax-select .btn-updown,
    #bookingForm .room-select .btn-updown {
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        color: var(--bs-primary);
        border: 1px solid var(--bs-primary);
        border-radius: 100%;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .3s ease;
    }

        #formQuickOrder .pax-select .btn-updown.disabled,
        #formQuickOrder .room-select .btn-updown.disabled,
        #bookingForm .pax-select .btn-updown.disabled,
        #bookingForm .room-select .btn-updown.disabled {
            color: var(--bs-gray-400) !important;
            border: 1px solid var(--bs-gray-400) !important;
            background: none !important;
            cursor: default !important;
            pointer-events: none;
        }

@media (max-width: 991.98px) {
    .product-search .dropdown-menu {
        max-width: 300px;
    }

    .product-search .input-group {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

        .product-search .input-group > * {
            width: 100%;
        }

        .product-search .input-group > button[type="submit"] {
            grid-column: 1 / -1;
            padding: .75rem;
            margin-top: 1rem !important;
            border-radius: var(--bs-border-radius) !important;
        }

        .product-search .input-group > div.form-floating > :is(.form-control, .form-select) {
            border: 1px solid var(--search-border-color) !important;
            border-radius: 0 !important;
        }

        /* Các input và button ở vị trí chẵn */
        .product-search .input-group:has(> div.form-floating:last-of-type:nth-of-type(even)) > div.form-floating:nth-of-type(even) > :is(.form-control, .form-select) {
            border-left: none !important;
        }

        .product-search .input-group:has(> div.form-floating:last-of-type:nth-of-type(even)) > div.form-floating:nth-of-type(n+3) > :is(.form-control, .form-select) {
            border-top: none !important;
        }

        .product-search .input-group:has(> div.form-floating:last-of-type:nth-of-type(even)) > div.form-floating:first-of-type > :is(.form-control, .form-select) {
            border-top-left-radius: var(--bs-border-radius) !important;
        }

        .product-search .input-group:has(> div.form-floating:last-of-type:nth-of-type(even)) > div.form-floating:nth-of-type(2) > :is(.form-control, .form-select) {
            border-top-right-radius: var(--bs-border-radius) !important;
        }

        /* Các input và button ở vị trí lẻ */
        .product-search .input-group:has(> div.form-floating:last-of-type:nth-of-type(odd)) > div.form-floating:first-of-type {
            grid-column: 1 / -1;
        }

            .product-search .input-group:has(> div.form-floating:last-of-type:nth-of-type(odd)) > div.form-floating:first-of-type > :is(.form-control, .form-select) {
                border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0 !important;
            }

        .product-search .input-group:has(> div.form-floating:last-of-type:nth-of-type(odd)) > div.form-floating:nth-of-type(odd):not(:first-of-type) > :is(.form-control, .form-select) {
            border-left: none !important;
        }

        .product-search .input-group:has(> div.form-floating:last-of-type:nth-of-type(odd)) > div.form-floating:nth-of-type(n+2) > :is(.form-control, .form-select) {
            border-top: none !important;
        }

        /* Chung cho các input và button trong form search sản phẩm */
        .product-search .input-group > div.form-floating:first-of-type > :is(.form-control, .form-select) {
            border-bottom-left-radius: 0 !important;
        }

        .product-search .input-group > div.form-floating:nth-last-of-type(2) > :is(.form-control, .form-select) {
            border-bottom-left-radius: var(--bs-border-radius) !important;
        }

        .product-search .input-group > div.form-floating:last-of-type > :is(.form-control, .form-select) {
            border-bottom-right-radius: var(--bs-border-radius) !important;
        }
}

@media(max-width: 768px) {
    .prod-title {
        max-width: 100%;
    }

    .modal-dialog {
        max-width: 700px;
    }

    .gallery-grid {
        display: flex;
        overflow-x: auto;
        height: auto;
        gap: 1rem;
    }

        .gallery-grid a {
            flex-shrink: 0;
            height: 168px;
        }
}

@media(max-width: 576px) {
    .heading {
        height: fit-content;
    }

        .heading .product-banner {
            height: 275px;
        }

        .heading .product-search {
            position: relative;
            bottom: 0;
            padding: 2rem 1rem;
            background: linear-gradient(305deg, var(--bs-primary), #343280, var(--bs-primary));
        }

            .heading .product-search button[type=submit] {
                background-color: #fff;
                color: var(--bs-primary);
            }

    .image-container {
        display: flex !important;
        overflow-x: scroll;
        height: 168px;
    }

    #galleryCarousel {
        padding: 0;
    }

    .carousel-indicators {
        margin-left: 0;
    }

        .carousel-indicators.custom-thumbnails {
            left: 0;
            right: 0;
            width: 100%;
            padding: 0 16px;
        }

    .carousel-inner {
        height: auto;
    }

    .carousel-control-prev {
        left: 14px;
    }

    .carousel-control-next {
        right: 14px;
    }

    .carousel-index-badge {
        right: 7px;
    }
}
