.booking-results {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.booking-results__header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem 2rem;
}

.booking-results__header h1,
.booking-results__header p {
    color: inherit;
    margin: 0;
}

.booking-results__header p {
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
    color: var(--casa-dark, #2b2a29);
}

.button:hover,
.button:focus {
    text-decoration: none;
}

.button:focus-visible {
    outline: 3px solid rgba(157, 122, 66, 0.45);
    outline-offset: 2px;
}

.button-primary {
    background-color: var(--casa-gold, #9d7a42);
    border-color: var(--casa-gold, #9d7a42);
    color: var(--casa-light, #fff);
    box-shadow: 0 12px 24px rgba(157, 122, 66, 0.25);
}

.button-primary:hover,
.button-primary:focus {
    background-color: #816332;
    border-color: #816332;
    color: #fff;
    transform: translateY(-2px);
}

.button[disabled],
.button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.booking-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.booking-card__media {
    margin: 0;
}

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

.booking-card__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.booking-card__title {
    font-size: 1.75rem;
    margin: 0;
}

.booking-card__summary {
    margin-top: 0.5rem;
    color: #5a5a5a;
}

.booking-card__meta,
.booking-card__features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.booking-card__meta li,
.booking-card__features li {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
}

.booking-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.booking-card--unavailable {
    border: 1px solid rgba(176, 32, 32, 0.25);
}

.booking-card__status {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.booking-card__status--unavailable {
    color: #b02020;
}

.booking-card__price {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

.booking-card__total {
    font-size: 1.5rem;
    color: #1c3f3a;
}

.booking-results__empty {
    text-align: center;
    padding: 5rem 0;
    font-size: 1.25rem;
}

.booking-checkout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.booking-checkout__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.booking-checkout__notice {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    background: rgba(28, 63, 58, 0.08);
    text-align: center;
}

.booking-checkout__notice--error {
    background: rgba(176, 32, 32, 0.12);
    color: #702121;
    margin-bottom: 2rem;
}

.booking-checkout__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
}

.booking-checkout__summary {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.booking-checkout__media {
    margin: -2rem -2rem 1.5rem;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.booking-checkout__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.booking-checkout__room {
    margin-top: 0;
    font-size: 1.75rem;
}

.booking-checkout__summary-text {
    color: #555;
}

.booking-checkout__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    margin: 2rem 0;
}

.booking-checkout__details dt {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booking-checkout__details dd {
    margin: 0;
    color: #555;
}

.room-details {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.room-details__header {
    margin-bottom: 2.5rem;
}

.room-details__breadcrumb {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.room-details__breadcrumb a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.room-details__title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin: 0;
}

.room-details__summary {
    margin-top: 0.75rem;
    color: #555;
    max-width: 720px;
}

.room-details__layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.room-details__gallery {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.room-details__gallery-primary img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.room-details__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.room-details__gallery-item {
    margin: 0;
}

.room-details__gallery-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.room-details__gallery-primary .room-details__gallery-trigger {
    border-radius: 16px;
    overflow: hidden;
}

.room-details__gallery-item .room-details__gallery-trigger {
    border-radius: 12px;
    overflow: hidden;
    height: 160px;
}

.room-details__gallery-trigger:focus-visible {
    outline: 3px solid rgba(157, 122, 66, 0.6);
    outline-offset: 3px;
}

.room-details__gallery-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.room-details__highlights,
.room-details__description,
.room-details__inclusions,
.room-details__policies {
    margin-bottom: 2.5rem;
}

.room-details__highlights h2,
.room-details__description h2,
.room-details__inclusions h2,
.room-details__policies h2,
.room-details__booking h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.room-details__chip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.room-details__chip-list li {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.room-details__content > *:last-child {
    margin-bottom: 0;
}

.room-details__inclusions ul {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.5rem;
}

.room-details__policies dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
}

.room-details__policies dt {
    font-weight: 600;
}

.room-details__policies dd {
    margin: 0;
    color: #555;
}

.room-details__sidebar {
    position: sticky;
    top: 120px;
}

.room-details__booking {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.room-details__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.room-details__form-grid label span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.room-details__form-grid input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.room-details__form-grid input[type="number"]::-webkit-inner-spin-button,
.room-details__form-grid input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.room-details__form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1c3f3a;
}

.room-details__form-grid input {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
}

.room-details__booking .button {
    box-sizing: border-box;
}

.room-details__update-button {
    width: 100%;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
}

.room-details__price {
    margin-bottom: 1.5rem;
}

.room-details__total {
    font-size: 2rem;
    font-weight: 700;
    color: #1c3f3a;
    margin: 0;
}

.room-details__price small {
    display: block;
    margin-top: 0.35rem;
    color: #555;
}

.room-details__book {
    width: 100%;
    justify-content: center;
    display: flex;
    padding: 0.9rem 2.5rem;
}

.room-details__notice {
    background: rgba(176, 32, 32, 0.12);
    color: #702121;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
}

.room-gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}

.room-gallery-modal--open {
    display: flex;
}

.room-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
}

.room-gallery-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
}

.room-gallery-modal__figure {
    margin: 0;
}

.room-gallery-modal__image {
    width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    object-fit: contain;
    background: #111;
    display: block;
}

.room-gallery-modal__caption {
    margin-top: 1rem;
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
}

.room-gallery-modal__close,
.room-gallery-modal__nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.room-gallery-modal__close {
    top: -18px;
    right: -18px;
}

.room-gallery-modal__nav {
    top: 50%;
    transform: translateY(-50%);
}

.room-gallery-modal__nav--prev {
    left: 1rem;
}

.room-gallery-modal__nav--next {
    right: 1rem;
}

.room-gallery-modal__close:hover,
.room-gallery-modal__close:focus,
.room-gallery-modal__nav:hover,
.room-gallery-modal__nav:focus {
    background: rgba(129, 99, 50, 0.85);
}

.room-gallery-modal__close:focus-visible,
.room-gallery-modal__nav:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.room-gallery-modal__nav span {
    font-size: 1.75rem;
    line-height: 1;
}

.room-gallery-modal__close span {
    font-size: 1.5rem;
    line-height: 1;
}

body.room-gallery-modal-open {
    overflow: hidden;
}

.room-suggestions-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
}

.room-suggestions-modal.is-active {
    display: flex;
}

body.room-suggestions-modal-open {
    overflow: hidden;
}

.room-suggestions-modal__overlay {
    position: absolute;
    inset: 0;
}

.room-suggestions-modal__dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.room-suggestions-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
}

.room-suggestions-modal__title {
    margin: 0;
    font-size: 1.75rem;
}

.room-suggestions-modal__intro {
    margin: 0;
    color: #555;
}

.room-suggestions-modal__content {
    flex: 1 1 auto;
    overflow-y: auto;
    margin-top: 0.5rem;
    display: grid;
    gap: 1rem;
}

.room-suggestions-modal__message,
.room-suggestions-modal__loading {
    margin: 0;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(28, 63, 58, 0.08);
    text-align: center;
}

.room-suggestions-modal__results {
    display: grid;
    gap: 1rem;
}

.room-suggestions-modal__room {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: #fafafa;
    padding: 1rem;
}

.room-suggestions-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.room-suggestions-modal__body {
    display: grid;
    gap: 0.75rem;
}

.room-suggestions-modal__room h3 {
    margin: 0;
    font-size: 1.2rem;
}

.room-suggestions-modal__room p {
    margin: 0;
    color: #555;
}

.room-suggestions-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.room-suggestions-modal__price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-weight: 600;
}

.room-suggestions-modal__total {
    font-size: 1.25rem;
    color: #1c3f3a;
}

.room-suggestions-modal__actions {
    display: flex;
    gap: 0.5rem;
}

.room-suggestions-modal__actions .button {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .room-details__layout {
        grid-template-columns: 1fr;
    }

    .room-details__sidebar {
        position: static;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .room-details__gallery-primary img {
        height: 240px;
    }

    .room-details__form-grid {
        grid-template-columns: 1fr;
    }

    .room-details__gallery-item .room-details__gallery-trigger {
        height: 120px;
    }

    .room-gallery-modal {
        padding: 1.5rem 1rem;
    }

    .room-gallery-modal__image {
        max-height: 70vh;
        border-radius: 12px;
    }

    .room-gallery-modal__close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .room-gallery-modal__nav {
        width: 40px;
        height: 40px;
    }

    .room-suggestions-modal {
        padding: 1.5rem 1rem;
    }

    .room-suggestions-modal__dialog {
        padding: 2rem 1.5rem 1.75rem;
        max-height: 85vh;
    }

    .room-suggestions-modal__room {
        grid-template-columns: 1fr;
    }
}

.booking-checkout__total {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.booking-checkout__total-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #6b6b6b;
}

.booking-checkout__total-amount {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1c3f3a;
}

.booking-checkout__form {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.booking-checkout__form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.booking-checkout__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.booking-checkout__field label span {
    color: #b02020;
}

.booking-checkout__field input,
.booking-checkout__field textarea {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-checkout__field input:focus,
.booking-checkout__field textarea:focus {
    outline: none;
    border-color: #1c3f3a;
    box-shadow: 0 0 0 3px rgba(28, 63, 58, 0.1);
}

.booking-checkout__submit {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-checkout__submit .booking-submit {
    background-color: var(--casa-gold);
    color: var(--casa-light);
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 2.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.booking-checkout__submit .booking-submit:hover,
.booking-checkout__submit .booking-submit:focus {
    background-color: #816332;
    transform: translateY(-2px);
}

.booking-checkout__secure {
    font-size: 0.875rem;
    color: #555;
}

@media (max-width: 960px) {
    .booking-checkout__layout {
        grid-template-columns: 1fr;
    }

    .booking-checkout__media img {
        height: 180px;
    }
}

@media (max-width: 960px) {
    .booking-card {
        grid-template-columns: 1fr;
    }
}
