:root {
    --hb-navy: #082a5c;
    --hb-navy-deep: #061d40;
    --hb-blue: #1268e3;
    --hb-blue-soft: #edf5ff;
    --hb-orange: #ff7a1a;
    --hb-orange-dark: #e85f00;
    --hb-orange-soft: #fff4eb;
    --hb-bg: #f4f7fb;
    --hb-card: #ffffff;
    --hb-line: #d9e2ef;
    --hb-line-strong: #c3d1e3;
    --hb-text: #102342;
    --hb-muted: #62718a;
    --hb-success: #078554;
    --hb-success-soft: #eaf8f2;
    --hb-warning: #9a5a00;
    --hb-warning-soft: #fff7e6;
    --hb-danger: #b42318;
    --hb-danger-soft: #fff0ee;
    --hb-radius: 16px;
    --hb-shadow: 0 12px 34px rgba(8, 42, 92, 0.08);
}

.hotelbeds-page,
.hotelbeds-page *,
.hb-home-hotel-panel,
.hb-home-hotel-panel * {
    box-sizing: border-box;
}

.hotelbeds-page {
    margin: 0;
    color: var(--hb-text);
    background: var(--hb-bg);
    font-family: "Inter", "Noto Sans Arabic", Arial, sans-serif;
}

.hotelbeds-page button,
.hotelbeds-page input,
.hotelbeds-page select {
    font: inherit;
}

.hb-test-ribbon {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 16px;
    color: #704300;
    background: #fff3d6;
    border-bottom: 1px solid #f5cf77;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hb-main {
    min-height: 65vh;
    padding: 30px 20px 72px;
    background:
        radial-gradient(circle at 8% -5%, rgba(18, 104, 227, 0.07), transparent 25%),
        radial-gradient(circle at 92% 8%, rgba(255, 122, 26, 0.055), transparent 22%),
        var(--hb-bg);
}

.hb-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hb-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    max-width: 720px;
    margin: 0 auto 24px;
}

.hb-progress-step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    color: #8793a5;
    font-size: 12px;
    font-weight: 700;
}

.hb-progress-step:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 17px;
    right: -31%;
    width: 62%;
    height: 2px;
    content: "";
    background: #d6dfeb;
}

[dir="rtl"] .hb-progress-step:not(:last-child)::after {
    right: auto;
    left: -31%;
}

.hb-progress-step > span {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hb-line);
    border-radius: 50%;
    color: #7c899d;
    background: #fff;
}

.hb-progress-step.is-current {
    color: var(--hb-navy);
}

.hb-progress-step.is-current > span {
    color: #fff;
    border-color: var(--hb-orange);
    background: var(--hb-orange);
    box-shadow: 0 5px 14px rgba(255, 122, 26, 0.25);
}

.hb-progress-step.is-done {
    color: var(--hb-blue);
}

.hb-progress-step.is-done > span {
    color: #fff;
    border-color: var(--hb-blue);
    background: var(--hb-blue);
}

.hb-progress-step.is-done::after {
    background: var(--hb-blue);
}

.hb-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 650;
}

.hb-alert--success {
    color: #056440;
    border-color: #a8dfc9;
    background: var(--hb-success-soft);
}

.hb-alert--warning {
    color: #825000;
    border-color: #ecd08c;
    background: var(--hb-warning-soft);
}

.hb-alert--error {
    color: var(--hb-danger);
    border-color: #f0bbb6;
    background: var(--hb-danger-soft);
}

.hb-card {
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    background: var(--hb-card);
    box-shadow: var(--hb-shadow);
}

.hb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--hb-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hb-hero,
.hb-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.hb-hero {
    min-height: 160px;
    padding: 28px 32px;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(5, 29, 64, 0.97), rgba(18, 104, 227, 0.92)),
        url("../images/hero-2.jpg") center / cover;
    box-shadow: 0 16px 35px rgba(8, 42, 92, 0.16);
}

.hb-hero .hb-eyebrow {
    color: #ffd9bc;
}

.hb-hero h1,
.hb-page-heading h1 {
    margin: 0;
    letter-spacing: -0.035em;
}

.hb-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.hb-hero p {
    max-width: 680px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.6;
}

.hb-page-heading {
    min-height: 94px;
    padding: 6px 2px;
}

.hb-page-heading h1 {
    color: var(--hb-navy);
    font-size: clamp(25px, 3.5vw, 34px);
}

.hb-page-heading p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    color: var(--hb-muted);
    font-size: 13px;
    font-weight: 550;
}

.hb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--hb-blue);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.hb-map-link {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: var(--hb-blue);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.hb-heading-stars,
.hb-stars {
    color: #f3a600;
    letter-spacing: 2px;
}

.hb-heading-stars {
    font-size: 18px;
}

.hb-link-button,
.hb-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 17px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hb-button {
    color: #fff;
    background: var(--hb-blue);
    box-shadow: 0 8px 18px rgba(18, 104, 227, 0.18);
}

.hb-button:hover,
.hb-link-button:hover {
    transform: translateY(-1px);
}

.hb-button:hover {
    background: #0d59c5;
}

.hb-link-button {
    color: var(--hb-navy);
    border: 1px solid var(--hb-line-strong);
    background: #fff;
}

.hb-hero .hb-link-button {
    color: var(--hb-navy);
    border-color: #fff;
}

.hb-button--small {
    min-height: 36px;
    padding: 8px 14px;
}

.hb-button--confirm {
    min-height: 52px;
    width: 100%;
    font-size: 13px;
    background: var(--hb-orange);
    box-shadow: 0 10px 22px rgba(255, 122, 26, 0.2);
}

.hb-button--confirm:hover {
    background: var(--hb-orange-dark);
}

.hb-button--danger,
.hb-link-button--danger {
    color: #fff;
    border-color: var(--hb-danger);
    background: var(--hb-danger);
}

.hb-search-card {
    position: relative;
    z-index: 3;
    padding: 20px;
}

body.home-premium-v2 #hotels.hb-home-hotel-panel {
    width: 100%;
    padding: 14px 0 0;
}

body.home-premium-v2 #hotels.hb-home-hotel-panel.active {
    display: block !important;
}

body.home-premium-v2 #hotels.hb-home-hotel-panel .hb-search-form {
    width: 100%;
}

body.home-premium-v2 #hotels.hb-home-hotel-panel .hb-search-note {
    margin-inline: 2px;
}

.hb-search-note a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hb-blue);
    font-weight: 750;
    text-decoration: none;
}

.hb-search-form {
    display: grid;
    grid-template-columns: minmax(230px, 1.4fr) minmax(150px, 0.82fr) minmax(150px, 0.82fr) minmax(210px, 1fr) 132px;
    gap: 10px;
    align-items: end;
}

.hb-search-field {
    position: relative;
    min-width: 0;
}

.hb-search-field > label,
.hb-manage-card label > span,
.hb-form-grid label > span {
    display: block;
    margin: 0 0 7px;
    color: #344865;
    font-size: 11px;
    font-weight: 750;
}

.hb-input-icon {
    position: relative;
}

.hb-input-icon > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    width: 20px;
    color: var(--hb-blue);
    font-size: 15px;
    text-align: center;
    transform: translateY(-50%);
    pointer-events: none;
}

[dir="rtl"] .hb-input-icon > i {
    right: 14px;
    left: auto;
}

.hb-input-icon input,
.hb-occupancy-trigger,
.hb-form-grid input,
.hb-manage-card input {
    width: 100%;
    min-height: 49px;
    border: 1px solid var(--hb-line-strong);
    border-radius: 11px;
    outline: 0;
    color: var(--hb-text);
    background: #fff;
    font-size: 12px;
    font-weight: 650;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hb-input-icon input {
    padding: 10px 13px 10px 44px;
}

[dir="rtl"] .hb-input-icon input {
    padding: 10px 44px 10px 13px;
}

.hb-input-icon input:focus,
.hb-occupancy-trigger:focus,
.hb-form-grid input:focus,
.hb-manage-card input:focus {
    border-color: var(--hb-blue);
    box-shadow: 0 0 0 3px rgba(18, 104, 227, 0.1);
}

.hb-occupancy-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: start;
}

.hb-occupancy-trigger > i:first-child {
    color: var(--hb-blue);
}

.hb-occupancy-trigger > span {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hb-occupancy-trigger > i:last-child {
    color: #8190a5;
    font-size: 10px;
}

.hb-button--search {
    min-height: 49px;
    background: var(--hb-orange);
    box-shadow: 0 8px 18px rgba(255, 122, 26, 0.2);
}

.hb-button--search:hover {
    background: var(--hb-orange-dark);
}

.hb-autocomplete,
.hb-occupancy-popover {
    position: absolute;
    z-index: 40;
    top: calc(100% + 7px);
    left: 0;
    width: 100%;
    border: 1px solid var(--hb-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(8, 42, 92, 0.16);
}

[dir="rtl"] .hb-autocomplete,
[dir="rtl"] .hb-occupancy-popover {
    right: 0;
    left: auto;
}

.hb-autocomplete {
    max-height: 290px;
    overflow-y: auto;
    padding: 6px;
}

.hb-autocomplete button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border: 0;
    border-radius: 9px;
    color: var(--hb-text);
    background: #fff;
    cursor: pointer;
    text-align: start;
}

.hb-autocomplete button:hover,
.hb-autocomplete button.is-active {
    background: var(--hb-blue-soft);
}

.hb-autocomplete button > i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    border-radius: 8px;
    color: var(--hb-blue);
    background: #e8f2ff;
}

.hb-autocomplete button span {
    min-width: 0;
}

.hb-autocomplete button strong,
.hb-autocomplete button small {
    display: block;
}

.hb-autocomplete button strong {
    font-size: 12px;
}

.hb-autocomplete button small {
    margin-top: 2px;
    color: var(--hb-muted);
    font-size: 10px;
}

.hb-occupancy-popover {
    width: 360px;
    right: 0;
    left: auto;
    padding: 14px;
}

[dir="rtl"] .hb-occupancy-popover {
    right: auto;
    left: 0;
}

.hb-room-editor + .hb-room-editor {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--hb-line);
}

.hb-room-editor header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.hb-room-editor header strong {
    color: var(--hb-navy);
    font-size: 12px;
}

.hb-room-editor header button,
.hb-text-button {
    padding: 0;
    border: 0;
    color: var(--hb-blue);
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
}

.hb-counter-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    align-items: center;
    gap: 12px;
    min-height: 43px;
}

.hb-counter-row > span {
    color: #374b67;
    font-size: 11px;
    font-weight: 650;
}

.hb-counter {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    border: 1px solid var(--hb-line);
    border-radius: 9px;
    overflow: hidden;
}

.hb-counter button {
    height: 32px;
    border: 0;
    color: var(--hb-blue);
    background: var(--hb-blue-soft);
    cursor: pointer;
    font-weight: 800;
}

.hb-counter output {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
}

.hb-child-ages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 7px;
}

.hb-child-ages label {
    font-size: 9px;
    color: var(--hb-muted);
}

.hb-child-ages select {
    width: 100%;
    min-height: 34px;
    margin-top: 4px;
    padding: 6px;
    border: 1px solid var(--hb-line);
    border-radius: 8px;
    color: var(--hb-text);
    background: #fff;
    font-size: 10px;
}

.hb-occupancy-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--hb-line);
}

.hb-search-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 22px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid #e7edf5;
    color: var(--hb-muted);
    font-size: 10px;
    font-weight: 650;
}

.hb-search-note span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hb-search-note i {
    color: var(--hb-success);
}

.hb-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hb-trust-grid article {
    display: flex;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--hb-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
}

.hb-trust-grid article > span,
.hb-card-heading > span,
.hb-room-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 10px;
    color: var(--hb-blue);
    background: var(--hb-blue-soft);
}

.hb-trust-grid strong {
    display: block;
    margin: 1px 0 4px;
    color: var(--hb-navy);
    font-size: 12px;
}

.hb-trust-grid p {
    margin: 0;
    color: var(--hb-muted);
    font-size: 10px;
    line-height: 1.5;
}

.hb-result-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    color: var(--hb-muted);
    font-size: 11px;
}

.hb-result-toolbar strong {
    color: var(--hb-navy);
    font-size: 13px;
}

.hb-results-list {
    display: grid;
    gap: 14px;
}

.hb-hotel-card {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 210px;
    min-height: 205px;
    overflow: hidden;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    background: #fff;
    box-shadow: 0 8px 26px rgba(8, 42, 92, 0.06);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.hb-hotel-card:hover {
    border-color: #b9c9dd;
    box-shadow: 0 13px 32px rgba(8, 42, 92, 0.1);
}

.hb-hotel-image {
    position: relative;
    min-height: 205px;
    overflow: hidden;
    background: #dfe8f3;
}

.hb-hotel-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hb-hotel-image .hb-stars {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(6, 29, 64, 0.88);
    font-size: 10px;
}

.hb-hotel-copy {
    min-width: 0;
    padding: 20px;
}

.hb-hotel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hb-hotel-title h2 {
    margin: 0;
    color: var(--hb-navy);
    font-size: 18px;
    line-height: 1.3;
}

.hb-hotel-title p {
    margin: 7px 0 0;
    color: var(--hb-muted);
    font-size: 11px;
}

.hb-hotel-title p i {
    margin-inline-end: 5px;
    color: var(--hb-orange);
}

.hb-category {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--hb-blue);
    background: var(--hb-blue-soft);
    font-size: 9px;
    font-weight: 750;
}

.hb-hotel-benefits {
    display: grid;
    gap: 9px;
    margin-top: 22px;
}

.hb-hotel-benefits span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #40536e;
    font-size: 11px;
}

.hb-hotel-benefits i {
    width: 17px;
    color: var(--hb-success);
}

.hb-hotel-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    border-inline-start: 1px solid var(--hb-line);
    background: #fbfdff;
    text-align: end;
}

.hb-hotel-price small,
.hb-rate-action small {
    color: var(--hb-muted);
    font-size: 10px;
}

.hb-hotel-price > strong {
    margin-top: 4px;
    color: var(--hb-navy);
    font-size: 21px;
}

.hb-hotel-price > span {
    margin: 3px 0 14px;
    color: var(--hb-muted);
    font-size: 9px;
}

.hb-hotel-price .hb-button {
    width: 100%;
}

.hb-empty-state {
    padding: 54px 24px;
    text-align: center;
}

.hb-empty-state > i {
    color: #8ea0b8;
    font-size: 38px;
}

.hb-empty-state h2 {
    margin: 14px 0 20px;
    color: var(--hb-navy);
    font-size: 18px;
}

.hb-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 16px;
    align-items: start;
}

.hb-detail-main {
    display: grid;
    gap: 14px;
}

.hb-gallery {
    position: relative;
    height: 360px;
    overflow: hidden;
    border-radius: var(--hb-radius);
    background: #dce6f1;
    box-shadow: var(--hb-shadow);
}

.hb-gallery-panel {
    display: grid;
    gap: 9px;
}

.hb-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.hb-gallery-thumbnails button {
    height: 68px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #dce6f1;
    cursor: pointer;
}

.hb-gallery-thumbnails button.is-active {
    border-color: var(--hb-orange);
    box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.13);
}

.hb-gallery-thumbnails img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hb-gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hb-gallery-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 45px 18px 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(6, 29, 64, 0.82));
}

.hb-gallery-overlay span {
    font-size: 11px;
    font-weight: 750;
}

.hb-description-card,
.hb-detail-main > .hb-card {
    padding: 21px;
}

.hb-description-card h2,
.hb-detail-main > .hb-card h2,
.hb-room-section h2,
.hb-confirmation-price h2 {
    margin: 0 0 12px;
    color: var(--hb-navy);
    font-size: 16px;
}

.hb-description-card p {
    margin: 0;
    color: var(--hb-muted);
    font-size: 11px;
    line-height: 1.75;
}

.hb-facility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hb-facility-grid span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #3a4e6a;
    font-size: 10px;
}

.hb-facility-grid i {
    color: var(--hb-success);
}

.hb-detail-aside {
    position: sticky;
    top: 18px;
    padding: 22px;
}

.hb-detail-aside > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 11px;
    color: var(--hb-blue);
    background: var(--hb-blue-soft);
    font-size: 18px;
}

.hb-detail-aside > strong {
    display: block;
    color: var(--hb-navy);
    font-size: 13px;
}

.hb-detail-aside p {
    margin: 8px 0 17px;
    color: var(--hb-muted);
    font-size: 10px;
    line-height: 1.6;
}

.hb-detail-aside > span {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 13px;
    border-top: 1px solid var(--hb-line);
    color: #4a5d77;
    font-size: 9px;
    font-weight: 700;
}

.hb-room-section {
    margin-top: 24px;
}

.hb-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hb-room-card {
    overflow: hidden;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(8, 42, 92, 0.05);
}

.hb-room-card + .hb-room-card {
    margin-top: 13px;
}

.hb-room-card > header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--hb-line);
    background: #fbfdff;
}

.hb-room-card h3 {
    margin: 0;
    color: var(--hb-navy);
    font-size: 14px;
}

.hb-room-card header p {
    margin: 3px 0 0;
    color: var(--hb-muted);
    font-size: 9px;
}

.hb-rate-list {
    display: grid;
}

.hb-rate-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 20px;
    align-items: center;
    padding: 17px 18px;
}

.hb-rate-row + .hb-rate-row {
    border-top: 1px solid var(--hb-line);
}

.hb-rate-info {
    display: grid;
    gap: 7px;
}

.hb-rate-info > strong {
    color: var(--hb-navy);
    font-size: 12px;
}

.hb-rate-info > span:not(.hb-rate-badge) {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--hb-muted);
    font-size: 10px;
}

.hb-rate-info > span i {
    color: var(--hb-success);
}

.hb-rate-badge {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    color: var(--hb-success);
    background: var(--hb-success-soft);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.hb-rate-badge.is-recheck {
    color: var(--hb-warning);
    background: var(--hb-warning-soft);
}

.hb-rate-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: end;
}

.hb-rate-action > strong {
    margin: 3px 0 9px;
    color: var(--hb-navy);
    font-size: 18px;
}

.hb-rate-action form,
.hb-rate-action .hb-button {
    width: 100%;
}

.hb-checkout-grid,
.hb-confirmation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: start;
}

.hb-checkout-main {
    display: grid;
    gap: 14px;
}

.hb-form-card,
.hb-conditions-card,
.hb-price-change {
    padding: 20px;
}

.hb-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 17px;
}

.hb-card-heading h2 {
    margin: 1px 0 4px;
    color: var(--hb-navy);
    font-size: 15px;
}

.hb-card-heading p {
    margin: 0;
    color: var(--hb-muted);
    font-size: 10px;
    line-height: 1.5;
}

.hb-form-grid {
    display: grid;
    gap: 12px;
}

.hb-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hb-form-grid input {
    padding: 10px 12px;
}

.hb-guest-block {
    margin: 0;
    padding: 14px;
    border: 1px solid #e1e8f2;
    border-radius: 12px;
    background: #fbfdff;
}

.hb-guest-block + .hb-guest-block {
    margin-top: 10px;
}

.hb-guest-block legend {
    padding: 0 6px;
    color: var(--hb-navy);
    font-size: 11px;
    font-weight: 800;
}

.hb-guest-block legend small {
    color: var(--hb-muted);
    font-weight: 550;
}

.hb-price-change {
    border-color: #efc366;
    background: var(--hb-warning-soft);
    box-shadow: none;
}

.hb-price-change > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hb-price-change > div > i {
    color: #b66c00;
    font-size: 19px;
}

.hb-price-change h2,
.hb-conditions-card h2 {
    margin: 0 0 5px;
    color: var(--hb-navy);
    font-size: 14px;
}

.hb-price-change p,
.hb-conditions-card p {
    margin: 0 0 13px;
    color: var(--hb-muted);
    font-size: 11px;
}

.hb-price-change del {
    margin-inline-end: 10px;
    color: #8e6b43;
}

.hb-price-change strong {
    color: var(--hb-navy);
}

.hb-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
    color: #354a66;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
}

.hb-checkbox input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: var(--hb-blue);
}

.hb-summary-card {
    position: sticky;
    top: 18px;
    overflow: hidden;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    background: #fff;
    box-shadow: var(--hb-shadow);
}

.hb-summary-card > header {
    padding: 15px 17px;
    color: #fff;
    background: var(--hb-navy);
    font-size: 13px;
    font-weight: 800;
}

.hb-summary-hotel {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px;
    border-bottom: 1px solid var(--hb-line);
}

.hb-summary-hotel img {
    width: 58px;
    height: 52px;
    flex: 0 0 58px;
    border-radius: 9px;
    object-fit: cover;
}

.hb-hotel-image img.is-placeholder,
.hb-gallery > img.is-placeholder {
    padding: clamp(34px, 9vw, 72px);
    object-fit: contain;
    background: linear-gradient(145deg, #eef6ff, #f9fcff);
}

.hb-gallery-thumbnails img.is-placeholder {
    padding: 10px;
    object-fit: contain;
    background: linear-gradient(145deg, #eef6ff, #f9fcff);
}

.hb-summary-hotel img.is-placeholder {
    padding: 8px;
    object-fit: contain;
    background: linear-gradient(145deg, #eef6ff, #f9fcff);
}

.hb-summary-hotel strong,
.hb-summary-hotel span {
    display: block;
}

.hb-summary-hotel strong {
    color: var(--hb-navy);
    font-size: 11px;
}

.hb-summary-hotel span {
    margin-top: 3px;
    color: var(--hb-muted);
    font-size: 9px;
}

.hb-summary-card dl {
    margin: 0;
    padding: 13px 16px;
}

.hb-summary-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #edf1f6;
    font-size: 10px;
}

.hb-summary-card dt {
    color: var(--hb-muted);
}

.hb-summary-card dd {
    margin: 0;
    color: var(--hb-text);
    font-weight: 750;
    text-align: end;
}

.hb-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 12px 11px;
    padding: 14px;
    border: 1px solid #ffd1ad;
    border-radius: 11px;
    background: var(--hb-orange-soft);
}

.hb-summary-total span {
    color: #5e4a39;
    font-size: 10px;
    font-weight: 700;
}

.hb-summary-total strong {
    color: var(--hb-navy);
    font-size: 18px;
}

.hb-summary-tax {
    margin: 0 16px 12px;
    color: var(--hb-muted);
    font-size: 9px;
}

.hb-summary-security {
    display: grid;
    gap: 7px;
    padding: 13px 16px;
    border-top: 1px solid var(--hb-line);
    color: #4f617a;
    background: #fbfdff;
    font-size: 9px;
}

.hb-summary-security i {
    width: 14px;
    color: var(--hb-success);
}

.hb-confirmation-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 25px;
    border: 1px solid #a9ddc8;
    border-radius: var(--hb-radius);
    background: linear-gradient(110deg, #eefbf6, #fff);
    box-shadow: var(--hb-shadow);
}

.hb-confirmation-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    border-radius: 50%;
    color: #fff;
    background: var(--hb-success);
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(7, 133, 84, 0.18);
}

.hb-confirmation-hero h1 {
    margin: 0;
    color: var(--hb-navy);
    font-size: 24px;
}

.hb-confirmation-hero p {
    margin: 6px 0 0;
    color: var(--hb-muted);
    font-size: 11px;
}

.hb-status--manual_review,
.hb-status--pending_provider,
.hb-status--cancellation_pending {
    border-color: #eacb8e;
    background: linear-gradient(110deg, #fff9ec, #fff);
}

.hb-status--manual_review .hb-confirmation-icon,
.hb-status--pending_provider .hb-confirmation-icon,
.hb-status--cancellation_pending .hb-confirmation-icon {
    background: #d38100;
}

.hb-status--cancelled,
.hb-status--provider_failed,
.hb-status--cancellation_failed {
    border-color: #efbbb6;
    background: linear-gradient(110deg, #fff2f0, #fff);
}

.hb-status--cancelled .hb-confirmation-icon,
.hb-status--provider_failed .hb-confirmation-icon,
.hb-status--cancellation_failed .hb-confirmation-icon {
    background: var(--hb-danger);
}

.hb-booking-details,
.hb-confirmation-price {
    padding: 21px;
}

.hb-reference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.hb-reference-grid > div {
    padding: 12px;
    border: 1px solid var(--hb-line);
    border-radius: 10px;
    background: #fbfdff;
}

.hb-reference-grid dt,
.hb-booking-stay small {
    color: var(--hb-muted);
    font-size: 9px;
}

.hb-reference-grid dd {
    margin: 4px 0 0;
    color: var(--hb-navy);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 800;
    word-break: break-word;
}

.hb-booking-stay {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 15px;
    border-radius: 11px;
    background: var(--hb-blue-soft);
}

.hb-booking-stay > div {
    flex: 1;
}

.hb-booking-stay small,
.hb-booking-stay strong {
    display: block;
}

.hb-booking-stay strong {
    margin-top: 4px;
    color: var(--hb-navy);
    font-size: 12px;
}

.hb-booking-stay > i {
    color: var(--hb-blue);
}

.hb-booking-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 15px;
    color: #425670;
    font-size: 10px;
    font-weight: 650;
}

.hb-booking-facts i {
    margin-inline-end: 5px;
    color: var(--hb-blue);
}

.hb-confirmation-price > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0;
    border-block: 1px solid var(--hb-line);
}

.hb-confirmation-price > div span {
    color: var(--hb-muted);
    font-size: 10px;
}

.hb-confirmation-price > div strong {
    color: var(--hb-navy);
    font-size: 19px;
}

.hb-confirmation-price p {
    color: var(--hb-muted);
    font-size: 9px;
}

.hb-status-pill {
    display: inline-flex;
    margin-top: 8px;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--hb-success);
    background: var(--hb-success-soft);
    font-size: 9px;
    font-weight: 800;
}

.hb-status-pill--cancelled,
.hb-status-pill--provider_failed,
.hb-status-pill--cancellation_failed {
    color: var(--hb-danger);
    background: var(--hb-danger-soft);
}

.hb-status-pill--manual_review,
.hb-status-pill--pending_provider,
.hb-status-pill--cancellation_pending {
    color: var(--hb-warning);
    background: var(--hb-warning-soft);
}

.hb-cancellation-card,
.hb-cancellation-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 16px;
    padding: 19px 21px;
}

.hb-cancellation-card > div,
.hb-cancellation-confirm > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hb-cancellation-card > div > span,
.hb-cancellation-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 10px;
    color: var(--hb-danger);
    background: var(--hb-danger-soft);
}

.hb-cancellation-card h2,
.hb-cancellation-confirm h2 {
    margin: 1px 0 4px;
    color: var(--hb-navy);
    font-size: 14px;
}

.hb-cancellation-card p,
.hb-cancellation-confirm p {
    margin: 0;
    color: var(--hb-muted);
    font-size: 10px;
}

.hb-cancellation-confirm {
    align-items: flex-start;
    border-color: #efb9b4;
    background: #fffafa;
}

.hb-cancellation-confirm > div strong {
    display: block;
    margin-top: 5px;
    color: var(--hb-danger);
    font-size: 18px;
}

.hb-cancellation-confirm form {
    min-width: 330px;
    display: grid;
    gap: 12px;
}

.hb-confirmation-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.hb-manage-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 32px;
    align-items: center;
    min-height: 460px;
    padding: 38px;
    border-radius: 22px;
    background:
        linear-gradient(105deg, rgba(6, 29, 64, 0.97), rgba(18, 104, 227, 0.91)),
        url("../images/hero-2.jpg") center / cover;
    box-shadow: 0 18px 42px rgba(8, 42, 92, 0.18);
}

.hb-manage-copy {
    color: #fff;
}

.hb-manage-copy .hb-eyebrow {
    color: #ffd2b0;
}

.hb-manage-copy h1 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.hb-manage-copy > p {
    max-width: 570px;
    margin: 12px 0 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.65;
}

.hb-manage-benefits {
    display: grid;
    gap: 10px;
}

.hb-manage-benefits span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 650;
}

.hb-manage-benefits i {
    color: #ffb77e;
}

.hb-manage-card {
    padding: 24px;
}

.hb-manage-card form {
    display: grid;
    gap: 15px;
}

.hb-manage-card input {
    padding: 10px 12px 10px 44px;
}

[dir="rtl"] .hb-manage-card input {
    padding: 10px 44px 10px 12px;
}

.flatpickr-calendar {
    border: 1px solid var(--hb-line) !important;
    border-radius: 14px !important;
    font-family: "Inter", "Noto Sans Arabic", Arial, sans-serif !important;
    box-shadow: 0 18px 42px rgba(8, 42, 92, 0.18) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    border-color: var(--hb-blue) !important;
    background: var(--hb-blue) !important;
}

.flatpickr-day.today {
    border-color: var(--hb-orange) !important;
}

@media (max-width: 1020px) {
    .hb-search-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hb-button--search {
        grid-column: span 2;
    }

    .hb-hotel-card {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .hb-hotel-price {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        border-top: 1px solid var(--hb-line);
        border-inline-start: 0;
        text-align: start;
    }

    .hb-hotel-price > span {
        flex: 1;
        margin: 0;
    }

    .hb-hotel-price .hb-button {
        width: auto;
    }

    .hb-checkout-grid,
    .hb-confirmation-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .hb-manage-layout {
        grid-template-columns: minmax(0, 1fr) 390px;
        padding: 28px;
    }
}

@media (max-width: 780px) {
    .hb-main {
        padding: 20px 14px 54px;
    }

    .hb-progress {
        max-width: 440px;
        margin-bottom: 18px;
    }

    .hb-progress-step {
        gap: 0;
    }

    .hb-progress-step strong {
        display: none;
    }

    .hb-progress-step:not(:last-child)::after {
        right: -34%;
        width: 68%;
    }

    [dir="rtl"] .hb-progress-step:not(:last-child)::after {
        right: auto;
        left: -34%;
    }

    .hb-hero,
    .hb-page-heading {
        align-items: flex-start;
    }

    .hb-hero {
        min-height: 0;
        flex-direction: column;
        padding: 24px;
    }

    .hb-hero h1 {
        font-size: 29px;
    }

    .hb-page-heading {
        flex-direction: column;
        gap: 14px;
    }

    .hb-search-form {
        grid-template-columns: 1fr;
    }

    .hb-button--search {
        grid-column: auto;
    }

    .hb-search-field--destination,
    .hb-search-field--occupancy {
        z-index: 6;
    }

    .hb-trust-grid {
        grid-template-columns: 1fr;
    }

    .hb-hotel-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .hb-hotel-copy {
        padding: 16px;
    }

    .hb-hotel-title {
        display: block;
    }

    .hb-category {
        width: max-content;
        display: block;
        margin-top: 9px;
    }

    .hb-detail-grid,
    .hb-checkout-grid,
    .hb-confirmation-grid {
        grid-template-columns: 1fr;
    }

    .hb-detail-aside,
    .hb-summary-card {
        position: static;
    }

    .hb-gallery {
        height: 300px;
    }

    .hb-rate-row {
        grid-template-columns: minmax(0, 1fr) 210px;
    }

    .hb-summary-card {
        order: -1;
    }

    .hb-cancellation-card,
    .hb-cancellation-confirm {
        align-items: stretch;
        flex-direction: column;
    }

    .hb-cancellation-confirm form {
        min-width: 0;
    }

    .hb-manage-layout {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .hb-test-ribbon {
        font-size: 9px;
    }

    .hb-main {
        padding-inline: 10px;
    }

    .hb-progress-step > span {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 11px;
    }

    .hb-progress-step:not(:last-child)::after {
        top: 15px;
    }

    .hb-hero {
        padding: 20px;
        border-radius: 16px;
    }

    .hb-hero h1 {
        font-size: 25px;
    }

    .hb-hero p {
        font-size: 11px;
    }

    .hb-search-card {
        padding: 12px;
    }

    .hb-search-form {
        gap: 8px;
    }

    .hb-search-field > label,
    .hb-manage-card label > span,
    .hb-form-grid label > span {
        margin-bottom: 5px;
    }

    .hb-input-icon input,
    .hb-occupancy-trigger,
    .hb-form-grid input,
    .hb-manage-card input,
    .hb-button--search {
        min-height: 46px;
    }

    .hb-input-icon input {
        padding: 8px 12px 8px 42px;
    }

    [dir="rtl"] .hb-input-icon input {
        padding: 8px 42px 8px 12px;
    }

    .hb-occupancy-trigger {
        padding: 8px 11px;
    }

    .hb-occupancy-popover {
        position: absolute;
        z-index: 100;
        top: calc(100% + 7px);
        right: 0;
        bottom: auto;
        left: 0;
        width: 100%;
        max-height: min(62vh, 520px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
    }

    [dir="rtl"] .hb-occupancy-popover {
        right: 0;
        left: 0;
    }

    .hb-search-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        margin-top: 10px;
        padding-top: 10px;
        font-size: 9.5px;
        line-height: 1.4;
    }

    .hb-counter-row {
        grid-template-columns: 1fr 132px;
        min-height: 48px;
    }

    .hb-counter {
        grid-template-columns: 44px 1fr 44px;
    }

    .hb-counter button {
        height: 44px;
    }

    .hb-child-ages select {
        min-height: 44px;
    }

    .hb-text-button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    body.hotelbeds-page .at-public-whatsapp {
        right: auto;
        left: auto;
        bottom: max(8px, env(safe-area-inset-bottom));
        inset-inline-end: 8px;
        z-index: 35;
        width: 46px;
        height: 46px;
        border-width: 3px;
        font-size: 20px;
    }

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

    .hb-hotel-image {
        height: 205px;
        min-height: 205px;
    }

    .hb-hotel-price {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 4px 10px;
    }

    .hb-hotel-price > span {
        grid-column: 2;
    }

    .hb-hotel-price .hb-button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 7px;
    }

    .hb-gallery {
        height: 235px;
    }

    .hb-gallery-thumbnails {
        display: flex;
        overflow-x: auto;
        padding-bottom: 3px;
        scroll-snap-type: x proximity;
    }

    .hb-gallery-thumbnails button {
        width: 76px;
        flex: 0 0 76px;
        scroll-snap-align: start;
    }

    .hb-facility-grid,
    .hb-form-grid--two,
    .hb-reference-grid {
        grid-template-columns: 1fr;
    }

    .hb-rate-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hb-rate-action {
        align-items: stretch;
        padding-top: 13px;
        border-top: 1px solid var(--hb-line);
        text-align: start;
    }

    .hb-form-card,
    .hb-conditions-card,
    .hb-price-change,
    .hb-booking-details,
    .hb-confirmation-price {
        padding: 15px;
    }

    .hb-confirmation-hero {
        align-items: flex-start;
        padding: 18px;
    }

    .hb-confirmation-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 18px;
    }

    .hb-confirmation-hero h1 {
        font-size: 19px;
    }

    .hb-booking-stay {
        gap: 10px;
    }

    .hb-confirmation-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hb-confirmation-actions > * {
        width: 100%;
    }

    .hb-manage-layout {
        min-height: 0;
        padding: 18px;
        border-radius: 16px;
    }

    .hb-manage-copy h1 {
        font-size: 26px;
    }

    .hb-manage-card {
        padding: 17px;
    }
}
