/* ===========================================
   Hotel Management — Frontend Styles
   =========================================== */

:root {
    --hm-accent: #063924;
    --hm-accent-dark: #002b19;
    --hm-blue: #1a73e8;
    --hm-text: #1a1a2e;
    --hm-muted: #666;
    --hm-border: #e8e8e8;
    --hm-bg: #f7f8fa;
    --hm-white: #ffffff;
    --hm-warning: #ffc107;
    --hm-radius: 8px;
    --hm-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

/* ---- Search Filter Bar ---- */
.hm-search-bar {
    background: var(--hm-white);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 28px;
    box-shadow: var(--hm-shadow);
}

.hm-search-bar label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-text);
    margin-bottom: 6px;
}

.hm-search-bar input,
.hm-search-bar select {
    height: 42px;
    border: 1px solid var(--hm-border);
    padding: 0 12px;
    font-size: 14px;
    color: var(--hm-text);
    background: var(--hm-bg);
    outline: none;
    transition: border-color .2s;
    margin: 0;
    background-color: #f3f3f3;
    border-radius: 8px !important;
}

.hm-search-bar input:focus,
.hm-search-bar select:focus {
    border-color: var(--hm-accent);
}

.hm-search-bar .hm-field {
    flex: 1;
    min-width: 160px;
}

.hm-search-btn {
    height: 42px;
    background: var(--hm-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    margin: 0;
    text-transform: math-auto;
}

.hm-search-btn:hover {
    background: var(--hm-accent-dark);
}

/* ---- Room List ---- */
.hm-room-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hm-room-count {
    font-size: 14px;
    color: var(--hm-muted);
    margin-bottom: 4px;
}

.hm-room-card {
    background: var(--hm-white);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    display: grid;
    grid-template-columns: 280px 1fr auto;
    overflow: hidden;
    box-shadow: var(--hm-shadow);
    transition: box-shadow .2s;
}

.hm-room-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .13);
}

.hm-room-gallery {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.hm-room-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .25s;
}

.hm-gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.hm-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
    transition: background .2s;
}

.hm-gallery-dot.active {
    background: #fff;
}

.hm-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}

.hm-room-gallery:hover .hm-gallery-arrow {
    opacity: 1;
}

.hm-gallery-arrow.prev {
    left: 8px;
}

.hm-gallery-arrow.next {
    right: 8px;
}

.hm-room-body {
    padding: 20px;
}

.hm-room-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0 0 10px;
}

.hm-room-specs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.hm-room-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--hm-muted);
}

.hm-room-spec i {
    color: var(--hm-accent);
    font-size: 14px;
}

.hm-room-desc {
    font-size: 14px;
    color: var(--hm-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.hm-room-amenity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--hm-text);
}

.hm-room-amenity i {
    color: var(--hm-accent);
    font-size: 14px;
}

.hm-room-excerpt {
    margin: 10px 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.hm-room-body .hm-room-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.hm-room-action {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    border-left: 1px solid var(--hm-border);
    min-width: 180px;
}

.hm-room-avail {
    font-size: 12px;
    color: var(--hm-warning);
    text-align: right;
}

.hm-room-avail.low {
    color: #e53935;
}

.hm-price-wrap {
    text-align: right;
}

.hm-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--hm-accent);
    line-height: 1.2;
}

.hm-price-unit {
    font-size: 12px;
    color: var(--hm-muted);
}

.hm-price-note {
    font-size: 11px;
    color: var(--hm-muted);
    margin-top: 2px;
}

.hm-price-total {
    font-size: 14px;
    color: var(--hm-text);
    margin-top: 6px;
    font-weight: 600;
}

.hm-select-btn {
    background: var(--hm-accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
    text-align: center;
    margin: 0;
    text-transform: math-auto;
}

.hm-select-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

.hm-select-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ---- Skeleton ---- */
.hm-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: hm-shimmer 1.4s infinite;
    border-radius: 4px;
}

@keyframes hm-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.hm-skeleton-card {
    background: #fff;
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    display: grid;
    grid-template-columns: 260px 1fr auto;
    overflow: hidden;
    height: 180px;
}

.hm-skeleton-card .hm-sk-img {
    background: #e8e8e8;
}

.hm-skeleton-card .hm-sk-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-skeleton-card .hm-sk-line {
    height: 14px;
    border-radius: 4px;
}

.hm-skeleton-card .hm-sk-action {
    width: 180px;
    border-left: 1px solid var(--hm-border);
}

/* =========================================
   POPUP BOOKING — 4 bước
   ========================================= */
.hm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.hm-overlay.open {
    opacity: 1;
    visibility: visible;
}

.hm-popup {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    transform: translateY(20px);
    transition: transform .25s;
}

.hm-overlay.open .hm-popup {
    transform: translateY(0);
}

.hm-popup-close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #fff !important;
    background-color: #bd0000;
    z-index: 10;
    line-height: 1;
    padding: 10px 15px;
    min-height: auto;
}

.hm-popup-close:hover {
    color: var(--hm-text);
}

/* Steps indicator */
.hm-steps {
    display: flex;
    align-items: center;
    padding: 24px 32px 0;
    margin-bottom: 28px;
}

.hm-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    flex: 1;
}

.hm-step.active {
    color: var(--hm-warning);
}

.hm-step.done {
    color: #2e7d32;
}

.hm-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all .2s;
}

.hm-step.active .hm-step-num {
    border-color: var(--hm-warning);
    color: var(--hm-warning);
}

.hm-step.done .hm-step-num {
    border-color: #2e7d32;
    background: #2e7d32;
    color: #fff;
}

.hm-step-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 8px;
}

.hm-step-line.done {
    background: #2e7d32;
}

/* Step content */
.hm-step-panel {
    display: none;
    padding: 0 32px 28px;
}

.hm-step-panel.active {
    display: block;
}

/* Booking layout: form + sidebar */
.hm-booking-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Sidebar chi tiết */
.hm-booking-sidebar {
    background: var(--hm-bg);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 18px;
    font-size: 14px;
}

.hm-sidebar-hotel {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hm-border);
}

.hm-sidebar-hotel img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.hm-sidebar-hotel-name {
    font-weight: 700;
    color: var(--hm-text);
    margin-bottom: 4px;
}

.hm-sidebar-hotel-addr {
    color: var(--hm-muted);
    font-size: 12px;
}

.hm-sidebar-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.hm-sidebar-row .label {
    color: var(--hm-muted);
}

.hm-sidebar-row .value {
    font-weight: 600;
    color: var(--hm-text);
    text-align: right;
}

.hm-sidebar-total {
    border-top: 1px solid var(--hm-border);
    padding-top: 12px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hm-sidebar-total .label {
    font-weight: 700;
    color: var(--hm-text);
}

.hm-sidebar-total .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--hm-accent);
}

/* Form fields */
.hm-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-text);
    margin-bottom: 6px;
}

.hm-form-group input,
.hm-form-group textarea,
.hm-form-group select {
    width: 100%;
    border: 1px solid var(--hm-border);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--hm-text);
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
    background: #fff;
    box-shadow: none !important;
    border-radius: 8px !important;
}

.hm-form-group textarea {
    margin-bottom: 0;
}

.hm-form-group input:focus,
.hm-form-group textarea:focus {
    border-color: var(--hm-accent);
}

.hm-form-group input.error {
    border-color: #e53935;
}

.hm-form-group .hm-error-msg {
    font-size: 12px;
    color: #e53935;
    overflow: hidden;
    max-height: 0;
    transition: max-height .2s, padding .2s, margin .2s;
}

.hm-form-group .hm-error-msg:not(:empty) {
    max-height: 60px;
    padding: 6px 12px;
    margin-bottom: 10px;
    background-color: #e5393517;
}

/* Booking info readonly (bước 1) */
.hm-booking-info-readonly {
    background: var(--hm-bg);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 16px;
    margin-bottom: 20px;
}

.hm-booking-info-readonly h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--hm-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.hm-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hm-info-item .il {
    font-size: 12px;
    color: var(--hm-muted);
}

.hm-info-item .iv {
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-text);
}

/* Bước 2 — Thanh toán */
.hm-payment-method {
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hm-payment-method.selected {
    border-color: var(--hm-accent);
    background: #fff6f3;
}

.hm-payment-method input[type="radio"] {
    accent-color: var(--hm-accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
}

.hm-payment-method-label {
    font-weight: 600;
    color: var(--hm-text);
    font-size: 15px;
}

.hm-payment-method-desc {
    font-size: 14px;
    color: var(--hm-muted);
    font-weight: 400;
    margin-top: 3px;
}

/* Bước 3 — Xác nhận */
.hm-confirm-full {
    width: 100%;
}

.hm-confirm-section {
    margin-bottom: 20px;
    border-bottom: 1px dashed #333;

    &:last-child {
        margin-bottom: 0;
    }
}

.hm-confirm-section h4 {
    font-size: 14px;
    color: var(--hm-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 10px;
}

.hm-confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--hm-border);
    font-size: 14px;
}

.hm-confirm-row:last-child {
    border-bottom: none;
}

.hm-confirm-row .ck {
    color: var(--hm-muted);
    flex-shrink: 0;
}

.hm-confirm-row .cv {
    font-weight: 700;
    color: var(--hm-text);
    text-align: right;
}

/* Bước 4 — Thank you */
.hm-thankyou {
    text-align: center;
}

.hm-thankyou-icon {
    font-size: 64px;
    color: #2e7d32;
    margin-bottom: 16px;
}

.hm-thankyou h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--hm-text);
    margin-bottom: 8px;
}

.hm-thankyou p {
    color: var(--hm-muted);
    font-size: 15px;
    margin-bottom: 6px;
}

.hm-thankyou .hm-booking-code-display {
    display: inline-block;
    background: var(--hm-bg);
    border: 2px dashed var(--hm-accent);
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 22px;
    font-weight: 700;
    color: var(--hm-accent);
    letter-spacing: 3px;
}

/* Popup footer — navigation buttons */
.hm-popup-footer {
    padding: 16px 32px 24px;
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--hm-border);
}

.hm-popup-footer .hm-btn-primary,
.hm-popup-footer .hm-btn-close {
    margin-left: auto;
}

.hm-btn {
    padding: 0 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .2s;
    margin: 0;
    text-transform: math-auto;
    justify-content: center;
}

.hm-btn-primary {
    background: var(--hm-accent);
    color: #fff;
}

.hm-btn-primary:hover {
    background: var(--hm-accent-dark);
}

.hm-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.hm-btn-secondary {
    background: var(--hm-bg);
    color: var(--hm-text);
    border: 1px solid var(--hm-border);
}

.hm-btn-secondary:hover {
    background: var(--hm-border);
}

.hm-btn-close {
    background: var(--hm-accent);
    color: #fff;
}

.hm-btn-close:hover {
    background: var(--hm-accent-dark);
}

/* ---- No results ---- */
.hm-no-rooms {
    text-align: center;
    padding: 48px 20px;
    color: var(--hm-muted);
}

.hm-no-rooms i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

/* =========================================
   Flatpickr — Custom Theme
   ========================================= */
.flatpickr-calendar {
    font-family: inherit;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
    border: none;
}

.flatpickr-current-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flatpickr-current-month input.cur-year {
    display: none !important;
}

.hm-fp-year {
    font-size: 14px;
    font-weight: 700;
    color: inherit;
}

/* Ẩn nút prev khi disabled */
.flatpickr-prev-month.flatpickr-disabled {
    visibility: hidden;
}

/* Hover ngày */
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: #fde8e0;
    border-color: #fde8e0;
}

/* Ngày hiện tại */
.flatpickr-day.today {
    border-color: var(--hm-accent);
}

/* Ngày được chọn */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--hm-accent);
    border-color: var(--hm-accent);
}

/* =========================================
   Single Hotel Detail Page
   ========================================= */
.hm-hotel-detail {
    font-family: inherit;
}

/* ---- Gallery Grid ---- */
.hm-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    max-height: 480px;
    overflow: hidden;
}

.hm-gallery-main,
.hm-gallery-sub-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #111;
}

.hm-gallery-main img,
.hm-gallery-sub-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, opacity .35s ease;
}

.hm-gallery-main:hover img,
.hm-gallery-sub-item:hover img {
    transform: scale(1.04);
    opacity: .88;
}

.hm-gallery-main {
    height: 480px;
}

.hm-gallery-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}

.hm-gallery-sub-item {
    height: 238px;
}

.hm-gallery-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 6px;
    pointer-events: none;
}

.hm-gallery-more i {
    font-size: 28px;
}

.hm-gallery-more span {
    font-size: 20px;
    font-weight: 700;
}

/* ---- Lightbox ---- */
.hm-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.hm-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.hm-lb-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 60px 80px 16px;
    box-sizing: border-box;
    min-height: 0;
}

.hm-lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity .2s;
    display: block;
}

.hm-lb-img.loading {
    opacity: 0;
}

.hm-lb-close,
.hm-lb-prev,
.hm-lb-next {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    margin: 0;
    padding: 0;
    min-height: auto;
}

.hm-lb-close:hover,
.hm-lb-prev:hover,
.hm-lb-next:hover {
    background: rgba(255, 255, 255, .28);
}

.hm-lb-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.hm-lb-prev,
.hm-lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 20px;
}

.hm-lb-prev {
    left: 16px;
}

.hm-lb-next {
    right: 16px;
}

.hm-lb-counter {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    padding: 4px 0 10px;
}

.hm-lb-thumbnails {
    display: flex;
    gap: 6px;
    padding: 10px 16px 16px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .3) transparent;
}

.hm-lb-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 44px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
}

.hm-lb-thumb.active {
    border-color: var(--hm-accent);
}

.hm-lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Hotel header (title + address) ---- */
.hm-hotel-header {
    padding: 28px 0 16px;
}

.hm-hotel-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--hm-text);
    margin: 0 0 8px;
}

.hm-hotel-container {
    padding-bottom: 32px;
}

.hm-hotel-meta-bar {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 20px 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    justify-content: space-between;
}

.hm-hotel-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hm-hotel-meta-item i {
    font-size: 22px;
    color: var(--hm-accent);
}

.hm-hotel-meta-item span {
    font-size: 12px;
    color: #888;
    display: block;
}

.hm-hotel-meta-item strong {
    font-size: 15px;
    display: block;
}

.hm-hotel-meta-item a {
    color: inherit;
    text-decoration: none;
}

.hm-hotel-section {
    margin-bottom: 48px;
}

.hm-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hm-accent);
    display: inline-block;
}

.hm-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.hm-amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.hm-amenity-item i {
    color: green;
    background-color: #0080002b;
    padding: 6px;
    border-radius: 6px;
}

.hm-hotel-desc {
    margin-bottom: 36px;
    line-height: 1.8;
    color: #333;
}

/* =========================================
   Nút xem chi tiết phòng (trong card)
   ========================================= */
.hm-detail-btn {
    background: none;
    border: none;
    color: var(--hm-accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: auto;
    text-transform: math-auto;
    margin: 0;
}

.hm-detail-btn:hover {
    color: var(--hm-accent-dark);
}

/* =========================================
   Popup chi tiết phòng
   ========================================= */
.hm-rd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.hm-rd-overlay.open {
    opacity: 1;
    visibility: visible;
}

.hm-rd-popup {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
    transform: translateY(16px);
    transition: transform .25s;
}

.hm-rd-overlay.open .hm-rd-popup {
    transform: translateY(0);
}

/* Nút đóng */
.hm-rd-close {
    position: absolute;
    top: 5px;
    right: 5px;
    margin: 0;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: auto;
    transition: background .2s;
}

.hm-rd-close:hover {
    background: rgba(0, 0, 0, .7);
}

/* ---- Cột trái: gallery ---- */
.hm-rd-gallery {
    position: relative;
    background: #111;
    overflow: hidden;
}

.hm-rd-slides {
    width: 100%;
    height: 100%;
}

.hm-rd-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s ease;
}

.hm-rd-slide.active {
    opacity: 1;
}

.hm-rd-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-rd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, .4);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: auto;
    transition: background .2s;
}

.hm-rd-arrow:hover {
    background: rgba(0, 0, 0, .65);
}

.hm-rd-prev {
    left: 12px;
}

.hm-rd-next {
    right: 12px;
}

.hm-rd-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ---- Cột phải: thông tin ---- */
.hm-rd-info {
    padding: 28px 24px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 90vh;
}

.hm-rd-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--hm-text);
    margin: 0 0 10px;
    padding-right: 32px;
}

.hm-rd-excerpt {
    font-size: 14px;
    color: var(--hm-muted);
    line-height: 1.7;
    margin: 0 0 18px;
}

.hm-rd-block {
    margin-bottom: 16px;
}

.hm-rd-block h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--hm-text);
    margin: 0 0 10px;
}

.hm-rd-specs {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hm-rd-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--hm-text);
}

.hm-rd-spec i {
    color: var(--hm-accent);
    width: 16px;
    text-align: center;
}

.hm-rd-amenities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
}

.hm-rd-amenity-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--hm-text);
}

.hm-rd-amenity-item i {
    color: var(--hm-accent);
    font-size: 12px;
}

.hm-rd-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--hm-border);
}

.hm-rd-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--hm-accent);
    line-height: 1.2;
}

.hm-rd-price-unit {
    font-size: 12px;
    color: var(--hm-muted);
}

.hm-rd-price-note {
    font-size: 11px;
    color: var(--hm-muted);
    margin-top: 2px;
}

.hm-rd-avail {
    font-size: 12px;
    color: var(--hm-warning);
    font-weight: 600;
    text-align: right;
}

.hm-rd-avail.low {
    color: #e53935;
}

.hm-rd-select-btn {
    background: var(--hm-accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background .2s;
    margin: 0;
    margin-top: 10px;
}

.hm-rd-select-btn:hover {
    background: var(--hm-accent-dark);
}

.hm-rd-select-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ss-gallery {
    .img-inner {
        border-radius: 12px;
        overflow: hidden;
    }
}

.hm-location-section {
    padding: 0;
}

.hm-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background-color: #fff;
}

.hm-location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
}

.hm-location-nearby {
    padding: 28px 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.hm-nearby-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.hm-nearby-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
}

.hm-nearby-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.hm-nearby-item:last-child {
    border-bottom: 0;
}

.hm-nearby-name {
    font-size: 0.9rem;
    color: #333;
}

.hm-nearby-distance {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}




/* ---- Responsive ---- */
@media (max-width: 768px) {

    .hm-location-grid {
        grid-template-columns: 1fr;
    }

    .hm-location-map iframe {
        min-height: 240px;
    }

    .hm-hotel-meta-bar {
        flex-direction: column;
    }

    .hm-gallery-grid {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        height: 260px;
        max-height: none;
        gap: 0;
        padding: 0 !important;
    }

    .hm-gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .hm-gallery-main,
    .hm-gallery-sub-item {
        flex: 0 0 100%;
        width: 100%;
        height: 260px;
        scroll-snap-align: start;
    }

    .hm-gallery-sub {
        display: contents;
    }

    .hm-lb-stage {
        padding: 56px 48px 12px;
    }

    .hm-lb-prev {
        left: 8px;
    }

    .hm-lb-next {
        right: 8px;
    }

    .hm-room-card,
    .hm-skeleton-card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hm-skeleton-card .hm-sk-img {
        height: 200px;
    }

    .hm-skeleton-card .hm-sk-action {
        width: auto;
        border-left: none;
        border-top: 1px solid var(--hm-border);
        padding: 16px 20px;
    }

    .hm-room-gallery {
        aspect-ratio: 4 / 3;
    }

    .hm-room-action {
        border-left: none;
        border-top: 1px solid var(--hm-border);
        flex-direction: column;
    }

    .hm-price-unit,
    .hm-room-avail,
    .hm-price-note {
        font-size: 14px;
    }

    .hm-booking-layout {
        grid-template-columns: 1fr;
    }

    .hm-booking-sidebar {
        order: -1;
    }

    .hm-steps {
        padding: 16px 16px 0;
    }

    /* Mobile: chỉ hiển thị step đang active */
    .hm-step:not(.active) {
        display: none;
    }

    .hm-step-line {
        display: none;
    }

    .hm-step-panel {
        padding: 0 16px 20px;
    }

    .hm-popup-footer {
        padding: 14px 16px 20px;
    }

    .hm-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .hm-search-bar {
        flex-direction: column;
    }

    .hm-search-bar .hm-field {
        max-width: 100% !important;
        width: 100%;
    }

    .hm-search-btn {
        width: 100%;
    }

    .hm-popup-footer {
        flex-direction: column;
    }

    .hm-popup-footer .hm-btn-primary,
    .hm-popup-footer .hm-btn-close {
        margin-left: 0;
        width: 100%;
        text-align: center;
        justify-content: center;
        order: -1;
    }

    .hm-popup-footer .hm-btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .hm-rd-popup {
        grid-template-columns: 1fr;
        max-height: 94vh;
        overflow-y: auto;
    }

    .hm-rd-gallery {
        min-height: 240px;
        max-height: 260px;
    }

    .hm-rd-info {
        padding: 20px 16px 20px;
    }

    .hm-rd-amenities {
        grid-template-columns: 1fr;
    }
}

.hm-banner-search {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 999px;
    height: 80px;
    padding: 1px 22px 0px 12px;
    gap: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    flex-wrap: nowrap;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.hm-banner-search__field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    padding: 0 24px;
}

.hm-banner-search__field--guests {
    flex: 0 0 130px;
}

/* Label màu cam, chữ nhỏ */
.hm-banner-search__field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 4px;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
}

/* Value (input / select) màu đen */
.hm-banner-search__field select,
.hm-banner-search__field input {
    outline: none;
    background: transparent !important;
    font-size: 15px;
    font-weight: 500;
    color: #111;
    height: auto !important;
    width: 100%;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    box-shadow: none !important;
    border-radius: 0 !important;
    line-height: 1.3;
    margin: 0;
    border: 0 !important;
    padding: 0 !important;
}

.hm-banner-search__field select option {
    color: #111;
}

.hm-banner-search__field input::placeholder {
    color: #aaa;
    font-weight: 400;
}

.hm-banner-search__field select:focus,
.hm-banner-search__field input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* Ẩn spinner number input */
.hm-banner-search__field input[type="number"]::-webkit-inner-spin-button,
.hm-banner-search__field input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.hm-banner-search__field input[type="number"] {
    -moz-appearance: textfield;
}

/* Đường kẻ dọc phân cách */
.hm-banner-search__divider {
    width: 1px;
    background: #e8e8e8;
    align-self: stretch;
    margin: 16px 0;
    flex-shrink: 0;
}

/* Nút tìm phòng — pill cam */
.hm-banner-search__btn {
    flex-shrink: 0;
    align-self: center;
    background: var(--secondary-color) !important;
    color: #fff;
    border: none;
    border-radius: 999px;
    height: 45px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .1s;
    line-height: 1;
    margin: 0;
    text-transform: math-auto;
}

.hm-banner-search__btn:hover {
    background: var(--primary-color) !important;
}

/* --- Responsive: tablet --- */
@media (max-width: 860px) {
    .hm-banner-search {
        height: auto;
        border-radius: 20px;
        padding: 12px;
        flex-wrap: wrap;
        gap: 4px;
        overflow: visible;
    }

    .hm-banner-search__divider {
        display: none;
    }

    .hm-banner-search__field {
        flex: 1 1 calc(50% - 12px);
        padding: 12px 16px;
        border: 1px solid #ebebeb;
        border-radius: 12px;
        background: #fafafa;
    }

    .hm-banner-search__field--guests {
        flex: 1 1 calc(50% - 12px);
    }

    .hm-banner-search__btn {
        width: 100%;
        justify-content: center;
        margin: 8px 0 0;
        border-radius: 12px;
        height: 50px;
    }
}

/* --- Responsive: mobile --- */
@media (max-width: 500px) {
    .hm-banner-search__field {
        flex: 1 1 100%;
    }
}

/* ===========================================
   Archive hm_hotel — Trang danh sách chi nhánh
   =========================================== */

.hm-archive-wrap {
    padding: 32px 0 60px;
    background: var(--hm-bg);
    min-height: 60vh;
}

.hm-archive-search {
    margin-bottom: 28px;
}

/* Layout 1 cột full */
.hm-archive-layout {
    display: block;
}

/* ---- Topbar ---- */
.hm-archive-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.hm-archive-count {
    font-size: 15px;
    color: var(--hm-muted);
}

.hm-archive-count strong {
    color: var(--hm-text);
    font-weight: 700;
}

.hm-archive-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--hm-muted);
}

.hm-archive-sort label {
    margin: 0;
    white-space: nowrap;
}

.hm-archive-sort select {
    border: 1px solid var(--hm-border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--hm-text);
    background: #fff;
    cursor: pointer;
    outline: none;
    margin: 0;
}

/* ---- Hotel Card ---- */
.hm-hotel-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hm-hotel-card {
    background: var(--hm-white);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    display: grid;
    grid-template-columns: 280px 1fr auto;
    overflow: hidden;
    box-shadow: var(--hm-shadow);
    transition: box-shadow .2s;
}

.hm-hotel-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .13);
}

/* Gallery trong card */
.hm-hotel-card__gallery {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.hm-card-slider {
    width: 100%;
    height: 100%;
}

.hm-card-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.hm-card-slide.active {
    display: block;
}

.hm-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-card-no-img {
    width: 100%;
    height: 100%;
    background: var(--hm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 36px;
}

.hm-card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}

.hm-hotel-card__gallery:hover .hm-card-arrow {
    opacity: 1;
}

.hm-card-arrow.prev {
    left: 8px;
}

.hm-card-arrow.next {
    right: 8px;
}

.hm-card-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.hm-card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: background .2s;
}

.hm-card-dot.active {
    background: #fff;
}

/* Body card */
.hm-hotel-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hm-hotel-card__region {
    font-size: 10px;
    color: var(--hm-accent);
    letter-spacing: .5px;
    width: max-content;
    background-color: #06392426;
    padding: 4px 12px;
    border-radius: 50px;
}

.hm-hotel-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0;
    line-height: 1.3;
}

.hm-hotel-card__title a {
    color: inherit;
    text-decoration: none;
}

.hm-hotel-card__title a:hover {
    color: var(--hm-accent);
}

.hm-hotel-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.hm-hotel-card__amenity {
    font-size: 12px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hm-hotel-card__amenity i {
    color: var(--hm-accent);
    font-size: 11px;
}

.hm-hotel-card__amenity--more {
    color: #fff;
    background-color: var(--primary-color);
    padding: 0px 10px;
    border-radius: 50px;
}

.hm-hotel-card__excerpt {
    font-size: 14px;
    color: var(--hm-muted);
    line-height: 1.6;
    margin-top: auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Action card */
.hm-hotel-card__action {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    border-left: 1px solid var(--hm-border);
    min-width: 170px;
}

.hm-hotel-card__action .hm-price-note {
    font-size: 12px;
    color: var(--hm-muted);
    text-align: right;
}

.hm-hotel-card__action .hm-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--hm-accent);
    line-height: 1.2;
    text-align: right;
}

.hm-hotel-card__action .hm-price-unit {
    font-size: 12px;
    color: var(--hm-muted);
    text-align: right;
}

.hm-hotel-card__action .hm-select-btn {
    padding: 10px 20px;
    font-size: 14px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

/* Empty state */
/* Skeleton card */
#hm-hotel-skeletons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hm-hotel-card--skeleton {
    pointer-events: none;
}

.hm-hotel-card--skeleton .hm-hotel-card__gallery.hm-sk-block {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: hm-shimmer 1.4s infinite;
}

.hm-hotel-card--skeleton .hm-hotel-card__body,
.hm-hotel-card--skeleton .hm-hotel-card__action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.hm-hotel-card--skeleton .hm-sk-line {
    border-radius: 4px;
    flex-shrink: 0;
}

.hm-archive-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--hm-muted);
    font-size: 16px;
}

.hm-archive-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: #ccc;
}

.hm-archive-coming-soon i {
    color: var(--hm-primary, #1a6b3c);
    opacity: .6;
}

.hm-coming-soon-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--hm-dark, #1a2b1a);
    margin: 0 0 8px;
}

.hm-coming-soon-desc {
    font-size: 15px;
    color: var(--hm-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* ---- Sidebar ---- */
.hm-archive-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hm-sidebar-block {
    background: var(--hm-white);
    border: 1px solid var(--hm-border);
    border-radius: var(--hm-radius);
    padding: 20px;
    box-shadow: var(--hm-shadow);
}

.hm-sidebar-block form {
    margin-bottom: 0;
}

.hm-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--hm-text);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Brand grid */
.hm-brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hm-brand-item {
    border: 2px solid var(--hm-border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
    min-height: 52px;
    background: #fff;
}

.hm-brand-item img {
    max-width: 100%;
    max-height: 36px;
    object-fit: contain;
    display: block;
}

.hm-brand-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--hm-text);
    text-align: center;
}

.hm-brand-item:hover,
.hm-brand-item.active {
    border-color: var(--hm-accent);
    box-shadow: 0 0 0 2px rgba(6, 57, 36, .1);
}

/* Region checkboxes */
.hm-region-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hm-region-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--hm-text);
}

.hm-region-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--hm-accent);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.hm-region-item span {
    flex: 1;
}

.hm-region-item em {
    font-style: normal;
    font-size: 12px;
    color: var(--hm-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hm-archive-layout {
        grid-template-columns: 1fr 240px;
        gap: 20px;
    }

    .hm-hotel-card {
        grid-template-columns: 220px 1fr auto;
    }
}

@media (max-width: 768px) {
    .hm-archive-layout {
        grid-template-columns: 1fr;
    }

    .hm-archive-sidebar {
        position: static;
        order: -1;
    }

    .hm-hotel-card {
        grid-template-columns: 1fr;
    }

    .hm-hotel-card__gallery {
        aspect-ratio: 16 / 9;
    }

    .hm-hotel-card__action {
        border-left: none;
        border-top: 1px solid var(--hm-border);
        justify-content: space-between;
        padding: 16px 20px;
    }
}

/* ===========================================
   Region Grid — Shortcode [hm_region_grid]
   =========================================== */

.hm-branch-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}

.hm-branch-grid.hm-branch-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.hm-branch-grid.hm-branch-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.hm-branch-grid.hm-branch-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.hm-branch-grid.hm-branch-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}


.hm-branch-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #1a2e1a;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}

.hm-branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    text-decoration: none;
}

/* Tỉ lệ ảnh 4:3 */
.hm-branch-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #1a2e1a;
}

.hm-branch-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    display: block;
}

.hm-branch-card:hover .hm-branch-img-wrap img {
    transform: scale(1.05);
}

.hm-branch-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .3);
    font-size: 48px;
}

/* Overlay text */
.hm-branch-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 14px;
    background: linear-gradient(to bottom, transparent 0%, rgb(0 0 0 / 85%) 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hm-branch-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.3;
}

.hm-branch-region {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
    font-weight: 400;
}

.hm-branch-region i {
    font-size: 11px;
    color: #f5c518;
}

/* Tiêu đề khu vực trên trang taxonomy */
.hm-region-header {
    margin-bottom: 24px;
}

.hm-region-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--hm-text);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-region-title i {
    color: var(--hm-accent);
    font-size: 22px;
}

.hm-region-desc {
    color: var(--hm-muted);
    font-size: 15px;
    margin: 0;
}

/* =====================================================================
   Google Maps + Địa điểm gần đó (single chi nhánh)
   ===================================================================== */
.hm-location-section {
    padding: 0;
}

.hm-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.hm-location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
}

.hm-location-nearby {
    padding: 28px 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.hm-nearby-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.hm-nearby-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-nearby-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.hm-nearby-item:last-child {
    border-bottom: 0;
}

.hm-nearby-name {
    font-size: 0.9rem;
    color: #333;
}

.hm-nearby-distance {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}

.hm-card-goto-btn {
    display: inline-block;
    background: var(--hm-accent);
    color: #fff !important;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    transition: background .2s;
}

.hm-card-goto-btn:hover {
    background: var(--secondary-color);
    color: #fff !important;
}


.hm-view-all-wrap {
    text-align: center;
    margin-top: 24px;
}

.hm-view-all-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--hm-accent);
    text-decoration: none;
    border: 1px solid var(--hm-accent);
    border-radius: 50px;
    padding: 5px 16px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.hm-view-all-btn:hover {
    background: var(--hm-accent);
    color: #fff;
}

@media (max-width: 1024px) {

    .hm-branch-grid.hm-branch-cols-4,
    .hm-branch-grid.hm-branch-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hm-location-grid {
        grid-template-columns: 1fr;
    }

    .hm-location-map iframe {
        min-height: 240px;
    }
}


@media (max-width: 600px) {
    .hm-branch-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}