﻿:root {
    /* Default booking theme colours. Overridden per tenant by TenantBrandingStyle.razor
       so the whole public UI follows the intranet Branding configuration. */
    --booking-primary: #1b6ec2;
    --booking-primary-rgb: 27, 110, 194;
    --booking-primary-strong: #1861ac;
    --booking-accent: #0d6efd;
}

/* Accent helpers so the tenant's configured accent colour can be applied to highlights
   (badges, emphasised labels) instead of being injected but never consumed. */
.text-brand-accent {
    color: var(--booking-accent, #0d6efd) !important;
}

.bg-brand-accent {
    background-color: var(--booking-accent, #0d6efd) !important;
    color: #fff !important;
}

.border-brand-accent {
    border-color: var(--booking-accent, #0d6efd) !important;
}

html, body {
    font-family: Inter, 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--booking-bg-page, #f8fafc);
    color: #0f172a;
    min-height: 100%;
}

a, .btn-link {
    color: var(--booking-primary, #006bb7);
}

.btn-primary {
    color: #fff;
    background-color: var(--booking-primary, #1b6ec2);
    border-color: var(--booking-primary-strong, var(--booking-primary, #1861ac));
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    color: #fff;
    background-color: var(--booking-primary-strong, var(--booking-primary, #1861ac));
    border-color: var(--booking-primary-strong, var(--booking-primary, #1861ac));
}

.btn-outline-primary {
    color: var(--booking-primary, #1b6ec2);
    border-color: var(--booking-primary, #1b6ec2);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: #fff;
    background-color: var(--booking-primary, #1b6ec2);
    border-color: var(--booking-primary, #1b6ec2);
}

.btn:focus-visible, .btn-link.nav-link:focus-visible, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--booking-primary, #258cfb);
}

.content {
    padding-top: 0;
    width: 100%;
}

/* Tenant-configurable global page background is applied on html/body above.
   .booking-shell only ensures full viewport height; it inherits the body background. */
.booking-shell {
    min-height: 100vh;
}

.language-selector {
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 1100;
}

.language-selector .dropdown-item.active {
    background-color: var(--booking-primary, #0d6efd);
}

.booking-hero {
    background-position: center;
    background-size: cover;
    min-height: clamp(360px, 48vh, 500px);
    width: 100%;
}

.booking-hero-content {
    align-items: center;
    display: flex;
    min-height: clamp(360px, 48vh, 500px);
    padding-bottom: 4.5rem;
    padding-top: 3rem;
}

.booking-hero h1 {
    font-size: clamp(2rem, 3vw, 3.15rem);
    line-height: 1.08;
}

.booking-hero .lead {
    font-size: 1.05rem;
}

.booking-hero-logo {
    display: block;
    max-height: 56px;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sticky-search {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: -3.5rem;
}

/* Embedded mode (iframe host): no hero is rendered, so the negative margin that pulls the
   search box up into the hero would instead overlap the content below it. Reset the offset
   and add a little top breathing room so the prompts/alerts sit below the search box. */
.booking-embedded .sticky-search {
    margin-top: 0;
    padding-top: 1.5rem;
}

.booking-search {
    border-radius: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    width: 100%;
    background: var(--booking-bg-search, #ffffff);
    background-blend-mode: var(--booking-bg-search-blend, normal);
    opacity: var(--booking-bg-search-opacity, 1);
}

.booking-search-advanced {
    box-shadow: none !important;
}

.booking-search-advanced .card-body {
    padding: 0;
}

.offcanvas-body .booking-search {
    border-radius: 0;
}

.booking-stepper {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: -1.5rem;
}

.booking-step {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: inherit;
    display: flex;
    gap: .65rem;
    padding: .65rem .9rem;
    text-align: left;
}

.booking-step:disabled {
    opacity: .65;
}

.booking-step span {
    align-items: center;
    background: #e2e8f0;
    border-radius: 999px;
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.booking-step.active {
    border-color: var(--booking-primary, #0d6efd);
    color: var(--booking-primary, #0d6efd);
}

.booking-step.active span {
    background: var(--booking-primary, #0d6efd);
    color: #fff;
}

.booking-progress {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.booking-progress-step {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    position: relative;
    text-align: center;
    text-decoration: none;
}

.booking-progress-step:hover {
    color: var(--booking-primary, #0d6efd);
}

.booking-progress-step::before {
    background: #cbd5e1;
    content: "";
    height: .25rem;
    left: -50%;
    position: absolute;
    right: 50%;
    top: .8rem;
    z-index: 0;
}

.booking-progress-step:first-child::before {
    display: none;
}

.booking-progress-step.completed::before,
.booking-progress-step.active::before {
    background: var(--booking-primary, #0d6efd);
}

.booking-progress-step span {
    align-items: center;
    background: #94a3b8;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 1.65rem;
    justify-content: center;
    position: relative;
    width: 1.65rem;
    z-index: 1;
}

.booking-progress-step.active,
.booking-progress-step.completed {
    color: var(--booking-primary, #0d6efd);
}

.booking-progress-step.active span,
.booking-progress-step.completed span {
    background: var(--booking-primary, #0d6efd);
}

.add-on-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.add-on-card.selected {
    box-shadow: 0 0 0 .15rem rgba(25, 135, 84, .2), 0 .5rem 1rem rgba(15, 23, 42, .08) !important;
}

.add-on-quantity {
    min-width: 4.5rem;
}

.guest-bookings {
    max-height: 22rem;
    overflow-y: auto;
}

.guest-booking-row {
    border: 1px solid #dbeafe;
}

.guest-booking-row .btn-group {
    flex-wrap: wrap;
}

.reservation-terms-details {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
}

.hosted-payment-form,
.hosted-payment-card-data {
    background: #fff;
    border-color: #e2e8f0 !important;
}

.hosted-payment-card-data {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    min-height: 8rem;
    padding: 1rem;
}

/* VGS Collect injects an iframe into each field container; give it a fixed, compact box that
   matches VGS's own reference example (span.vgs-field). overflow: hidden clips the iframe to the
   box height so its intrinsic content/placeholder cannot bleed past the border into the next field. */
.vgs-field {
    position: relative;
    overflow: hidden;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
}

.vgs-field iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.vgs-field.focused {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.vgs-field.invalid {
    border-color: #dc3545;
}

.vgs-field.valid {
    border-color: #198754;
}

.room-list {
    display: grid;
    gap: 1.5rem;
}

/* Legacy parity: a single CSS grid drives both result views so an expanded rate panel can break out
   to the full row width (grid-column: 1 / -1) and push the following rows down — something a Bootstrap
   row/col flex layout cannot do for a sibling inserted mid-row. The grid view fits up to three cards
   per row on large screens (two on medium, one on small); the list view is always a single column. */
.room-results-grid {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.room-results-grid-single {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .room-results-grid-multi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .room-results-grid-multi {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.room-results-cell {
    display: flex;
    min-width: 0;
}

.room-results-cell > .room-card {
    width: 100%;
}

/* Full-width expansion band: sits directly under the row of the card it belongs to and spans every
   column, reproducing the legacy behaviour where the unit-details panel opens beneath the results. */
.room-rates-fullspan {
    grid-column: 1 / -1;
}

.room-card {
    border-radius: 1.25rem;
    background: #ffffff;
}

/* Grid view: vertical card that fills its column height so the price/CTA block stays aligned
   across the row, mirroring the legacy three-up results layout. */
.room-card-compact .card-body {
    width: 100%;
}

.room-card-compact .room-carousel img {
    aspect-ratio: 16 / 9;
}

/* Sold-out / unavailable cards: a touch darker than the grey results panel so they recede next to
   the white available cards, matching the legacy booking engine. */
.room-card-unavailable {
    opacity: 1;
    background: #dfe2e6 !important;
}

/* Legacy parity: sold-out / yield-closed message shown in place of the price block on an unavailable
   room card, using the same soft-amber alert styling as the selected-dates box. */
.room-soldout-alert {
    background: #fff8e6;
    border: 1px solid #f4e2b0;
    color: #8a6d3b;
    border-radius: .5rem;
    padding: .65rem .85rem;
    max-width: 17rem;
}

/* Footer variant: when the sold-out banner moves to the card's action row it spans the available
   width (next to the favorite/compare/calendar icons) instead of the narrow price column. */
.room-soldout-alert-footer {
    max-width: none;
}

.room-carousel img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Placeholder shown when a unit has no configured images: a neutral grey block with a centered
   "No images available" caption, matching the legacy booking engine. Mirrors the carousel image
   aspect ratios so the card height stays identical whether or not photos exist. */
.room-no-image {
    aspect-ratio: 4 / 3;
    background: #cfd2d6;
    color: #ffffff;
    font-size: .95rem;
    letter-spacing: .01em;
    text-align: center;
    padding: 1rem;
}

.room-card-compact .room-no-image {
    aspect-ratio: 16 / 9;
}

/* Image gallery (availability search cards). The card shows the primary image as a clickable
   trigger; clicking opens a full-screen, state-driven modal with a large image, prev/next arrows
   and a thumbnail strip. Reuses .room-carousel img aspect ratios for the trigger so card height is
   unchanged. */
.room-gallery-trigger {
    position: relative;
    cursor: pointer;
    display: block;
}

.room-gallery-trigger img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.room-card-compact .room-gallery-trigger img {
    aspect-ratio: 16 / 9;
}

.room-gallery-count {
    position: absolute;
    right: .6rem;
    bottom: .6rem;
    opacity: .9;
    font-size: .8rem;
    pointer-events: none;
}

.room-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.room-gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
}

.room-gallery-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 64rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.room-gallery-close {
    position: absolute;
    top: -.75rem;
    right: -.75rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .35);
    z-index: 2;
}

.room-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-gallery-main {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: .75rem;
    background: #000;
}

.room-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .92;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .35);
}

.room-gallery-prev {
    left: .5rem;
}

.room-gallery-next {
    right: .5rem;
}

.room-gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    justify-content: center;
}

.room-gallery-thumb {
    flex: 0 0 auto;
    width: 5rem;
    height: 3.5rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: .4rem;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    opacity: .65;
    transition: opacity .15s ease, border-color .15s ease;
}

.room-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.room-gallery-thumb:hover,
.room-gallery-thumb:focus-visible {
    opacity: 1;
}

.room-gallery-thumb.is-active {
    opacity: 1;
    border-color: #ffffff;
}

.room-actions {
    display: flex;
    gap: .5rem;
}

.room-facts,
.amenity-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.room-facts span {
    background: #f1f5f9;
    border-radius: 999px;
    color: #475569;
    padding: .35rem .7rem;
}

/* Amenity chips: icon + label aligned on a single baseline, with a subtle accent on the icon so the
   FontAwesome glyph reads as a category marker rather than plain text. Used in both the result card
   and the expanded rate/unit-details panel. */
.amenity-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.amenity-badge i {
    color: var(--booking-primary, var(--bs-primary, #0d6efd));
}

/* Icon-only attribute/location markers on result cards: compact circular chips that surface the
   tenant-configured icon while keeping the card uncluttered. The localized label is exposed through
   the native title/aria-label so it appears as a tooltip on hover and to assistive technology. */
.room-attribute-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--booking-primary, var(--bs-primary, #0d6efd));
    font-size: .85rem;
    cursor: help;
}

.room-attribute-icon:hover {
    background: #e2e8f0;
}

/* Icons fill the row left-to-right and only wrap once the inner card width is actually used up.
   Fixed-size chips with flex-wrap keep them tight (no gaps from stretched grid tracks) so a row is
   filled before any chip drops to the next line. */
.room-attribute-icons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* Group label above each cluster of attribute/location icons on a result card. Small, muted and
   spaced so it reads as a section heading without competing with the unit title. */
.room-attribute-group-title {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: .35rem;
}

.rate-plan-card {
    background: #f8fafc;
    border-color: #dbe3ef !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.rate-plan-title {
    font-size: 1.05rem;
}

.rate-plan-price {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
}

.rate-plan-price span {
    color: #475569;
    font-size: .95rem;
    font-weight: 400;
}

.rate-toggle {
    align-items: center;
    display: inline-flex;
    gap: .35rem;
    white-space: nowrap;
}

.rate-toggle-icon {
    align-items: center;
    background: rgba(var(--booking-primary-rgb, 13, 110, 253), .12);
    border-radius: 999px;
    display: inline-flex;
    font-size: .7rem;
    height: 1.25rem;
    justify-content: center;
    line-height: 1;
    width: 1.25rem;
}

.rate-options {
    display: grid;
    gap: .5rem;
}

/* Legacy-style expanded rate card: vertical layout with a header row (title + price),
   an optional details block, and an action row (SELECT / RATE DETAILS). */
.rate-option-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    color: inherit;
    display: flex;
    flex-direction: column;
    padding: .85rem;
    text-align: left;
    width: 100%;
}

.rate-option-head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.rate-option-info {
    min-width: 0;
}

/* Vignette du forfait affichée à côté du titre dans la card de tarif. */
.rate-option-package-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.15s ease-in-out;
}

.rate-option-package-image:hover {
    transform: scale(1.05);
}

/* Modal d'agrandissement de l'image du forfait (géré côté Blazor). */
.package-image-modal {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Emphasize the rate plan title (e.g. "NRF RATE", "Loyalty MEMBER RATE") in the rate list. */
.rate-option-info > span:first-child {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.rate-option-price {
    white-space: nowrap;
}

/* Emphasize the per-night amount in the expanded rate list so the price stands out. */
.rate-option-price strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.rate-option-details {
    border-top: 1px dashed #e2e8f0;
    padding-top: .5rem;
}

/* PMS-imported descriptions are rich HTML, so their markup is constrained to the panel width
   and its trailing block margin is removed to preserve the surrounding spacing. */
.rate-panel-description img,
.rate-option-details img {
    max-width: 100%;
    height: auto;
}

.rate-panel-description table,
.rate-option-details table {
    max-width: 100%;
}

.rate-panel-description > :last-child,
.rate-option-details > :last-child {
    margin-bottom: 0;
}

.rate-option-card.selected {
    border-color: var(--booking-primary, #0d6efd);
    box-shadow: 0 0 0 .15rem rgba(var(--booking-primary-rgb, 13, 110, 253), .12);
}

/* Legacy "RATE DETAILS" recap: Subtotal / Taxes / Fees rows with an emphasized Total line. */
.rate-option-summary {
    border-top: 1px dashed #e2e8f0;
    padding-top: .65rem;
}

.rate-option-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .95rem;
    margin: 0 0 .25rem;
}

.rate-option-summary-row dt {
    color: #64748b;
    font-weight: 400;
    margin: 0;
}

.rate-option-summary-row dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
    font-weight: 600;
}

.rate-option-summary-total {
    border-top: 1px solid #e2e8f0;
    padding-top: .35rem;
    margin-top: .35rem;
    font-weight: 700;
}

.rate-option-summary-total dt {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.1rem;
}

.rate-option-summary-total dd {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Legacy parity: the full-width expanded unit-details panel (unit details, amenities, selected-dates
   box, and the rate list). The dates box uses the legacy soft-amber highlight. */
.rate-panel {
    border-radius: 1.25rem;
}

.rate-panel-dates {
    background: #fff8e6;
    border: 1px solid #f4e2b0;
}

.rate-option-calendar {
    border-top: 1px dashed #e2e8f0;
    padding-top: .5rem;
}

.availability-strip {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(var(--availability-columns, 6), minmax(0, 1fr));
    margin-top: .25rem;
}

.availability-strip-compact {
    gap: .4rem;
}

.availability-day {
    background: rgba(var(--booking-primary-rgb, 226, 232, 240), .04);
    border: 1px solid rgba(var(--booking-primary-rgb, 226, 232, 240), .35);
    border-radius: .8rem;
    display: grid;
    gap: .15rem;
    justify-items: center;
    min-height: 5.25rem;
    padding: .85rem .35rem;
    position: relative;
}

.availability-day-checkin {
    background: rgba(var(--booking-primary-rgb, 226, 232, 240), .08);
    border-color: var(--booking-primary, #e2e8f0);
    clip-path: none;
}

.availability-day-checkout {
    background: rgba(var(--booking-primary-rgb, 226, 232, 240), .08);
    border-color: var(--booking-primary, #e2e8f0);
    clip-path: none;
}

.availability-day-checkin.availability-day-checkout {
    clip-path: none;
}

.availability-strip-compact .availability-day {
    border-radius: .65rem;
    font-size: .9rem;
    padding: .5rem .25rem;
}

.availability-day span,
.price span {
    color: #64748b;
}

.availability-day small {
    color: var(--booking-primary, #64748b);
    font-weight: 700;
    font-size: 1rem;
}

.availability-strip-compact .availability-day small {
    font-size: .9rem;
}

.price {
    color: #0f172a;
    font-size: 1.7rem;
    font-weight: 700;
}

/* Alternative-dates availability calendar modal */
.availability-calendar-modal .modal-content {
    border: 0;
    border-radius: 1rem;
}

.availability-calendar-months {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 575.98px) {
    .availability-calendar-months {
        grid-template-columns: minmax(0, 1fr);
    }
}

.availability-calendar-weekdays,
.availability-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .25rem;
}

.availability-calendar-weekday {
    font-size: .7rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    padding-bottom: .25rem;
}

.availability-calendar-cell {
    background: rgba(var(--booking-primary-rgb, 226, 232, 240), .04);
    border: 1px solid rgba(var(--booking-primary-rgb, 226, 232, 240), .3);
    border-radius: .55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-height: 3.1rem;
    padding: .3rem .15rem;
    font-size: .85rem;
    line-height: 1.1;
    color: #0f172a;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
}

.availability-calendar-cell-blank {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.availability-calendar-cell-day {
    font-weight: 600;
}

.availability-calendar-cell-rate {
    color: var(--booking-primary, #2563eb);
    font-size: .7rem;
    font-weight: 600;
}

/* Available day for the guest's stay: inventory exists and no restriction blocks it. A pale green
   overlay clearly signals "bookable" at a glance; the per-day "as low as" rate sits below the day. */
.availability-calendar-cell-available {
    background: rgba(22, 163, 74, .1);
    border-color: rgba(22, 163, 74, .35);
}

.availability-calendar-cell-available:hover {
    background: rgba(var(--booking-primary-rgb, 37, 99, 235), .12);
    border-color: var(--booking-primary, #2563eb);
}

/* Tiny per-cell spinner shown while live availability + "as low as" pricing are still loading for the
   displayed month, so the calendar appears instantly instead of behind a full-screen wait. */
.availability-calendar-cell-spinner {
    display: inline-block;
    width: .85rem;
    height: .85rem;
    margin-top: .15rem;
    border: 2px solid rgba(var(--booking-primary-rgb, 37, 99, 235), .25);
    border-top-color: var(--booking-primary, #2563eb);
    border-radius: 50%;
    animation: availability-calendar-spin .6s linear infinite;
}

@keyframes availability-calendar-spin {
    to { transform: rotate(360deg); }
}

.availability-calendar-cell-disabled {
    color: #94a3b8;
    background: rgba(148, 163, 184, .08);
    border-color: rgba(148, 163, 184, .2);
    cursor: not-allowed;
    text-decoration: none;
}

/* Day still loading its live availability + "as low as" price: neutral cell with a small per-cell
   spinner (see .availability-calendar-cell-spinner). Not clickable until the month finishes loading. */
.availability-calendar-cell-loading {
    color: #64748b;
    background: rgba(148, 163, 184, .05);
    border-color: rgba(148, 163, 184, .18);
    cursor: progress;
}

/* No availability for the guest's stay: the day has no inventory, or a sale restriction blocks it
   (closed / closed-to-arrival / min-stay / max-stay). Shown red (not just greyed) to clearly signal
   "not bookable". Technical PMS errors are NOT painted here - they surface as the modal error state. */
.availability-calendar-cell-unavailable {
    color: #b91c1c;
    background: rgba(220, 38, 38, .1);
    border-color: rgba(220, 38, 38, .35);
    cursor: not-allowed;
    text-decoration: line-through;
}

.availability-calendar-cell-inrange {
    background: rgba(var(--booking-primary-rgb, 37, 99, 235), .1);
    border-color: rgba(var(--booking-primary-rgb, 37, 99, 235), .35);
}

.availability-calendar-cell-checkin,
.availability-calendar-cell-checkout {
    background: var(--booking-primary, #2563eb);
    border-color: var(--booking-primary, #2563eb);
    color: #fff;
}

.availability-calendar-cell-checkin .availability-calendar-cell-rate,
.availability-calendar-cell-checkout .availability-calendar-cell-rate {
    color: rgba(255, 255, 255, .85);
}

.pricing-summary {
    background: #f8fafc;
}

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.skeleton {
    animation: pulse 1.4s ease-in-out infinite;
    background: linear-gradient(90deg, #e2e8f0, #f8fafc, #e2e8f0);
    background-size: 200% 100%;
    border-radius: 1.25rem;
}

.skeleton-hero {
    height: 280px;
}

.skeleton-card {
    height: 180px;
}

/* Degraded availability state: shown when the PMS/API is unreachable. Local catalog
   rooms stay visible but are dimmed and covered by an overlay that blocks interaction. */
/* Legacy parity: the results area sits on a light grey panel so the white available cards stand
   out against it, while unavailable cards use a slightly darker grey (see .room-card-unavailable). */
.booking-results-wrapper {
    position: relative;
    background: var(--booking-bg-results, #e9ecef);
    background-blend-mode: var(--booking-bg-results-blend, normal);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* Funnel pages (add-ons, reserve, payment, confirmation) share the results background zone. */
.booking-content-wrapper {
    background: var(--booking-bg-results, transparent);
    background-blend-mode: var(--booking-bg-results-blend, normal);
    border-radius: 1rem;
    padding: 1.5rem;
}

.booking-results-degraded .room-results-grid {
    opacity: .6;
    filter: grayscale(35%);
}

/* "View technical details" disclosure inside the service-unavailable banner: the summary acts as a
   link and the exception text wraps instead of overflowing the alert. */
.pms-tech-details summary {
    cursor: pointer;
}

.pms-tech-details-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.booking-degraded-overlay {
    position: absolute;
    inset: 0;
    z-index: 15;
    cursor: not-allowed;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .25);
}

/* Global page-transition loading overlay (static element in App.razor, toggled by navigation-spinner.js).
   Covers the whole viewport with a translucent backdrop and a centered Bootstrap spinner so the
   visitor sees that something is happening while the next page loads. Sits above every other layer,
   including the fixed language selector (z-index 1100). Hidden by default; the "is-visible" class is
   added the instant a navigation starts and removed once the destination page has rendered. */
.nav-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .35);
    backdrop-filter: blur(2px);
}

.nav-loading-overlay.is-visible {
    display: flex;
    animation: nav-loading-fade .15s ease-in;
}

.nav-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-width: 5.5rem;
    max-width: 22rem;
    padding: 1.75rem 2rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, .25);
}

.nav-loading-spinner {
    width: 2.75rem;
    height: 2.75rem;
    border-width: .3rem;
}

.nav-loading-text {
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    color: #0f172a;
}

@keyframes nav-loading-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    to {
        background-position-x: -200%;
    }
}

@media (max-width: 767.98px) {
    .sticky-search {
        position: static;
        transform: none;
        margin-top: -2rem;
    }

    .booking-embedded .sticky-search {
        margin-top: 0;
        padding-top: 1rem;
    }

    .availability-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}