/**
 * Hotel Booking Manager - Material UI Frontend Styles
 * Modern, clean design based on Material Design principles
 *
 * @package Hotel_Booking_Manager
 * @version 1.0.0
 */

/* ==========================================================================
   CSS Variables - Material Design Color System
   ========================================================================== */
:root {
    /* Primary Colors */
    --md-primary: #1976d2;
    --md-primary-light: #42a5f5;
    --md-primary-dark: #1565c0;
    --md-primary-contrast: #ffffff;

    /* Secondary Colors */
    --md-secondary: #26a69a;
    --md-secondary-light: #4db6ac;
    --md-secondary-dark: #00897b;
    --md-secondary-contrast: #ffffff;

    /* Accent Colors */
    --md-accent: #ff7043;
    --md-accent-light: #ff8a65;
    --md-accent-dark: #f4511e;

    /* Status Colors */
    --md-success: #4caf50;
    --md-success-light: #e8f5e9;
    --md-warning: #ff9800;
    --md-warning-light: #fff3e0;
    --md-error: #f44336;
    --md-error-light: #ffebee;
    --md-info: #2196f3;
    --md-info-light: #e3f2fd;

    /* Neutral Colors */
    --md-background: #fafafa;
    --md-surface: #ffffff;
    --md-surface-variant: #f5f5f5;
    --md-outline: #e0e0e0;
    --md-outline-variant: #bdbdbd;

    /* Text Colors */
    --md-on-surface: #212121;
    --md-on-surface-variant: #757575;
    --md-on-primary: #ffffff;
    --md-disabled: #9e9e9e;

    /* Elevation Shadows */
    --md-elevation-0: none;
    --md-elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --md-elevation-2: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
    --md-elevation-3: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
    --md-elevation-4: 0 15px 25px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.05);
    --md-elevation-5: 0 20px 40px rgba(0,0,0,0.2);

    /* Border Radius */
    --md-radius-xs: 4px;
    --md-radius-sm: 8px;
    --md-radius-md: 12px;
    --md-radius-lg: 16px;
    --md-radius-xl: 24px;
    --md-radius-full: 9999px;

    /* Spacing */
    --md-space-xs: 4px;
    --md-space-sm: 8px;
    --md-space-md: 16px;
    --md-space-lg: 24px;
    --md-space-xl: 32px;
    --md-space-2xl: 48px;

    /* Typography */
    --md-font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --md-font-mono: 'Roboto Mono', 'SF Mono', Consolas, monospace;
    --md-font-size-sm: 0.875rem;
    --md-font-size-base: 1rem;
    --md-font-size-lg: 1.125rem;

    /* Transitions */
    --md-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --md-transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --md-transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
.hbm-material {
    box-sizing: border-box;
    font-family: var(--md-font-family);
    color: var(--md-on-surface);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hbm-material * {
    box-sizing: border-box;
}

.hbm-md-icon,
.hbm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: currentColor;
    line-height: 1;
    vertical-align: middle;
}

.hbm-md-icon--primary {
    color: var(--md-primary);
}

.hbm-md-icon--secondary {
    color: var(--md-secondary);
}

.hbm-md-icon--success {
    color: var(--md-success);
}

.hbm-md-icon--warning {
    color: var(--md-warning);
}

.hbm-md-icon--error {
    color: var(--md-error);
}

.hbm-md-icon--muted {
    color: var(--md-on-surface-variant);
}

/* ==========================================================================
   Typography
   ========================================================================== */
.hbm-material h1,
.hbm-material h2,
.hbm-material h3,
.hbm-material h4,
.hbm-material h5,
.hbm-material h6 {
    font-family: var(--md-font-family);
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 var(--md-space-md);
    color: var(--md-on-surface);
}

.hbm-material h1 { font-size: 32px; font-weight: 300; letter-spacing: -0.5px; }
.hbm-material h2 { font-size: 24px; font-weight: 400; }
.hbm-material h3 { font-size: 20px; font-weight: 500; }
.hbm-material h4 { font-size: 18px; font-weight: 500; }
.hbm-material h5 { font-size: 16px; font-weight: 500; }
.hbm-material h6 { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.hbm-material p {
    margin: 0 0 var(--md-space-md);
    color: var(--md-on-surface-variant);
}

.hbm-text-muted { color: var(--md-on-surface-variant); }
.hbm-text-primary { color: var(--md-primary); }
.hbm-text-success { color: var(--md-success); }
.hbm-text-error { color: var(--md-error); }
.hbm-text-warning { color: var(--md-warning); }

/* ==========================================================================
   Cards - Material Design Elevated Surfaces
   ========================================================================== */
.hbm-card {
    background: var(--md-surface);
    border-radius: var(--md-radius-md);
    box-shadow: var(--md-elevation-1);
    overflow: hidden;
    transition: box-shadow var(--md-transition-normal);
}

.hbm-card:hover {
    box-shadow: var(--md-elevation-2);
}

.hbm-card--elevated {
    box-shadow: var(--md-elevation-2);
}

.hbm-card--elevated:hover {
    box-shadow: var(--md-elevation-3);
}

.hbm-card--outlined {
    box-shadow: none;
    border: 1px solid var(--md-outline);
}

.hbm-card__media {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: var(--md-surface-variant);
    overflow: hidden;
}

.hbm-card__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--md-transition-slow);
}

.hbm-card:hover .hbm-card__media img {
    transform: scale(1.05);
}

.hbm-card__content {
    padding: var(--md-space-md);
}

.hbm-card__title,
.hbm-ui .hbm-card__title,
.hbm-directory .hbm-card__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: var(--md-space-xs);
}

.hbm-card__title a,
.hbm-ui .hbm-card__title a,
.hbm-directory .hbm-card__title a,
.hbm-directory .hbm-card__title a:hover,
.hbm-ui .hbm-card__title a:hover {
    color: var(--md-on-surface) !important;
    text-decoration: none !important;
}

.hbm-card__subtitle,
.hbm-ui .hbm-card__subtitle,
.hbm-directory .hbm-card__subtitle {
    font-size: 14px;
    color: var(--md-on-surface-variant) !important;
    margin-bottom: var(--md-space-sm);
}

.hbm-card__actions {
    padding: var(--md-space-sm) var(--md-space-md);
    display: flex;
    gap: var(--md-space-sm);
    border-top: 1px solid var(--md-outline);
}

/* ==========================================================================
   Buttons - Material Design
   ========================================================================== */
.hbm-btn,
.hbm-ui .hbm-btn,
.hbm-directory .hbm-btn,
a.hbm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--md-space-sm);
    padding: 10px 24px;
    font-family: var(--md-font-family);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    background: transparent;
    color: var(--md-primary) !important;
    border: none;
    border-radius: var(--md-radius-xs);
    cursor: pointer;
    transition: all var(--md-transition-fast);
    position: relative;
    overflow: hidden;
}

/* Ripple effect */
.hbm-btn::after,
.hbm-ui .hbm-btn::after,
.hbm-directory .hbm-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.hbm-btn:active::after,
.hbm-ui .hbm-btn:active::after,
.hbm-directory .hbm-btn:active::after {
    width: 200%;
    height: 200%;
}

/* Contained Button (Primary) */
.hbm-btn--contained,
.hbm-btn--primary,
.hbm-ui .hbm-btn--contained,
.hbm-ui .hbm-btn--primary,
.hbm-directory .hbm-btn--contained,
.hbm-directory .hbm-btn--primary,
a.hbm-btn--contained,
a.hbm-btn--primary {
    background: var(--md-primary);
    color: var(--md-on-primary) !important;
    box-shadow: var(--md-elevation-1);
}

.hbm-btn--contained:hover,
.hbm-btn--primary:hover,
.hbm-ui .hbm-btn--contained:hover,
.hbm-ui .hbm-btn--primary:hover,
.hbm-directory .hbm-btn--contained:hover,
.hbm-directory .hbm-btn--primary:hover,
a.hbm-btn--contained:hover,
a.hbm-btn--primary:hover {
    background: var(--md-primary-dark);
    box-shadow: var(--md-elevation-2);
    color: var(--md-on-primary) !important;
}

/* Outlined Button */
.hbm-btn--outlined,
.hbm-ui .hbm-btn--outlined,
.hbm-directory .hbm-btn--outlined,
a.hbm-btn--outlined {
    background: transparent;
    color: var(--md-primary) !important;
    border: 1px solid var(--md-primary);
}

.hbm-btn--outlined:hover,
.hbm-ui .hbm-btn--outlined:hover,
.hbm-directory .hbm-btn--outlined:hover,
a.hbm-btn--outlined:hover {
    background: rgba(25, 118, 210, 0.08);
    color: var(--md-primary) !important;
}

/* Text Button */
.hbm-btn--text,
.hbm-ui .hbm-btn--text,
.hbm-directory .hbm-btn--text,
a.hbm-btn--text {
    background: transparent;
    color: var(--md-primary) !important;
    padding: 10px 12px;
}

.hbm-btn--text:hover,
.hbm-ui .hbm-btn--text:hover,
.hbm-directory .hbm-btn--text:hover,
a.hbm-btn--text:hover {
    background: rgba(25, 118, 210, 0.08);
    color: var(--md-primary) !important;
}

/* Button Sizes */
.hbm-btn--sm,
.hbm-ui .hbm-btn--sm,
.hbm-directory .hbm-btn--sm {
    padding: 6px 16px;
    font-size: 13px;
}

.hbm-btn--lg,
.hbm-ui .hbm-btn--lg,
.hbm-directory .hbm-btn--lg {
    padding: 14px 32px;
    font-size: 15px;
}

.hbm-btn--block,
.hbm-ui .hbm-btn--block,
.hbm-directory .hbm-btn--block {
    width: 100%;
}

/* Button Colors */
.hbm-btn--secondary,
.hbm-ui .hbm-btn--secondary,
.hbm-directory .hbm-btn--secondary,
a.hbm-btn--secondary {
    background: var(--md-secondary);
    color: var(--md-secondary-contrast) !important;
}

.hbm-btn--secondary:hover,
.hbm-ui .hbm-btn--secondary:hover,
.hbm-directory .hbm-btn--secondary:hover,
a.hbm-btn--secondary:hover {
    background: var(--md-secondary-dark);
    color: var(--md-secondary-contrast) !important;
}

.hbm-btn--success,
.hbm-ui .hbm-btn--success,
.hbm-directory .hbm-btn--success,
a.hbm-btn--success {
    background: var(--md-success);
    color: white !important;
}

.hbm-btn--error,
.hbm-btn--danger,
.hbm-ui .hbm-btn--error,
.hbm-ui .hbm-btn--danger,
.hbm-directory .hbm-btn--error,
.hbm-directory .hbm-btn--danger,
a.hbm-btn--error,
a.hbm-btn--danger {
    background: var(--md-error);
    color: white !important;
}

/* Disabled state */
.hbm-btn:disabled,
.hbm-btn--disabled,
.hbm-ui .hbm-btn:disabled,
.hbm-ui .hbm-btn--disabled,
.hbm-directory .hbm-btn:disabled,
.hbm-directory .hbm-btn--disabled,
a.hbm-btn--disabled {
    background: var(--md-disabled);
    color: rgba(0, 0, 0, 0.38) !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==========================================================================
   Form Fields - Material Design
   ========================================================================== */
.hbm-field {
    position: relative;
    margin-bottom: var(--md-space-lg);
}

.hbm-field__label,
.hbm-ui .hbm-field__label,
.hbm-directory .hbm-field__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface);
    margin-bottom: var(--md-space-xs);
}

.hbm-field__input,
.hbm-field__select,
.hbm-field__textarea,
.hbm-ui .hbm-field__input,
.hbm-ui .hbm-field__select,
.hbm-ui .hbm-field__textarea,
.hbm-directory .hbm-field__input,
.hbm-directory .hbm-field__select,
.hbm-directory .hbm-field__textarea {
    width: 100%;
    padding: 16px;
    font-family: var(--md-font-family);
    font-size: 16px;
    color: var(--md-on-surface);
    background: var(--md-surface);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-xs);
    transition: border-color var(--md-transition-fast), box-shadow var(--md-transition-fast);
}

.hbm-field__input:focus,
.hbm-field__select:focus,
.hbm-field__textarea:focus,
.hbm-ui .hbm-field__input:focus,
.hbm-ui .hbm-field__select:focus,
.hbm-ui .hbm-field__textarea:focus,
.hbm-directory .hbm-field__input:focus,
.hbm-directory .hbm-field__select:focus,
.hbm-directory .hbm-field__textarea:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.hbm-field__input::placeholder,
.hbm-ui .hbm-field__input::placeholder,
.hbm-directory .hbm-field__input::placeholder {
    color: var(--md-on-surface-variant);
}

.hbm-field__helper,
.hbm-ui .hbm-field__helper,
.hbm-directory .hbm-field__helper {
    display: block;
    margin-top: var(--md-space-xs);
    font-size: 12px;
    color: var(--md-on-surface-variant);
}

.hbm-field--error .hbm-field__input {
    border-color: var(--md-error);
}

.hbm-field--error .hbm-field__helper {
    color: var(--md-error);
}

/* Floating Label Style */
.hbm-field--floating {
    position: relative;
}

.hbm-field--floating .hbm-field__label {
    position: absolute;
    top: 18px;
    left: 16px;
    font-size: 16px;
    font-weight: 400;
    color: var(--md-on-surface-variant);
    pointer-events: none;
    transition: all var(--md-transition-fast);
    background: var(--md-surface);
    padding: 0 4px;
}

.hbm-field--floating .hbm-field__input:focus + .hbm-field__label,
.hbm-field--floating .hbm-field__input:not(:placeholder-shown) + .hbm-field__label {
    top: -8px;
    font-size: 12px;
    color: var(--md-primary);
}

/* ==========================================================================
   Stepper - Multi-step Form Progress
   ========================================================================== */
.hbm-stepper {
    display: flex;
    justify-content: space-between;
    padding: var(--md-space-lg) 0;
    margin-bottom: var(--md-space-xl);
    position: relative;
}

.hbm-stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--md-outline);
    z-index: 0;
}

.hbm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hbm-step__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--md-surface);
    border: 2px solid var(--md-outline);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface-variant);
    margin-bottom: var(--md-space-sm);
    transition: all var(--md-transition-normal);
}

.hbm-step__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--md-on-surface-variant);
    text-align: center;
}

.hbm-step--active .hbm-step__icon {
    background: var(--md-primary);
    border-color: var(--md-primary);
    color: var(--md-on-primary);
}

.hbm-step--active .hbm-step__label {
    color: var(--md-primary);
}

.hbm-step--completed .hbm-step__icon {
    background: var(--md-success);
    border-color: var(--md-success);
    color: white;
}

.hbm-step--completed .hbm-step__icon::before {
    content: '';
}

/* ==========================================================================
   Date Picker - Material Style
   ========================================================================== */
.hbm-datepicker {
    background: var(--md-surface);
    border-radius: var(--md-radius-md);
    box-shadow: var(--md-elevation-3);
    padding: var(--md-space-md);
    max-width: 320px;
}

.hbm-datepicker__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--md-space-md);
}

.hbm-datepicker__month {
    font-size: 16px;
    font-weight: 500;
}

.hbm-datepicker__nav {
    display: flex;
    gap: var(--md-space-xs);
}

.hbm-datepicker__nav button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--md-transition-fast);
}

.hbm-datepicker__nav button:hover {
    background: var(--md-surface-variant);
}

.hbm-datepicker__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: var(--md-space-sm);
}

.hbm-datepicker__weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--md-on-surface-variant);
    padding: var(--md-space-sm);
}

.hbm-datepicker__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.hbm-datepicker__day {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--md-transition-fast);
}

.hbm-datepicker__day:hover {
    background: var(--md-surface-variant);
}

.hbm-datepicker__day--today {
    border: 1px solid var(--md-primary);
    color: var(--md-primary);
}

.hbm-datepicker__day--selected {
    background: var(--md-primary);
    color: var(--md-on-primary);
}

.hbm-datepicker__day--disabled {
    color: var(--md-disabled);
    cursor: not-allowed;
    text-decoration: line-through;
}

.hbm-datepicker__day--range {
    background: rgba(25, 118, 210, 0.1);
    border-radius: 0;
}

.hbm-datepicker__day--range-start {
    border-radius: 50% 0 0 50%;
}

.hbm-datepicker__day--range-end {
    border-radius: 0 50% 50% 0;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.hbm-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--md-space-md);
    padding: var(--md-space-md);
    border-radius: var(--md-radius-xs);
    margin-bottom: var(--md-space-md);
}

.hbm-alert__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.hbm-alert__content {
    flex: 1;
}

.hbm-alert__title {
    font-weight: 500;
    margin-bottom: var(--md-space-xs);
}

.hbm-alert__message {
    font-size: 14px;
    margin: 0;
}

.hbm-alert--info {
    background: var(--md-info-light);
    color: #0d47a1;
}

.hbm-alert--success {
    background: var(--md-success-light);
    color: #1b5e20;
}

.hbm-alert--warning {
    background: var(--md-warning-light);
    color: #e65100;
}

.hbm-alert--error {
    background: var(--md-error-light);
    color: #b71c1c;
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.hbm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--md-space-xl);
}

.hbm-spinner,
.hbm-md-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--md-outline);
    border-top-color: var(--md-primary);
    border-radius: 50%;
    animation: hbm-spin 1s linear infinite;
}

@keyframes hbm-spin {
    to { transform: rotate(360deg); }
}

.hbm-skeleton {
    background: linear-gradient(90deg, var(--md-surface-variant) 25%, #e8e8e8 50%, var(--md-surface-variant) 75%);
    background-size: 200% 100%;
    animation: hbm-shimmer 1.5s infinite;
    border-radius: var(--md-radius-xs);
}

@keyframes hbm-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   Booking Summary Card
   ========================================================================== */
.hbm-booking-summary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--md-surface) 100%);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-elevation-2);
    padding: var(--md-space-lg);
    display: grid;
    gap: var(--md-space-md);
    border: 1px solid var(--md-outline);
}

.hbm-booking-summary__header {
    display: flex;
    gap: var(--md-space-md);
    padding-bottom: var(--md-space-sm);
}

.hbm-booking-summary__eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--md-primary);
}

.hbm-booking-summary__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--md-on-surface);
}

.hbm-booking-summary__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--md-on-surface-variant);
}

.hbm-booking-summary__content {
    display: grid;
    gap: var(--md-space-sm);
}

.hbm-booking-summary__stay {
    display: grid;
    gap: var(--md-space-xs);
    padding: var(--md-space-sm);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
    background: var(--md-surface-variant);
}

.hbm-booking-summary__facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--md-space-xs);
    color: var(--md-on-surface-variant);
    font-size: 13px;
}

.hbm-booking-summary__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--md-space-sm);
}

.hbm-booking-summary__disclosure {
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
    background: var(--md-surface);
}

.hbm-booking-summary__disclosure > summary {
    padding: 12px var(--md-space-md);
    color: var(--md-on-surface);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.hbm-booking-summary__disclosure > summary:hover {
    background: var(--md-surface-variant);
}

.hbm-booking-summary__disclosure > summary:focus-visible {
    outline: 3px solid rgba(25, 118, 210, 0.35);
    outline-offset: 2px;
}

.hbm-booking-summary__disclosure-body {
    display: grid;
    gap: var(--md-space-sm);
    padding: 0 var(--md-space-md) var(--md-space-md);
}

.hbm-booking-summary__detail,
.hbm-booking-summary__location {
    padding: var(--md-space-md);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
    background: var(--md-surface);
}

.hbm-booking-summary__detail h4,
.hbm-booking-summary__location h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--md-on-surface);
}

.hbm-booking-summary__detail p,
.hbm-booking-summary__address {
    margin: 0 0 8px;
    color: var(--md-on-surface-variant);
    font-size: 14px;
    line-height: 1.6;
}

.hbm-booking-summary__map {
    display: grid;
    gap: var(--md-space-xs);
}

.hbm-booking-summary__map iframe {
    width: 100%;
    min-height: 220px;
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
}

.hbm-booking-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    gap: var(--md-space-sm);
}

.hbm-booking-summary__row--muted {
    color: var(--md-on-surface-variant);
}

.hbm-booking-summary__row--discount {
    color: #b91c1c;
}

.hbm-booking-summary__breakdown {
    display: grid;
    gap: var(--md-space-xs);
    padding-top: var(--md-space-xs);
}

.hbm-booking-summary__breakdown[hidden] {
    display: none;
}

.hbm-booking-summary__disclosure--price {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hbm-booking-summary__disclosure--price > summary {
    padding: var(--md-space-xs) 0;
    color: var(--md-primary);
}

.hbm-booking-summary__disclosure--price > summary:hover {
    background: transparent;
    text-decoration: underline;
}

.hbm-booking-summary__disclosure--price .hbm-booking-summary__disclosure-body {
    padding: var(--md-space-xs) 0;
}

.hbm-booking-summary__row--total {
    padding-top: var(--md-space-sm);
    margin-top: var(--md-space-xs);
    border-top: 1px solid var(--md-outline);
    font-size: 16px;
    font-weight: 700;
}

.hbm-booking-summary__empty {
    padding: var(--md-space-sm);
    border-radius: var(--md-radius-sm);
    background: var(--md-surface-variant);
    color: var(--md-on-surface-variant);
    font-size: 14px;
    line-height: 1.5;
}

.hbm-booking-summary__payment {
    padding: var(--md-space-md);
    border-radius: var(--md-radius-sm);
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(25, 118, 210, 0.15);
}

.hbm-booking-summary__confidence {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--md-space-sm);
}

.hbm-booking-summary__payment--cancellation {
    background: var(--md-surface-variant);
    border-color: var(--md-outline);
}

.hbm-booking-summary__payment strong {
    display: block;
    margin-bottom: 4px;
}

.hbm-booking-summary__payment p {
    margin: 0;
    color: var(--md-on-surface-variant);
    font-size: 14px;
    line-height: 1.5;
}

.hbm-booking-summary__rules {
    background: var(--md-surface-variant);
}

.hbm-booking-summary__rules .hbm-booking-summary__disclosure-body p {
    margin: 0;
    color: var(--md-on-surface-variant);
    font-size: 14px;
    line-height: 1.6;
}

.hbm-booking-summary__consents {
    display: grid;
    gap: var(--md-space-sm);
}

.hbm-booking-summary__checkbox {
    align-items: flex-start;
}

.hbm-consent-required {
    color: #b91c1c;
    margin-left: 4px;
    font-weight: 700;
}

.hbm-consent-muted {
    color: var(--md-on-surface-variant);
}

.hbm-md-checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
}

.hbm-md-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--md-primary);
}

.hbm-md-checkbox span {
    line-height: 1.5;
}

.hbm-booking-summary__total {
    display: flex;
    justify-content: space-between;
    padding-top: var(--md-space-md);
    border-top: 1px solid var(--md-outline);
    margin-top: var(--md-space-md);
    font-size: 18px;
    font-weight: 500;
}

.hbm-terms-conditions__dynamic {
    margin-top: var(--md-space-lg);
    padding-top: var(--md-space-lg);
    border-top: 1px solid var(--md-outline);
}

.hbm-terms-conditions__dynamic dl {
    display: grid;
    grid-template-columns: minmax(140px, 0.4fr) 1fr;
    gap: var(--md-space-xs) var(--md-space-md);
    margin: 0 0 var(--md-space-md);
}

.hbm-terms-conditions__dynamic dt {
    color: var(--md-on-surface-variant);
    font-weight: 700;
}

.hbm-terms-conditions__dynamic dd {
    margin: 0;
    color: var(--md-on-surface);
}

@media (max-width: 640px) {
    .hbm-terms-conditions__dynamic dl {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Property Cards Grid
   ========================================================================== */
.hbm-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--md-space-lg);
}

.hbm-property-card {
    background: var(--md-surface);
    border-radius: var(--md-radius-md);
    box-shadow: var(--md-elevation-1);
    overflow: hidden;
    transition: all var(--md-transition-normal);
}

.hbm-property-card:hover {
    box-shadow: var(--md-elevation-3);
    transform: translateY(-4px);
}

.hbm-property-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hbm-property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--md-transition-slow);
}

.hbm-property-card:hover .hbm-property-card__image img {
    transform: scale(1.05);
}

.hbm-property-card__badge {
    position: absolute;
    top: var(--md-space-md);
    left: var(--md-space-md);
    background: var(--md-primary);
    color: var(--md-on-primary);
    padding: var(--md-space-xs) var(--md-space-sm);
    border-radius: var(--md-radius-xs);
    font-size: 12px;
    font-weight: 500;
}

.hbm-property-card__content {
    padding: var(--md-space-md);
}

.hbm-property-card__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: var(--md-space-xs);
    color: var(--md-on-surface);
}

.hbm-property-card__location {
    display: flex;
    align-items: center;
    gap: var(--md-space-xs);
    font-size: 14px;
    color: var(--md-on-surface-variant);
    margin-bottom: var(--md-space-md);
}

.hbm-property-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--md-space-xs);
    margin-bottom: var(--md-space-md);
}

.hbm-property-card__amenity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--md-surface-variant);
    border-radius: var(--md-radius-full);
    font-size: 12px;
    color: var(--md-on-surface-variant);
}

.hbm-property-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--md-space-md);
    border-top: 1px solid var(--md-outline);
}

.hbm-property-card__price {
    font-size: 20px;
    font-weight: 500;
    color: var(--md-on-surface);
}

.hbm-property-card__price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--md-on-surface-variant);
}

/* ==========================================================================
   Booking Form - Material UI Styles
   ========================================================================== */
.hbm-md-form {
    max-width: 600px;
    margin: 0 auto;
}

.hbm-form-section {
    background: var(--md-surface);
    border-radius: var(--md-radius-lg);
    padding: var(--md-space-lg);
    margin-bottom: var(--md-space-md);
    box-shadow: var(--md-elevation-1);
}

.hbm-form-section-title {
    display: flex;
    align-items: center;
    gap: var(--md-space-sm);
    margin: 0 0 var(--md-space-md) 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--md-on-surface);
}

.hbm-section-icon {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 4px;
}

.hbm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--md-space-md);
}

@media (max-width: 480px) {
    .hbm-form-row {
        grid-template-columns: 1fr;
    }

    .hbm-ui .hbm-datepicker-wrapper .hbm-md-input {
        padding-left: 10px;
        padding-right: 36px;
        font-size: 13px;
    }

    .hbm-ui .hbm-datepicker-wrapper .hbm-input-icon {
        right: 10px;
    }
}

.hbm-md-field {
    margin-bottom: var(--md-space-md);
}

.hbm-md-field:last-child {
    margin-bottom: 0;
}

.hbm-md-helper-text--full {
    margin: 0 0 var(--md-space-md);
    color: var(--md-on-surface-variant);
    font-size: 12px;
}

.hbm-field-compact {
    flex: 0 0 120px;
}

.hbm-md-input-wrapper {
    position: relative;
}

.hbm-md-input,
.hbm-ui .hbm-md-input,
.hbm-directory .hbm-md-input {
    width: 100%;
    padding: 16px 14px 8px;
    font-size: 16px;
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
    background: var(--md-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.hbm-md-input:hover,
.hbm-ui .hbm-md-input:hover,
.hbm-directory .hbm-md-input:hover {
    border-color: var(--md-outline-variant);
}

.hbm-md-input:focus,
.hbm-ui .hbm-md-input:focus,
.hbm-directory .hbm-md-input:focus {
    border-color: var(--md-primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.hbm-md-label,
.hbm-ui .hbm-md-label,
.hbm-directory .hbm-md-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--md-on-surface-variant);
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--md-surface);
    padding: 0 4px;
}

.hbm-md-input:focus + .hbm-md-label,
.hbm-md-input:not(:placeholder-shown) + .hbm-md-label,
.hbm-ui .hbm-md-input:focus + .hbm-md-label,
.hbm-ui .hbm-md-input:not(:placeholder-shown) + .hbm-md-label,
.hbm-directory .hbm-md-input:focus + .hbm-md-label,
.hbm-directory .hbm-md-input:not(:placeholder-shown) + .hbm-md-label {
    top: 0;
    font-size: 12px;
    color: var(--md-primary);
}

.hbm-md-input:not(:focus):not(:placeholder-shown) + .hbm-md-label,
.hbm-ui .hbm-md-input:not(:focus):not(:placeholder-shown) + .hbm-md-label,
.hbm-directory .hbm-md-input:not(:focus):not(:placeholder-shown) + .hbm-md-label {
    color: var(--md-on-surface-variant);
}

/* Select wrapper */
.hbm-md-select-wrapper {
    position: relative;
}

.hbm-md-select,
.hbm-ui .hbm-md-select,
.hbm-directory .hbm-md-select {
    width: 100%;
    padding: 16px 14px 8px;
    font-size: 16px;
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
    background: var(--md-surface);
    cursor: pointer;
    appearance: none;
    outline: none;
}

.hbm-md-select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--md-on-surface-variant);
    pointer-events: none;
}

.hbm-md-select-wrapper .hbm-md-label {
    top: 0;
    font-size: 12px;
}

/* Datepicker wrapper */
.hbm-datepicker-wrapper .hbm-md-input {
    padding-right: 44px;
}

.hbm-datepicker-wrapper .hbm-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--md-on-surface-variant);
    pointer-events: none;
}

.hbm-datepicker-wrapper .hbm-md-label {
    top: 0;
    font-size: 12px;
}

/* Guest date availability: keep unavailable nights obvious without relying on colour. */
.flatpickr-calendar .flatpickr-day.hbm-datepicker-day--unavailable,
.flatpickr-calendar .flatpickr-day.hbm-datepicker-day--unavailable:hover {
    color: #7a2631;
    background: #fff1f2;
    border-color: transparent;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: 1;
    cursor: not-allowed;
}

.flatpickr-calendar .flatpickr-day.hbm-datepicker-day--unavailable::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #b4233a;
    transform: translateX(-50%);
}

.hbm-datepicker-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 10px 12px;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
}

.hbm-datepicker-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hbm-datepicker-legend i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #64748b;
}

.hbm-datepicker-legend .hbm-datepicker-legend__unavailable {
    background: #fff1f2;
    border-color: #b4233a;
}

@media (max-width: 480px) {
    .flatpickr-calendar.open {
        max-width: calc(100vw - 24px);
    }

    .hbm-datepicker-legend {
        gap: 14px;
        padding-block: 9px;
    }
}

/* Children ages grid */
.hbm-children-ages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--md-space-sm);
    margin-top: var(--md-space-md);
}

/* Submit section */
.hbm-form-submit {
    margin-top: var(--md-space-lg);
}

/* Honeypot fields should never be visible to guests. */
.hbm-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hbm-honeypot input {
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.hbm-data-request-form {
    display: grid;
    gap: var(--md-space-md);
    padding: var(--md-space-lg);
}

.hbm-data-request-form__choices {
    display: grid;
    gap: 10px;
    margin-top: var(--md-space-sm);
}

.hbm-data-request-form__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--md-on-surface);
}

.hbm-data-request-form__choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
    background: var(--md-surface);
    cursor: pointer;
    font-size: 14px;
    color: var(--md-on-surface);
    transition: border-color var(--md-transition-fast), background var(--md-transition-fast), box-shadow var(--md-transition-fast);
}

.hbm-data-request-form__choice:hover {
    border-color: var(--md-primary);
    background: rgba(25, 118, 210, 0.04);
}

.hbm-data-request-form__choice input {
    accent-color: var(--md-primary);
    margin: 0;
}

.hbm-data-request-form__actions {
    display: flex;
    justify-content: flex-end;
}

.hbm-data-request-form__result {
    margin-top: var(--md-space-sm);
}

/* ==========================================================================
   Search Widget - Material UI
   ========================================================================== */
.hbm-search-widget,
.hbm-ui .hbm-search-widget {
    width: 100%;
    padding: var(--md-space-lg);
    display: grid;
    gap: var(--md-space-md);
}

.hbm-search-widget__header {
    display: grid;
    gap: var(--md-space-xs);
}

.hbm-search-widget__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--md-on-surface);
}

.hbm-search-widget__subtitle {
    margin: 0;
    color: var(--md-on-surface-variant);
    font-size: 14px;
}

.hbm-search-widget__form {
    display: grid;
    gap: var(--md-space-md);
}

.hbm-search-widget__amenities {
    display: grid;
    gap: var(--md-space-sm);
}

.hbm-search-widget__filter-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--md-on-surface-variant);
}

.hbm-search-widget__chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hbm-search-widget__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--md-radius-full);
    border: 1px solid var(--md-outline);
    background: var(--md-surface-variant);
    color: var(--md-on-surface);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--md-transition-fast);
}

.hbm-search-widget__chip:hover {
    border-color: var(--md-primary);
    background: rgba(25, 118, 210, 0.08);
}

.hbm-search-widget__chip input {
    margin: 0;
    accent-color: var(--md-primary);
}

.hbm-search-widget__date-field {
    margin-bottom: 0;
}

.hbm-search-widget__controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--md-space-md);
}

.hbm-search-widget__guest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--md-space-md);
}

.hbm-search-widget__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--md-space-sm);
    font-size: 14px;
    color: var(--md-on-surface);
    cursor: pointer;
    user-select: none;
}

.hbm-search-widget__toggle input {
    margin: 0;
    accent-color: var(--md-primary);
}

.hbm-search-widget__actions {
    display: grid;
    gap: var(--md-space-sm);
    margin-top: var(--md-space-xs);
}

.hbm-search-widget__note {
    margin: 0;
    font-size: 12px;
    color: var(--md-on-surface-variant);
}

@media (max-width: 640px) {
    .hbm-search-widget,
    .hbm-ui .hbm-search-widget {
        padding: var(--md-space-md);
    }

    .hbm-search-widget__controls,
    .hbm-search-widget__guest-grid {
        grid-template-columns: 1fr;
    }
}

/* Material UI Buttons */
.hbm-md-btn,
.hbm-ui .hbm-md-btn,
.hbm-directory .hbm-md-btn,
a.hbm-md-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--md-space-sm);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border: none;
    border-radius: var(--md-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hbm-md-btn--primary,
.hbm-ui .hbm-md-btn--primary,
.hbm-directory .hbm-md-btn--primary,
a.hbm-md-btn--primary {
    background: var(--md-primary);
    color: var(--md-on-primary) !important;
}

.hbm-md-btn--primary:hover,
.hbm-ui .hbm-md-btn--primary:hover,
.hbm-directory .hbm-md-btn--primary:hover,
a.hbm-md-btn--primary:hover {
    background: var(--md-primary-dark);
    box-shadow: var(--md-elevation-2);
    color: var(--md-on-primary) !important;
}

.hbm-md-btn--large,
.hbm-ui .hbm-md-btn--large,
.hbm-directory .hbm-md-btn--large {
    padding: 16px 32px;
    font-size: 16px;
}

.hbm-md-btn--full,
.hbm-ui .hbm-md-btn--full,
.hbm-directory .hbm-md-btn--full {
    width: 100%;
}

.hbm-btn-icon {
    display: flex;
    align-items: center;
}

/* Ripple effect */
.hbm-md-btn::after,
.hbm-ui .hbm-md-btn::after,
.hbm-directory .hbm-md-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.hbm-md-btn:active::after,
.hbm-ui .hbm-md-btn:active::after,
.hbm-directory .hbm-md-btn:active::after {
    transform: scale(2.5);
    opacity: 0;
}

/* ==========================================================================
   Booking Confirmation Card
   ========================================================================== */
.hbm-booking-confirmation-card {
    max-width: 500px;
    margin: var(--md-space-xl) auto;
    padding: var(--md-space-xl);
    text-align: center;
    background: var(--md-surface);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-elevation-2);
}

.hbm-booking-confirmation-card--empty {
    max-width: 640px;
}

.hbm-confirmation-icon {
    margin-bottom: var(--md-space-md);
}

.hbm-confirmation-title {
    margin: 0 0 var(--md-space-sm) 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--md-success);
}

.hbm-confirmation-subtitle {
    margin: 0 0 var(--md-space-lg) 0;
    color: var(--md-on-surface-variant);
}

.hbm-booking-confirmation-card__cta {
    margin-top: var(--md-space-xs);
}

.hbm-confirmation-details {
    text-align: left;
    background: var(--md-surface-variant);
    border-radius: var(--md-radius-md);
    padding: var(--md-space-md);
}

.hbm-confirmation-row {
    display: flex;
    justify-content: space-between;
    padding: var(--md-space-sm) 0;
    border-bottom: 1px solid var(--md-outline);
}

.hbm-confirmation-row:last-child {
    border-bottom: none;
}

.hbm-confirmation-label {
    color: var(--md-on-surface-variant);
    font-size: 14px;
}

.hbm-confirmation-value {
    font-weight: 500;
    color: var(--md-on-surface);
}

/* ==========================================================================
   Material UI Alerts
   ========================================================================== */
.hbm-md-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--md-space-md);
    padding: var(--md-space-md);
    border-radius: var(--md-radius-md);
    margin-bottom: var(--md-space-lg);
}

.hbm-md-alert--error {
    background: var(--md-error-light);
    border: 1px solid var(--md-error);
    color: #c62828;
}

.hbm-md-alert--success {
    background: var(--md-success-light);
    border: 1px solid var(--md-success);
    color: #2e7d32;
}

.hbm-md-alert--warning {
    background: var(--md-warning-light);
    border: 1px solid var(--md-warning);
    color: #e65100;
}

.hbm-md-alert--info {
    background: var(--md-info-light);
    border: 1px solid var(--md-info);
    color: #0277bd;
}

.hbm-alert-icon {
    flex-shrink: 0;
    display: flex;
}

.hbm-alert-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.hbm-alert-content strong {
    display: block;
    margin-bottom: 4px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --md-space-lg: 16px;
        --md-space-xl: 24px;
    }

    .hbm-stepper {
        overflow-x: auto;
        padding-bottom: var(--md-space-md);
    }

    .hbm-step__label {
        display: none;
    }

    .hbm-properties-grid {
        grid-template-columns: 1fr;
    }

    .hbm-booking-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .hbm-btn {
        width: 100%;
    }

    .hbm-card__actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   CAPTCHA Section
   ========================================================================== */
.hbm-form-captcha {
    display: flex;
    justify-content: center;
    padding: var(--md-space-sm) 0;
    margin-bottom: var(--md-space-md);
}

.hbm-form-captcha--recaptcha {
    display: block;
    padding: 0;
}

.hbm-form-captcha .g-recaptcha,
.hbm-form-captcha .h-captcha {
    transform-origin: center;
}

.hbm-captcha-trust {
    display: flex;
    gap: 10px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 10px 12px;
    color: var(--md-text-secondary);
    background: rgba(25, 118, 210, 0.04);
    border: 1px solid rgba(25, 118, 210, 0.14);
    border-radius: var(--md-radius-md);
}

.hbm-captcha-trust__icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--md-primary);
    background: var(--md-surface);
    border-radius: 50%;
}

.hbm-captcha-trust strong,
.hbm-captcha-trust small {
    display: block;
}

.hbm-captcha-trust strong {
    margin-bottom: 1px;
    color: var(--md-text-primary);
    font-size: 13px;
}

.hbm-captcha-trust small {
    font-size: 12px;
    line-height: 1.45;
}

.hbm-form-captcha--checking .hbm-captcha-trust {
    border-color: rgba(25, 118, 210, 0.32);
}

.hbm-form-captcha--verified .hbm-captcha-trust {
    background: rgba(46, 125, 50, 0.05);
    border-color: rgba(46, 125, 50, 0.2);
}

.hbm-form-captcha--verified .hbm-captcha-trust__icon {
    color: var(--md-success, #2e7d32);
}

.hbm-captcha-feedback {
    display: block;
    margin-top: var(--md-space-xs);
}

@media (max-width: 360px) {
    .hbm-form-captcha .g-recaptcha,
    .hbm-form-captcha .h-captcha {
        transform: scale(0.9);
    }
}

/* ==========================================================================
   Form Validation States
   ========================================================================== */
.hbm-field-error {
    border-color: var(--md-error) !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2) !important;
}

.hbm-field-error:focus {
    border-color: var(--md-error) !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.3) !important;
}

.hbm-error-message {
    display: block;
    color: var(--md-error);
    font-size: 12px;
    margin-top: 4px;
    animation: hbm-shake 0.4s ease;
}

@keyframes hbm-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
}

/* Success state for validated fields */
.hbm-field-success {
    border-color: var(--md-success) !important;
}

/* Loading state for submit button */
.hbm-btn--loading {
    pointer-events: none;
    opacity: 0.7;
}

.hbm-btn--loading .hbm-btn-text {
    opacity: 0;
}

.hbm-btn--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: hbm-spin 0.8s linear infinite;
}

/* ==========================================================================
   Search Results Header
   ========================================================================== */
.hbm-search-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: var(--md-space-lg);
    background: var(--md-surface);
    border-radius: var(--md-radius-xs);
    box-shadow: var(--md-elevation-1);
}

.hbm-search-header__title {
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    font-family: var(--md-font-family);
    color: var(--md-on-surface);
}

.hbm-search-header__summary {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--md-on-surface-variant);
    font-size: 0.95rem;
}

.hbm-search-header__summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hbm-search-header__summary svg {
    opacity: 0.6;
}

.hbm-search-header__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.hbm-md-search-refine {
    margin: -14px 0 30px;
    padding: var(--md-space-lg);
}

.hbm-md-search-refine[hidden] {
    display: none;
}

.hbm-md-search-refine__header {
    margin-bottom: var(--md-space-md);
}

.hbm-md-search-refine__header h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.hbm-md-search-refine__header p {
    margin: 0;
    color: var(--md-on-surface-variant);
}

/* ==========================================================================
   View Switcher
   ========================================================================== */
.hbm-view-switcher {
    display: flex;
    background: var(--md-background);
    border-radius: var(--md-radius-xs);
    padding: 4px;
}

.hbm-view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: calc(var(--md-radius-xs) - 2px);
    color: var(--md-on-surface-variant);
    transition: all var(--md-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hbm-view-btn:hover {
    color: var(--md-on-surface);
}

.hbm-view-btn.active {
    background: var(--md-surface);
    color: var(--md-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hbm-results-count {
    font-size: 0.9rem;
    color: var(--md-on-surface-variant);
}

/* ==========================================================================
   Results Grid (Tiles View)
   ========================================================================== */
.hbm-results-grid--tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--md-space-lg);
}

.hbm-room-card--tiles {
    background: var(--md-surface);
    border-radius: var(--md-radius-xs);
    overflow: hidden;
    box-shadow: var(--md-elevation-1);
    transition: all var(--md-transition-normal);
    display: flex;
    flex-direction: column;
}

.hbm-room-card--tiles:hover {
    box-shadow: var(--md-elevation-3);
    transform: translateY(-2px);
}

.hbm-room-card--tiles .hbm-room-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hbm-room-card--tiles .hbm-room-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--md-transition-slow);
}

.hbm-room-card--tiles:hover .hbm-room-card__image img {
    transform: scale(1.05);
}

.hbm-room-card__type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--md-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hbm-room-card__badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.hbm-room-card__badge--dorm_bed {
    background: rgba(30, 64, 175, 0.85);
}

.hbm-room-card__badge--private_room {
    background: rgba(15, 118, 110, 0.85);
}

.hbm-room-card--tiles .hbm-room-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hbm-room-card__header {
    margin-bottom: 12px;
}

.hbm-room-card__title {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-family: var(--md-font-family);
}

.hbm-room-card__title a {
    color: var(--md-on-surface);
    text-decoration: none;
    transition: color var(--md-transition-fast);
}

.hbm-room-card__title a:hover {
    color: var(--md-primary);
}

.hbm-room-card__capacity {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--md-on-surface-variant);
}

.hbm-room-card__excerpt {
    color: var(--md-on-surface-variant);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 auto 0;
    padding-bottom: 16px;
}

.hbm-room-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--md-outline);
    margin-top: auto;
}

.hbm-room-card__pricing {
    display: flex;
    flex-direction: column;
}

.hbm-room-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--md-on-surface);
}

.hbm-room-card__price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--md-on-surface-variant);
}

.hbm-room-card__total {
    font-size: 0.8rem;
    color: var(--md-on-surface-variant);
}

/* ==========================================================================
   Results List (Rows View)
   ========================================================================== */
.hbm-results-grid--rows {
    display: flex;
    flex-direction: column;
    gap: var(--md-space-md);
}

.hbm-room-card--rows {
    background: var(--md-surface);
    border-radius: var(--md-radius-xs);
    overflow: hidden;
    box-shadow: var(--md-elevation-1);
    transition: all var(--md-transition-normal);
    display: flex;
    flex-direction: row;
}

.hbm-room-card--rows:hover {
    box-shadow: var(--md-elevation-3);
}

.hbm-room-card--rows .hbm-room-card__image {
    position: relative;
    width: 280px;
    min-width: 280px;
    overflow: hidden;
}

.hbm-room-card--rows .hbm-room-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

.hbm-room-card--rows .hbm-room-card__content {
    padding: var(--md-space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hbm-room-card--rows .hbm-room-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hbm-room-card--rows .hbm-room-card__footer {
    border-top: none;
    padding-top: 0;
}

/* ==========================================================================
   Directory Grid (shortcode / block)
   Scoped on .hbm-directory so it works standalone (shortcode, widget, block)
   and inside .hbm-ui (template pages).
   ========================================================================== */

.hbm-directory,
.hbm-ui .hbm-directory {
    width: 100%;
}

.hbm-directory .hbm-grid,
.hbm-ui .hbm-directory .hbm-grid {
    display: grid;
    gap: var(--md-space-lg);
}

.hbm-directory .hbm-grid--2,
.hbm-ui .hbm-directory .hbm-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.hbm-directory .hbm-grid--3,
.hbm-ui .hbm-directory .hbm-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.hbm-directory .hbm-grid--4,
.hbm-ui .hbm-directory .hbm-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Base room card (used by directory, not search results). */
.hbm-directory .hbm-room-card,
.hbm-ui .hbm-directory .hbm-room-card {
    background: var(--md-surface);
    border-radius: var(--md-radius-xs);
    overflow: hidden;
    box-shadow: var(--md-elevation-1);
    transition: all var(--md-transition-normal);
    display: flex;
    flex-direction: column;
}

.hbm-directory .hbm-room-card:hover,
.hbm-ui .hbm-directory .hbm-room-card:hover {
    box-shadow: var(--md-elevation-3);
    transform: translateY(-2px);
}

.hbm-directory .hbm-room-card .hbm-card__placeholder,
.hbm-ui .hbm-directory .hbm-room-card .hbm-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    background: var(--md-surface-variant);
    color: var(--md-on-surface-variant);
}

.hbm-directory .hbm-room-card .hbm-card__pricing,
.hbm-ui .hbm-directory .hbm-room-card .hbm-card__pricing {
    display: flex;
    flex-direction: column;
}

.hbm-directory .hbm-room-card .hbm-card__excerpt,
.hbm-ui .hbm-directory .hbm-room-card .hbm-card__excerpt {
    font-size: 14px;
    color: var(--md-on-surface-variant);
    line-height: 1.5;
    margin-bottom: var(--md-space-sm);
}

.hbm-directory .hbm-room-card .hbm-card__meta,
.hbm-ui .hbm-directory .hbm-room-card .hbm-card__meta {
    display: flex;
    gap: var(--md-space-sm);
    align-items: center;
    margin-bottom: var(--md-space-sm);
}

.hbm-directory .hbm-room-card .hbm-card__body,
.hbm-ui .hbm-directory .hbm-room-card .hbm-card__body {
    padding: var(--md-space-md);
    flex: 1;
}

.hbm-directory .hbm-room-card .hbm-card__footer,
.hbm-ui .hbm-directory .hbm-room-card .hbm-card__footer {
    padding: var(--md-space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--md-outline);
    margin-top: auto;
}

.hbm-directory .hbm-room-card .hbm-card__price,
.hbm-ui .hbm-directory .hbm-room-card .hbm-card__price {
    font-size: 20px;
    font-weight: 600;
    color: var(--md-on-surface) !important;
}

.hbm-directory .hbm-room-card .hbm-card__price-prefix,
.hbm-ui .hbm-directory .hbm-room-card .hbm-card__price-prefix {
    font-size: 14px;
    font-weight: 400;
    color: var(--md-on-surface-variant) !important;
    margin-right: 4px;
}

.hbm-directory .hbm-room-card .hbm-card__price-period,
.hbm-ui .hbm-directory .hbm-room-card .hbm-card__price-period {
    font-size: 13px;
    color: var(--md-on-surface-variant) !important;
    margin-left: 4px;
}

/* Result card badge (booking type label). */
.hbm-directory .hbm-result-card__badge,
.hbm-ui .hbm-result-card__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--md-primary);
    color: #fff !important;
    margin-top: var(--md-space-xs);
}

.hbm-directory .hbm-result-card__badge--dorm_bed,
.hbm-ui .hbm-result-card__badge--dorm_bed {
    background: rgba(30, 64, 175, 0.85);
}

.hbm-directory .hbm-result-card__badge--private_room,
.hbm-ui .hbm-result-card__badge--private_room {
    background: rgba(15, 118, 110, 0.85);
}

/* Light badge variant. */
.hbm-directory .hbm-badge--light,
.hbm-ui .hbm-badge--light {
    background: transparent;
    border: none;
    padding: 0;
    gap: 4px;
}

/* Compact no-results variant. */
.hbm-directory .hbm-no-results--compact,
.hbm-ui .hbm-no-results--compact {
    padding: var(--md-space-lg);
    text-align: center;
}

/* ==========================================================================
   No Results
   ========================================================================== */
.hbm-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--md-surface);
    border-radius: var(--md-radius-xs);
    box-shadow: var(--md-elevation-1);
}

.hbm-no-results__icon {
    color: var(--md-on-surface-variant);
    margin-bottom: 20px;
}

.hbm-no-results h2 {
    margin: 0 0 12px 0;
    font-family: var(--md-font-family);
    color: var(--md-on-surface);
}

.hbm-no-results p {
    color: var(--md-on-surface-variant);
    max-width: 500px;
    margin: 0 auto 24px;
}

/* ==========================================================================
   Frontend Pagination
   ========================================================================== */
.hbm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--md-space-sm);
    margin-top: 40px;
    flex-wrap: wrap;
}

.hbm-pagination__btn {
    padding: 10px 20px;
    background: var(--md-surface);
    color: var(--md-primary);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-xs);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--md-transition-fast);
}

.hbm-pagination__btn:hover {
    background: var(--md-primary);
    color: #fff;
    border-color: var(--md-primary);
}

.hbm-pagination__pages {
    display: flex;
    gap: 4px;
}

.hbm-pagination__page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-surface);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-xs);
    text-decoration: none;
    color: var(--md-on-surface);
    transition: all var(--md-transition-fast);
}

.hbm-pagination__page:hover {
    border-color: var(--md-primary);
    color: var(--md-primary);
}

.hbm-pagination__page--current {
    background: var(--md-primary);
    color: #fff;
    border-color: var(--md-primary);
}

/* ==========================================================================
   Shortcode Embed
   ========================================================================== */
.hbm-search-results {
    font-family: var(--md-font-family);
}

.entry-content .hbm-search-results,
.page-content .hbm-search-results,
.post-content .hbm-search-results {
    margin: 20px 0;
}

/* ==========================================================================
   Unit Type Availability Summary
   ========================================================================== */
.hbm-unit-type-summary {
    margin: var(--md-space-md) 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--md-info-light) 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--md-radius-xs);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hbm-unit-type-summary__content {
    display: flex;
    align-items: center;
    gap: var(--md-space-sm);
    flex-wrap: wrap;
}

.hbm-unit-type-summary__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--md-success);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.hbm-unit-type-summary__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface);
}

.hbm-unit-type-summary__limited {
    font-size: 12px;
    color: #d97706;
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: var(--md-radius-xs);
    font-weight: 500;
}

/* ==========================================================================
   Bed Selection UI
   ========================================================================== */
.hbm-bed-selection-section {
    margin: 20px 0;
}

.hbm-available-beds {
    margin-top: var(--md-space-md);
}

.hbm-beds-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--md-on-surface);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: var(--md-space-sm);
}

.hbm-beds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.hbm-bed-card {
    background: var(--md-surface);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-xs);
    padding: var(--md-space-md);
    transition: all var(--md-transition-fast);
    cursor: pointer;
    position: relative;
}

.hbm-bed-card:hover {
    border-color: var(--md-primary);
    box-shadow: var(--md-elevation-1);
    transform: translateY(-2px);
}

.hbm-bed-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--md-space-sm);
}

.hbm-bed-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--md-primary);
    background: rgba(25, 118, 210, 0.1);
    padding: 4px 8px;
    border-radius: var(--md-radius-xs);
}

.hbm-bed-type {
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface);
    text-transform: capitalize;
}

.hbm-bed-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.hbm-bed-status--available {
    background: var(--md-success-light);
    color: #155724;
}

.hbm-bed-card--selected {
    border-color: var(--md-primary);
    background: linear-gradient(135deg, var(--md-info-light) 0%, #e0f2fe 100%);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}

.hbm-bed-status--selected {
    background: var(--md-primary);
    color: white;
}

.hbm-bed-card__details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--md-on-surface-variant);
}

.hbm-bed-room {
    font-weight: 500;
}

.hbm-bed-price {
    font-weight: 600;
    color: var(--md-primary);
}

.hbm-bed-card--unavailable {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.hbm-bed-card--unavailable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--md-radius-xs);
}

.hbm-bed-status--unavailable {
    background: var(--md-disabled);
    color: white;
}

/* ==========================================================================
   Real-Time Availability Status
   ========================================================================== */
.hbm-availability-status {
    margin: var(--md-space-md) 0;
    padding: 12px 16px;
    border-radius: var(--md-radius-xs);
    font-family: var(--md-font-family);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: var(--md-space-sm);
    transition: all var(--md-transition-fast);
}

.hbm-availability-status--loading {
    background: var(--md-info-light);
    border: 1px solid var(--md-primary);
    color: var(--md-primary);
}

.hbm-availability-status--available {
    background: var(--md-success-light);
    border: 1px solid var(--md-success);
    color: #2e7d32;
}

.hbm-availability-status--unavailable {
    background: var(--md-error-light);
    border: 1px solid var(--md-error);
    color: #c62828;
}

.hbm-availability-status--error {
    background: var(--md-warning-light);
    border: 1px solid var(--md-warning);
    color: #f57c00;
}

.hbm-md-room-guests {
    display: none;
    gap: var(--md-space-sm);
    margin-top: var(--md-space-sm);
    padding: var(--md-space-sm);
    background: var(--md-surface-variant);
    border-radius: var(--md-radius-sm);
    width: 100%;
}

.hbm-md-room-guests__field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.hbm-md-room-guests__field label {
    font-size: var(--md-font-size-xs);
    color: var(--md-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.hbm-md-room-guests__field input {
    width: 100%;
    padding: var(--md-space-xs);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-xs);
    font-size: var(--md-font-size-sm);
    text-align: center;
}

.hbm-availability-loading {
    display: flex;
    align-items: center;
    gap: var(--md-space-sm);
}

.hbm-availability-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--md-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: hbm-spin 1s linear infinite;
}

.hbm-availability-success,
.hbm-availability-error {
    display: flex;
    align-items: center;
    gap: var(--md-space-sm);
    width: 100%;
}

.hbm-availability-icon {
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.hbm-availability-status--available .hbm-availability-icon {
    background: var(--md-success);
    color: white;
}

.hbm-availability-status--unavailable .hbm-availability-icon {
    background: var(--md-error);
    color: white;
}

.hbm-availability-status--error .hbm-availability-icon {
    background: var(--md-warning);
    color: white;
}

.hbm-availability-text {
    font-weight: 500;
    flex-shrink: 0;
}

.hbm-availability-details {
    font-size: 12px;
    opacity: 0.8;
    margin-left: auto;
}

.hbm-availability-price {
    font-weight: 600;
    margin-left: auto;
    color: inherit;
}

/* ==========================================================================
   Frontend Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hbm-search-header {
        flex-direction: column;
    }

    .hbm-search-header__controls {
        width: 100%;
        justify-content: space-between;
    }

    .hbm-results-grid--tiles {
        grid-template-columns: 1fr;
    }

    .hbm-room-card--rows {
        flex-direction: column;
    }

    .hbm-room-card--rows .hbm-room-card__image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .hbm-room-card__footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .hbm-room-card__book-btn {
        text-align: center;
    }

    .hbm-pagination {
        flex-direction: column;
    }

    .hbm-pagination__pages {
        order: -1;
    }

    .hbm-unit-type-summary {
        margin: 12px 0;
        padding: 10px 12px;
    }

    .hbm-unit-type-summary__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .hbm-unit-type-summary__text {
        font-size: 13px;
    }

    .hbm-unit-type-summary__limited {
        align-self: flex-start;
    }

    .hbm-beds-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hbm-bed-card {
        padding: 12px;
    }

    .hbm-bed-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .hbm-bed-card__details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hbm-availability-status {
        margin: 12px 0;
        padding: 10px 12px;
        font-size: 13px;
    }

    .hbm-availability-details {
        display: none;
    }

    .hbm-availability-price {
        font-size: 12px;
    }
}

/* ==========================================================================
   Calendar Widget
   ========================================================================== */
.hbm-calendar-widget {
    --hbm-cal-available: #22c55e;
    --hbm-cal-unavailable: #ef4444;
    --hbm-cal-today: #f59e0b;
    --hbm-cal-bg: #ffffff;
    --hbm-cal-text: #212121;
    --hbm-cal-muted: #757575;
    --hbm-cal-radius: 8px;
    background: var(--hbm-cal-bg);
    border-radius: var(--hbm-cal-radius);
    padding: 16px;
    box-shadow: var(--md-elevation-1);
}

.hbm-calendar-widget__months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.hbm-calendar-widget__month-title,
.hbm-ui .hbm-calendar-widget__month-title,
.hbm-directory .hbm-calendar-widget__month-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--hbm-cal-text);
    text-transform: capitalize;
}

.hbm-calendar-widget__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.hbm-calendar-widget__day-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--hbm-cal-muted);
    padding: 4px 0;
    text-transform: uppercase;
}

.hbm-calendar-widget__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 4px;
    color: var(--hbm-cal-text);
    cursor: default;
}

.hbm-calendar-widget__day--empty {
    background: transparent;
}

.hbm-calendar-widget__day--past {
    color: var(--hbm-cal-muted);
    opacity: 0.4;
}

.hbm-calendar-widget__day--available {
    background: color-mix(in srgb, var(--hbm-cal-available) 15%, transparent);
    color: #166534;
}

.hbm-calendar-widget__day--unavailable {
    background: color-mix(in srgb, var(--hbm-cal-unavailable) 15%, transparent);
    color: #991b1b;
}

.hbm-calendar-widget__day--today {
    box-shadow: inset 0 0 0 2px var(--hbm-cal-today);
    font-weight: 700;
}

.hbm-calendar-widget__legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--md-outline);
}

.hbm-calendar-widget__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--hbm-cal-muted);
}

.hbm-calendar-widget__legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

/* ==========================================================================
   Room Detail Shortcode
   ========================================================================== */
.hbm-room-detail {
    background: var(--md-surface);
    border-radius: var(--md-radius-lg);
    overflow: hidden;
    box-shadow: var(--md-elevation-1);
}

.hbm-room-detail__gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4px;
    max-height: 400px;
}

.hbm-room-detail__image--featured {
    grid-row: 1 / 3;
    height: 100%;
    object-fit: cover;
}

.hbm-room-detail__image:not(.hbm-room-detail__image--featured) {
    height: 198px;
    object-fit: cover;
}

.hbm-room-detail__body {
    padding: 24px;
}

.hbm-room-detail__hotel,
.hbm-ui .hbm-room-detail__hotel,
.hbm-directory .hbm-room-detail__hotel {
    font-size: 13px;
    color: var(--md-primary);
    font-weight: 500;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hbm-room-detail__title,
.hbm-ui .hbm-room-detail__title,
.hbm-directory .hbm-room-detail__title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
    color: var(--md-on-surface);
}

.hbm-room-detail__price {
    margin: 0 0 16px;
}

.hbm-room-detail__price-amount,
.hbm-ui .hbm-room-detail__price-amount,
.hbm-directory .hbm-room-detail__price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--md-primary);
}

.hbm-room-detail__price-label {
    font-size: 14px;
    color: var(--md-on-surface-variant);
    margin-left: 4px;
}

.hbm-room-detail__info {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.hbm-room-detail__info-item {
    font-size: 14px;
    color: var(--md-on-surface-variant);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hbm-room-detail__description,
.hbm-ui .hbm-room-detail__description,
.hbm-directory .hbm-room-detail__description {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--md-on-surface);
}

.hbm-room-detail__amenities {
    margin-bottom: 20px;
}

.hbm-room-detail__amenities h3,
.hbm-ui .hbm-room-detail__amenities h3,
.hbm-directory .hbm-room-detail__amenities h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--md-on-surface);
}

.hbm-room-detail__amenities-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hbm-room-detail__amenity {
    font-size: 13px;
    color: var(--md-on-surface-variant);
    background: var(--md-surface-variant);
    padding: 4px 12px;
    border-radius: var(--md-radius-full);
}

.hbm-room-detail__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hbm-room-detail__gallery {
        grid-template-columns: 1fr;
        max-height: 300px;
    }

    .hbm-room-detail__image--featured {
        grid-row: auto;
    }

    .hbm-room-detail__image:not(.hbm-room-detail__image--featured) {
        display: none;
    }

    .hbm-room-detail__body {
        padding: 16px;
    }

    .hbm-room-detail__title,
    .hbm-ui .hbm-room-detail__title,
    .hbm-directory .hbm-room-detail__title {
        font-size: 20px;
    }

    .hbm-room-detail__price-amount,
    .hbm-ui .hbm-room-detail__price-amount,
    .hbm-directory .hbm-room-detail__price-amount {
        font-size: 24px;
    }
}

/* ==========================================================================
   Search Results Layout - Sidebar + Map
   ========================================================================== */

.hbm-md-search-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.hbm-md-search-layout--list {
    display: block;
}

.hbm-md-search-layout--sidebar {
    display: flex;
}

.hbm-md-search-layout--map {
    display: flex;
}

.hbm-md-search-layout--map-top {
    display: block;
}

.hbm-md-search-layout--map-top .hbm-md-search-map {
    margin-bottom: 24px;
}

.hbm-md-search-main {
    flex: 1;
    min-width: 0;
}

.hbm-search-results {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--md-space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--md-space-lg);
    font-family: var(--md-font-family);
    color: var(--md-on-surface);
}

.hbm-search-results .hbm-search-header,
.hbm-search-results .hbm-md-search-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--md-space-md) var(--md-space-lg);
    padding: var(--md-space-lg);
    background: var(--md-surface);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-elevation-1);
}

.hbm-search-results .hbm-search-header__info,
.hbm-search-results .hbm-md-search-header__info {
    flex: 1 1 420px;
    min-width: 0;
}

.hbm-search-results .hbm-search-header__title,
.hbm-search-results .hbm-md-search-header__title {
    margin: 0 0 var(--md-space-xs);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--md-on-surface) !important;
}

.hbm-search-results .hbm-search-header__summary,
.hbm-search-results .hbm-md-search-header__summary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--md-space-sm) var(--md-space-md);
    margin: 0;
    color: var(--md-on-surface-variant);
    font-size: 14px;
}

.hbm-search-results .hbm-search-header__summary span,
.hbm-search-results .hbm-md-search-header__summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--md-surface-variant);
    border-radius: var(--md-radius-full);
    line-height: 1.4;
}

.hbm-search-results .hbm-search-header__summary svg,
.hbm-search-results .hbm-md-search-header__summary svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.hbm-search-results .hbm-search-header__controls,
.hbm-search-results .hbm-md-search-header__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--md-space-sm);
    margin-left: auto;
}

.hbm-search-results .hbm-view-switcher,
.hbm-search-results .hbm-md-view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--md-surface-variant);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-full);
    box-shadow: var(--md-elevation-1);
}

.hbm-search-results .hbm-view-btn,
.hbm-search-results .hbm-md-view-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: var(--md-radius-full);
    color: var(--md-on-surface-variant);
    transition: all var(--md-transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hbm-search-results .hbm-view-btn:hover,
.hbm-search-results .hbm-md-view-btn:hover {
    color: var(--md-on-surface);
    background: rgba(25, 118, 210, 0.08);
}

.hbm-search-results .hbm-view-btn.active,
.hbm-search-results .hbm-md-view-btn.active {
    background: var(--md-surface);
    color: var(--md-primary);
    box-shadow: var(--md-elevation-1);
}

.hbm-search-results .hbm-results-count,
.hbm-search-results .hbm-md-results-count {
    font-size: 14px;
    color: var(--md-on-surface-variant);
    white-space: nowrap;
}

.hbm-search-results .hbm-md-unit-type-summary {
    width: 100%;
    margin: 0;
}

.hbm-search-results .hbm-results-bulk,
.hbm-search-results .hbm-md-results-bulk {
    width: 100%;
    margin: 0;
}

.hbm-search-results .hbm-results-bulk__bar,
.hbm-search-results .hbm-md-results-bulk__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--md-space-md);
    padding: var(--md-space-md) var(--md-space-lg);
    background: linear-gradient(135deg, var(--md-surface) 0%, var(--md-surface-variant) 100%);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-elevation-1);
}

.hbm-search-results .hbm-results-bulk__text,
.hbm-search-results .hbm-md-results-bulk__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hbm-search-results .hbm-results-bulk__text strong,
.hbm-search-results .hbm-md-results-bulk__text strong {
    color: var(--md-on-surface);
    font-size: 16px;
    font-weight: 600;
}

.hbm-search-results .hbm-results-bulk__text span,
.hbm-search-results .hbm-md-results-bulk__text span {
    color: var(--md-on-surface-variant);
    font-size: 14px;
}

.hbm-search-results .hbm-results-grid,
.hbm-search-results .hbm-md-results-grid {
    width: 100%;
}

.hbm-search-results .hbm-results-grid--tiles,
.hbm-search-results .hbm-md-results-grid--tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--md-space-lg);
    align-items: stretch;
}

.hbm-search-results .hbm-results-grid--rows,
.hbm-search-results .hbm-md-results-grid--rows {
    display: flex;
    flex-direction: column;
    gap: var(--md-space-md);
}

.hbm-search-results .hbm-room-card,
.hbm-search-results .hbm-md-room-card {
    width: 100%;
}

.hbm-search-results .hbm-room-card--tiles,
.hbm-search-results .hbm-md-room-card--tiles {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hbm-search-results .hbm-card__media,
.hbm-search-results .hbm-room-card--tiles .hbm-room-card__image,
.hbm-search-results .hbm-room-card--tiles .hbm-md-room-card__image,
.hbm-search-results .hbm-md-room-card--tiles .hbm-md-room-card__image {
    position: relative;
    height: 240px;
    padding-top: 0;
    overflow: hidden;
    background: var(--md-surface-variant);
}

.hbm-search-results .hbm-card__media img,
.hbm-search-results .hbm-room-card--tiles .hbm-room-card__image img,
.hbm-search-results .hbm-room-card--tiles .hbm-md-room-card__image img,
.hbm-search-results .hbm-md-room-card--tiles .hbm-md-room-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hbm-search-results .hbm-card__content {
    display: flex;
    flex-direction: column;
    gap: var(--md-space-sm);
}

.hbm-search-results .hbm-card__title {
    margin: 0;
    font-size: 22px;
}

.hbm-search-results .hbm-card__subtitle {
    margin-bottom: 0;
}

.hbm-search-results .hbm-card__meta,
.hbm-search-results .hbm-md-room-card__capacity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--md-on-surface-variant);
}

.hbm-search-results .hbm-card__excerpt,
.hbm-search-results .hbm-md-room-card__description {
    margin: 0;
    color: var(--md-on-surface-variant);
    font-size: 14px;
    line-height: 1.6;
}

.hbm-search-results .hbm-md-room-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--md-space-xs);
}

.hbm-search-results .hbm-md-room-card__rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: var(--md-space-xs);
    padding-top: var(--md-space-sm);
    border-top: 1px solid var(--md-outline);
}

.hbm-search-results .hbm-md-room-card__badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    border-radius: var(--md-radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hbm-search-results .hbm-md-room-card__badge--dorm_bed {
    background: rgba(30, 64, 175, 0.88);
}

.hbm-search-results .hbm-md-room-card__badge--private_room {
    background: rgba(15, 118, 110, 0.88);
}

.hbm-search-results .hbm-card__footer,
.hbm-search-results .hbm-room-card__footer,
.hbm-search-results .hbm-md-room-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--md-space-md);
    align-items: start;
    padding: var(--md-space-md);
}

.hbm-search-results .hbm-md-room-card__booking {
    display: flex;
    flex-direction: column;
    gap: var(--md-space-sm);
    min-width: 0;
}

.hbm-search-results .hbm-md-room-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--md-on-surface);
}

.hbm-search-results .hbm-md-room-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--md-primary);
}

.hbm-search-results .hbm-md-room-select label {
    margin: 0;
    font-weight: 500;
}

.hbm-search-results .hbm-md-room-guests {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--md-space-sm);
}

.hbm-search-results .hbm-md-room-guests[hidden] {
    display: none;
}

.hbm-search-results .hbm-md-room-guests__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hbm-search-results .hbm-md-room-guests__field label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--md-on-surface-variant);
}

.hbm-search-results .hbm-md-room-guests__field input {
    width: 100%;
}

.hbm-search-results .hbm-md-room-card__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--md-space-sm);
    text-align: right;
}

.hbm-search-results .hbm-card__pricing,
.hbm-search-results .hbm-md-room-card__pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.hbm-search-results .hbm-card__price,
.hbm-search-results .hbm-md-room-card__price {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 24px;
    font-weight: 600;
    color: var(--md-on-surface);
}

.hbm-search-results .hbm-card__price-period,
.hbm-search-results .hbm-md-room-card__total {
    font-size: 13px;
    color: var(--md-on-surface-variant);
}

.hbm-search-results .hbm-md-room-card__price-note,
.hbm-search-results .hbm-md-room-card__cancellation {
    max-width: 300px;
    font-size: 13px;
    line-height: 1.45;
}

.hbm-search-results .hbm-md-room-card__cancellation {
    margin: 0;
    color: var(--md-on-surface-variant);
}

.hbm-search-results .hbm-md-room-card__book-btn {
    min-width: 160px;
    align-self: flex-end;
}

.hbm-md-no-results {
    display: grid;
    gap: var(--md-space-lg);
    justify-items: center;
    padding: var(--md-space-2xl);
    text-align: center;
    background: var(--md-surface);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-elevation-1);
}

.hbm-md-no-results__icon {
    color: var(--md-primary);
}

.hbm-md-no-results__content {
    max-width: 640px;
}

.hbm-md-no-results__content h2 {
    margin: 0 0 var(--md-space-sm);
    font-size: 28px;
}

.hbm-md-no-results__content p {
    margin: 0;
    color: var(--md-on-surface-variant);
}

.hbm-md-no-results__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--md-space-sm);
    margin-top: var(--md-space-md);
}

.hbm-md-no-results__refine {
    width: 100%;
    margin-top: var(--md-space-md);
    padding-top: var(--md-space-lg);
    border-top: 1px solid var(--md-outline);
    text-align: left;
}

.hbm-md-no-results__refine-title {
    margin: 0 0 var(--md-space-sm);
    font-size: 16px;
    font-weight: 600;
}

/* ==========================================================================
   Search Sidebar
   ========================================================================== */

.hbm-md-search-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--md-surface);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-shadow-1);
    overflow: hidden;
    position: sticky;
    top: 24px;
}

.hbm-md-search-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--md-outline);
    background: var(--md-surface-variant);
}

.hbm-md-search-sidebar__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--md-on-surface);
}

.hbm-md-search-sidebar__filters {
    padding: 16px 20px;
}

.hbm-md-filter-group {
    margin-bottom: 20px;
}

.hbm-md-filter-group:last-child {
    margin-bottom: 0;
}

.hbm-md-filter-group__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--md-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hbm-md-filter-group__values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.hbm-md-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--md-surface-variant);
    border-radius: var(--md-radius-full);
    font-size: 13px;
    color: var(--md-on-surface);
    font-weight: 500;
}

.hbm-md-filter-chip--accent {
    background: rgba(25, 118, 210, 0.08);
    color: var(--md-primary);
    border: 1px solid rgba(25, 118, 210, 0.16);
}

.hbm-directory__filters {
    display: grid;
    gap: var(--md-space-md);
    padding: var(--md-space-lg);
    margin-bottom: var(--md-space-lg);
}

.hbm-directory__filters-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--md-space-md);
}

.hbm-directory__filters-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.hbm-directory__filters-subtitle {
    margin: 0;
    color: var(--md-on-surface-variant);
    font-size: 14px;
}

.hbm-directory__filters-reset {
    color: var(--md-primary);
    font-weight: 600;
    text-decoration: none;
}

.hbm-directory__filters-form {
    display: grid;
    gap: var(--md-space-md);
}

.hbm-directory__filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hbm-directory__filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--md-radius-full);
    border: 1px solid var(--md-outline);
    background: var(--md-surface);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--md-transition-fast);
}

.hbm-directory__filter-chip:hover {
    border-color: var(--md-primary);
    background: rgba(25, 118, 210, 0.06);
}

.hbm-directory__filter-chip input {
    margin: 0;
    accent-color: var(--md-primary);
}

.hbm-directory__filters-actions {
    display: flex;
    justify-content: flex-end;
}

.hbm-md-filter-group__meta {
    font-size: 13px;
    color: var(--md-on-surface-variant);
}

/* ==========================================================================
   Search Map
   ========================================================================== */

.hbm-md-search-map {
    width: 380px;
    min-height: 240px;
    flex-shrink: 0;
    border-radius: var(--md-radius-lg);
    overflow: hidden;
    box-shadow: var(--md-shadow-1);
    position: sticky;
    top: 24px;
    background: var(--md-surface-variant);
}

.hbm-md-search-map--error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--md-space-lg);
    color: var(--md-on-surface-variant);
    text-align: center;
}

.hbm-md-search-layout--map-top .hbm-md-search-map {
    width: 100%;
    position: static;
}

/* ==========================================================================
   Responsive - Search Layout
   ========================================================================== */

@media (max-width: 1024px) {
    .hbm-md-search-layout--sidebar {
        flex-direction: column;
    }

    .hbm-md-search-sidebar {
        width: 100%;
        position: static;
    }

    .hbm-md-search-layout--map {
        flex-direction: column;
    }

    .hbm-md-search-map {
        width: 100%;
        height: 300px !important;
        position: static;
    }
}

@media (max-width: 768px) {
    .hbm-search-results {
        padding: var(--md-space-md);
    }

    .hbm-search-results .hbm-search-header,
    .hbm-search-results .hbm-md-search-header {
        padding: var(--md-space-md);
        flex-direction: column;
        align-items: stretch;
    }

    .hbm-search-results .hbm-search-header__info,
    .hbm-search-results .hbm-md-search-header__info {
        flex: 0 0 auto;
    }

    .hbm-search-results .hbm-search-header__controls,
    .hbm-search-results .hbm-md-search-header__controls {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        margin-left: 0;
    }

    .hbm-search-results .hbm-results-bulk__bar,
    .hbm-search-results .hbm-md-results-bulk__bar {
        flex-direction: column;
        align-items: stretch;
    }

    .hbm-search-results .hbm-results-bulk__bar .hbm-md-btn,
    .hbm-search-results .hbm-md-results-bulk__bar .hbm-md-btn {
        width: 100%;
    }

    .hbm-search-results .hbm-results-grid--tiles,
    .hbm-search-results .hbm-md-results-grid--tiles {
        grid-template-columns: 1fr;
    }

    .hbm-md-search-layout {
        gap: 16px;
    }

    .hbm-search-results .hbm-card__footer,
    .hbm-search-results .hbm-room-card__footer,
    .hbm-search-results .hbm-md-room-card__footer {
        grid-template-columns: 1fr;
    }

    .hbm-search-results .hbm-md-room-card__cta {
        align-items: stretch;
        text-align: left;
    }

    .hbm-search-results .hbm-card__pricing,
    .hbm-search-results .hbm-md-room-card__pricing {
        align-items: flex-start;
    }

    .hbm-search-results .hbm-md-room-card__book-btn {
        width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    .hbm-search-results .hbm-md-room-guests {
        grid-template-columns: 1fr;
    }

    .hbm-md-no-results {
        padding: var(--md-space-lg);
    }
}

/* ==========================================================================
   Template Page Styles - Property / Unit Type / Archive Pages
   All selectors scoped under .hbm-ui with element+class specificity to
   override aggressive theme global styles (e.g. body.pagelayer-body h1).
   ========================================================================== */

/* Root wrapper used by all HBM templates. */
.hbm-ui {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--md-space-lg);
    font-family: var(--md-font-family);
    color: var(--md-on-surface);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.hbm-ui *,
.hbm-ui *::before,
.hbm-ui *::after {
    box-sizing: border-box;
}

/* Reset theme overrides within HBM containers.
   Double-class (.hbm-ui.hbm-ui) raises specificity to 0,2,1 to beat
   theme selectors like body.pagelayer-body h1 (0,1,2). */
.hbm-ui.hbm-ui h1, .hbm-ui.hbm-ui h2, .hbm-ui.hbm-ui h3,
.hbm-ui.hbm-ui h4, .hbm-ui.hbm-ui h5, .hbm-ui.hbm-ui h6 {
    font-family: var(--md-font-family);
    text-transform: none;
    letter-spacing: normal;
}

.hbm-ui a {
    text-decoration: none;
    color: var(--md-primary);
}

.hbm-ui a:hover {
    text-decoration: underline;
}

/* ---- Breadcrumb ---- */
.hbm-ui .hbm-property__breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--md-space-sm);
    font-size: var(--md-font-size-sm);
    color: var(--md-on-surface-variant);
    margin-bottom: var(--md-space-lg);
    flex-wrap: wrap;
}

.hbm-ui .hbm-property__breadcrumb a {
    color: var(--md-primary);
}

.hbm-ui .hbm-property__breadcrumb span {
    color: var(--md-on-surface-variant);
}

/* ---- Header ---- */
.hbm-ui .hbm-property__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--md-space-md);
    margin-bottom: var(--md-space-lg);
}

.hbm-ui .hbm-property__header-main {
    flex: 1;
    min-width: 0;
}

.hbm-ui .hbm-property__header-actions {
    flex-shrink: 0;
}

.hbm-ui h1.hbm-property__title {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 var(--md-space-xs);
    color: var(--md-on-surface);
    line-height: 1.2;
}

.hbm-ui .hbm-property__location {
    display: flex;
    align-items: center;
    gap: var(--md-space-xs);
    font-size: var(--md-font-size-sm);
    color: var(--md-on-surface-variant);
    margin: 0;
}

.hbm-ui .hbm-property__location svg {
    color: var(--md-primary);
    flex-shrink: 0;
}

.hbm-ui .hbm-property__location a {
    color: var(--md-primary);
}

/* ---- Hero Image ---- */
.hbm-ui .hbm-property-hero {
    border-radius: var(--md-radius-sm);
    overflow: hidden;
    margin-bottom: var(--md-space-xl);
    max-height: 400px;
}

.hbm-ui .hbm-property-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Photo Gallery ---- */
.hbm-ui .hbm-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 4px;
    border-radius: var(--md-radius-sm);
    overflow: hidden;
    margin-bottom: var(--md-space-xl);
}

.hbm-ui .hbm-gallery__item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: inherit;
}

.hbm-ui .hbm-gallery__item--hidden {
    display: none;
}

.hbm-ui .hbm-gallery__item:first-child {
    grid-row: 1 / span 2;
}

.hbm-ui .hbm-gallery--placeholder {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	min-height: 320px;
	background: var(--md-surface-variant);
	border: 1px solid var(--md-outline);
	border-radius: var(--md-radius-md);
}

.hbm-calendar-widget__price {
	font-size: 10px;
	font-weight: 600;
	line-height: 1.1;
}

.hbm-guest-empty-state {
	max-width: 36rem;
	margin: 2rem auto;
	padding: 2rem;
	border: 1px solid var(--md-outline);
	border-radius: 12px;
	background: var(--md-surface);
	text-align: center;
}

.hbm-guest-empty-state__icon {
	margin-bottom: .75rem;
	color: var(--md-primary);
}

.hbm-guest-empty-state h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.hbm-guest-empty-state p { margin: 0 0 1rem; color: var(--md-on-surface-variant); }

.hbm-ui .hbm-gallery__placeholder {
	display: grid;
	max-width: 360px;
	gap: var(--md-space-sm);
	padding: var(--md-space-xl);
	color: var(--md-on-surface-variant);
	text-align: center;
}

.hbm-ui .hbm-gallery__placeholder svg {
	justify-self: center;
	color: var(--md-primary);
}

.hbm-ui .hbm-gallery__placeholder strong {
	color: var(--md-on-surface);
}

.hbm-ui .hbm-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--md-transition-slow);
}

.hbm-ui .hbm-gallery__item:hover img {
    transform: scale(1.05);
}

.hbm-ui .hbm-gallery__item:focus-visible {
    outline: 3px solid var(--md-primary);
    outline-offset: -3px;
}

.hbm-ui .hbm-gallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.hbm-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 72px 24px;
    background: rgba(0, 0, 0, 0.92);
}

.hbm-lightbox {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(1200px, 90vw);
    max-height: calc(100vh - 88px);
}

.hbm-lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.hbm-lightbox__content img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    object-fit: contain;
}

.hbm-lightbox__close,
.hbm-lightbox__prev,
.hbm-lightbox__next {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
}

.hbm-lightbox__close:hover,
.hbm-lightbox__prev:hover,
.hbm-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hbm-lightbox__close:focus-visible,
.hbm-lightbox__prev:focus-visible,
.hbm-lightbox__next:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.hbm-lightbox__close {
    top: -56px;
    right: 0;
}

.hbm-lightbox__prev {
    top: 50%;
    left: -64px;
    transform: translateY(-50%);
    font-size: 32px;
}

.hbm-lightbox__next {
    top: 50%;
    right: -64px;
    transform: translateY(-50%);
    font-size: 32px;
}

.hbm-lightbox__caption,
.hbm-lightbox__counter {
    margin: 8px 0 0;
    color: #fff;
    text-align: center;
}

.hbm-lightbox__caption {
    max-width: 70ch;
}

.hbm-lightbox__counter {
    font-size: 14px;
}

/* ---- Two-Column Layout ---- */
.hbm-ui .hbm-property__layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--md-space-xl);
    align-items: start;
}

.hbm-ui .hbm-property__main {
    min-width: 0;
}

.hbm-ui .hbm-property__sidebar {
    position: sticky;
    top: var(--md-space-lg);
    min-width: 320px;
}

/* ---- Sections ---- */
.hbm-ui .hbm-section {
    margin-bottom: var(--md-space-xl);
    padding-bottom: var(--md-space-xl);
    border-bottom: 1px solid var(--md-outline);
}

.hbm-ui .hbm-section:last-child {
    border-bottom: none;
}

.hbm-ui h2.hbm-section__title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 var(--md-space-md);
    color: var(--md-on-surface);
}

.hbm-ui .hbm-property__description {
    font-size: var(--md-font-size-base);
    color: var(--md-on-surface-variant);
    line-height: 1.7;
}

/* ---- Amenities ---- */
.hbm-ui .hbm-amenities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--md-space-sm);
}

.hbm-ui .hbm-amenity {
    display: flex;
    align-items: center;
    gap: var(--md-space-sm);
    font-size: var(--md-font-size-sm);
    color: var(--md-on-surface);
}

.hbm-ui .hbm-amenity svg {
    color: var(--md-success);
    flex-shrink: 0;
}

/* ---- Booking Card (Sidebar) ---- */
.hbm-ui .hbm-booking-card {
    background: var(--md-surface);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-md);
    padding: var(--md-space-lg);
    box-shadow: var(--md-elevation-2);
}

.hbm-ui .hbm-booking-card__price {
    font-size: 24px;
    font-weight: 600;
    color: var(--md-on-surface);
}

.hbm-ui .hbm-booking-card__period {
    font-size: var(--md-font-size-sm);
    color: var(--md-on-surface-variant);
    margin-bottom: var(--md-space-lg);
}

.hbm-ui .hbm-booking-card__form {
    display: flex;
    flex-direction: column;
    gap: var(--md-space-md);
}

.hbm-ui .hbm-booking-card__dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-xs);
    overflow: hidden;
}

.hbm-ui .hbm-booking-card__date {
    padding: var(--md-space-sm) var(--md-space-md);
}

.hbm-ui .hbm-booking-card__date:first-child {
    border-right: 1px solid var(--md-outline);
}

.hbm-ui .hbm-booking-card__date-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--md-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.hbm-ui .hbm-booking-card__date-value {
    font-size: 14px;
    font-weight: 500;
}

/* ---- Room reservation card ---- */
.hbm-ui .hbm-quick-info__grid,
.hbm-ui .hbm-rules {
	display: flex;
	flex-wrap: wrap;
	gap: var(--md-space-lg);
}

.hbm-ui .hbm-quick-info__item,
.hbm-ui .hbm-rule {
	display: flex;
	align-items: center;
	gap: var(--md-space-sm);
}

.hbm-ui .hbm-quick-info__item svg {
	color: var(--md-primary);
}

.hbm-ui .hbm-rule svg {
	color: var(--md-on-surface-variant);
}

.hbm-ui .hbm-quick-info__item div,
.hbm-ui .hbm-rule div {
	display: flex;
	flex-direction: column;
}

.hbm-ui .hbm-quick-info__item span,
.hbm-ui .hbm-rule span {
	color: var(--md-on-surface-variant);
	font-size: var(--md-font-size-sm);
}

.hbm-ui .hbm-booking-card__dates--range {
	display: block;
}

.hbm-ui .hbm-booking-card__date--range:first-child {
	border: 0;
}

.hbm-ui .hbm-date-input {
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--md-on-surface);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.hbm-ui .hbm-date-input:focus-visible {
	outline: 2px solid var(--md-primary);
	outline-offset: 3px;
}

.hbm-ui .hbm-booking-card__date-help {
	margin: calc(var(--md-space-sm) * -1) 0 0;
	color: var(--md-on-surface-variant);
	font-size: var(--md-font-size-sm);
}

.hbm-ui .hbm-booking-card__guests {
	margin-bottom: var(--md-space-lg);
}

.hbm-ui .hbm-guest-selector {
	padding: var(--md-space-md);
	border: 1px solid var(--md-outline);
	border-radius: var(--md-radius-xs);
}

.hbm-ui .hbm-guest-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--md-space-sm) 0;
}

.hbm-ui .hbm-guest-row + .hbm-guest-row {
	border-top: 1px solid var(--md-outline);
}

.hbm-ui .hbm-stepper {
	display: flex;
	align-items: center;
	gap: var(--md-space-sm);
}

.hbm-ui .hbm-stepper__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--md-outline);
	border-radius: 50%;
	background: var(--md-surface);
	cursor: pointer;
	font-size: 18px;
	transition: border-color var(--md-transition-fast), background var(--md-transition-fast);
}

.hbm-ui .hbm-stepper__btn:hover,
.hbm-ui .hbm-stepper__btn:focus-visible {
	border-color: var(--md-primary);
	color: var(--md-primary);
}

.hbm-ui .hbm-stepper input {
	width: 40px;
	border: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}

.hbm-ui .hbm-booking-card__summary {
	margin-bottom: var(--md-space-md);
	padding: var(--md-space-md);
	border-radius: var(--md-radius-xs);
	background: var(--md-surface-variant);
}

.hbm-ui .hbm-booking-card__summary--hidden {
	display: none;
}

.hbm-ui .hbm-summary-row {
	display: flex;
	justify-content: space-between;
	padding: var(--md-space-xs) 0;
	font-size: var(--md-font-size-sm);
}

.hbm-ui .hbm-summary-row--total {
	margin-top: var(--md-space-sm);
	padding-top: var(--md-space-sm);
	border-top: 1px solid var(--md-outline);
	font-size: var(--md-font-size-base);
	font-weight: 700;
}

.hbm-ui .hbm-text--center {
	text-align: center;
}

.hbm-ui .hbm-text--with-margin {
	margin-top: var(--md-space-sm);
}

/* ---- Ghost Button ---- */
.hbm-ui .hbm-btn--ghost {
    background: transparent;
    color: var(--md-on-surface);
    border: none;
    box-shadow: none;
    padding: 8px 12px;
}

.hbm-ui .hbm-btn--ghost:hover {
    background: var(--md-surface-variant);
}

/* ---- Text Utilities ---- */
.hbm-ui .hbm-text--sm {
    font-size: var(--md-font-size-sm);
}

.hbm-ui .hbm-text--muted {
    color: var(--md-on-surface-variant);
}

.hbm-ui .hbm-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--md-on-surface);
    margin-bottom: var(--md-space-xs);
}

/* ---- Star Rating ---- */
.hbm-ui .hbm-rating__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--md-space-sm);
}

/* ---- Unit Rows (Property page unit listing) ---- */
.hbm-ui .hbm-unit-row {
    display: flex;
    gap: var(--md-space-md);
    padding: var(--md-space-md);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
    background: var(--md-surface);
    margin-bottom: var(--md-space-md);
}

.hbm-ui .hbm-unit-row:last-child {
    margin-bottom: 0;
}

.hbm-ui .hbm-unit-row__image {
    width: 200px;
    height: 140px;
    border-radius: var(--md-radius-xs);
    overflow: hidden;
    flex-shrink: 0;
}

.hbm-ui .hbm-unit-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hbm-ui .hbm-unit-row__info {
    flex: 1;
    min-width: 0;
}

.hbm-ui .hbm-unit-row__info h3 {
    margin: 0 0 var(--md-space-xs);
    font-size: var(--md-font-size-lg);
}

.hbm-ui .hbm-unit-row__info h3 a {
    color: var(--md-on-surface);
}

.hbm-ui .hbm-unit-row__info h3 a:hover {
    color: var(--md-primary);
}

.hbm-ui .hbm-unit-row__excerpt {
    font-size: var(--md-font-size-sm);
    color: var(--md-on-surface-variant);
    margin: 0 0 var(--md-space-sm);
}

.hbm-ui .hbm-unit-row__meta {
    display: flex;
    gap: var(--md-space-md);
    font-size: var(--md-font-size-sm);
    color: var(--md-on-surface-variant);
}

.hbm-ui .hbm-unit-row__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hbm-ui .hbm-unit-row__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 140px;
    flex-shrink: 0;
}

.hbm-ui .hbm-unit-row__price {
    text-align: right;
}

.hbm-ui .hbm-unit-row__price .hbm-card__price {
    font-size: 20px;
    font-weight: 600;
    color: var(--md-on-surface);
    display: block;
}

.hbm-ui .hbm-unit-row__price .hbm-card__price-period {
    font-size: 12px;
    color: var(--md-on-surface-variant);
}

/* ---- Bulk Booking Bar ---- */
.hbm-ui .hbm-results-bulk {
    margin-bottom: var(--md-space-lg);
    width: 100%;
}

.hbm-ui .hbm-results-bulk__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--md-space-md);
    padding: var(--md-space-md) var(--md-space-lg);
    background: linear-gradient(135deg, var(--md-surface) 0%, var(--md-surface-variant) 100%);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-lg);
    box-shadow: var(--md-elevation-1);
    margin-bottom: var(--md-space-lg);
}

.hbm-ui .hbm-results-bulk__text strong {
    display: block;
    color: var(--md-on-surface);
    font-size: 16px;
    font-weight: 600;
}

.hbm-ui .hbm-results-bulk__text span {
    font-size: 14px;
    color: var(--md-on-surface-variant);
}

/* ---- Room Select Checkbox ---- */
.hbm-ui .hbm-room-select {
    display: flex;
    align-items: center;
    gap: var(--md-space-sm);
    font-size: var(--md-font-size-sm);
}

/* ---- Property Page Contact / Search Sidebar ---- */
.hbm-ui .hbm-hotel-contact,
.hbm-ui .hbm-hotel-search,
.hbm-ui .hbm-hotel-map {
    background: var(--md-surface);
    border: 1px solid var(--md-outline);
    border-radius: var(--md-radius-sm);
    padding: var(--md-space-lg);
    margin-bottom: var(--md-space-lg);
}

.hbm-ui .hbm-hotel-contact h3,
.hbm-ui .hbm-hotel-search h3,
.hbm-ui .hbm-hotel-map h3 {
    margin: 0 0 var(--md-space-md);
    font-size: var(--md-font-size-base);
    font-weight: 600;
}

.hbm-ui .hbm-contact-row {
    display: flex;
    align-items: flex-start;
    gap: var(--md-space-sm);
    margin-bottom: var(--md-space-sm);
    font-size: var(--md-font-size-sm);
}

.hbm-ui .hbm-contact-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--md-primary);
}

.hbm-ui .hbm-contact-row a {
    color: var(--md-on-surface);
}

.hbm-ui .hbm-contact-row a:hover {
    color: var(--md-primary);
}

/* ---- Archive Pages ---- */
.hbm-ui .hbm-properties-archive,
.hbm-ui .hbm-rooms-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--md-space-lg);
}

.hbm-ui .hbm-archive-header {
    margin-bottom: var(--md-space-xl);
}

.hbm-ui h1.hbm-archive-title {
    font-size: 28px;
    font-weight: 500;
    margin: 0;
    color: var(--md-on-surface);
}

.hbm-ui .hbm-md-action-status {
    display: block;
    min-height: 1.5em;
    color: var(--md-on-surface-variant);
    font-size: var(--md-font-size-sm);
}

.hbm-ui .hbm-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--md-space-lg);
}

/* ---- Mobile Reservation Bar ---- */
.hbm-md-mobile-reserve {
    display: none;
}

.hbm-availability-retry {
    margin-inline-start: auto;
}

/* ---- Property Page Variant ---- */
.hbm-ui.hbm-property-page .hbm-property__layout,
.hbm-ui .hbm-property-page .hbm-property__layout {
    grid-template-columns: 1fr 400px;
}

/* ==========================================================================
   Responsive - Template Pages
   ========================================================================== */

@media (max-width: 1024px) {
    .hbm-ui .hbm-property__layout,
    .hbm-ui .hbm-property-page .hbm-property__layout {
        grid-template-columns: 1fr;
    }

    .hbm-ui .hbm-property__sidebar {
        min-width: 0;
        position: static;
    }

    .hbm-ui .hbm-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
    }
}

@media (max-width: 768px) {
	.hbm-ui .hbm-property {
		padding-bottom: calc(var(--md-space-2xl) + 60px);
	}

	.hbm-ui .hbm-md-mobile-reserve {
		display: flex;
		position: fixed;
		z-index: 100;
		inset-inline: 0;
		bottom: 0;
		align-items: center;
		justify-content: space-between;
		gap: var(--md-space-sm);
		padding: var(--md-space-sm) var(--md-space-md);
		background: var(--md-surface);
		border-top: 1px solid var(--md-outline);
		box-shadow: var(--md-elevation-3);
	}

	.hbm-ui .hbm-md-mobile-reserve__details {
		display: grid;
		gap: var(--md-space-xs);
		min-width: 0;
		font-size: var(--md-font-size-sm);
		color: var(--md-on-surface-variant);
	}

	.hbm-ui .hbm-md-mobile-reserve__details strong {
		color: var(--md-on-surface);
		font-size: var(--md-font-size-base);
	}

	.hbm-ui .hbm-md-mobile-reserve__button {
		min-height: 48px;
		white-space: nowrap;
	}

    .hbm-ui {
        padding: var(--md-space-md);
    }

    .hbm-ui h1.hbm-property__title {
        font-size: 22px;
    }

    .hbm-ui .hbm-property__header {
        flex-direction: column;
    }

    .hbm-ui .hbm-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 250px;
        grid-auto-rows: 160px;
        gap: 2px;
    }

    .hbm-ui .hbm-gallery__item:first-child {
        grid-row: auto;
    }

    .hbm-lightbox-overlay {
        padding: 60px 12px 20px;
    }

    .hbm-lightbox {
        width: 100%;
        max-width: 100%;
    }

    .hbm-lightbox__content img {
        max-height: calc(100vh - 180px);
    }

    .hbm-lightbox__close {
        top: -52px;
        right: 0;
    }

    .hbm-lightbox__prev {
        left: 8px;
    }

    .hbm-lightbox__next {
        right: 8px;
    }

    .hbm-ui .hbm-unit-row {
        flex-direction: column;
    }

    .hbm-ui .hbm-unit-row__image {
        width: 100%;
        height: 180px;
    }

    .hbm-ui .hbm-unit-row__actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .hbm-ui .hbm-results-bulk__bar {
        flex-direction: column;
        align-items: stretch;
    }

    .hbm-ui .hbm-booking-card__dates {
        grid-template-columns: 1fr;
    }

    .hbm-ui .hbm-booking-card__date:first-child {
        border-right: none;
        border-bottom: 1px solid var(--md-outline);
    }

    .hbm-ui .hbm-amenities {
        grid-template-columns: 1fr;
    }

    .hbm-ui .hbm-archive-grid {
        grid-template-columns: 1fr;
    }
}
