#amenities-container.amenities-collapsed {
    max-height: 400px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
}
#amenities-container.amenities-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
	border-radius: 0 0 0.5rem 0.5rem;
}
#amenities-container.amenities-expanded {
    max-height: 5000px;
    transition: max-height 0.8s ease-in-out;
}
#amenities-container.amenities-expanded::after {
    display: none;
}
#show-all-amenities-btn {
    margin-top: 10px;
    width: auto;
    display: inline-block;
    border: none;
    box-shadow: none;
    border-radius: 5px;
    text-transform: inherit;
    font-weight: 500;
}
/* Styles cho Gallery */
.row.slider-single-homestay > .col {
    padding: 0 5px 10px;
}
.row.slider-single-homestay > .col.large-3 .img:first-child {
    margin-bottom: 10px;
}
.row.slider-single-homestay > .col .img img {
    border-radius: 10px;
}
.homestay-gallery .homestay-gallery-item {
    position: relative;
    margin-bottom: 20px;
}
.homestay-gallery .homestay-gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.homestay-gallery .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
}
.homestay-gallery .remaining-count {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
}
.slider-single-homestay .img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Styles cho Xếp hạng sao với Font Awesome */
.address-homestay {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 15px;
	color: #4b5563;
	gap: 8px;
}
.address-homestay .homestay-breadcrumbs {
    width: fit-content;
    margin-right: 10px;
    padding-right: 10px;
    line-height: 18px;
    border-right: 1px solid #333;
}
.address-homestay .dot{
	display: block;
    width: 3px;
    height: 3px;
    background: #4b5563;
}
.homestay-rating .fa-star {
    font-size: 14px;
    margin-right: 0px;
}
.homestay-rating .fa-solid.fa-star {
    color: #f5c518;
}
.homestay-rating .fa-regular.fa-star {
    color: #333131;
}

/* Styles cho Collapse trang Single Homestay */
.homestay-details {
    margin-top: 20px;
}
.homestay-details h2 {
    font-size: 24px;
    margin-bottom: 10px;
}
.panel.panel-flat {
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
.panel-heading {
    position: relative;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-heading h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 550;
    color: #007bff;
}
.panel.panel-flat:not(.panel-collapsed) h3 {
    color: #ff8c00;
}
.heading-elements a {
    display: block;
    background: #cce3fe;
    color: #0069ad;
    width: 24px;
    height: 24px;
    text-align: center;
    border-radius: 50%;
    line-height: 23px;
}
.heading-elements a .fa-solid.fa-chevron-down {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    font-size: 13px;
}
.panel-collapsed .fa-solid.fa-chevron-down {
    transform: rotate(180deg);
}
.panel:not(.panel-collapsed) .panel-body {
    max-height: 0;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.panel.panel-flat:not(.panel-collapsed) .panel-body {
    max-height: 100%;
    padding: 15px;
}
.panel .panel-body p {
    margin-bottom: 12px;
}
.panel .panel-body ul {
    margin-bottom: 0;
}
.panel .panel-body ul,
.panel .panel-body ol {
    margin-left: 20px;
}
.panel.panel-flat .panel-body {
    display: block;
}
.panel.panel-flat.panel-collapsed .panel-body {
    display: none;
}
.panel.panel-flat .rotate-180 {
    transition: transform 0.3s ease;
}
.panel.panel-flat.panel-collapsed .rotate-180 {
    transform: rotate(0deg);
}
ul.amenities-list li{
	list-style: none;
	margin-left: 0 !important;
	display: flex;
}
ul.amenities-list li .amenity-icon{
	margin-right: 6px;
}
/* Styles cho Main Breadcrumb */
.main-breadcrumbs {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}
.main-breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}
.main-breadcrumbs a:hover {
    text-decoration: underline;
}
.main-breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}
.main-breadcrumbs .current {
    color: #333;
    font-weight: 500;
}

/* Styles cho Thông tin cơ bản về Homestay */
.homestay-basic-info {
    background: #f5f5f5;
    padding: 30px 20px 17px;
    border-radius: 10px;
}
.homestay-basic-info h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}
.info-item {
    padding: 5px 0;
}
.info-item:last-child {
    border-bottom: none;
}
.info-item .info-label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    font-size: 18px;
    margin-bottom: 12px;
}
.info-item .info-label i {
    display: flex;
    font-size: 16px;
    padding: 10px;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background: #fff;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
}
.info-item .info-value,
.homestay-basic-info-code {
    color: #333;
}
.basic-info-item .basic-info-value {
    font-weight: 600;
}

/* CSS Single Homestay */
.page-single-homestay {
    background: #f9fafb;
}
.single-homestay-section1,.single-homestay-section2,.single-homestay-section3 {
    padding-bottom: 0 !important;
}
.single-homestay-section1 h1.page-title {
    color: #ea830e;
}
.single-homestay-section1 .row1 > .col.large-12,
.single-homestay-section1 .row3 > .col {
    padding-bottom: 0;
}
.homestay-details-header {
    text-align: left;
}
.homestay-details-header h2 {
    color: #051128;
    font-size: 28px;
    margin-bottom: 5px;
}
.homestay-room-item{
	padding: 15px;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
	margin-bottom: 20px;
}
.homestay-room-item .col-room-info .room-info{
	display: flex;
    justify-content: space-between;
}
.homestay-room-item .col-room-info .room-info .room-title{
	max-width: 70%;
	font-size: 1.125rem;
    line-height: 1.75rem;
}
.homestay-room-item .col-room-info .room-info .room-price{
	margin-bottom: 0;
	font-size: 1.125rem;
    line-height: 1.75rem;
	font-weight: 700;
	color: #e24d14;
}
.homestay-room-item .col-room-info .room-description{
	font-size: 15px;
	margin-bottom: 10px;
	color: #6b7280;
}
.homestay-room-item .col-room-info .room-description p{
	margin-bottom: 9px;
}
.homestay-room-item ol.flickity-page-dots{
    left: 0;
    right: 0;
    width: 100%;
}
.room-gallery.img,.room-gallery.img .img-inner,.room-gallery.img img{
	border-radius: 0.5rem;
}
.room-slider-item .flickity-prev-next-button {
    width: 30px;
    height: 30px;
}
.room-slider-item .flickity-prev-next-button svg {
    padding: 7px;
}
.facility-item {
	gap: 6px;
}
.facility-item i{
	color: var(--primary-color);
}
.homestay-content-item{
	padding: 20px 0;
	border-bottom: 1px solid #e5e7eb;
}
.homestay-content-item h2{
	color: var(--primary-color);
}
.homestay-content-item h3{
	color: #007bff;
}
.facilities-homestay{
	padding-bottom: 0;
}
/* Styles cho Menu cố định */
.tabbable.sidebar-detached {
    z-index: 1000;
    width: 100%;
    transition: all 0.3s ease;
}
.tabbable.sidebar-detached ul {
    background: #fff;
}
.tabbable.sticky {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 1220px;
    border-radius: 16px;
    padding: 0;
}
.ui-datepicker td{
	padding: 2px !important;
}
.nav-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ddd;
}
.nav-tabs li {
    margin: 0;
}
.nav-tabs li a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: border-bottom 0.3s ease;
}
.nav-tabs li.active a {
    border-bottom: 3px solid #007bff;
    color: #007bff;
}
.nav-tabs li a:hover {
    border-bottom: 3px solid #007bff;
    color: #007bff;
}

/* Styles cho các section trang chi tiết homestay */
.tong-quan-homestay h2 {
    color: #051128;
}
.tong-quan-homestay p:last-child{
	margin-bottom: 0;
}
/* CSS cho Menu cố định Single Homestay */
.sidebar-detached ul.nav-simple {
    border-bottom: 1px solid #ddd;
    border-radius: 0 0 16px 16px;
}
.sidebar-detached ul.nav-simple li {
    margin: 0;
}
.sidebar-detached ul.nav-simple li a {
    padding: 10px 20px;
    font-weight: normal;
    font-size: 16px;
}
.sidebar-detached ul.nav-simple li a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 100%;
    border-bottom: 3px solid transparent;
    transition: all ease-in-out .15s;
}
.sidebar-detached ul.nav-simple li.active a:after {
    transition: all ease-in-out .15s;
    border-bottom-color: #051128;
}
.sidebar-detached ul.nav-simple li:first-child a:after {
    border-bottom-left-radius: 16px;
}
.sidebar-detached ul.nav-simple li.active a {
    color: #051128;
}

a.select-room-btn{
	border: none;
    width: fit-content;
    height: 50px;
	min-width: 200px;
    padding: 0 20px;
    border-radius: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #ea830e;
    cursor: pointer;
    transition: all 450ms 
ease-in-out;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}
a.select-room-btn:hover{
	color: #fff;
	background: linear-gradient(0deg, #ffa887, #ea830e);
    box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.4), inset 0px -4px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 4px rgba(255, 255, 255, 0.2), 0px 0px 180px 0px #945626;
    transform: translateY(-2px);
}
/* Booking Widget */
.text-gray{
	color: #6b7280;
}
.homestay-booking-box {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.homestay-booking-box .homestay-price{
	margin-bottom: 0;
    font-size: 1.3rem;
    line-height: 2rem;
    font-weight: 700;
}
.homestay-booking-box .homestay-price span.text-primary{
	color: var(--primary-color);
}
.homestay-booking-box .homestay-price span.text-gray{
	font-size: 15px;
}
.homestay-booking-box .booking-form label{
	margin-bottom: 2px;
}
.homestay-booking-box .booking-form input{
	border: 1px solid #ddd;
	margin-bottom: 0;
}
.homestay-booking-box .datepicker-container {
    margin: 10px 0;
    display: flex;
	flex-direction: column;
    gap: 10px;
}
.homestay-booking-box input,.homestay-booking-box select {
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}
.homestay-booking-box input:focus,.homestay-booking-box select:focus {
    outline: none;
    border-color: #007bff;
}
.homestay-booking-box .btn-submit .btn-link{
	width: 100%;
    border-radius: 0.5rem;
    height: 45px;
    text-transform: inherit;
    font-size: 17px;
}
.homestay-booking-box .calendar-icon {
    position: absolute;
    right: 10px;
    top: 24px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #007bff;
	pointer-events: none;
    cursor: pointer;
}
@media screen and (max-width: 849px) {
    .homestay-booking-box {
        padding: 15px;
    }
    .homestay-booking-box .text-large {
        font-size: 18px;
    }
    .homestay-booking-box .calendar-icon {
        font-size: 14px;
        right: 8px;
    }
}

/* Đảm bảo nút ĐẶT HOMESTAY cố định vẫn hiển thị */
.fixed-homestay-button {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    z-index: 1000;
    cursor: pointer;
}
@media (max-width: 991px) {
    .fixed-homestay-button {
        display: block;
    }
}

/* CSS cho Mobile */
@media screen and (max-width: 849px) {
    .row.slider-single-homestay > .col.large-3 {
        flex-basis: 50%;
        max-width: 100%;
    }
    .single-homestay-section2 .row > .col.large-6 {
        flex-basis: 100%;
        max-width: 100%;
    }
    .basic-info-item {
        flex: 1 1 100%;
    }
    .sidebar-detached ul.nav-simple {
        display: flex;
        flex-flow: unset;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        margin-bottom: 15px;
    }
    .sidebar-detached ul.nav-simple li {
        margin: 0;
        flex-shrink: 0;
        margin-right: 0;
    }
    .tabbable.sticky {
        top: 70px;
        box-shadow: none;
    }
    .sidebar-detached ul.nav-simple li a {
        padding: 10px 10px;
    }
    .panel.panel-flat {
        margin-bottom: 10px;
    }
    .panel-heading {
        padding: 8px 12px;
        font-size: 14px;
    }
    .panel:not(.panel-collapsed) .panel-body {
        padding: 10px;
        line-height: 1.5;
        max-height: 100%;
    }
    .homestay-details-header h2 {
        font-size: 20px;
    }
    .homestay-booking-box {
        position: static !important;
        width: 100% !important;
    }
	.address-homestay {
		flex-direction: column;
		align-items: flex-start;
	}
	.address-homestay .dot{
		display: none;
	}
	.single-homestay-section2 .row3>.col{
		padding-bottom: 0;
	}
	.single-homestay-section3{
		padding-top: 0 !important
	}
	.row.facilities-list>.col.large-6{
		padding-bottom: 10px;
	}
	.homestay-room-item .col-room-info .room-info {
		flex-direction: column;
		margin-bottom: 10px;
	}
	.homestay-room-item .col-room-info .room-info .room-title {
		max-width: 100%;
		line-height: 1rem;
	}
	.homestay-room-item .col-room-info .room-info .room-price {
		width: 100%;
	}
}

/* Styles cho Modal Popup */
#booking-confirmation-form input{
	border: 1px solid #ddd;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    z-index: 1;
}
.modal-close:hover {
    color: #333;
}
.confirmation-modal h3,
.confirmation-modal h4 {
    color: #051128;
    margin-bottom: 20px;
}
.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}
.form-row button{
	border-radius: 0.5rem;
	margin-right: 0;
}
.form-row input,
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 14px;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #007bff;
}
.required {
    color: red;
}
.button.expand {
    width: 100%;
}
.modal-icon {
    font-size: 48px;
    color: #28a745;
    text-align: center;
    margin-bottom: 15px;
}
#thank-you-modal h3 {
    color: #28a745;
    text-align: center;
}
#thank-you-modal p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}
.text-xs {
    font-size: 12px;
}
.text-gray-500 {
    color: #6b7280 !important;
}
.text-orange-600 {
    color: #ea830e !important;
}

/* Responsive cho Modal */
@media (max-width: 849px) {
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    .modal-overlay {
        padding: 10px;
    }
}