/* ==========================================================================
   Hotel Room Booking - Auth & User Dashboard Design System
   ========================================================================== */

:root {
    --hotel-primary: #1a365d;
    --hotel-primary-hover: #0f294a;
    --hotel-accent: #c59b27;
    --hotel-accent-hover: #a37f1e;
    --hotel-bg-light: #f8fafc;
    --hotel-surface: #ffffff;
    --hotel-text-main: #1e293b;
    --hotel-text-muted: #64748b;
    --hotel-border: #e2e8f0;
    --hotel-border-focus: #cbd5e1;
    --hotel-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --hotel-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hotel-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --hotel-radius-sm: 6px;
    --hotel-radius-md: 10px;
    --hotel-radius-lg: 16px;
    --hotel-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Auth Shortcode & Form Cards
   -------------------------------------------------------------------------- */

.hotel-auth-shortcode-wrapper {
    max-width: 480px;
    margin: 30px auto;
    background: var(--hotel-surface);
    border: 1px solid var(--hotel-border);
    border-radius: var(--hotel-radius-lg);
    box-shadow: var(--hotel-shadow-md);
    overflow: hidden;
    font-family: inherit;
}

.hotel-auth-tabs {
    display: flex;
    background: var(--hotel-bg-light);
    border-bottom: 1px solid var(--hotel-border);
}

.hotel-tab-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--hotel-text-muted);
    cursor: pointer;
    transition: var(--hotel-transition);
    text-align: center;
}

.hotel-tab-btn:hover {
    color: var(--hotel-primary);
}

.hotel-tab-btn.active {
    background: var(--hotel-surface);
    color: var(--hotel-primary);
    border-bottom: 3px solid var(--hotel-accent);
}

.hotel-auth-content {
    padding: 28px;
}

.hotel-auth-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hotel-auth-header h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--hotel-primary);
}

.hotel-auth-header p {
    margin: 0;
    font-size: 14px;
    color: var(--hotel-text-muted);
}

.hotel-auth-alert {
    padding: 12px 16px;
    border-radius: var(--hotel-radius-sm);
    font-size: 14px;
    line-height: 1.5;
    animation: hotelFadeIn 0.3s ease-in-out;
}

.hotel-auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.hotel-auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.hotel-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hotel-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hotel-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hotel-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hotel-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hotel-form-group label .required {
    color: #dc2626;
}

.hotel-input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hotel-input-icon {
    position: absolute;
    left: 14px;
    color: var(--hotel-text-muted);
    pointer-events: none;
}

.hotel-form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--hotel-border);
    border-radius: var(--hotel-radius-md);
    font-size: 15px;
    color: var(--hotel-text-main);
    background: var(--hotel-surface);
    transition: var(--hotel-transition);
    outline: none;
    box-sizing: border-box;
}

.hotel-form-input:focus {
    border-color: var(--hotel-accent);
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

.hotel-form-help {
    font-size: 12px;
    color: var(--hotel-text-muted);
}

.hotel-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hotel-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--hotel-text-main);
    cursor: pointer;
}

.hotel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--hotel-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hotel-transition);
    border: none;
    text-decoration: none;
}

.hotel-btn-primary {
    background: var(--hotel-primary);
    color: #ffffff;
}

.hotel-btn-primary:hover {
    background: var(--hotel-primary-hover);
    color: #ffffff;
}

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

.hotel-btn-block {
    width: 100%;
}

.hotel-auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--hotel-text-muted);
    margin-top: 8px;
}

.hotel-auth-footer a, .hotel-switch-step-btn {
    color: var(--hotel-accent);
    font-weight: 600;
    text-decoration: none;
    transition: var(--hotel-transition);
}

.hotel-auth-footer a:hover, .hotel-switch-step-btn:hover {
    color: var(--hotel-accent-hover);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Header Profile Dropdown Component
   -------------------------------------------------------------------------- */

.hotel-user-profile {
    display: inline-block;
    position: relative;
    font-family: inherit;
}

.hotel-user-profile__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--hotel-border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--hotel-transition);
    color: var(--hotel-text-main);
    text-decoration: none;
}

.hotel-user-profile__trigger:hover {
    background: var(--hotel-bg-light);
    border-color: var(--hotel-border-focus);
}

.hotel-user-profile__avatar-img {
    border-radius: 50%;
    display: block;
}

.hotel-user-profile__name {
    font-size: 14px;
    font-weight: 600;
}

.hotel-user-profile__dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    background: var(--hotel-surface);
    border: 1px solid var(--hotel-border);
    border-radius: var(--hotel-radius-md);
    box-shadow: var(--hotel-shadow-lg);
    display: none;
    z-index: 9999;
    overflow: hidden;
    animation: hotelDropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hotel-user-profile__dropdown.active {
    display: block;
}

.hotel-user-profile__header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--hotel-border);
    background: var(--hotel-bg-light);
}

.hotel-user-profile__user-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--hotel-text-main);
}

.hotel-user-profile__user-email {
    display: block;
    font-size: 12px;
    color: var(--hotel-text-muted);
    word-break: break-all;
}

.hotel-user-profile__menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.hotel-user-profile__menu-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--hotel-text-main);
    text-decoration: none;
    transition: var(--hotel-transition);
}

.hotel-user-profile__menu-item a:hover {
    background: var(--hotel-bg-light);
    color: var(--hotel-accent);
}

/* --------------------------------------------------------------------------
   User Dashboard Layout & Sidebar
   -------------------------------------------------------------------------- */

.hotel-dashboard-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: inherit;
}

.hotel-dashboard-header {
    background: linear-gradient(135deg, var(--hotel-primary) 0%, #0f294a 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: var(--hotel-radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--hotel-shadow-md);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.hotel-dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hotel-dashboard-avatar img {
    border-radius: 50%;
    border: 3px solid var(--hotel-accent);
    display: block;
}

.hotel-dashboard-welcome {
    margin: 0 0 4px 0;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
}

.hotel-dashboard-email {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.hotel-dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Navigation */
.hotel-dashboard-sidebar {
    background: var(--hotel-surface);
    border: 1px solid var(--hotel-border);
    border-radius: var(--hotel-radius-lg);
    box-shadow: var(--hotel-shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 180px; /* offset for header */
    z-index: 90;
}

.hotel-dashboard-nav ul {
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

.hotel-dashboard-nav-item {
    margin: 2px 10px;
}

.hotel-dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--hotel-radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--hotel-text-muted);
    text-decoration: none;
    transition: var(--hotel-transition);
}

.hotel-dashboard-nav-link:hover {
    background: var(--hotel-bg-light);
    color: var(--hotel-primary);
}

.hotel-dashboard-nav-item.active .hotel-dashboard-nav-link {
    background: var(--hotel-primary);
    color: #ffffff;
}

.hotel-dashboard-nav-item.active .hotel-nav-icon {
    color: var(--hotel-accent);
}

/* Main Dashboard Content Area */
.hotel-dashboard-content {
    background: var(--hotel-surface);
    border: 1px solid var(--hotel-border);
    border-radius: var(--hotel-radius-lg);
    padding: 30px;
    box-shadow: var(--hotel-shadow-sm);
    min-height: 400px;
    max-height: 700px !important;
    overflow: scroll;
}

.hotel-dashboard-section-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--hotel-border);
    padding-bottom: 16px;
}

.hotel-dashboard-section-header h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--hotel-primary);
}

.hotel-dashboard-section-header p {
    margin: 0;
    font-size: 14px;
    color: var(--hotel-text-muted);
}

/* Dashboard Metric Cards */
.hotel-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hotel-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--hotel-bg-light);
    border: 1px solid var(--hotel-border);
    border-radius: var(--hotel-radius-md);
    transition: var(--hotel-transition);
}

.hotel-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hotel-shadow-md);
}

.hotel-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26, 54, 93, 0.1);
    color: var(--hotel-primary);
}

.hotel-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--hotel-primary);
    line-height: 1.2;
}

.hotel-stat-label {
    display: block;
    font-size: 13px;
    color: var(--hotel-text-muted);
}

.hotel-dashboard-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #faf5e6 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    padding: 24px;
    border-radius: var(--hotel-radius-md);
    gap: 20px;
}

.hotel-banner-content h4 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--hotel-primary);
}

.hotel-banner-content p {
    margin: 0;
    font-size: 14px;
    color: var(--hotel-text-muted);
}

.hotel-placeholder-card {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed var(--hotel-border);
    border-radius: var(--hotel-radius-md);
    background: var(--hotel-bg-light);
}

.hotel-placeholder-icon {
    color: var(--hotel-text-muted);
    margin-bottom: 12px;
}

.hotel-placeholder-card h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--hotel-primary);
}

.hotel-placeholder-card p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: var(--hotel-text-muted);
}

/* Profile Form Layout */
.hotel-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Animations & Responsive Breakpoints
   -------------------------------------------------------------------------- */

@keyframes hotelFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hotelDropdownSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 868px) {
    .hotel-dashboard-container {
        grid-template-columns: 1fr;
    }

    .hotel-dashboard-sidebar {
        margin-bottom: 20px;
    }

    .hotel-form-row {
        grid-template-columns: 1fr;
    }

    .hotel-dashboard-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   Hide Theme Page Title on User Dashboard
   -------------------------------------------------------------------------- */
.page-user-dashboard .entry-header,
.page-user-dashboard .page-header,
.page-user-dashboard .entry-title,
.page-user-dashboard .page-title,
.page-user-dashboard h1.entry-title {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Search Results Component (Reverted DOM)
   -------------------------------------------------------------------------- */
.hotel-search-results {
    width: 100%;
    max-width: none;
    margin: 50px auto 60px auto !important;
    font-family: inherit;
    padding: 0;
    box-sizing: border-box;
}

.hb-page-main-title {
    display: none !important;
}

.hb-search-results-header {
    margin-bottom: 40px;
}

/* Hide Title */
.hotel-search-results .hb-page-main-title {
    display: none;
}

.hb-search-results-header {
    position: relative;
    z-index: 999;
}

.hb-search-bar-wrapper {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    padding: 15px;
    margin: 0 auto 40px auto;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 999; /* Ensure date picker popup is above search results */
}

.hb-search-bar-wrapper .heroSearchForm {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.hb-search-bar-wrapper .searchForm__form {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: space-between;
}

.hb-search-bar-wrapper .searchFormItem {
    flex: 1;
    position: relative;
    padding: 10px 25px !important;
}

.hb-search-bar-wrapper .searchFormItem:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #e2e8f0;
}

.hb-search-bar-wrapper .searchFormItem__button {
    flex: 0 0 auto;
    padding: 0 10px !important;
    min-height: auto !important;
}

.hb-search-bar-wrapper .searchForm__button button {
    background-color: #b38b30 !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.hb-search-bar-wrapper .searchForm__button button:hover {
    background-color: #9c7825 !important;
}

/* Force the search form inside the wrapper to take full width */
.hb-search-bar-wrapper .searchForm {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
}

.hb-search-bar-wrapper .searchForm__form {
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important; /* Added light border */
    border-radius: 8px !important; /* Added rounded corners */
    padding: 7px !important; /* Added some padding to accommodate the border */
    margin-right: 5px !important;
}

/* Force text colors to be dark since the wrapper has a light background */
.hb-search-bar-wrapper .searchForm,
.hb-search-bar-wrapper .searchFormItem__button,
.hb-search-bar-wrapper .searchFormItem__button span,
.hb-search-bar-wrapper .searchFormItem__button div,
.hb-search-bar-wrapper .js-first-date,
.hb-search-bar-wrapper .js-last-date,
.hb-search-bar-wrapper .heroSearchItemLabel,
.hb-search-bar-wrapper .heroGuestSelect {
    color: #0f172a !important;
}

.hb-search-bar-wrapper .heroGuestSelect {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    cursor: pointer;
}

.hb-search-bar-wrapper i[class^="icon-"] {
    color: #64748b !important;
}

.hb-search-bar-wrapper .heroSearchItemLabel {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: block;
    margin-bottom: 2px;
}

.hb-search-summary {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.hb-search-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--hotel-primary);
    margin: 0 0 10px 0;
}

.hb-search-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--hotel-text-muted);
    margin: 0;
}

.hb-rooms-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hb-room-card {
    display: flex;
    background: var(--hotel-surface);
    border: 1px solid var(--hotel-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hb-room-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.hb-room-card__image {
    flex: 0 0 35%;
    max-width: 35%;
    background-color: #f1f5f9;
    position: relative;
}

.hb-room-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hb-room-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hotel-text-muted);
    font-weight: 600;
}

.hb-room-card__details {
    flex: 0 0 65%;
    max-width: 65%;
    display: flex;
    flex-direction: column;
    padding: 0px 40px 30px 20px;
    box-sizing: border-box;
}

.hb-room-title {
    margin: 0 0 12px 0;
    font-size: 35px;
    font-weight: 700;
    color: var(--hotel-primary);
}

.hb-room-meta {
    font-size: 14px;
    color: var(--hotel-text-muted);
    margin: 0 0 16px 0;
}

.hb-room-meta strong {
    color: var(--hotel-text-main);
}

.hb-room-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--hotel-text-main);
    margin-bottom: 24px;
}

.hb-rate-plans {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hb-rate-plan {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: var(--hotel-transition);
    height: 80px;
    box-sizing: border-box;
}

.hb-rate-plan:first-child {
    background-color: #fffaf0;
    border-color: #fbe6af;
}

.hb-rate-plan:first-child .hb-add-to-cart-btn {
    background-color: #b38b30; /* Golden/brown color */
}

.hb-rate-info {
    flex: 1;
    min-width: 200px;
}

h5.hb-rate-name {
    margin: 0 0 5px 0 !important;
    margin-top: 10px !important;
    font-size: 24px;
    font-weight: 700;
    color: #1a365d;
}

.hb-rate-desc {
    margin: 0;
    font-size: 16px;
    color: #64748b;
}

.hb-rate-price-box {
    flex: 0 0 auto;
    text-align: right;
    padding: 0 20px;
}

.hb-rate-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
}

.hb-rate-price small {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
}

.hb-rate-action {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hb-room-quantity {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    min-width: 100px;
}

.hb-add-to-cart-btn {
    padding: 8px 24px;
    background-color: #1a365d;
    border-radius: 4px;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 100px;
}

.hb-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--hotel-radius-md);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--hotel-transition);
}

.hb-btn--primary {
    background-color: var(--hotel-primary);
    color: #ffffff;
}

.hb-btn--primary:hover {
    background-color: var(--hotel-primary-hover);
    color: #ffffff;
}

@media (max-width: 1024px) {
    /* 1. Reduce page title and header spacing */
    .hb-page-main-title {
        font-size: 26px !important;
        margin-top: -30px !important;
        margin-bottom: 20px !important;
    }
    
    .hotel-search-results {
        padding: 0 !important;
        margin-top: 30px !important;
    }

    /* 2. Room availability text and search bar full width */
    .hb-search-bar-wrapper {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
        position: relative;
        z-index: 100; /* Ensure dropdowns overlay the room cards */
    }
    
    .hb-search-summary {
        margin-bottom: 20px !important;
    }

    .hb-search-title {
        font-family: 'Jost', sans-serif !important;
        font-size: 22px !important;
        line-height: 1.4 !important;
        color: var(--hotel-primary) !important;
        margin-bottom: 5px !important;
    }
    
    .hb-search-subtitle {
        font-family: 'Jost', sans-serif !important;
        font-size: 15px !important;
        color: #64748b !important;
    }

    /* 3. Make search bar better */
    .hb-search-bar-wrapper .searchFormItem {
        background: #f8f9fa !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 12px !important;
        padding: 12px 15px !important;
        box-shadow: none !important;
    }
    
    .hb-search-bar-wrapper .searchFormItemLabel {
        color: #64748b !important;
        font-weight: 500 !important;
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }
    
    .hb-search-bar-wrapper .searchFormItemInput,
    .hb-search-bar-wrapper .heroGuestSelect {
        font-family: 'Jost', sans-serif !important;
        font-size: 16px !important;
        color: #0f172a !important;
    }

    /* 4. Room Card: Full width, proper corner radius, visually enhancing image */
    .hb-rooms-list {
        padding: 0 15px !important;
    }

    .hb-room-card {
        flex-direction: column;
        border-radius: 12px !important;
        margin-bottom: 25px !important;
        border: none !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    }
    
    .hb-room-card__image {
        width: 100%;
        height: 240px !important;
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
        position: relative;
    }
    
    /* Subtle gradient overlay to image for premium look */
    .hb-room-card__image::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 50%;
        background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .hb-room-card__details {
        width: 100%;
        padding: 20px !important;
    }

    .hb-room-title {
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 26px !important;
        margin-bottom: 8px;
    }

    .hb-room-meta {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .hb-room-desc {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hb-rate-plans {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 991px) {
    .hotel-search-results {
        margin-top: 60px;
        width: 95%;
    }
    .hb-room-card {
        flex-direction: column;
        height: auto; /* Remove fixed height on smaller screens */
    }
    .hb-room-card__image {
        max-width: 100%;
        width: 100%;
        height: 250px;
        flex: none;
    }
    .hb-room-card__details {
        max-width: 100%;
        width: 100%;
        padding: 20px;
        overflow-y: visible;
    }
    
    /* Responsive Cart Card (my-reservation) */
    .hb-cart-item-flex {
        flex-direction: column !important;
    }
    .hb-cart-item-img-wrap {
        width: 100% !important;
        height: 250px !important;
        margin-bottom: 20px !important;
    }
    .hb-cart-item-details {
        padding-left: 0 !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .hb-cart-item-price-block {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid #e2e8f0 !important;
        padding-top: 20px !important;
        align-items: center !important;
        text-align: left !important;
        flex-direction: row !important;
    }
    .hb-cart-price-inner {
        align-items: flex-start !important;
    }
}

@media (max-width: 1280px) {
    .hb-rate-plan {
        height: 100px !important;
    }
    h5.hb-rate-name {
        font-size: 20px !important;
    }
    .hb-rate-desc {
        font-size: 14px !important;
    }
}

@media (max-width: 1024px) {
    .hb-rate-plan {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 15px 20px !important;
        height: auto !important;
        min-height: 100px !important;
        border-radius: 10px !important;
        background: #f8f9fa !important;
        border: 1px solid #e2e8f0 !important;
        gap: 15px !important;
    }
    
    .hb-rate-info {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    
    h5.hb-rate-name {
        font-size: 17px !important;
        white-space: normal !important;
        margin-bottom: 5px !important;
        margin-top: 5px !important;
    }

    .hb-rate-desc {
        font-size: 13px !important;
    }
    
    .hb-rate-price-box {
        flex: 1 1 40% !important;
        text-align: left !important;
        padding: 0 !important;
    }
    
    .hb-rate-price {
        font-size: 20px !important;
    }
    
    .hb-rate-action {
        flex: 1 1 50% !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .hb-room-quantity {
        width: 100px !important;
        background: #ffffff !important;
        border-radius: 8px !important;
        border: 1px solid #cbd5e1 !important;
        height: 42px !important;
        padding: 0 10px !important;
        font-size: 14px !important;
    }

    .hb-add-to-cart-btn {
        width: auto !important;
        padding: 0 20px !important;
        height: 42px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 767px) {
    .hb-search-bar-wrapper {
        padding: 0;
    }
    
    .hb-rate-desc { font-size: 18px !important; }
    h5.hb-rate-name { font-size: 24px !important; }
    .cms-page-content p { margin-bottom: 0 !important; }
    .hb-rate-action { justify-content: space-evenly !important; width: 100% !important; }
    .hb-room-quantity { width: 100% !important; }
    
    /* Responsive Cart Card Dates */
    .hb-cart-dates-wrap {
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        flex-wrap: wrap;
    }
    .hb-cart-dates-divider {
        display: block !important;
    }
    
    /* Mobile Search GO button full width */
    .hb-search-bar-wrapper .searchForm__button {
        width: 100% !important;
        display: block !important;
        margin-top: 15px !important;
    }
    .hb-search-bar-wrapper .searchForm__button button {
        width: 100% !important;
        border-radius: 8px !important;
    }
}
/* Custom Fixes for Search Results Layout */
.hotel-search-results {
    max-width: 1200px;
    margin: 180px auto 60px auto;
    padding: 0 15px;
}

@media (max-width: 991px) {
    .hotel-search-results {
        margin-top: 120px;
    }
}

/* 24-inch Monitor Full Desktop Viewport */
@media (min-width: 1920px) {
    .hotel-search-results .hb-rate-desc {
        font-size: 14px;
    }
    .hotel-search-results .hb-rate-plan {
        height: 110px;
    }
}

/* Custom 2000px+ Viewport */
@media screen and (min-width: 2000px) {
    .hotel-search-results .hb-rate-desc {
        font-size: 11px;
    }
}
