/* Homestays Page Styles */

:root {
    --homestay-red: var(--brand-primary, #00D233);
    --homestay-red-dark: var(--brand-primary-hover, #00B82C);
    --homestay-brand-soft: var(--brand-primary-soft, #E5FBEB);
    --homestay-border: #e5e7eb;
    --homestay-text: var(--brand-text, #1a2e1f);
    --homestay-muted: #6d786d;
    --homestay-sand: #fff;
    --homestay-surface: #fff;
    --homestay-accent: var(--brand-accent, #00D233);
}

.homestay-shell {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.homestay-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--homestay-border);
    background:
        linear-gradient(
            105deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(229, 251, 235, 0.55) 58%,
            rgba(255, 255, 255, 0.35) 78%,
            rgba(255, 255, 255, 0.2) 100%
        ),
        var(--homestay-hero-image, none) center 42% / cover no-repeat,
        linear-gradient(180deg, #fff 0%, #fff 66%);
}

/* Breadcrumb bar — trang chi tiết (căn giữa dọc, không sát viền dưới) */
.homestay-page-breadcrumb-bar,
.tour-page-breadcrumb-bar {
    padding: 0.875rem 0 1.15rem;
}

.homestay-page-breadcrumb-bar .flex,
.tour-page-breadcrumb-bar .flex {
    align-items: center;
    min-height: 1.25rem;
    line-height: 1.4;
}

.homestay-page-breadcrumb-bar .material-symbols-outlined,
.tour-page-breadcrumb-bar .material-symbols-outlined {
    line-height: 1;
}

.homestay-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 46px;
    color: #9aa3b2;
    font-size: 14px;
    font-weight: 500;
}

.homestay-breadcrumb a {
    color: #8b95a7;
    transition: color 0.2s ease;
}

.homestay-breadcrumb a:hover {
    color: var(--homestay-red);
}

.homestay-breadcrumb .material-symbols-outlined {
    font-size: 16px;
}

.homestay-breadcrumb span:last-child {
    color: var(--homestay-text);
    font-weight: 700;
}

.homestay-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
    gap: 40px;
    align-items: center;
    min-height: 142px;
    padding: 18px 0 46px;
}

.homestay-hero__intro {
    min-width: 0;
}

.homestay-hero h1 {
    margin: 0;
    color: var(--homestay-text);
    font-size: clamp(20px, 2.1vw, 26px);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homestay-hero p {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--homestay-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}

.homestay-hero-search {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px;
    padding-left: 18px;
    border: 1px solid var(--homestay-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.homestay-hero-search .material-symbols-outlined {
    color: #9aa3b2;
    font-size: 22px;
}

.homestay-hero-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--homestay-text);
    font-size: 14px;
}

.homestay-hero-search input::placeholder {
    color: #9aa3b2;
}

.homestay-hero-search button {
    min-width: 68px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--homestay-red);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 30, 60, 0.24);
}

.homestay-page {
    background: #F6F8FA;
    padding: 32px 0 0;
}

.homestay-sidebar {
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
    overflow-x: hidden;
}

@media (max-width: 1023px) {
    .homestay-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

/* Scrollbar hide utility */
.scrollbar-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Filter container transitions */
#homestay-filters-container {
    transition: transform 0.3s ease-out;
    overflow-x: hidden;
}

@media (min-width: 1024px) {
    #homestay-filters-container {
        padding: 0 !important;
        border: 0 !important;
        font-size: 0.9375rem;
        background: transparent !important;
        box-shadow: none !important;
    }

    #homestay-filters-container > .flex:first-child {
        display: none;
    }

    .homestay-sidebar .homestay-filter-panel {
        padding: 0.75rem 0.875rem;
    }

    .homestay-filter-panel__header > span:first-child {
        font-size: 0.875rem;
    }
}

#homestay-filters-backdrop {
    transition: opacity 0.3s;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Filter toggle button */
#homestay-filter-toggle {
    transition: all 0.2s ease;
}

.homestay-filter-panel {
    overflow: hidden;
    border: 1px solid var(--homestay-border) !important;
    border-radius: 22px !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.05);
}

.homestay-filter-panel__header {
    min-height: 64px;
    padding: 0 18px;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(90deg, var(--homestay-brand-soft) 0%, #fff 78%);
    color: #061126;
}

.homestay-filter-panel__header > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    font-weight: 900;
}

.homestay-filter-panel__header > span:first-child .material-symbols-outlined {
    color: var(--homestay-red);
    font-size: 21px;
}

.homestay-filter-panel__header > .material-symbols-outlined:last-child {
    color: #a2adbc !important;
}

.homestay-filter-panel > :not(.homestay-filter-panel__header) {
    margin: 16px 18px 18px !important;
}

.homestay-filter-panel select,
.homestay-filter-panel input[type="text"] {
    display: block;
    width: 100%;
    max-width: 200px;
    min-width: 0;
    margin-right: auto;
    box-sizing: border-box;
    border: 1px solid #e5eaf0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #4f5d6f;
    outline: 0;
}

.homestay-filter-panel select:focus,
.homestay-filter-panel input[type="text"]:focus {
    border-color: var(--homestay-red) !important;
    box-shadow: 0 0 0 3px rgba(0, 30, 60, 0.1) !important;
}

.homestay-filter-panel.is-collapsed > :not(.homestay-filter-panel__header) {
    display: none;
}

.homestay-filter-panel.is-collapsed .homestay-filter-panel__header > .material-symbols-outlined:last-child {
    transform: rotate(180deg);
}

.homestay-filter-stay-grid {
    display: grid;
    gap: 12px;
}

.homestay-filter-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #687386;
}

.homestay-filter-field__control {
    display: block;
    width: 100%;
    max-width: none;
    margin-right: 0;
}

.homestay-filter-amenities {
    display: flex;
    flex-direction: column;
    max-height: 17.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.15rem;
    padding: 0 0.15rem;
}

.homestay-filter-amenity {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.25rem;
    cursor: pointer;
    border-bottom: 1px solid #eef1f6;
    transition: background-color 0.15s ease;
}

.homestay-filter-amenity:last-child {
    border-bottom: none;
}

.homestay-filter-amenity:hover {
    background: rgba(248, 250, 252, 0.9);
}

.dark .homestay-filter-amenity {
    border-bottom-color: #2a3548;
}

.dark .homestay-filter-amenity:hover {
    background: rgba(30, 41, 59, 0.45);
}

.homestay-filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin: 0;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.homestay-filter-checkbox:focus-visible {
    outline: 2px solid rgba(0, 30, 60, 0.35);
    outline-offset: 2px;
}

.homestay-filter-amenity-input {
    border-radius: 0.2rem;
}

.homestay-filter-checkbox:checked {
    border-color: var(--homestay-red) !important;
    background-color: var(--homestay-red) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2L6.4 11.1L12.5 5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 0.75rem;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 3px rgba(0, 30, 60, 0.12);
}

.dark .homestay-filter-checkbox {
    border-color: #475569;
    background-color: #1a2238;
}

.homestay-filter-amenity__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: #94a3b8;
}

.homestay-filter-amenity-input:checked ~ .homestay-filter-amenity__icon {
    color: #64748b;
}

.homestay-filter-amenity__text {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    color: #334155;
}

.dark .homestay-filter-amenity__text {
    color: #e2e8f0;
}

.homestay-filter-amenity-input:checked ~ .homestay-filter-amenity__text {
    color: #0f172a;
    font-weight: 600;
}

.dark .homestay-filter-amenity-input:checked ~ .homestay-filter-amenity__text {
    color: #f8fafc;
}

.homestay-price-slider {
    --min-percent: 0%;
    --max-percent: 100%;
    position: relative;
    height: 28px;
    margin: 4px 0 0 !important;
}

.homestay-price-slider__track {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 999px;
    background:
        linear-gradient(
            to right,
            #e5eaf0 0%,
            #e5eaf0 var(--min-percent),
            var(--homestay-red) var(--min-percent),
            var(--homestay-red) var(--max-percent),
            #e5eaf0 var(--max-percent),
            #e5eaf0 100%
        );
}

.homestay-price-slider__range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
}

.homestay-price-slider__range:focus {
    outline: 0;
}

.homestay-price-slider__range::-webkit-slider-runnable-track {
    height: 5px;
    background: transparent;
}

.homestay-price-slider__range::-moz-range-track {
    height: 5px;
    background: transparent;
}

.homestay-price-slider__range::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -5.5px;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    background: var(--homestay-red);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 0 4px rgba(0, 30, 60, 0.08);
}

.homestay-price-slider__range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 999px;
    background: var(--homestay-red);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 0 4px rgba(0, 30, 60, 0.08);
}

.homestay-price-slider__range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 5px rgba(0, 30, 60, 0.18);
}

.homestay-price-slider__range:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 5px rgba(0, 30, 60, 0.18);
}

.homestay-price-hints {
    display: flex;
    justify-content: space-between;
    margin: 0 18px 18px !important;
    color: var(--homestay-red);
    font-size: 12px;
    font-weight: 800;
}

.homestay-filter-location,
.homestay-filter-category {
    border-radius: 999px;
}

.homestay-filter-location:checked,
.homestay-filter-category:checked {
    background-image: none;
    background-color: var(--homestay-red) !important;
    box-shadow: 0 0 0 3px rgba(0, 30, 60, 0.12), inset 0 0 0 3px #fff;
}

.location-count {
    min-width: 1.5rem;
    color: #98a2b3 !important;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.homestay-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    border: 1px solid #e7e9f3;
    border-radius: 999px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.05);
}

.homestay-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.homestay-toolbar__summary {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid #e7e9f3;
    background: #fff;
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.05);
}

.homestay-toolbar__summary-icon {
    color: var(--homestay-red);
    font-size: 18px;
    line-height: 1;
}

.homestay-toolbar__sort {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.homestay-toolbar__sort-label {
    margin: 0;
    color: #a2adbc;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
}

.homestay-toolbar__sort-select {
    min-width: 240px;
    height: 46px;
    padding: 0 42px 0 24px;
    border: 1px solid #e7e9f3;
    border-radius: 999px;
    background: #fff;
    color: var(--homestay-red);
    font-size: 15px;
    font-weight: 800;
    outline: 0;
}

.homestay-toolbar__sort-select:focus {
    border-color: var(--homestay-red);
    box-shadow: 0 0 0 3px rgba(0, 30, 60, 0.1);
}

.homestay-view-toggle__btn {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #7d8795;
    cursor: pointer;
}

.homestay-view-toggle__btn span {
    font-size: 20px;
}

.homestay-view-toggle__btn:focus-visible {
    outline: 2px solid rgba(0, 30, 60, 0.35);
    outline-offset: 2px;
}

.homestay-view-toggle__btn.is-active {
    background: var(--brand-primary-soft, #e8eef4);
    color: var(--brand-primary);
}

.homestay-list-grid.is-list {
    grid-template-columns: 1fr !important;
    gap: 18px;
}

/* Homestay card */
.homestay-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.homestay-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem 0.85rem;
    min-width: 0;
}

.homestay-card__favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 30;
}

/* Trang chủ cũng load car-rental.css — tránh kéo giãn nút tym (left + right cùng lúc) */
.homestay-card .homestay-card__favorite.car-service-card__favorite {
    left: auto;
    right: 12px;
}

.homestay-card__location {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.35;
}

.homestay-card__location-icon {
    flex-shrink: 0;
    font-size: 0.9375rem;
    color: #94a3b8;
    margin-top: 0.05rem;
}

.homestay-card__location-text {
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
    word-break: break-word;
}

.homestay-list-grid.is-list .homestay-card__location-text {
    -webkit-line-clamp: 3;
}

.homestay-card__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.homestay-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: #1e293b;
    font-weight: 700;
}

.homestay-card__rating .homestay-star-icon {
    font-size: 1rem;
}

.homestay-card__rating strong {
    font-weight: 800;
}

.homestay-card__reviews-count {
    color: #64748b;
    font-weight: 500;
}

.homestay-card__stats-sep {
    color: #cbd5e1;
    font-weight: 400;
    user-select: none;
}

.homestay-card__bookings-count {
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.homestay-card__title {
    margin: 0;
    min-width: 0;
}

.homestay-card__title-link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.homestay-card__title-link:hover {
    color: var(--homestay-red, #c40012);
}

.homestay-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.homestay-card__book-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--homestay-red, #c40012);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.homestay-card__book-btn:hover {
    background: var(--homestay-red-dark, #a90010);
}

.homestay-card__book-btn .material-symbols-outlined {
    font-size: 1rem;
}

.dark .homestay-card__location,
.dark .homestay-card__reviews-count,
.dark .homestay-card__bookings-count {
    color: #94a3b8;
}

.dark .homestay-card__rating {
    color: #f1f5f9;
}

.dark .homestay-card__title-link {
    color: #f8fafc;
}

.homestay-summary__stats-line {
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
}

.homestay-summary__rating-score {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.homestay-summary__reviews-count {
    color: var(--homestay-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.homestay-summary__stats-sep {
    color: #cbd5e1;
    font-weight: 400;
}

.homestay-summary__bookings-count {
    color: var(--homestay-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.homestay-summary__rating-line .homestay-summary__reviews-count + .homestay-summary__stats-sep,
.homestay-summary__rating-line .homestay-summary__rating-score + .homestay-summary__reviews-count {
    /* no dot separator — uses | between groups */
}

.homestay-summary__rating-line .homestay-summary__reviews::before,
.homestay-summary__rating-line .homestay-summary__reviews-count::before {
    content: none;
    margin: 0;
}

/* Trang chủ — cùng thẻ với danh sách homestay */
.home-homestays .homestay-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-homestays .homestay-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.home-homestays .homestay-card__footer {
    margin-top: auto;
}

.homestay-card__media {
    position: relative;
    height: 12rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.homestay-card__media-link,
.homestay-card__gallery-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.homestay-card__gallery {
    display: none;
    width: 100%;
    height: 100%;
}

.homestay-card--has-gallery .homestay-card__gallery {
    position: absolute;
    inset: 0;
    z-index: 1;
}

@media (max-width: 1023px) {
    .homestay-card--has-gallery .homestay-card__media-link--static {
        display: none;
    }

    .homestay-card--has-gallery .homestay-card__gallery {
        display: block;
        position: relative;
        inset: auto;
    }
}

.homestay-card__gallery .swiper-wrapper,
.homestay-card__gallery .swiper-slide {
    height: 100%;
}

.homestay-card__gallery .swiper-slide {
    overflow: hidden;
}

.homestay-card__gallery-pagination.swiper-pagination {
    bottom: 10px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 5;
}

.homestay-card__gallery-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.homestay-card__gallery-pagination .swiper-pagination-bullet-active {
    width: 8px;
    height: 8px;
    background: #fff;
}

.homestay-card__gallery:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

.dark .homestay-card__media {
    background: #334155;
}

.homestay-card__media img,
.homestay-card__image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.homestay-card:hover .homestay-card__media-link img,
.homestay-card:hover .homestay-card__gallery-slide-link img,
.homestay-card:hover .homestay-card__media img,
.homestay-card:hover .homestay-card__image {
    transform: scale(1.05);
}

@media (max-width: 1023px) {
    .homestay-card--has-gallery:hover .homestay-card__gallery img,
    .homestay-card--has-gallery:hover .homestay-card__image {
        transform: none;
    }
}

.homestay-list-grid.is-list .homestay-card,
.homestay-list-grid.is-list .homestay-card:hover {
    transform: none;
}

.homestay-list-grid.is-list .homestay-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: stretch;
    min-height: 236px;
}

.homestay-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.car-service-card__favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #a2adbc;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.car-service-card__favorite:hover {
    color: #db2777;
    background: #fff1f2;
}

.car-service-card__favorite.is-favorited {
    color: #ec4899;
    background: #fff1f2;
    box-shadow: 0 5px 14px rgba(236, 72, 153, 0.2);
}

.car-service-card__favorite.is-favorited .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

.car-service-card__favorite .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

.homestay-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    max-width: calc(100% - 4.5rem);
    pointer-events: none;
}

.homestay-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    max-width: 100%;
    padding: 0.32rem 0.55rem;
    border-radius: 0.35rem;
    background: var(--homestay-red, #c40012);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgb(15 23 42 / 0.22);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homestay-card__badge--category {
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.homestay-card__badge-icon {
    flex-shrink: 0;
    font-size: 0.875rem;
    line-height: 1;
}

.homestay-card__badge--favorite .homestay-card__badge-icon {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.dark .homestay-card__badge {
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.35);
}

/* Homestay detail hero — listing badges on main image */
.homestay-hero-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 30;
    max-width: calc(100% - 1.5rem);
    pointer-events: none;
}

.homestay-hero-badges__listing.homestay-card__badges {
    position: static;
    top: auto;
    left: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    max-width: 100%;
}

.homestay-hero-views {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.28);
    pointer-events: none;
}

.homestay-hero-views__icon {
    font-size: 1.125rem;
    line-height: 1;
}

.homestay-hero-views__text {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

@media (min-width: 640px) {
    .homestay-hero-badges {
        top: 16px;
        left: 16px;
        max-width: calc(100% - 2rem);
    }
}

.homestay-card__address {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0 0.5rem;
    min-height: 1.25rem;
}

.homestay-card__address-icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    font-size: 1.125rem;
    line-height: 1;
    color: #94a3b8;
}

.homestay-card__address-text {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #64748b;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.dark .homestay-card__address-icon {
    color: #94a3b8;
}

.dark .homestay-card__address-text {
    color: #94a3b8;
}

.homestay-card__amenities {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.homestay-card__amenity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
    border-radius: 0.375rem;
    background: #f1f5f9;
    color: var(--homestay-red, #c40012);
}

.homestay-list-grid:not(.is-list) .homestay-card__amenity {
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
}

.homestay-list-grid.is-list .homestay-card__amenity {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    color: #475569;
    background: #f1f5f9;
}

.homestay-card__amenity-icon {
    flex-shrink: 0;
    font-size: 1.0625rem;
    line-height: 1;
}

.homestay-list-grid.is-list .homestay-card__amenity-icon {
    font-size: 0.9375rem;
}

.homestay-card__amenity-label {
    display: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 9.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}

.homestay-list-grid.is-list .homestay-card__amenity-label {
    display: inline;
}

.homestay-card__amenity--more {
    width: auto;
    min-width: 1.75rem;
    padding: 0 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    background: #e2e8f0;
}

.homestay-list-grid.is-list .homestay-card__amenity--more {
    background: var(--brand-primary-soft, #e8eef4);
    color: var(--homestay-red, var(--brand-primary));
}

.dark .homestay-card__amenity {
    background: rgb(51 65 85 / 0.55);
}

.dark .homestay-list-grid.is-list .homestay-card__amenity {
    color: #cbd5e1;
}

.dark .homestay-card__amenity--more {
    color: #94a3b8;
    background: rgb(71 85 105 / 0.55);
}

.homestay-card__price {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    color: var(--homestay-red);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.homestay-card__price--range {
    font-size: 0.875rem;
}

.homestay-card__views-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.76);
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.homestay-list-grid.is-list .homestay-card__media {
    height: 236px;
    max-height: 236px;
    min-height: 236px;
    align-self: start;
}

.homestay-list-grid.is-list .homestay-card__body {
    min-height: 236px;
    padding: 22px 24px;
}

.homestay-card__title {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .homestay-card__title {
    color: #fff;
}

.homestay-list-grid.is-list .homestay-card__body .homestay-card__title {
    font-size: 1.0625rem;
}

.homestay-list-grid.is-list .homestay-card__body .prose {
    max-width: 720px;
}

/* Filter checkbox hover */
.homestay-filter-location:hover {
    cursor: pointer;
}

/* Pagination link transitions */
.homestay-pagination-link {
    transition: all 0.2s ease;
}

.homestay-pagination-link:hover {
    transform: scale(1.05);
}

/* Loading state */
.loading-state {
    opacity: 0.6;
    pointer-events: none;
}

/* Price input formatting */
#homestay-min-price,
#homestay-max-price {
    transition: border-color 0.2s ease;
}

/* Select dropdown styling */
#homestay-filter-sort {
    transition: border-color 0.2s ease;
}

/* Filled yellow star icons (global .material-symbols-outlined uses FILL 0) */
.homestay-star-icon {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    color: #facc15 !important;
}

.homestay-filter-stars-list,
.homestay-filter-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 11rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.homestay-filter-star-row,
.homestay-filter-review-tier {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2rem;
    padding: 0.25rem 0;
    cursor: pointer;
}

.homestay-filter-star-row__icons {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

.homestay-filter-star-row__icon {
    font-size: 1.125rem;
    line-height: 1;
}

.homestay-filter-star-row__icon.is-filled {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    color: #facc15;
}

.homestay-filter-star-row__icon.is-muted {
    color: #e2e8f0;
}

.dark .homestay-filter-star-row__icon.is-muted {
    color: #475569;
}

.homestay-filter-review-tier__label {
    font-size: 0.875rem;
    line-height: 1.35;
    color: #475569;
}

.dark .homestay-filter-review-tier__label {
    color: #cbd5e1;
}

.homestay-filter-review-tier:hover .homestay-filter-review-tier__label,
.homestay-filter-star-row:hover .homestay-filter-star-row__icons {
    color: #334155;
}

@media (max-width: 1023px) {
    .homestay-hero__content {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .homestay-hero-search {
        max-width: 560px;
    }

    .homestay-sidebar {
        flex: 0 0 auto;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .homestay-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .homestay-show.homestay-detail {
        padding-top: 1.5rem;
    }

    .homestay-breadcrumb {
        padding-top: 14px;
        gap: 4px;
        font-size: 11px;
    }

    .homestay-breadcrumb .material-symbols-outlined {
        font-size: 13px;
    }

    .homestay-hero__content {
        min-height: 0;
        gap: 12px;
        padding: 10px 0 16px;
    }

    .homestay-hero h1 {
        font-size: 1.2rem;
        line-height: 1.25;
        text-align: left;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .homestay-hero p {
        margin-top: 6px;
        font-size: 0.8125rem;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .homestay-hero-search {
        grid-template-columns: 18px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 42px;
        border-radius: 999px;
        padding: 4px 4px 4px 12px;
        box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
    }

    .homestay-hero-search .material-symbols-outlined {
        font-size: 18px;
    }

    .homestay-hero-search input {
        font-size: 0.8125rem;
        padding: 0.35rem 0;
    }

    .homestay-hero-search button {
        grid-column: auto;
        width: auto;
        min-width: 56px;
        height: 34px;
        font-size: 0.8125rem;
        box-shadow: none;
    }

    .homestay-page {
        padding-top: 14px;
        padding-bottom: 20px;
    }

    .homestay-page .mb-6.space-y-4 {
        margin-bottom: 0.85rem;
    }

    .homestay-toolbar {
        gap: 8px;
    }

    .homestay-toolbar__summary,
    .homestay-toolbar__sort {
        width: 100%;
    }

    .homestay-toolbar__summary {
        min-height: 36px;
        padding: 0 12px;
        gap: 4px;
        font-size: 0.75rem !important;
        border-radius: 999px;
    }

    .homestay-toolbar__summary-icon {
        font-size: 15px;
    }

    .homestay-toolbar__sort {
        margin-left: 0;
        justify-content: space-between;
        gap: 8px;
    }

    .homestay-toolbar__sort-label {
        font-size: 0.6875rem;
        letter-spacing: 0.02em;
    }

    .homestay-toolbar__sort-select {
        min-width: 0;
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        height: 34px;
        padding: 0 30px 0 12px;
        /* Override brand.css mobile select { font-size: 16px !important } */
        font-size: 13px !important;
        font-weight: 600;
        line-height: 1.2;
        background-position: right 12px center;
    }

    .homestay-view-toggle {
        display: none;
    }

    #homestay-filter-toggle {
        width: 100%;
        min-height: 36px;
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 0.65rem;
    }

    #homestay-filter-toggle .material-symbols-outlined {
        font-size: 16px !important;
    }

    .homestay-page .homestay-list-grid {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .homestay-page .homestay-card__body {
        gap: 0.35rem;
        padding: 0.65rem 0.7rem 0.75rem;
    }

    .homestay-page .homestay-card__title,
    .homestay-page .homestay-card__title-link {
        font-size: 0.9375rem;
        line-height: 1.3;
    }

    .homestay-page .homestay-card__location {
        font-size: 0.6875rem;
    }

    .homestay-page .homestay-card__stats {
        font-size: 0.75rem;
    }

    .homestay-page .homestay-card__price {
        font-size: 0.9375rem;
    }

    .homestay-page .homestay-page-features {
        margin-top: 0.75rem;
    }

    .homestay-list-grid.is-list .homestay-card {
        display: block;
        min-height: 0;
    }

    .homestay-list-grid.is-list .homestay-card__media {
        height: 10.5rem;
        min-height: 0;
    }

    .homestay-list-grid.is-list .homestay-card__body {
        min-height: 0;
        padding: 0.85rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .homestay-card:hover {
        box-shadow: none;
    }
}

/* Rich text from CKEditor / RichEditor on homestay detail */
.homestay-rich-content {
    line-height: 1.75;
    font-size: 1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.homestay-rich-content > :first-child {
    margin-top: 0;
}

.homestay-rich-content > :last-child {
    margin-bottom: 0;
}

.homestay-rich-content h1,
.homestay-rich-content h2,
.homestay-rich-content h3,
.homestay-rich-content h4 {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.homestay-rich-content h1 { font-size: 1.5rem; }
.homestay-rich-content h2 { font-size: 1.25rem; }
.homestay-rich-content h3 { font-size: 1.125rem; }
.homestay-rich-content h4 { font-size: 1rem; }

.homestay-rich-content > h1:first-child,
.homestay-rich-content > h2:first-child,
.homestay-rich-content > h3:first-child,
.homestay-rich-content > h4:first-child,
.homestay-rich-content div > h1:first-child,
.homestay-rich-content div > h2:first-child,
.homestay-rich-content div > h3:first-child,
.homestay-rich-content div > h4:first-child {
    margin-top: 0;
}

.homestay-rich-content p + h1,
.homestay-rich-content p + h2,
.homestay-rich-content p + h3,
.homestay-rich-content p + h4,
.homestay-rich-content ul + h1,
.homestay-rich-content ul + h2,
.homestay-rich-content ul + h3,
.homestay-rich-content ul + h4,
.homestay-rich-content ol + h1,
.homestay-rich-content ol + h2,
.homestay-rich-content ol + h3,
.homestay-rich-content ol + h4,
.homestay-rich-content div + h1,
.homestay-rich-content div + h2,
.homestay-rich-content div + h3,
.homestay-rich-content div + h4 {
    margin-top: 0.75rem;
}

.homestay-rich-content h1 + p,
.homestay-rich-content h2 + p,
.homestay-rich-content h3 + p,
.homestay-rich-content h4 + p {
    margin-top: 0;
}

.homestay-rich-content p {
    margin: 0 0 0.75rem;
}

.dark .homestay-rich-content h1,
.dark .homestay-rich-content h2,
.dark .homestay-rich-content h3,
.dark .homestay-rich-content h4 {
    color: #f8fafc;
}

.homestay-rich-content strong,
.homestay-rich-content b {
    font-weight: 700;
    color: #0f172a;
}

.dark .homestay-rich-content strong,
.dark .homestay-rich-content b {
    color: #f1f5f9;
}

.homestay-rich-content em,
.homestay-rich-content i {
    font-style: italic;
}

.homestay-rich-content u {
    text-decoration: underline;
}

.homestay-rich-content a {
    color: var(--homestay-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.homestay-rich-content a:hover {
    color: var(--homestay-red-dark);
}

.homestay-rich-content ul,
.homestay-rich-content ol {
    margin: 0.5rem 0 0.75rem;
    padding-left: 1.5rem;
}

.homestay-rich-content ul {
    list-style-type: disc;
    list-style-position: outside;
}

.homestay-rich-content ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.homestay-rich-content li {
    margin-bottom: 0.5rem;
}

.homestay-rich-content li > ul,
.homestay-rich-content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.homestay-rich-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--homestay-red);
    background: var(--homestay-brand-soft);
    color: var(--homestay-muted);
}

.homestay-rich-content div {
    max-width: 100%;
}

.homestay-rich-content div[style],
.homestay-rich-content blockquote[style],
.homestay-rich-content p[style] {
    border-radius: 0.5rem;
}

.dark .homestay-rich-content blockquote {
    background: rgb(30 41 59 / 0.45);
    color: #cbd5e1;
}

.dark .homestay-rich-content div[style] {
    color: inherit;
}

.homestay-rich-content.homestay-policy-list {
    overflow-wrap: normal;
    word-break: normal;
}

.homestay-policies-grid {
    align-items: stretch;
}

.homestay-policies-col {
    border-radius: 0.875rem;
    padding: 1rem 1.125rem;
    border: 1px solid transparent;
}

@media (min-width: 768px) {
    .homestay-policies-col {
        padding: 1.125rem 1.25rem;
    }
}

.homestay-policies-col--allow {
    background: linear-gradient(180deg, rgb(240 253 244 / 0.95) 0%, rgb(248 250 252 / 0.55) 100%);
    border-color: rgb(187 247 208 / 0.65);
}

.dark .homestay-policies-col--allow {
    background: linear-gradient(180deg, rgb(20 83 45 / 0.22) 0%, rgb(15 23 42 / 0.35) 100%);
    border-color: rgb(34 197 94 / 0.22);
}

.homestay-policies-col--deny {
    background: linear-gradient(180deg, rgb(254 242 242 / 0.95) 0%, rgb(248 250 252 / 0.55) 100%);
    border-color: rgb(254 202 202 / 0.75);
}

.dark .homestay-policies-col--deny {
    background: linear-gradient(180deg, rgb(127 29 29 / 0.18) 0%, rgb(15 23 42 / 0.35) 100%);
    border-color: rgb(239 68 68 / 0.22);
}

.homestay-policies-col-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgb(226 232 240 / 0.85);
}

.dark .homestay-policies-col-header {
    border-bottom-color: rgb(51 65 85 / 0.55);
}

.homestay-policies-col--allow .homestay-policies-col-header {
    border-bottom-color: rgb(187 247 208 / 0.55);
}

.dark .homestay-policies-col--allow .homestay-policies-col-header {
    border-bottom-color: rgb(34 197 94 / 0.18);
}

.homestay-policies-col--deny .homestay-policies-col-header {
    border-bottom-color: rgb(254 202 202 / 0.65);
}

.dark .homestay-policies-col--deny .homestay-policies-col-header {
    border-bottom-color: rgb(239 68 68 / 0.18);
}

.homestay-policies-col-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.homestay-policies-col--allow .homestay-policies-col-icon {
    color: #16a34a;
}

.dark .homestay-policies-col--allow .homestay-policies-col-icon {
    color: #4ade80;
}

.homestay-policies-col--deny .homestay-policies-col-icon {
    color: #dc2626;
}

.dark .homestay-policies-col--deny .homestay-policies-col-icon {
    color: #f87171;
}

.homestay-policies-col-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

@media (min-width: 640px) {
    .homestay-policies-col-title {
        font-size: 1.125rem;
    }
}

.dark .homestay-policies-col-title {
    color: #fff;
}

.homestay-policy-list {
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.55;
    overflow-wrap: normal;
    word-break: normal;
}

.dark .homestay-policy-list {
    color: #cbd5e1;
}

.homestay-policy-list ul,
.homestay-policy-list ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.homestay-policy-list ul li,
.homestay-policy-list ol li {
    position: relative;
    display: block;
    margin: 0 0 0.625rem;
    padding: 0 0 0 1.75rem;
}

.homestay-policy-list ul li:last-child,
.homestay-policy-list ol li:last-child {
    margin-bottom: 0;
}

.homestay-policy-list li:empty,
.homestay-policy-list > p:empty {
    display: none;
}

.homestay-policy-list li:has(> p:only-child:empty),
.homestay-policy-list li:has(> p:only-child br:only-child) {
    display: none;
}

.homestay-policy-list li > p,
.homestay-policy-list li > div {
    display: inline;
    margin: 0;
}

.homestay-policy-list li > p + p::before {
    content: ' ';
}

.homestay-policy-list li strong,
.homestay-policy-list li b,
.homestay-policy-list li span,
.homestay-policy-list li em,
.homestay-policy-list > p strong,
.homestay-policy-list > p b,
.homestay-policy-list > p span {
    display: inline;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
    font-weight: inherit;
}

.homestay-policy-list li strong,
.homestay-policy-list li b,
.homestay-policy-list > p strong,
.homestay-policy-list > p b {
    font-weight: 700;
    color: #0f172a;
}

.dark .homestay-policy-list li strong,
.dark .homestay-policy-list li b,
.dark .homestay-policy-list > p strong,
.dark .homestay-policy-list > p b {
    color: #f8fafc;
}

.homestay-policy-list ul li::before,
.homestay-policy-list ol li::before {
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.homestay-policy-list--allow ul li::before,
.homestay-policy-list--allow ol li::before {
    content: 'check_circle';
    color: #22c55e;
}

.dark .homestay-policy-list--allow ul li::before,
.dark .homestay-policy-list--allow ol li::before {
    color: #4ade80;
}

.homestay-policy-list--deny ul li::before,
.homestay-policy-list--deny ol li::before {
    content: 'cancel';
    color: #ef4444;
}

.dark .homestay-policy-list--deny ul li::before,
.dark .homestay-policy-list--deny ol li::before {
    color: #f87171;
}

.homestay-policy-list > p {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0 0 0.625rem;
    padding: 0;
}

.homestay-policy-list > p:last-child {
    margin-bottom: 0;
}

.homestay-policy-list > p::before {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.homestay-policy-list--allow > p::before {
    content: 'check_circle';
    color: #22c55e;
}

.dark .homestay-policy-list--allow > p::before {
    color: #4ade80;
}

.homestay-policy-list--deny > p::before {
    content: 'cancel';
    color: #ef4444;
}

.dark .homestay-policy-list--deny > p::before {
    color: #f87171;
}

.homestay-policy-list li > ul,
.homestay-policy-list li > ol {
    margin-top: 0.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .homestay-policies-grid:has(.homestay-policies-col--allow):has(.homestay-policies-col--deny) {
        gap: 1rem;
    }
}

.homestay-room-type-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .homestay-room-type-card {
    background: rgb(15 23 42 / 0.35);
    border-color: rgb(51 65 85 / 0.7);
}

.homestay-room-type-card.is-selected {
    border-color: var(--homestay-red, #dc2626);
    box-shadow: 0 0 0 1px rgb(220 38 38 / 0.15);
}

.homestay-room-type-card__media {
    width: 100%;
    height: 12rem;
    max-height: 12rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.dark .homestay-room-type-card__media {
    background: rgb(30 41 59 / 0.6);
}

.homestay-room-type-card__image {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.homestay-room-type-card__body {
    padding: 1rem 1.125rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    min-width: 0;
}

.homestay-room-type-card__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.dark .homestay-room-type-card__title {
    color: #fff;
}

.homestay-room-type-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem 1.25rem;
}

.homestay-room-type-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.dark .homestay-room-type-card__meta-item {
    color: #cbd5e1;
}

.homestay-room-type-card__meta-item .material-symbols-outlined {
    font-size: 1.15rem;
    line-height: 1;
    color: var(--homestay-red, #dc2626);
}

.homestay-room-type-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid #e2e8f0;
}

.dark .homestay-room-type-card__footer {
    border-top-color: rgb(51 65 85 / 0.7);
}

.homestay-room-type-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
}

.homestay-room-type-card__price-label {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    color: #64748b;
    text-transform: none;
}

.dark .homestay-room-type-card__price-label {
    color: #94a3b8;
}

.homestay-room-type-card__price-value {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--homestay-red, #dc2626);
}

.homestay-room-type-card__price-unit {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.dark .homestay-room-type-card__price-unit {
    color: #94a3b8;
}

.homestay-room-type-card__select {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.125rem;
    border: 0;
    border-radius: 0.625rem;
    background: var(--homestay-red, #dc2626);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.homestay-room-type-card__select:hover {
    background: var(--homestay-red-dark, #b91c1c);
}

@media (min-width: 768px) {
    .homestay-room-type-card {
        flex-direction: row;
        align-items: stretch;
    }

    .homestay-room-type-card__media {
        width: 220px;
        max-width: 38%;
        height: 168px;
        max-height: 168px;
        min-height: 168px;
        aspect-ratio: unset;
        align-self: start;
    }

    .homestay-room-type-card__body {
        flex: 1;
        padding: 1.125rem 1.25rem;
        justify-content: center;
        min-height: 168px;
    }

    .homestay-room-type-card__footer {
        margin-top: auto;
    }
}

@media (min-width: 1024px) {
    .homestay-room-type-card__media {
        width: 240px;
    }
}

.homestay-room-type-select {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 2.5rem !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

.dark .homestay-room-type-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
}

.homestay-room-type-select option {
    white-space: normal;
}

.homestay-booking-zalo-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    object-fit: contain;
}

/* Related homestays carousel — same card as listing grid */
.related-homestays-swiper {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.related-homestays-swiper .homestay-card,
.related-homestays-swiper .homestay-card:hover {
    box-shadow: none;
    transform: none;
}

#related-homestay-prev.swiper-button-disabled,
#related-homestay-next.swiper-button-disabled,
#related-homestay-prev.is-disabled,
#related-homestay-next.is-disabled,
#related-homestay-prev:disabled,
#related-homestay-next:disabled,
.related-homestay-nav.swiper-button-disabled,
.related-homestay-nav.is-disabled,
.related-homestay-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
    box-shadow: none;
}

.dark #related-homestay-prev.swiper-button-disabled,
.dark #related-homestay-next.swiper-button-disabled,
.dark #related-homestay-prev.is-disabled,
.dark #related-homestay-next.is-disabled,
.dark #related-homestay-prev:disabled,
.dark #related-homestay-next:disabled,
.dark .related-homestay-nav.swiper-button-disabled,
.dark .related-homestay-nav.is-disabled,
.dark .related-homestay-nav:disabled {
    background: #1e293b;
    color: #64748b;
    border-color: #334155;
}

.related-homestays-swiper:not(.swiper-initialized) .swiper-slide {
    flex-shrink: 0;
    width: 88%;
}

@media (min-width: 640px) {
    .related-homestays-swiper:not(.swiper-initialized) .swiper-slide {
        width: 63%;
    }
}

@media (min-width: 1024px) {
    .related-homestays-swiper:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 64px) / 3);
    }
}

.related-homestays-swiper .swiper-wrapper {
    align-items: stretch;
}

.related-homestays-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.related-homestays-swiper .homestay-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-homestays-swiper .homestay-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-homestays-swiper .homestay-card__footer {
    margin-top: auto;
}

.homestay-booking-modal {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

.homestay-booking-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.homestay-booking-modal__backdrop {
    background: rgba(0, 0, 0, 0.82);
    opacity: 0;
    transition: opacity 0.32s ease;
}

.homestay-booking-modal.is-open .homestay-booking-modal__backdrop {
    opacity: 1;
}

.homestay-booking-modal-card {
    transform: translateY(1.25rem) scale(0.97);
    opacity: 0;
    transition:
        transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
    will-change: transform, opacity;
}

.homestay-booking-modal.is-open .homestay-booking-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@media (min-width: 1024px) {
    .homestay-booking-modal__dialog {
        width: min(48rem, calc(100vw - 2.5rem));
        max-width: none;
    }
}

@media (max-width: 640px) {
    .homestay-booking-modal {
        padding: 0;
        overscroll-behavior: contain;
    }

    .homestay-booking-modal__dialog,
    .homestay-booking-modal-card {
        width: 100%;
        min-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .homestay-booking-modal.is-open .homestay-booking-modal__form,
    .homestay-booking-modal.is-open #homestay-booking-modal-form {
        max-height: calc(100dvh - 4rem);
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

.homestay-booking-modal.is-open {
    overflow-y: auto;
}

.homestay-booking-modal.is-open .homestay-booking-modal__form,
.homestay-booking-modal.is-open #homestay-booking-modal-form {
    max-height: min(78dvh, 720px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
    .homestay-booking-modal,
    .homestay-booking-modal__backdrop,
    .homestay-booking-modal-card {
        transition: none;
    }

    .homestay-booking-modal:not(.is-open) {
        opacity: 0;
    }

    .homestay-booking-modal.is-open {
        opacity: 1;
    }

    .homestay-booking-modal:not(.is-open) .homestay-booking-modal__backdrop {
        opacity: 0;
    }

    .homestay-booking-modal.is-open .homestay-booking-modal__backdrop {
        opacity: 1;
    }

    .homestay-booking-modal:not(.is-open) .homestay-booking-modal-card {
        transform: none;
        opacity: 0;
    }

    .homestay-booking-modal.is-open .homestay-booking-modal-card {
        transform: none;
        opacity: 1;
    }
}

/* Grouped amenity list on the homestay detail page. */
.homestay-amenities__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 0.85rem;
    align-items: stretch;
}

.homestay-amenities__group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: none;
}

.dark .homestay-amenities__group {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.45);
    box-shadow: none;
}

.homestay-amenities__group-title {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 0.65rem;
    color: var(--homestay-text, var(--brand-text, #26352b));
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.dark .homestay-amenities__group-title { color: #f8fafc; }
.homestay-amenities__group-title .material-symbols-outlined {
    font-size: 1.35rem;
    color: var(--homestay-red, var(--brand-primary, #607d3b));
}
.homestay-amenities__list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.homestay-amenities__list li { display: flex; align-items: flex-start; gap: 0.65rem; min-width: 0; color: var(--homestay-muted, #59675a); font-size: 0.925rem; line-height: 1.45; }
.dark .homestay-amenities__list li { color: #cbd5e1; }
.homestay-amenities__list li .material-symbols-outlined { flex: 0 0 auto; margin-top: 0.08rem; color: var(--homestay-red, var(--brand-primary, #00D233)); font-size: 1rem; opacity: 0.9; }
.dark .homestay-amenities__list li .material-symbols-outlined { color: #94a3b8; opacity: 1; }

@media (max-width: 1023px) {
    .homestay-amenities__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    #amenities .homestay-amenities {
        padding: 1rem;
        border-radius: 1rem;
    }

    #amenities .homestay-amenities > h2 {
        margin-bottom: 0.85rem;
        font-size: 1.2rem;
        line-height: 1.35;
    }

    .homestay-amenities__groups {
        display: block;
        columns: 2;
        column-gap: 0.65rem;
    }

    .homestay-amenities__group {
        display: inline-block;
        width: 100%;
        height: auto;
        margin: 0 0 0.65rem;
        padding: 0.75rem;
        break-inside: avoid;
        vertical-align: top;
    }

    .homestay-amenities__group-title {
        gap: 0.4rem;
        margin-bottom: 0.5rem;
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .homestay-amenities__group-title .material-symbols-outlined {
        font-size: 1.05rem;
    }

    .homestay-amenities__list {
        gap: 0.35rem;
    }

    .homestay-amenities__list li {
        gap: 0.35rem;
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .homestay-amenities__list li .material-symbols-outlined {
        margin-top: 0.02rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 359px) {
    .homestay-amenities__groups {
        columns: 1;
    }
}

.homestay-booking-confirm-modal {
    z-index: 10000;
}

/* Toast / validation — above booking & confirm modals (9999–10000) and date picker (10050) */
.homestay-booking-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10100;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 2rem));
    padding: 0.7rem 0.9rem;
    border-radius: 0.5rem;
    border-width: 1px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.homestay-booking-toast > .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
    font-size: 1.25rem;
}

.homestay-booking-toast > .flex-1 {
    min-width: 0;
    line-height: 1.35;
}

.homestay-booking-toast > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.homestay-booking-toast > button .material-symbols-outlined {
    line-height: 1;
    font-size: 1.125rem;
}

.homestay-booking-toast--success {
    border-color: rgb(187 247 208);
    background: rgb(240 253 244);
}

.dark .homestay-booking-toast--success {
    border-color: rgb(22 101 52 / 0.5);
    background: rgb(20 83 45 / 0.2);
}

.homestay-booking-toast--error {
    border-color: rgb(254 202 202);
    background: rgb(254 242 242);
}

.dark .homestay-booking-toast--error {
    border-color: rgb(153 27 27 / 0.5);
    background: rgb(127 29 29 / 0.2);
}

.homestay-booking-confirm-modal__details {
    margin: 0;
}

.homestay-booking-confirm-modal__row {
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    align-items: start;
}

@media (min-width: 480px) {
    .homestay-booking-confirm-modal__row {
        grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
    }
}

.homestay-booking-confirm-modal__row--total {
    align-items: center;
}

.homestay-booking-confirm-modal__label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(100 116 139);
}

.dark .homestay-booking-confirm-modal__label {
    color: rgb(148 163 184);
}

.homestay-booking-confirm-modal__value {
    margin: 0;
}

/* Homestay detail summary card */
.homestay-summary {
    border-radius: 1rem;
    border: 1px solid var(--homestay-border);
    background: #fff;
    margin-bottom: 1rem;
}

.dark .homestay-summary {
    border-color: rgb(51 65 85 / 0.7);
    background: rgb(30 41 59);
}

.homestay-summary__body {
    padding: 1.25rem 1rem 1rem;
}

@media (min-width: 640px) {
    .homestay-summary__body {
        padding: 1.5rem 1.5rem 1.25rem;
    }
}

.homestay-summary__topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.625rem;
}

.homestay-summary__category,
.homestay-summary__location {
    color: var(--homestay-red);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dark .homestay-summary__category,
.dark .homestay-summary__location {
    color: #ff8a94;
}

.homestay-summary__urgency {
    color: #c2410c;
    font-size: 0.8125rem;
    font-weight: 600;
}

.dark .homestay-summary__urgency {
    color: #fdba74;
}

.homestay-summary__urgency::before {
    content: '·';
    margin-right: 0.75rem;
    color: #cbd5e1;
    font-weight: 400;
}

.homestay-summary__topline .homestay-summary__urgency:first-child::before {
    content: none;
    margin: 0;
}

.homestay-summary__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.5rem;
}

.homestay-summary__title-row .homestay-summary__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.homestay-summary__title {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--homestay-text);
    word-break: break-word;
}

.homestay-summary__favorite.car-service-card__favorite {
    position: static;
    top: auto;
    right: auto;
    flex: 0 0 auto;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.homestay-summary__favorite.car-service-card__favorite:hover {
    border-color: #fecaca;
    transform: scale(1.04);
}

.homestay-summary__favorite.car-service-card__favorite.is-favorited {
    border-color: #fecaca;
    background: #fff5f5;
}

.homestay-summary__favorite.car-service-card__favorite.is-favorited .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.dark .homestay-summary__favorite.car-service-card__favorite {
    border-color: rgb(71 85 105 / 0.65);
    background: rgb(30 41 59);
}

.dark .homestay-summary__favorite.car-service-card__favorite.is-favorited {
    border-color: rgb(248 113 113 / 0.45);
    background: rgb(69 10 10 / 0.35);
}

.dark .homestay-summary__title {
    color: #fff;
}

@media (min-width: 640px) {
    .homestay-summary__title {
        font-size: 1.625rem;
    }

    .homestay-summary__favorite.car-service-card__favorite {
        width: 44px;
        height: 44px;
    }
}

.homestay-summary__address {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin: 0 0 1rem;
    color: var(--homestay-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.homestay-summary__address-icon {
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.homestay-summary__highlights {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.625rem;
}

.homestay-summary__price-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.875rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(196 0 18 / 0.12);
    background: linear-gradient(135deg, #fff7f7 0%, #fff 55%);
}

.dark .homestay-summary__price-cta {
    border-color: rgb(248 113 113 / 0.2);
    background: linear-gradient(135deg, rgb(69 10 10 / 0.35) 0%, rgb(30 41 59) 55%);
}

.homestay-summary__price-cta-main {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    flex: 1 1 auto;
}

.homestay-summary__price-cta .homestay-summary__price-value {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--homestay-red, #c40012);
}

.homestay-summary__btn--book {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgb(196 0 18 / 0.22);
}

.homestay-summary__rating-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.5rem;
}

.homestay-summary__rating-score {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--homestay-text);
}

.dark .homestay-summary__rating-score {
    color: #fff;
}

.homestay-summary__reviews {
    color: var(--homestay-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.homestay-summary__reviews::before {
    content: '·';
    margin-right: 0.5rem;
    color: #cbd5e1;
}

.homestay-summary__rating-line .homestay-summary__reviews:first-child::before {
    content: none;
    margin: 0;
}

.homestay-summary__price-line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    white-space: nowrap;
}

.homestay-summary__price-value {
    color: var(--homestay-red);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

@media (min-width: 640px) {
    .homestay-summary__price-value {
        font-size: 1.375rem;
    }
}

.homestay-summary__price-unit {
    color: var(--homestay-muted);
    font-size: 0.8125rem;
    font-weight: 500;
}

.homestay-summary__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0;
    margin: 0 0 0.75rem;
    color: var(--homestay-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.homestay-summary__room-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 0 0 0.75rem;
    color: var(--homestay-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.homestay-summary__stay-times {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.75rem;
    width: 100%;
    margin: 0 0 0.75rem;
    color: var(--homestay-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.homestay-summary__stay-times .homestay-summary__fact {
    align-items: center;
    min-width: 0;
}

.homestay-summary__stay-times .homestay-summary__fact::after {
    content: none;
    margin: 0;
}

.homestay-summary__time-text {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem;
    min-width: 0;
}

.homestay-summary__time-label--short {
    display: none;
}

.homestay-summary__time-label--long::after {
    content: '\00a0';
}

@media (max-width: 639px) {
    .homestay-show.homestay-detail {
        padding-top: 0.85rem;
        padding-bottom: 1rem;
    }

    .homestay-show .homestay-detail__hero {
        margin-bottom: 0.75rem;
        gap: 0.65rem;
    }

    .homestay-show .homestay-hero-views {
        left: 10px;
        bottom: 10px;
        gap: 0.35rem;
        padding: 0.35rem 0.65rem;
    }

    .homestay-show .homestay-hero-views__icon {
        font-size: 0.9rem;
    }

    .homestay-show .homestay-hero-views__text {
        font-size: 0.75rem;
        font-weight: 700;
    }

    .homestay-summary {
        border-radius: 0.85rem;
    }

    .homestay-summary__body {
        padding: 0.85rem 0.8rem 0.75rem;
    }

    .homestay-summary__title-row {
        gap: 0.5rem;
        margin-bottom: 0.35rem;
    }

    .homestay-summary__title {
        font-size: 1.125rem;
        line-height: 1.25;
        font-weight: 800;
    }

    .homestay-summary__favorite.car-service-card__favorite {
        width: 34px;
        height: 34px;
    }

    .homestay-summary__favorite.car-service-card__favorite .material-symbols-outlined {
        font-size: 18px;
    }

    .homestay-summary__address {
        margin-bottom: 0.45rem;
        font-size: 0.75rem;
        line-height: 1.4;
        gap: 0.25rem;
    }

    .homestay-summary__address-icon {
        font-size: 0.875rem;
    }

    .homestay-summary__highlights {
        margin-bottom: 0.4rem;
    }

    .homestay-summary__rating-score,
    .homestay-summary__reviews-count,
    .homestay-summary__bookings-count {
        font-size: 0.75rem;
    }

    .homestay-summary__rating-score .homestay-star-icon,
    .homestay-summary__rating-line .material-symbols-outlined {
        font-size: 0.9rem !important;
    }

    .homestay-summary__price-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        margin-bottom: 0.65rem;
        padding: 0.65rem 0.7rem;
        border-radius: 0.7rem;
    }

    .homestay-summary__price-cta .homestay-summary__price-value {
        font-size: 1.125rem;
        line-height: 1.15;
    }

    .homestay-summary__btn--book {
        width: 100%;
        min-height: 2.4rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        border-radius: 0.65rem;
        box-shadow: 0 3px 10px rgb(96 125 59 / 0.2);
    }

    .homestay-summary__btn--book .material-symbols-outlined {
        font-size: 1rem !important;
    }

    .homestay-summary__room-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .homestay-summary__room-meta .homestay-summary__fact::after {
        content: none;
        margin: 0;
    }

    .homestay-summary__room-meta .homestay-summary__fact {
        gap: 0.2rem;
    }

    .homestay-summary__fact-icon {
        font-size: 0.9rem;
    }

    .homestay-summary__stay-times {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem 0.5rem;
        margin-bottom: 0.55rem;
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .homestay-summary__time-label--long {
        display: none;
    }

    .homestay-summary__time-label--short {
        display: inline;
    }

    .homestay-summary__time-label--long::after {
        content: none;
    }

    .homestay-summary__time-text {
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .homestay-summary__contacts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        margin-bottom: 0.15rem;
    }

    .homestay-summary__contact {
        flex: none;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.4rem;
        padding: 0.55rem 0.7rem;
        font-size: 0.75rem;
        text-align: left;
        border-radius: 0.6rem;
    }

    .homestay-summary__contact-icon,
    .homestay-summary__contact-zalo {
        width: 1rem;
        height: 1rem;
        font-size: 1rem;
    }

    .homestay-summary__contact--directions {
        flex-direction: row;
        justify-content: flex-start;
        grid-column: auto;
    }

    .homestay-summary__contact-text {
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .homestay-summary__actions--secondary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-top: 0;
    }

    .homestay-show .homestay-detail__nav {
        gap: 0.85rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
        border-radius: 0.75rem;
    }

    .homestay-show .nav-tab {
        padding-top: 0.7rem !important;
        padding-bottom: 0.7rem !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
    }

    .homestay-show .homestay-rich-content {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .homestay-show .homestay-rich-content h1 { font-size: 1.2rem; }
    .homestay-show .homestay-rich-content h2 { font-size: 1.05rem; }
    .homestay-show .homestay-rich-content h3 { font-size: 0.975rem; }
    .homestay-show .homestay-rich-content h4 { font-size: 0.9rem; }

    .homestay-show [id="amenities"] > h2,
    .homestay-show [id="house-rules"] h2,
    .homestay-show [id="information"] h2,
    .homestay-show [id="faq"] h2,
    .homestay-show [id="location"] h2,
    .homestay-show .listing-reviews__title {
        font-size: 1.05rem !important;
        line-height: 1.3;
    }

    .homestay-show .homestay-booking-sidebar {
        padding: 0.85rem !important;
        border-radius: 0.85rem;
    }
}

.homestay-summary__fact--price .homestay-summary__price-value {
    color: var(--homestay-red);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1;
}

.homestay-summary__fact--price .homestay-summary__fact-icon {
    color: var(--homestay-red);
}

.homestay-summary__contacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.5rem;
    margin: 0 0 0.25rem;
}

.homestay-summary__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--homestay-text);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.homestay-summary__contact:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.homestay-summary__contact--zalo {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.homestay-summary__contact--zalo:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.homestay-summary__contact--directions {
    justify-content: center;
    font-weight: 700;
    background: #fff;
    border-color: #dde3ea;
}

.homestay-summary__contact--directions:hover {
    background: #f8fafc;
    border-color: color-mix(in srgb, var(--homestay-red) 35%, #cbd5e1);
}

.dark .homestay-summary__contact {
    border-color: rgb(71 85 105 / 0.55);
    background: rgb(30 41 59 / 0.65);
    color: #e2e8f0;
}

.dark .homestay-summary__contact:hover {
    background: rgb(51 65 85 / 0.55);
}

.dark .homestay-summary__contact--zalo {
    background: rgb(30 58 138 / 0.25);
    border-color: rgb(59 130 246 / 0.35);
    color: #93c5fd;
}

.homestay-summary__contact-icon {
    flex-shrink: 0;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--homestay-red);
}

.dark .homestay-summary__contact-icon {
    color: #ff8a94;
}

.homestay-summary__contact-zalo {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.homestay-summary__contact-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .homestay-summary__contacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homestay-summary__contact {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }

    .homestay-summary__contact--directions {
        justify-content: flex-start;
        grid-column: auto;
    }

    .homestay-summary__price-cta {
        flex-wrap: wrap;
    }

    .homestay-summary__btn--book {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .homestay-summary__facts {
        margin-bottom: 0.5rem;
    }

}

.homestay-summary__fact {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
}

.homestay-summary__fact:not(:last-child)::after {
    content: '·';
    margin: 0 0.625rem;
    color: #cbd5e1;
    font-weight: 400;
}

.homestay-summary__fact-icon {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
    color: var(--homestay-red);
}

.dark .homestay-summary__fact-icon {
    color: #ff8a94;
}

.homestay-summary__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.homestay-summary__actions--secondary {
    grid-template-columns: 1fr;
}

.homestay-summary__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.625rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

@media (min-width: 640px) {
    .homestay-summary__btn {
        min-height: 3rem;
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
}

.homestay-summary__btn--primary {
    border: 1px solid var(--homestay-red);
    background: var(--homestay-red);
    color: #fff;
}

.homestay-summary__btn--primary:hover {
    background: var(--homestay-red-dark);
    border-color: var(--homestay-red-dark);
}

.homestay-summary__btn--outline {
    border: 1px solid #dde3ea;
    background: #fff;
    color: #475569;
}

.dark .homestay-summary__btn--outline {
    border-color: rgb(71 85 105 / 0.65);
    background: transparent;
    color: #cbd5e1;
}

.homestay-summary__btn--outline:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.dark .homestay-summary__btn--outline:hover {
    background: rgb(15 23 42 / 0.45);
}

.homestay-summary__btn:disabled {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

@media (min-width: 640px) {
    .homestay-summary__price-cta .homestay-summary__price-value {
        font-size: 1.5rem;
    }

    .homestay-summary__btn--book {
        min-height: 3rem;
        padding: 0.75rem 1.25rem;
    }
}

@media (min-width: 1024px) {
    .homestay-summary__actions--secondary {
        grid-template-columns: 1fr;
    }
}

/* Homestay reviews component */
.homestay-reviews__title {
    letter-spacing: -0.01em;
}

.homestay-reviews__summary-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .homestay-reviews__summary-body {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

.homestay-reviews__breakdown {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.homestay-reviews__breakdown-row {
    display: grid;
    grid-template-columns: 1rem 1.25rem minmax(0, 1fr) 2.5rem 2.75rem;
    align-items: center;
    gap: 0.5rem;
}

.homestay-reviews__star-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    text-align: right;
}

.dark .homestay-reviews__star-label {
    color: #cbd5e1;
}

.homestay-reviews__star-icon {
    font-size: 1rem;
    color: #facc15;
}

.homestay-reviews__bar-track {
    height: 0.5rem;
    border-radius: 9999px;
    background: #e2e8f0;
    overflow: hidden;
}

.dark .homestay-reviews__bar-track {
    background: #475569;
}

.homestay-reviews__bar-fill {
    height: 100%;
    border-radius: inherit;
    background: #facc15;
    transition: width 0.3s ease;
}

.homestay-reviews__count,
.homestay-reviews__percent {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    text-align: right;
    white-space: nowrap;
}

.dark .homestay-reviews__count,
.dark .homestay-reviews__percent {
    color: #94a3b8;
}

.homestay-reviews__write-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--homestay-red, #dc2626);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .homestay-reviews__write-btn {
        width: auto;
        min-width: 11rem;
    }
}

.homestay-reviews__write-btn:hover {
    background: #b91c1c;
}

.homestay-reviews__write-btn:active {
    transform: translateY(1px);
}

.homestay-reviews__details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
}

@media (min-width: 640px) {
    .homestay-reviews__details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

.homestay-reviews__detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    background: #f8fafc;
}

.dark .homestay-reviews__detail-item {
    background: rgb(51 65 85 / 0.4);
}

.homestay-reviews__detail-label {
    font-size: 0.875rem;
    color: #334155;
}

.dark .homestay-reviews__detail-label {
    color: #cbd5e1;
}

.homestay-reviews__detail-score {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.dark .homestay-reviews__detail-score {
    color: #fff;
}

.homestay-reviews__notice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.dark .homestay-reviews__notice {
    background: rgb(51 65 85 / 0.35);
    color: #94a3b8;
}

.homestay-reviews__notice--pending {
    background: #fff7ed;
    color: #c2410c;
}

.dark .homestay-reviews__notice--pending {
    background: rgb(154 52 18 / 0.18);
    color: #fdba74;
}

.homestay-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.homestay-review-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #f8fafc;
}

.dark .homestay-review-item {
    border-color: rgb(51 65 85 / 0.55);
    background: rgb(15 23 42 / 0.25);
}

.homestay-review-item__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.homestay-review-item__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-primary, #607d3b), var(--brand-accent, #607d3b));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    flex-shrink: 0;
}

.homestay-review-item__meta {
    flex: 1;
    min-width: 0;
}

.homestay-review-item__name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.dark .homestay-review-item__name {
    color: #fff;
}

.homestay-review-item__date {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.homestay-review-item__stars {
    display: inline-flex;
    gap: 0.125rem;
    flex-shrink: 0;
}

.homestay-review-item__comment {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
}

.dark .homestay-review-item__comment {
    color: #cbd5e1;
}

.homestay-review-stars {
    display: inline-flex;
    gap: 0.25rem;
}

.homestay-review-stars__btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.homestay-review-stars__btn.is-active {
    color: #facc15;
}

.homestay-review-stars__btn:hover {
    transform: scale(1.05);
}

.homestay-review-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.homestay-review-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.homestay-review-modal__backdrop {
    background: rgb(15 23 42 / 0.55);
    backdrop-filter: blur(2px);
}

.homestay-review-modal__dialog {
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}

.homestay-review-modal.is-open .homestay-review-modal__dialog {
    transform: translateY(0) scale(1);
}

.homestay-review-modal__card {
    overflow: hidden;
}

/* Homestay booking — date range picker (Airbnb-style) */
.homestay-date-range {
    position: relative;
}

.homestay-date-range__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dark .homestay-date-range__trigger {
    border-color: #475569;
    background: #0f172a;
}

.homestay-date-range.is-open .homestay-date-range__trigger,
.homestay-date-range__trigger:hover {
    border-color: var(--homestay-red, #c40012);
    box-shadow: 0 0 0 2px rgb(196 0 18 / 0.12);
}

/* Booking form field validation */
#homestay-booking-form .is-invalid,
#homestay-booking-modal-form .is-invalid,
#homestay-booking-form .homestay-date-range.is-invalid .homestay-date-range__trigger,
#homestay-booking-modal-form .homestay-date-range.is-invalid .homestay-date-range__trigger {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.dark #homestay-booking-form .is-invalid,
.dark #homestay-booking-modal-form .is-invalid,
.dark #homestay-booking-form .homestay-date-range.is-invalid .homestay-date-range__trigger,
.dark #homestay-booking-modal-form .homestay-date-range.is-invalid .homestay-date-range__trigger {
    background-color: rgba(220, 53, 69, 0.08);
}

#homestay-booking-form .homestay-field-error,
#homestay-booking-modal-form .homestay-field-error {
    display: block;
    margin-top: 0.35rem;
    color: #c62838;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}

#homestay-booking-form .homestay-field-error:empty,
#homestay-booking-modal-form .homestay-field-error:empty {
    display: none;
}

.homestay-date-range__summary {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.homestay-date-range__summary.is-placeholder {
    font-weight: 500;
    color: #94a3b8;
}

.dark .homestay-date-range__summary {
    color: #f1f5f9;
}

.dark .homestay-date-range__summary.is-placeholder {
    color: #64748b;
}

.homestay-date-range__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #64748b;
}

.homestay-date-range__stay-times {
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.dark .homestay-date-range__stay-times {
    border-color: #334155;
    background: rgb(15 23 42 / 0.45);
}

.homestay-date-range__stay-times.is-ready {
    border-color: rgb(196 0 18 / 0.35);
    background: rgb(196 0 18 / 0.04);
}

.homestay-date-range__stay-times-hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}

.dark .homestay-date-range__stay-times-hint {
    color: #94a3b8;
}

.homestay-field--highlight select,
.homestay-field--highlight .homestay-date-range__trigger {
    outline: 2px solid rgb(196 0 18 / 0.65);
    outline-offset: 2px;
}

/* Sidebar desktop: chọn giờ trong popup lịch, không hiện lưới giờ dưới ô ngày */
@media (min-width: 1024px) {
    #homestay-booking-form .homestay-date-range__stay-times {
        display: none !important;
    }
}

/* Date range modal — centered (desktop + mobile) */
.homestay-date-range__overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: max(0.75rem, env(safe-area-inset-top, 0px))
        max(0.75rem, env(safe-area-inset-right, 0px))
        max(0.75rem, env(safe-area-inset-bottom, 0px))
        max(0.75rem, env(safe-area-inset-left, 0px));
    background: rgb(15 23 42 / 0.52);
    backdrop-filter: blur(4px);
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.homestay-date-range__overlay[hidden] {
    display: none !important;
}

body.homestay-date-range-open {
    overflow: hidden;
}

.homestay-date-range__dropdown {
    position: relative;
    flex: 0 0 auto;
    width: min(720px, 100%);
    max-height: min(90dvh, calc(100dvh - 1.5rem));
    margin: auto;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 24px 64px rgb(15 23 42 / 0.28);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.homestay-date-range__dropdown.homestay-date-range--dark {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

.homestay-date-range__panel-head {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.homestay-date-range--dark .homestay-date-range__panel-head {
    border-bottom-color: #334155;
}

.homestay-date-range__panel-title {
    margin: 0 0 0.2rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
}

.homestay-date-range--dark .homestay-date-range__panel-title {
    color: #f8fafc;
}

.homestay-date-range__panel-subtitle {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.homestay-date-range__panel-hint {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--homestay-red, #c40012);
}

.homestay-date-range__panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #f1f5f9;
}

.homestay-date-range--dark .homestay-date-range__panel-footer {
    border-top-color: #334155;
}

.homestay-date-range__clear {
    border: 0;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    color: #475569;
    cursor: pointer;
    padding: 0.35rem 0.25rem;
}

.homestay-date-range__close {
    border: 0;
    border-radius: 0.5rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
}

.homestay-date-range--dark .homestay-date-range__close {
    background: #f8fafc;
    color: #0f172a;
}

.homestay-date-range__months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.75rem;
}

.homestay-date-range__month-head {
    display: grid;
    grid-template-columns: 2rem 1fr 2rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.homestay-date-range__month-title {
    margin: 0;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

.homestay-date-range--dark .homestay-date-range__month-title {
    color: #f8fafc;
}

.homestay-date-range__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    cursor: pointer;
}

.homestay-date-range__nav:hover {
    background: #f1f5f9;
}

.homestay-date-range__nav--spacer {
    pointer-events: none;
}

.homestay-date-range__weekdays,
.homestay-date-range__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.homestay-date-range__weekdays span {
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    padding: 0.2rem 0;
}

.homestay-date-range__day {
    aspect-ratio: 1;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}

.homestay-date-range--dark .homestay-date-range__day {
    color: #e2e8f0;
}

.homestay-date-range__day--empty {
    pointer-events: none;
}

.homestay-date-range__day.is-disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.homestay-date-range__day.is-sold-out {
    color: #94a3b8;
    text-decoration: line-through;
    cursor: not-allowed;
    background: #f8fafc;
}

.dark .homestay-date-range__day.is-sold-out {
    color: #64748b;
    background: rgb(15 23 42 / 0.5);
}

.homestay-date-range__day.is-today:not(.is-start):not(.is-end) {
    box-shadow: inset 0 0 0 1px #94a3b8;
}

.homestay-date-range__day.is-in-range {
    border-radius: 0;
    background: rgb(196 0 18 / 0.12);
}

.homestay-date-range__day.is-start,
.homestay-date-range__day.is-end {
    background: var(--homestay-red, #c40012);
    color: #fff;
}

.homestay-date-range__day:not(.is-disabled):hover {
    background: rgb(196 0 18 / 0.15);
}

@media (max-width: 640px) {
    .homestay-date-range__overlay {
        align-items: center;
        padding: max(0.5rem, env(safe-area-inset-top, 0px))
            max(0.5rem, env(safe-area-inset-right, 0px))
            max(0.5rem, env(safe-area-inset-bottom, 0px))
            max(0.5rem, env(safe-area-inset-left, 0px));
    }

    .homestay-date-range__dropdown {
        width: 100%;
        max-height: calc(100dvh - 1rem);
        border-radius: 0.875rem;
    }

    .homestay-date-range__months {
        grid-template-columns: 1fr;
    }

    .homestay-date-range__panel-head {
        padding: 0.875rem 1rem 0.625rem;
    }

    .homestay-date-range__panel-title {
        font-size: 1rem;
    }

    .homestay-date-range__times {
        padding: 0 1rem 0.875rem;
    }

    .homestay-date-range__time-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.3125rem;
    }

    .homestay-date-range__time-slot {
        padding: 0.5rem 0.2rem;
        font-size: 0.6875rem;
    }

    .homestay-date-range__panel-footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: #fff;
    }

    .homestay-date-range--dark .homestay-date-range__panel-footer {
        background: #1e293b;
    }
}

.homestay-date-range__times {
    padding: 0 1.25rem 1rem;
    border-top: 1px solid #e2e8f0;
}

.homestay-date-range--dark .homestay-date-range__times {
    border-top-color: #334155;
}

.homestay-date-range__stay-times .homestay-date-range__time-block {
    margin-top: 0.75rem;
}

.homestay-date-range__stay-times .homestay-date-range__time-block:first-of-type {
    margin-top: 0;
}

.homestay-date-range__time-block + .homestay-date-range__time-block {
    margin-top: 1rem;
}

.homestay-date-range__time-label {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.homestay-date-range--dark .homestay-date-range__time-label {
    color: #f1f5f9;
}

.homestay-date-range__time-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.375rem;
}

@media (min-width: 480px) {
    .homestay-date-range__time-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

.homestay-date-range__time-slot {
    padding: 0.4rem 0.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.homestay-date-range--dark .homestay-date-range__time-slot {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}

.homestay-date-range__time-slot:not(.is-disabled):hover {
    border-color: rgb(196 0 18 / 0.5);
}

.homestay-date-range__time-slot.is-selected {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.homestay-date-range--dark .homestay-date-range__time-slot.is-selected {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #0f172a;
}

.homestay-date-range__time-slot.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f1f5f9;
}

.homestay-date-range--dark .homestay-date-range__time-slot.is-disabled {
    background: #0f172a;
}

/* Section giá phòng (dưới loại phòng) */
.homestay-room-pricing-section__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.homestay-room-pricing-section__item + .homestay-room-pricing-section__item {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e2e8f0;
}

.dark .homestay-room-pricing-section__item + .homestay-room-pricing-section__item {
    border-top-color: #334155;
}

.homestay-room-pricing-section__room-name {
    margin: 0 0 0.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
}

.dark .homestay-room-pricing-section__room-name {
    color: #f8fafc;
}

/* Khối bảng giá từng loại phòng */
.homestay-room-pricing {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.homestay-room-pricing__title {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

.dark .homestay-room-pricing__title {
    color: #f8fafc;
}

.homestay-room-pricing__note {
    margin: 0 0 0.75rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.dark .homestay-room-pricing__note {
    color: #94a3b8;
    background: #1e293b;
    border-color: #334155;
}

.homestay-room-pricing__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.dark .homestay-room-pricing__table-wrap {
    border-color: #334155;
    background: #0f172a;
    box-shadow: none;
}

.homestay-room-pricing__table {
    width: 100%;
    min-width: 280px;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.homestay-room-pricing__table th,
.homestay-room-pricing__table td {
    padding: 0.625rem 0.75rem;
    text-align: left;
    vertical-align: middle;
    border: 1px solid #e2e8f0;
}

.dark .homestay-room-pricing__table th,
.dark .homestay-room-pricing__table td {
    border-color: #334155;
}

.homestay-room-pricing__table thead th {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #475569;
    background: #f1f5f9;
    border-bottom-width: 2px;
    border-bottom-color: #cbd5e1;
}

.dark .homestay-room-pricing__table thead th {
    color: #cbd5e1;
    background: #1e293b;
    border-bottom-color: #475569;
}

.homestay-room-pricing__table tbody tr:nth-child(even):not(.is-today) td {
    background: #fafafa;
}

.dark .homestay-room-pricing__table tbody tr:nth-child(even):not(.is-today) td {
    background: #111827;
}

.homestay-room-pricing__table tbody td:first-child {
    font-weight: 500;
    color: #334155;
}

.dark .homestay-room-pricing__table tbody td:first-child {
    color: #e2e8f0;
}

.homestay-room-pricing__table td:last-child,
.homestay-room-pricing__table th:last-child {
    text-align: right;
    white-space: nowrap;
}

.homestay-room-pricing__table td:nth-child(2),
.homestay-room-pricing__table th:nth-child(2) {
    text-align: right;
    white-space: nowrap;
}

.homestay-room-pricing__table .homestay-room-pricing__cell--price {
    font-weight: 700;
    color: var(--homestay-red, var(--brand-primary));
}

.homestay-room-pricing__table .homestay-room-pricing__cell--action {
    text-align: center;
    white-space: nowrap;
}

.homestay-room-pricing__th-action {
    width: 7.5rem;
    text-align: center;
}

.homestay-room-pricing__book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--homestay-red, #c40012);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.homestay-room-pricing__book-btn:hover {
    background: var(--homestay-red-dark, #a90010);
}

.homestay-room-pricing__book-btn:active {
    transform: scale(0.98);
}

.homestay-room-pricing__no-action {
    color: #94a3b8;
}

.homestay-room-pricing__table .homestay-room-pricing__cell--empty {
    color: #94a3b8;
    font-weight: 400;
}

.homestay-room-pricing__table tr.is-today td {
    background: #fff7ed;
}

.homestay-room-pricing__table tr.is-today td:first-child {
    box-shadow: inset 3px 0 0 var(--homestay-red, var(--brand-primary));
}

.dark .homestay-room-pricing__table tr.is-today td {
    background: rgba(180, 0, 16, 0.14);
}

.dark .homestay-room-pricing__table tr.is-today td:first-child {
    box-shadow: inset 3px 0 0 var(--homestay-red, var(--brand-primary));
}

@media (hover: hover) {
    .homestay-room-pricing__table tbody tr:not(.is-today):hover td {
        background: #f8fafc;
    }

    .dark .homestay-room-pricing__table tbody tr:not(.is-today):hover td {
        background: #1e293b;
    }
}

.homestay-room-pricing__today-badge {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.05rem 0.35rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--homestay-red, var(--brand-primary));
    background: #fee2e2;
    border-radius: 4px;
    vertical-align: middle;
}

.dark .homestay-room-pricing__today-badge {
    color: #fecaca;
    background: rgba(180, 0, 16, 0.35);
}

.homestay-room-pricing__table tr.is-holiday td:first-child {
    font-weight: 600;
}

.homestay-room-pricing__holiday-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
    font-size: 1rem !important;
    color: #d97706;
    vertical-align: middle;
}

.homestay-room-pricing__table tr.is-fee-row td:first-child {
    color: #64748b;
}

.dark .homestay-room-pricing__table tr.is-fee-row td:first-child {
    color: #94a3b8;
}

/* Tóm tắt giá form đặt phòng */
.homestay-booking-price-summary__line[hidden],
.homestay-booking-price-summary__line.is-hidden {
    display: none !important;
}

.homestay-booking-price-summary__line.is-struck-through {
    opacity: 0.55;
}

.homestay-booking-price-summary__line.is-struck-through dt,
.homestay-booking-price-summary__line.is-struck-through dd {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.homestay-booking-price-summary__lines dt {
    font-weight: 500;
}

.homestay-booking-price-summary__total {
    color: var(--homestay-text, #111827);
}

/* ========== Homestay detail — brand tone ========== */
.homestay-show.homestay-detail {
    --homestay-red: var(--brand-primary, #00D233);
    --homestay-red-dark: var(--brand-primary-hover, #00B82C);
    --homestay-brand-soft: var(--brand-primary-soft, #E5FBEB);
    --homestay-border: #e5e7eb;
    --homestay-text: var(--brand-text, #1a2e1f);
    --homestay-muted: #6d786d;
    color: var(--homestay-text);
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .homestay-show.homestay-detail {
        padding-top: 2.25rem;
        padding-bottom: 2rem;
    }
}

body:has(.homestay-show) {
    background-color: #fff !important;
}

.homestay-page-breadcrumb-bar:has(+ * .homestay-show),
body:has(.homestay-show) .homestay-page-breadcrumb-bar {
    background: #fff;
    border-bottom-color: #e5e7eb;
}

.homestay-detail .homestay-detail__nav {
    background: #fff;
    border-color: #e5e7eb;
}

.homestay-detail .homestay-summary,
.homestay-detail .homestay-booking-sidebar,
.homestay-detail [id="information"] > .bg-white,
.homestay-detail [id="amenities"],
.homestay-detail [id="house-rules"],
.homestay-detail [id="faq"] > .bg-white,
.homestay-detail [id="location"],
.homestay-detail .homestay-policies-card,
.homestay-detail .homestay-amenities {
    background: #fff;
    border-color: #e5e7eb;
}

.homestay-detail .homestay-booking-sidebar {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.homestay-detail .homestay-booking-price-summary {
    background: #fff !important;
    border-color: #e5e7eb !important;
}

.homestay-detail .homestay-rich-content div[style],
.homestay-detail .homestay-rich-content blockquote[style] {
    background-color: var(--homestay-brand-soft) !important;
    border-color: #e5e7eb !important;
    color: var(--homestay-text) !important;
}

.homestay-detail .text-primary,
.homestay-detail .border-primary,
.homestay-detail .bg-primary {
    --tw-text-opacity: 1;
}

.homestay-detail .bg-primary {
    background-color: var(--brand-primary, #00D233) !important;
}

.homestay-detail .hover\:bg-primary\/90:hover {
    background-color: var(--brand-primary-hover, #00B82C) !important;
}

.homestay-detail .text-primary {
    color: var(--brand-primary, #00D233) !important;
}

.homestay-detail .border-primary {
    border-color: var(--brand-primary, #00D233) !important;
}

.homestay-detail .focus\:ring-primary\/60:focus,
.homestay-detail .focus\:border-primary:focus {
    --tw-ring-color: color-mix(in srgb, var(--brand-primary, #00D233) 60%, transparent);
    border-color: var(--brand-primary, #00D233);
}

.homestay-detail .homestay-date-range.is-open .homestay-date-range__trigger,
.homestay-detail .homestay-date-range__trigger:hover {
    border-color: var(--brand-primary, #00D233);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary, #00D233) 18%, transparent);
}

/* ========== Homestay detail — motion & reveal ========== */
.homestay-detail {
    overflow-x: clip;
}

.homestay-detail:not(.is-ready) .homestay-detail__hero,
.homestay-detail:not(.is-ready) .homestay-detail__summary {
    opacity: 0;
}

.homestay-detail.is-ready .homestay-detail__hero-main img {
    animation: homestayDetailHeroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.homestay-detail__hero-main img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.homestay-detail__hero-main:hover img {
    transform: scale(1.03);
}

.homestay-detail.is-ready .homestay-hero-badges {
    animation: homestayDetailFadeUp 0.5s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.homestay-detail.is-ready .homestay-hero-views {
    animation: homestayDetailFadeUp 0.45s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.homestay-detail.is-ready .homestay-detail__summary {
    animation: homestayDetailReveal 0.65s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.homestay-detail.is-ready .homestay-gallery .gallery-thumb {
    animation: homestayDetailReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.homestay-detail.is-ready .homestay-gallery .gallery-thumb:nth-child(1) {
    animation-delay: 0.14s;
}

.homestay-detail.is-ready .homestay-gallery .gallery-thumb:nth-child(2) {
    animation-delay: 0.2s;
}

.homestay-detail.is-ready .homestay-gallery .gallery-thumb:nth-child(3) {
    animation-delay: 0.26s;
}

.homestay-detail.is-ready .homestay-gallery .gallery-thumb:nth-child(4) {
    animation-delay: 0.32s;
}

.homestay-gallery .gallery-thumb {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.homestay-gallery .gallery-thumb:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgb(0 0 0 / 0.14);
}

.homestay-detail-section {
    scroll-margin-top: 7.5rem;
}

@media (min-width: 1024px) {
    .homestay-detail-section {
        scroll-margin-top: 8rem;
    }
}

.homestay-detail-section:not(.is-visible) {
    opacity: 0;
}

.homestay-detail-section.is-visible {
    animation: homestayDetailReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.homestay-detail__booking.is-visible {
    animation: homestayDetailReveal 0.6s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.homestay-detail__nav-wrap {
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.homestay-detail__nav-wrap.is-scrolled .homestay-detail__nav {
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
}

.dark .homestay-detail__nav-wrap.is-scrolled .homestay-detail__nav {
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
}

.homestay-detail .nav-tab {
    transition: color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.homestay-detail .nav-tab:hover {
    transform: translateY(-2px);
}

.homestay-detail .nav-tab.active-tab {
    transform: translateY(-1px);
}

.homestay-summary__urgency {
    animation: homestayDetailUrgencyPulse 2.6s ease-in-out infinite;
}

.homestay-summary__btn--book {
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
    animation: homestayDetailCtaGlow 3.2s ease-in-out infinite;
}

.homestay-summary__btn--book:hover {
    transform: translateY(-2px) scale(1.02);
    animation: none;
    box-shadow: 0 10px 26px var(--brand-primary-shadow, rgba(96, 125, 59, 0.35));
}

.homestay-summary__btn--book:active {
    transform: translateY(0) scale(0.98);
}

.homestay-summary__favorite.car-service-card__favorite {
    transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.homestay-summary__favorite.car-service-card__favorite:hover {
    transform: scale(1.08);
}

.homestay-summary__favorite.car-service-card__favorite.is-favorited {
    animation: homestayDetailHeartPop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.homestay-detail-section.is-visible .homestay-amenities__group {
    animation: homestayDetailReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.homestay-detail-section.is-visible .homestay-amenities__group:nth-child(1) {
    animation-delay: 0.04s;
}

.homestay-detail-section.is-visible .homestay-amenities__group:nth-child(2) {
    animation-delay: 0.08s;
}

.homestay-detail-section.is-visible .homestay-amenities__group:nth-child(3) {
    animation-delay: 0.12s;
}

.homestay-detail-section.is-visible .homestay-amenities__group:nth-child(4) {
    animation-delay: 0.16s;
}

.homestay-detail-section.is-visible .homestay-amenities__group:nth-child(n + 5) {
    animation-delay: 0.2s;
}

.homestay-detail-section.is-visible .homestay-rich-content,
.homestay-detail-section.is-visible .listing-reviews__card,
.homestay-detail-section.is-visible .homestay-room-offer {
    animation: homestayDetailReveal 0.5s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes homestayDetailHeroIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes homestayDetailReveal {
    from {
        opacity: 0;
        transform: translateY(1.15rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homestayDetailFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homestayDetailSlideIn {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes homestayDetailUrgencyPulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.82;
    }
}

@keyframes homestayDetailCtaGlow {
    0%,
    100% {
        box-shadow: 0 4px 14px var(--brand-primary-shadow, rgba(96, 125, 59, 0.22));
    }

    50% {
        box-shadow: 0 8px 22px var(--brand-primary-shadow, rgba(96, 125, 59, 0.38));
    }
}

@keyframes homestayDetailHeartPop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .homestay-detail:not(.is-ready) .homestay-detail__hero,
    .homestay-detail:not(.is-ready) .homestay-detail__summary,
    .homestay-detail-section:not(.is-visible) {
        opacity: 1;
    }

    .homestay-detail.is-ready .homestay-detail__hero-main img,
    .homestay-detail.is-ready .homestay-hero-badges,
    .homestay-detail.is-ready .homestay-hero-views,
    .homestay-detail.is-ready .homestay-detail__summary,
    .homestay-detail.is-ready .homestay-gallery .gallery-thumb,
    .homestay-detail-section.is-visible,
    .homestay-detail__booking.is-visible,
    .homestay-detail-section.is-visible .homestay-amenities__group,
    .homestay-detail-section.is-visible .homestay-rich-content,
    .homestay-detail-section.is-visible .listing-reviews__card,
    .homestay-detail-section.is-visible .homestay-room-offer {
        animation: none;
    }

    .homestay-detail__hero-main:hover img,
    .homestay-gallery .gallery-thumb:hover,
    .homestay-detail .nav-tab:hover,
    .homestay-detail .nav-tab.active-tab {
        transform: none;
    }

    .homestay-summary__urgency,
    .homestay-summary__btn--book {
        animation: none;
    }
}

/* Compact “why choose us” — small, neat feature strip */
.homestay-page .page-features,
.homestay-page-features {
    width: 100%;
    max-width: 1100px;
    margin: 1.25rem auto 1.5rem;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--homestay-border) 85%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--homestay-brand-soft) 55%, #fff) 0%, var(--homestay-surface) 100%);
    box-shadow: 0 6px 18px rgba(52, 69, 46, 0.05);
}

.homestay-page .page-features__title {
    margin: 0 0 0.95rem;
    text-align: center;
    font-size: clamp(1.12rem, 1.7vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--homestay-text);
}

.homestay-page .page-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .homestay-page .page-features__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

.homestay-page .page-features__item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.85rem;
    background: rgba(255, 254, 250, 0.72);
    border: 1px solid color-mix(in srgb, var(--homestay-border) 70%, transparent);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.homestay-page .page-features__item:hover {
    border-color: color-mix(in srgb, var(--homestay-red) 35%, var(--homestay-border));
    box-shadow: 0 8px 18px rgba(52, 69, 46, 0.07);
    transform: translateY(-1px);
}

.homestay-page .page-features__icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--homestay-red) 12%, transparent);
    color: var(--homestay-red);
}

.homestay-page .page-features__icon .material-symbols-outlined {
    font-size: 1.15rem;
    line-height: 1;
}

.homestay-page .page-features__copy {
    min-width: 0;
}

.homestay-page .page-features__item-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--homestay-text);
}

.homestay-page .page-features__item-desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--homestay-muted);
}

@media (min-width: 768px) {
    .homestay-page .page-features {
        padding: 1.1rem 1.15rem 1.2rem;
    }

    .homestay-page .page-features__item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.55rem;
        padding: 0.85rem 0.75rem 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homestay-page .page-features__item,
    .homestay-page .page-features__item:hover {
        transition: none;
        transform: none;
    }
}

/* —— Listing page readable polish —— */
.homestay-page {
    background: #fff;
    color: var(--homestay-text);
}
.homestay-page #homestay-filters-container {
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    background: #fff !important;
}
.homestay-page #homestay-filters-container > .flex h3 {
    font-weight: 700;
    color: var(--homestay-text);
}
.homestay-page .homestay-filter-panel {
    background: #fff !important;
    border-color: #e5e7eb !important;
}
.homestay-page .homestay-filter-panel__header {
    color: var(--homestay-text);
}
.homestay-page .homestay-filter-panel__header > span:first-child {
    font-weight: 600;
    font-size: 0.8125rem;
}
.homestay-page .homestay-filter-panel__header .material-symbols-outlined:first-child {
    color: var(--homestay-red);
}
.homestay-page .homestay-filter-checkbox:checked {
    background-color: var(--homestay-red) !important;
    border-color: var(--homestay-red) !important;
}
.homestay-page .homestay-filter-panel label span.text-sm,
.homestay-page .homestay-filter-review-tier__label {
    font-weight: 400;
    color: var(--homestay-text);
}
.homestay-page .homestay-toolbar__summary {
    color: var(--homestay-muted) !important;
    font-weight: 400;
}
.homestay-page .homestay-toolbar__summary .font-bold,
.homestay-page #homestays-count {
    color: var(--homestay-text) !important;
    font-weight: 700;
}
.homestay-page .homestay-card {
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.homestay-page .homestay-card:hover {
    border-color: color-mix(in srgb, var(--homestay-red) 35%, #e5e7eb) !important;
    box-shadow: 0 8px 22px rgba(0, 210, 51, 0.08);
}
.homestay-page .homestay-card__title,
.homestay-page .homestay-card h3,
.homestay-page .homestay-card__name {
    font-weight: 700;
    color: var(--homestay-text);
}
.homestay-page .homestay-card__location,
.homestay-page .homestay-card__location-text {
    font-weight: 400;
    color: var(--homestay-muted);
}
.homestay-page .homestay-card__location-icon {
    color: var(--homestay-red);
}
.homestay-page .homestay-card__rating {
    color: var(--homestay-text);
}
.homestay-page .homestay-card__rating strong {
    color: var(--homestay-text);
    font-weight: 700;
}
.homestay-page .homestay-card__rating .homestay-star-icon {
    color: #f5a524;
}
.homestay-page .homestay-card__price,
.homestay-page .homestay-card__price strong,
.homestay-page .homestay-card [class*="price"] {
    color: var(--homestay-red);
    font-weight: 700;
}
.homestay-page .homestay-card__book-btn {
    background: var(--homestay-red) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 10px;
}
.homestay-page .homestay-card__book-btn:hover {
    background: var(--homestay-red-dark) !important;
}
.homestay-page .homestay-card__amenity-icon {
    color: var(--homestay-red);
}
.homestay-page .homestay-card__amenity-label {
    font-weight: 400;
    color: var(--homestay-muted);
}
.homestay-page .homestay-card__title-link {
    color: inherit;
    font-weight: 700;
}
.homestay-page .homestay-card__title-link:hover {
    color: var(--homestay-red);
}
.homestay-hero-search {
    border-color: #e5e7eb;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.homestay-hero-search button {
    background: var(--homestay-red);
    font-weight: 600;
}
.homestay-hero-search button:hover {
    background: var(--homestay-red-dark);
}
.homestay-page .page-features__item-title {
    font-weight: 700;
}
.homestay-page .page-features__item-desc {
    font-weight: 400;
}
.homestay-page .pagination a,
.homestay-page .pagination span {
    font-weight: 500;
}
.homestay-page .pagination .active span,
.homestay-page .pagination [aria-current="page"] span {
    background: var(--homestay-red) !important;
    border-color: var(--homestay-red) !important;
    color: #fff !important;
    font-weight: 600;
}

/* —— Detail room/homestay polish —— */
.homestay-show.homestay-detail {
    background: #fff;
}
.homestay-detail .homestay-summary,
.homestay-detail .homestay-booking-sidebar,
.homestay-detail .homestay-amenities,
.homestay-detail .homestay-policies-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.homestay-detail .homestay-summary__title {
    font-weight: 800;
    color: var(--homestay-text);
    letter-spacing: -0.02em;
}
.homestay-detail .homestay-summary__address {
    font-weight: 400;
    color: var(--homestay-muted);
}
.homestay-detail .homestay-summary__address-icon {
    color: var(--homestay-red);
}
.homestay-detail .homestay-summary__rating-score {
    color: var(--homestay-text);
    font-weight: 700;
}
.homestay-detail .homestay-summary__rating-score .homestay-star-icon {
    color: #f5a524;
}
.homestay-detail .homestay-summary__reviews-count,
.homestay-detail .homestay-summary__bookings-count {
    font-weight: 400;
    color: var(--homestay-muted);
}
.homestay-detail .homestay-summary__price-value {
    color: var(--homestay-red);
    font-weight: 800;
}
.homestay-detail .homestay-summary__price-unit {
    font-weight: 400;
    color: var(--homestay-muted);
}
.homestay-detail .homestay-summary__btn--primary,
.homestay-detail .homestay-summary__btn--book {
    background: var(--homestay-red);
    border-color: var(--homestay-red);
    color: #fff;
    font-weight: 600;
}
.homestay-detail .homestay-summary__btn--primary:hover,
.homestay-detail .homestay-summary__btn--book:hover {
    background: var(--homestay-red-dark);
    border-color: var(--homestay-red-dark);
}
.homestay-detail .homestay-summary__urgency {
    color: var(--homestay-red);
    font-weight: 600;
}
.homestay-detail .homestay-amenities__group {
    background: #fff;
    border-color: #e5e7eb;
}
.homestay-detail .homestay-amenities__group-title {
    font-weight: 700;
    color: var(--homestay-text);
    margin-bottom: 0.45rem;
}
.homestay-detail .homestay-amenities__group-title .material-symbols-outlined {
    color: var(--homestay-red);
}
.homestay-detail .homestay-amenities__list {
    gap: 0.35rem;
}
.homestay-detail .homestay-amenities__list li {
    font-weight: 400;
    color: var(--homestay-muted);
    font-size: 0.875rem;
}
.homestay-detail .homestay-amenities__list li .material-symbols-outlined {
    color: var(--homestay-red);
    opacity: 1;
}
.homestay-detail .nav-tab.is-active,
.homestay-detail .nav-tab.active,
.homestay-detail .nav-tab[aria-current="true"] {
    color: var(--homestay-red) !important;
    font-weight: 600;
}
.homestay-detail h2,
.homestay-detail .homestay-section-title {
    font-weight: 700;
    color: var(--homestay-text);
}
.homestay-detail h3 {
    font-weight: 600;
    color: var(--homestay-text);
}
.homestay-detail .homestay-booking-sidebar label,
.homestay-detail .homestay-booking-sidebar .homestay-field-label {
    font-weight: 500;
    color: var(--homestay-text);
}
.homestay-detail .homestay-booking-sidebar input,
.homestay-detail .homestay-booking-sidebar select,
.homestay-detail .homestay-booking-sidebar textarea,
.homestay-detail .homestay-date-range__trigger {
    border-color: #e5e7eb;
    color: var(--homestay-text);
}
.homestay-detail .homestay-booking-sidebar button[type="submit"],
.homestay-detail .homestay-booking-sidebar .homestay-book-submit {
    background: var(--homestay-red);
    color: #fff;
    font-weight: 600;
}
.homestay-detail .homestay-booking-price-summary strong,
.homestay-detail .homestay-booking-price-summary__total,
.homestay-detail .homestay-booking-price-summary__total dd {
    color: var(--homestay-red);
    font-weight: 700;
}
.homestay-detail .homestay-room-type-card__price-value {
    color: var(--homestay-red);
    font-weight: 700;
}
.homestay-detail .related-homestays-swiper .homestay-card__price {
    color: var(--homestay-red);
    font-weight: 700;
}
.homestay-detail .related-homestays-swiper .homestay-card__book-btn {
    background: var(--homestay-red);
    color: #fff;
    font-weight: 600;
}
.homestay-detail .related-homestays-swiper .homestay-card__rating strong {
    color: var(--homestay-text);
}
.homestay-detail .related-homestays-swiper .homestay-star-icon {
    color: #f5a524;
}

/* —— Summary card compact —— */
.homestay-detail .homestay-summary {
    margin-bottom: 0.75rem;
}
.homestay-detail .homestay-summary__body {
    padding: 0.9rem 1rem 0.85rem;
}
.homestay-detail .homestay-summary__topline {
    margin-bottom: 0.35rem;
    gap: 0.35rem 0.5rem;
}
.homestay-detail .homestay-summary__title-row {
    margin-bottom: 0.25rem;
    gap: 0.5rem;
}
.homestay-detail .homestay-summary__title {
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    line-height: 1.25;
}
.homestay-detail .homestay-summary__favorite.car-service-card__favorite {
    width: 34px;
    height: 34px;
}
.homestay-detail .homestay-summary__favorite.car-service-card__favorite .material-symbols-outlined {
    font-size: 18px;
}
.homestay-detail .homestay-summary__address {
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}
.homestay-detail .homestay-summary__highlights {
    margin-bottom: 0.45rem;
    gap: 0.35rem 0.75rem;
}
.homestay-detail .homestay-summary__rating-score,
.homestay-detail .homestay-summary__reviews-count,
.homestay-detail .homestay-summary__bookings-count {
    font-size: 0.8125rem;
}
.homestay-detail .homestay-summary__price-cta {
    gap: 0.55rem 0.75rem;
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
    border-color: color-mix(in srgb, var(--homestay-red) 22%, #e5e7eb);
    background: linear-gradient(135deg, var(--homestay-brand-soft) 0%, #fff 60%);
    align-items: center;
}
.homestay-detail .homestay-summary__price-cta-main {
    gap: 0;
}
.homestay-detail .homestay-summary__price-cta .homestay-summary__price-value {
    font-size: 1.2rem;
    line-height: 1.1;
}
.homestay-detail .homestay-summary__btn--book {
    min-height: 2.35rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    border-radius: 0.65rem;
}
.homestay-detail .homestay-summary__btn--book .material-symbols-outlined {
    font-size: 1rem !important;
}
.homestay-detail .homestay-summary__room-meta {
    gap: 0.35rem 0.85rem;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}
.homestay-detail .homestay-summary__stay-times {
    gap: 0.35rem 1rem;
    margin-bottom: 0.55rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}
.homestay-detail .homestay-summary__fact-icon {
    font-size: 1rem !important;
}
.homestay-detail .homestay-summary__contacts {
    gap: 0.4rem;
}
.homestay-detail .homestay-summary__contact {
    min-height: 2.15rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 0.55rem;
}
.homestay-detail .homestay-summary__contact-icon,
.homestay-detail .homestay-summary__contact-zalo {
    font-size: 1rem;
}
.homestay-detail .homestay-summary__actions--secondary {
    gap: 0.4rem;
    margin-top: 0.35rem;
}
.homestay-detail .price-currency-switch,
.homestay-detail .homestay-summary__price-cta .price-currency-switch {
    margin: 0;
}
.homestay-detail .homestay-summary__price-cta .price-currency-switch__note,
.homestay-detail .homestay-summary__price-cta [class*="rate"],
.homestay-detail .homestay-summary__price-cta small {
    font-size: 0.65rem;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .homestay-detail .homestay-summary__body {
        padding: 1rem 1.1rem 0.95rem;
    }
    .homestay-detail .homestay-summary__price-cta {
        flex-wrap: nowrap;
    }
}

@media (max-width: 639px) {
    .homestay-show.homestay-detail.homestay-shell,
    .homestay-page-breadcrumb-bar .homestay-shell {
        padding-left: 12px;
        padding-right: 12px;
    }
    .homestay-detail .homestay-summary,
    .homestay-detail .homestay-booking-sidebar,
    .homestay-detail .homestay-amenities,
    .homestay-detail [id="faq"] > div,
    .homestay-detail [id="information"] > .bg-white {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }
    .homestay-detail .homestay-summary__body {
        padding: 0.7rem 0.65rem 0.65rem;
    }
    .homestay-detail .homestay-summary__title {
        font-size: 1.05rem;
    }
    .homestay-detail .homestay-summary__price-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        padding: 0.5rem 0.55rem;
        margin-bottom: 0.45rem;
    }
    .homestay-detail .homestay-summary__price-cta .homestay-summary__price-value {
        font-size: 1.1rem;
    }
    .homestay-detail .homestay-summary__btn--book {
        width: 100%;
        min-height: 2.25rem;
        font-size: 0.8125rem;
    }
    .homestay-detail .homestay-summary__price-cta .price-fx,
    .homestay-detail .homestay-booking-price-summary .price-fx {
        max-width: 100%;
        margin-top: 0;
        padding: 6px 8px;
    }
    .homestay-detail .homestay-summary__room-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.3rem 0.45rem;
        margin-bottom: 0.35rem;
        font-size: 0.72rem;
    }
    .homestay-detail .homestay-summary__stay-times {
        margin-bottom: 0.45rem;
        font-size: 0.72rem;
    }
    .homestay-detail .homestay-summary__contacts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
    }
    .homestay-detail .homestay-summary__contact {
        min-width: 0;
        min-height: 2rem;
        padding: 0.4rem 0.45rem;
        font-size: 0.6875rem;
        justify-content: flex-start;
    }
    .homestay-detail .homestay-summary__contact--directions {
        grid-column: auto;
        justify-content: flex-start;
    }
    .homestay-detail .homestay-summary__contact-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .homestay-detail .homestay-detail__nav-wrap {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .homestay-detail .homestay-detail__nav {
        gap: 0.65rem !important;
        padding-inline: 0.5rem !important;
    }
    .homestay-detail .nav-tab {
        font-size: 0.72rem !important;
        padding-top: 0.55rem !important;
        padding-bottom: 0.55rem !important;
        font-weight: 600 !important;
    }
    .homestay-detail .grid.lg\:grid-cols-\[1fr_360px\] {
        gap: 0.85rem;
    }
    .homestay-detail .flex.min-w-0.flex-col {
        gap: 0.85rem !important;
    }
    .homestay-detail .homestay-booking-sidebar {
        padding: 0.75rem !important;
    }
    .homestay-detail .homestay-amenities__groups {
        columns: 1 !important;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .homestay-detail .homestay-amenities__group {
        padding: 0.65rem 0.7rem;
        break-inside: avoid;
    }
    .homestay-detail .homestay-amenities__group-title {
        font-size: 0.875rem;
        margin-bottom: 0.35rem;
    }
    .homestay-detail .homestay-amenities__list li {
        font-size: 0.8125rem;
    }
    .homestay-detail .homestay-faq-list {
        gap: 8px;
    }
    .homestay-detail .homestay-faq-question {
        padding: 11px 12px;
        font-size: 0.8125rem;
        font-weight: 600;
    }
    .homestay-detail .homestay-faq-answer-inner {
        font-size: 0.8125rem;
        padding-left: 12px;
        padding-right: 12px;
    }
    .homestay-detail .homestay-rich-content {
        font-size: 0.8125rem;
        line-height: 1.55;
    }
    .homestay-detail h2.pl-3,
    .homestay-detail [id="amenities"] > h2,
    .homestay-detail [id="faq"] h2,
    .homestay-detail [id="information"] h2 {
        font-size: 1rem !important;
        margin-bottom: 0.65rem !important;
    }
    .homestay-detail .related-homestays-swiper .homestay-card__title {
        font-size: 0.875rem;
    }
}
