.detail-site-header .header-row {
    border-bottom: 0;
}

[data-detail-wishlist][aria-pressed="true"] {
    color: var(--accent);
    background: #fff2ef;
}

[data-detail-wishlist][aria-pressed="true"] svg {
    fill: currentColor;
}

.room-detail-main {
    width: min(1168px, calc(100% - 48px));
    margin: 0 auto;
    padding: 26px 0 80px;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    color: #68716f;
    font-size: 13px;
    font-weight: 500;
}

.detail-back-link:hover {
    color: var(--brand);
}

.detail-back-link svg,
.mobile-gallery-back svg,
.mobile-gallery-actions svg,
.detail-location svg,
.amenity-item svg,
.view-all-overlay svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-back-link svg {
    width: 18px;
    height: 18px;
}

.detail-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1.9fr 1fr 1fr;
    grid-template-rows: repeat(2, 250px);
    gap: 7px;
    overflow: hidden;
    background: #eef1f0;
    border-radius: 16px;
}

.gallery-track {
    display: contents;
}

.gallery-thumbnail-track {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.gallery-thumbnail {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #e9eceb;
    border: 0;
    cursor: pointer;
}

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

.gallery-thumbnail:hover img {
    transform: scale(1.02);
}

.gallery-count-1 .gallery-thumbnail-track {
    display: none;
}

.gallery-count-2 .gallery-thumbnail-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-count-3 .gallery-thumbnail-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-count-4 .gallery-thumbnail-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-photo {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #e9eceb;
    border: 0;
    cursor: pointer;
}

.gallery-photo::after {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.06);
    content: "";
    opacity: 0;
    transition: opacity 180ms ease;
}

.gallery-photo:hover::after {
    opacity: 1;
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-photo:hover img {
    transform: scale(1.025);
}

.gallery-main {
    grid-row: 1 / 3;
}

.gallery-side-1 {
    grid-column: 2;
    grid-row: 1;
}

.gallery-side-2 {
    grid-column: 3;
    grid-row: 1;
}

.gallery-side-3 {
    grid-column: 2;
    grid-row: 2;
}

.gallery-side-4 {
    grid-column: 3;
    grid-row: 2;
}

.detail-gallery.gallery-count-1 {
    display: block;
    height: 500px;
}

.gallery-count-1 .gallery-main {
    width: 100%;
    height: 100%;
}

.detail-gallery.gallery-count-2 {
    grid-template-columns: 1.9fr 1fr;
    grid-template-rows: 500px;
}

.gallery-count-2 .gallery-main {
    grid-row: 1;
}

.gallery-count-2 .gallery-side-1 {
    grid-column: 2;
    grid-row: 1;
}

.detail-gallery.gallery-count-3 {
    grid-template-columns: 1.9fr 1fr;
}

.gallery-count-3 .gallery-side-1,
.gallery-count-3 .gallery-side-2 {
    grid-column: 2;
}

.gallery-count-3 .gallery-side-2 {
    grid-row: 2;
}

.detail-gallery.gallery-count-4 {
    grid-template-columns: 1.9fr 1fr;
    grid-template-rows: repeat(3, 164px);
}

.gallery-count-4 .gallery-main {
    grid-row: 1 / 4;
}

.gallery-count-4 .gallery-side-1,
.gallery-count-4 .gallery-side-2,
.gallery-count-4 .gallery-side-3 {
    grid-column: 2;
}

.gallery-count-4 .gallery-side-2 {
    grid-row: 2;
}

.gallery-count-4 .gallery-side-3 {
    grid-row: 3;
}

.view-all-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: rgba(12, 20, 19, 0.46);
    font-size: 13px;
    font-weight: 750;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.view-all-overlay svg {
    width: 18px;
    height: 18px;
}

.mobile-gallery-back,
.mobile-gallery-actions,
.mobile-gallery-count {
    display: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 34px;
    margin-top: 28px;
}

.detail-content {
    min-width: 0;
}

.room-summary {
    padding: 4px 0 29px;
    border-bottom: 1px solid #e4e8e6;
}

.room-summary h1 {
    margin: 0;
    color: #20292f;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.18;
    letter-spacing: -0.7px;
}

.detail-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 9px;
    color: #34413e;
    font-size: 12px;
}

.detail-rating-summary > span,
.review-average > span {
    color: #f2a51a;
}

.detail-rating-summary strong {
    font-weight: 800;
}

.detail-rating-summary small {
    color: #737d79;
    font-size: 13px;
}

.room-fact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.room-fact-chips span {
    padding: 6px 11px;
    color: #3b4650;
    background: #f5f7f7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 17px 0 0;
    color: #717a82;
    font-size: 13px;
}

.detail-location svg {
    width: 17px;
    height: 17px;
}

.detail-section {
    padding: 34px 0;
    border-bottom: 1px solid #e4e8e6;
}

.section-heading small {
    color: var(--brand);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.section-heading h2 {
    margin: 6px 0 0;
    color: #222b31;
    font-size: 20px;
    line-height: 1.35;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 26px;
    margin-top: 26px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #455059;
    font-size: 13px;
}

.amenity-item svg {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    color: var(--brand);
}

.amenities-section:not(.expanded) .amenity-item:nth-child(n+7) {
    display: none;
}

.show-more-button {
    min-height: 40px;
    margin-top: 26px;
    padding: 0 16px;
    color: #34413f;
    background: #fff;
    border: 1px solid #ccd3d1;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.show-more-button:hover {
    color: var(--brand);
    border-color: var(--brand);
}

.about-section > p {
    margin: 18px 0 0;
    color: #5d676d;
    font-size: 13px;
    line-height: 1.8;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin-top: 20px;
}

.reviews-section {
    scroll-margin-top: 96px;
}

.review-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.verified-review-panel {
    margin-top: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7e3;
    border-radius: 12px;
}

.review-showcase {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 178px;
}

.review-score-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 18px;
    border-right: 1px solid #e8e9e5;
}

.review-score-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.review-score-value strong {
    color: #222520;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -1px;
}

.review-score-value span {
    color: #777b76;
    font-size: 11px;
}

.review-score-stars {
    margin-top: 12px;
    color: #f06f33;
    font-size: 14px;
    letter-spacing: 2px;
}

.review-score-stars.is-empty {
    color: #c9ccc8;
}

.review-score-summary p {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 11px 0 0;
    color: #616660;
    font-size: 12px;
    line-height: 1.4;
}

.review-score-summary p strong {
    color: #40443f;
    font-size: 13px;
}

.review-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(112px, 1fr);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #d9dcd8 transparent;
}

.review-card {
    min-width: 0;
    padding: 17px 11px 15px;
    background: #fff;
    border-left: 1px solid #e8e9e5;
    text-align: center;
}

.review-card:first-child {
    border-left: 0;
}

.review-card header {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;
}

.review-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 3px;
    color: #9da39f;
    background: #eef0ed;
    border-radius: 50%;
}

.review-avatar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.review-card header strong {
    max-width: 100%;
    overflow: hidden;
    color: #3e433e;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-verified-badge {
    color: var(--brand);
    font-size: 10px;
    font-weight: 750;
}

.review-card time {
    color: #858b86;
    font-size: 11px;
    white-space: nowrap;
}

.review-card-stars {
    margin-top: 10px;
    color: #f06f33;
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.review-card p {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: #6e736e;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.review-card .muted-review {
    color: #9a9f9a;
}

.review-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 210px;
    padding: 22px;
    color: #8a908b;
    text-align: center;
}

.review-empty > span {
    color: #f06f33;
    font-size: 26px;
}

.review-empty strong {
    margin-top: 6px;
    color: #4c514c;
    font-size: 13px;
}

.review-empty p {
    max-width: 220px;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

.review-policy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 14px;
    color: #6d736e;
    background: #fafbf9;
    border-top: 1px solid #e8e9e5;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.review-policy-note svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    color: var(--brand);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.review-action-panel {
    margin-top: 12px;
    padding: 13px 15px;
    color: #5a605b;
    background: #fbfaf6;
    border: 1px solid #ebe7de;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.55;
}

.review-action-panel.can-review {
    padding: 16px;
}

.review-action-panel > div > strong {
    color: #343934;
    font-size: 14px;
}

.review-action-panel p {
    margin: 3px 0 0;
}

.review-action-panel a {
    color: var(--brand);
    font-weight: 800;
}

.review-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.review-star-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.review-star-field legend,
.review-comment-field > span {
    display: block;
    margin-bottom: 7px;
    color: #34413d;
    font-size: 12px;
    font-weight: 750;
}

.review-star-field > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.review-star-field label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 8px;
    color: #6c7572;
    background: #fff;
    border: 1px solid #dce4e1;
    border-radius: 7px;
    cursor: pointer;
}

.review-star-field label:has(input:checked) {
    color: #825a05;
    background: #fff8df;
    border-color: #efbf50;
}

.review-star-field input {
    margin: 0;
    accent-color: #e6a417;
}

.review-star-field label > span {
    color: #f06f33;
}

.review-star-field label small {
    font-size: 11px;
}

.review-comment-field textarea {
    width: 100%;
    padding: 11px 12px;
    resize: vertical;
    color: #35413d;
    background: #fff;
    border: 1px solid #dce4e1;
    border-radius: 9px;
    font: inherit;
    outline: none;
}

.review-comment-field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.review-form > button {
    justify-self: start;
    min-height: 38px;
    padding: 0 16px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.rules-grid span {
    position: relative;
    padding-left: 17px;
    color: #5d676d;
    font-size: 13px;
    line-height: 1.6;
}

.rules-grid span::before {
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--brand);
    border-radius: 50%;
    content: "";
}

.booking-column {
    position: relative;
}

.booking-card {
    position: sticky;
    top: 92px;
    padding: 26px 24px 22px;
    background: #fff;
    border: 1px solid #e0e5e3;
    border-radius: 17px;
    box-shadow: 0 10px 32px rgba(25, 42, 38, 0.08);
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.booking-price strong {
    color: var(--accent);
    font-size: 27px;
    letter-spacing: -0.5px;
}

.booking-price span {
    color: #6d777e;
    font-size: 12px;
}

.price-breakdown {
    margin: 21px 0 0;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0ef;
}

.price-breakdown div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    color: #6f7880;
    font-size: 12px;
}

.price-breakdown dd {
    margin: 0;
    color: #38444e;
    font-weight: 750;
}

.booking-dates {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 4px;
    border: 1px solid #dfe4e2;
    border-radius: 11px;
    overflow: hidden;
}

.booking-date-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-width: 0;
    padding: 10px 11px;
}

.booking-date-label {
    padding-top: 7px;
    color: #7b848b;
    font-size: 10px;
    font-weight: 600;
}

.booking-date-row + .booking-date-row {
    border-top: 1px solid #dfe4e2;
}

.booking-date-controls {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 70px;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.booking-date-value {
    position: relative;
    display: block;
    min-width: 0;
    height: 34px;
}

.pwa-date-display {
    display: none;
}

.is-pwa-standalone .booking-date-value > input[type="date"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.is-pwa-standalone .booking-date-value > .pwa-date-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 6px;
    color: #27323a;
    background: #f8faf9;
    border: 1px solid #e6eae8;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    pointer-events: none;
}

.is-pwa-standalone .booking-date-value:focus-within > .pwa-date-display {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.08);
}

.booking-dates input,
.booking-dates select {
    display: block;
    min-width: 0;
    width: 100%;
    height: 34px;
    margin: 0;
    padding: 0 6px;
    color: #27323a;
    background: #f8faf9;
    border: 1px solid #e6eae8;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    outline: 0;
}

.booking-dates input:focus,
.booking-dates select:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.08);
}

.booking-time-24 {
    min-width: 0;
}

.date-error {
    margin: 8px 2px 0;
    color: #c94d3d;
    font-size: 10px;
    line-height: 1.4;
}

.date-error[hidden] {
    display: none;
}

.guest-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #edf0ef;
}

.guest-picker > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.guest-picker strong {
    color: #34404a;
    font-size: 13px;
}

.guest-picker small {
    color: #929a9f;
    font-size: 12px;
}

.guest-picker > div:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-picker button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0 0 2px;
    color: #65706f;
    background: #fff;
    border: 1px solid #e0e5e3;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.guest-picker output {
    min-width: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 750;
}

.booking-field {
    display: block;
    margin-top: 14px;
    color: #4c575e;
    font-size: 11px;
    font-weight: 600;
}

.booking-field input {
    width: 100%;
    height: 43px;
    margin-top: 6px;
    padding: 0 12px;
    color: #28333a;
    background: #fff;
    border: 1px solid #dfe4e2;
    border-radius: 10px;
    outline: 0;
}

.booking-field input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.booking-submit {
    width: 100%;
    height: 46px;
    margin-top: 18px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.booking-submit:hover {
    background: var(--brand-dark);
}

.booking-note {
    margin: 11px 0 0;
    color: #8a9397;
    font-size: 12px;
    text-align: center;
}

.booking-confirmation-dialog {
    width: min(540px, calc(100% - 28px));
    max-height: calc(100dvh - 28px);
    margin: auto;
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(15, 28, 25, 0.26);
}

.booking-confirmation-dialog::backdrop {
    background: rgba(10, 22, 20, 0.55);
    backdrop-filter: blur(4px);
}

.booking-confirmation-panel {
    padding: 0 24px 24px;
}

.booking-confirmation-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 17px;
    border-bottom: 1px solid #e8ecea;
}

.booking-confirmation-panel > header small,
.confirmation-room > span {
    color: var(--brand);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.booking-confirmation-panel h2 {
    margin: 5px 0 0;
    color: #222c31;
    font-size: 22px;
}

.booking-confirmation-panel > header button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0 0 3px;
    color: #4a5559;
    background: #f2f5f4;
    border: 0;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
}

.confirmation-room {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 18px;
    padding: 16px;
    background: var(--brand-soft);
    border-radius: 12px;
}

.confirmation-room strong {
    color: #22302f;
    font-size: 16px;
}

.confirmation-room small {
    color: #65716f;
    font-size: 11px;
}

.confirmation-details {
    margin: 18px 0 0;
}

.confirmation-details > div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0ef;
    font-size: 12px;
}

.confirmation-details dt {
    color: #78817f;
}

.confirmation-details dd {
    margin: 0;
    color: #303b40;
    font-weight: 700;
    text-align: right;
}

.confirmation-details .summary-price {
    color: var(--accent);
}

.confirmation-payment {
    margin-top: 20px;
    text-align: center;
}

.confirmation-payment h3 {
    margin: 0 0 13px;
    color: #273238;
    font-size: 15px;
}

.payment-qr-frame {
    width: 210px;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #dfe5e2;
    border-radius: 14px;
    box-shadow: 0 7px 24px rgba(22, 38, 34, 0.08);
}

.payment-qr-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.confirmation-payment p {
    max-width: 330px;
    margin: 12px auto 0;
    color: #808986;
    font-size: 10px;
    line-height: 1.6;
}

.confirmation-done {
    width: 100%;
    height: 44px;
    margin-top: 20px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.mobile-booking-bar {
    display: none;
}

.gallery-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    overflow: hidden;
    color: #fff;
    background: rgba(8, 13, 12, 0.97);
}

.gallery-lightbox::backdrop {
    background: #080d0c;
}

.gallery-lightbox figure {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 60px 90px;
}

.lightbox-image-stage {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-lightbox figure img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    user-select: none;
    will-change: transform;
    -webkit-user-drag: none;
}

.gallery-lightbox.is-zoomed .lightbox-image-stage {
    cursor: grab;
    touch-action: none;
}

.gallery-lightbox.is-dragging .lightbox-image-stage {
    cursor: grabbing;
}

.gallery-lightbox figcaption {
    flex: 0 0 auto;
    margin-top: 13px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    text-align: center;
}

.gallery-lightbox figcaption small {
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
}

.lightbox-close,
.lightbox-arrow,
.lightbox-zoom-reset {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-close {
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    padding: 0 0 3px;
    font-size: 28px;
}

.lightbox-zoom-reset {
    top: 20px;
    left: 24px;
    min-width: 58px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.lightbox-zoom-reset:disabled {
    opacity: 0.58;
    cursor: default;
}

.lightbox-arrow {
    top: 50%;
    width: 46px;
    height: 46px;
    font-size: 34px;
    transform: translateY(-50%);
}

.lightbox-arrow.previous {
    left: 24px;
}

.lightbox-arrow.next {
    right: 24px;
}

@media (max-width: 980px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 24px;
    }

    .detail-gallery {
        grid-template-rows: repeat(2, 210px);
    }

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

@media (max-width: 760px) {
    .room-detail-page {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .room-detail-page .detail-site-header {
        display: none;
    }

    .room-detail-main {
        width: 100%;
        padding: 0 0 38px;
    }

    .detail-back-link {
        display: none;
    }

    .detail-gallery {
        display: block;
        height: min(96vw, 430px);
        border-radius: 0;
    }

    .detail-gallery.gallery-count-1,
    .detail-gallery.gallery-count-2,
    .detail-gallery.gallery-count-3,
    .detail-gallery.gallery-count-4 {
        display: block;
        height: min(96vw, 430px);
    }

    .gallery-track {
        position: relative;
        z-index: 1;
        display: flex;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-track::-webkit-scrollbar {
        display: none;
    }

    .gallery-photo {
        display: block;
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .gallery-main {
        display: block;
    }

    .gallery-main img {
        object-position: center;
    }

    .gallery-photo:hover img {
        transform: none;
    }

    .view-all-overlay {
        display: none;
    }

    .mobile-gallery-back,
    .mobile-gallery-actions,
    .mobile-gallery-count {
        position: absolute;
        z-index: 4;
        display: flex;
    }

    .mobile-gallery-back {
        top: calc(18px + env(safe-area-inset-top));
        left: 18px;
        z-index: 6;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        color: #23302d;
        background: rgba(255, 255, 255, 0.94);
        border-radius: 50%;
        box-shadow: 0 4px 16px rgba(20, 30, 28, 0.14);
        pointer-events: auto;
        touch-action: manipulation;
    }

    .mobile-gallery-back svg {
        width: 21px;
        height: 21px;
    }

    .mobile-gallery-actions {
        top: calc(18px + env(safe-area-inset-top));
        right: 18px;
        gap: 8px;
    }

    .mobile-gallery-actions button {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        color: #23302d;
        background: rgba(255, 255, 255, 0.94);
        border: 0;
        border-radius: 50%;
        box-shadow: 0 4px 16px rgba(20, 30, 28, 0.14);
    }

    .mobile-gallery-actions button[aria-pressed="true"] {
        color: var(--accent);
    }

    .mobile-gallery-actions button[aria-pressed="true"] svg {
        fill: currentColor;
    }

    .mobile-gallery-actions svg {
        width: 20px;
        height: 20px;
    }

    .mobile-gallery-count {
        right: 16px;
        bottom: 14px;
        padding: 6px 10px;
        color: #fff;
        background: rgba(22, 29, 28, 0.55);
        border-radius: 999px;
        font-size: 10px;
        font-weight: 700;
        backdrop-filter: blur(6px);
    }

    .detail-layout {
        display: block;
        margin-top: 0;
    }

    .detail-content {
        padding: 0 16px;
    }

    .room-summary {
        padding: 22px 0 24px;
    }

    .room-summary h1 {
        font-size: 22px;
        letter-spacing: -0.4px;
    }

    .room-fact-chips {
        flex-wrap: nowrap;
        gap: 7px;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .room-fact-chips::-webkit-scrollbar {
        display: none;
    }

    .room-fact-chips span {
        flex: 0 0 auto;
        font-size: 11px;
    }

    .detail-location {
        align-items: flex-start;
        font-size: 11px;
        line-height: 1.5;
    }

    .detail-section {
        padding: 28px 0;
    }

    .section-heading h2 {
        font-size: 18px;
    }

    .amenities-grid {
        gap: 20px 14px;
        margin-top: 22px;
    }

    .amenity-item {
        gap: 9px;
        font-size: 11px;
    }

    .amenity-item svg {
        flex-basis: 23px;
        width: 23px;
        height: 23px;
    }

    .about-section > p,
    .rules-grid span {
        font-size: 12px;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .review-list {
        grid-template-columns: none;
    }

    .review-action-panel {
        padding: 15px;
    }

    .booking-column {
        padding: 28px 16px 10px;
        background: #f6f8f7;
    }

    .booking-card {
        position: static;
        padding: 22px 18px;
    }

    .booking-confirmation-dialog {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 17px;
    }

    .booking-confirmation-panel {
        padding: 0 18px 18px;
    }

    .booking-confirmation-panel h2 {
        font-size: 20px;
    }

    .payment-qr-frame {
        width: 190px;
    }

    .mobile-booking-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 35;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: calc(70px + env(safe-area-inset-bottom));
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #e2e6e4;
        box-shadow: 0 -7px 24px rgba(24, 37, 34, 0.08);
        backdrop-filter: blur(14px);
    }

    .mobile-booking-bar > div {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        max-width: 46%;
    }

    .mobile-booking-bar small {
        flex-basis: 100%;
        color: #8b9398;
        font-size: 9px;
    }

    .mobile-booking-bar strong {
        color: var(--accent);
        font-size: 17px;
    }

    .mobile-booking-bar span {
        margin-left: 3px;
        color: #747d82;
        font-size: 9px;
    }

    .mobile-booking-bar button {
        height: 45px;
        padding: 0 19px;
        color: #fff;
        background: var(--brand);
        border: 0;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 750;
    }

    .gallery-lightbox figure {
        padding: 64px 16px 46px;
    }

    .lightbox-arrow {
        top: auto;
        bottom: 18px;
        width: 40px;
        height: 40px;
        transform: none;
    }

    .lightbox-arrow.previous {
        left: calc(50% - 50px);
    }

    .lightbox-arrow.next {
        right: calc(50% - 50px);
    }

    .lightbox-close {
        top: calc(14px + env(safe-area-inset-top));
        right: 14px;
    }

    .lightbox-zoom-reset {
        top: calc(14px + env(safe-area-inset-top));
        left: 14px;
    }

    .gallery-lightbox figcaption small {
        display: block;
        margin: 4px 0 0;
    }
}

@media (max-width: 380px) {
    .booking-date-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
        padding: 10px;
    }

    .booking-date-label {
        padding-top: 0;
    }

    .booking-date-controls {
        grid-template-columns: minmax(0, 1fr) 64px;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-photo img {
        transition: none;
    }
}
.public-booking-messages {
    margin: 0 0 18px;
}

.public-booking-messages p {
    margin: 0;
    padding: 13px 16px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 700;
}

.public-booking-messages.public-preview-message p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-color: #99f6e4;
    background: #ecfdf5;
    color: #115e59;
}

.public-booking-messages.public-preview-message a {
    flex: 0 0 auto;
    color: #0f766e;
    text-decoration: underline;
}

/* Room detail refresh — aligned with the ViHost reference layout. */
.room-detail-page {
    --room-serif: "Noto Serif", Georgia, "Times New Roman", serif;
    background: #fff;
}

.detail-site-header {
    border-bottom-color: #ece9e4;
    box-shadow: none;
}

.detail-site-header .header-row {
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 30px;
    max-width: 1440px;
    height: 64px;
    margin: 0 auto;
    padding: 0 40px;
}

.detail-site-header .public-brand {
    width: 148px;
}

.detail-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #9a9a96;
    font-size: 11px;
    white-space: nowrap;
}

.detail-breadcrumbs a {
    flex: 0 0 auto;
    color: #696b68;
    transition: color 160ms ease;
}

.detail-breadcrumbs a:hover {
    color: var(--accent);
}

.detail-breadcrumbs > span:last-child {
    overflow: hidden;
    color: #949591;
    text-overflow: ellipsis;
}

.detail-site-header .header-actions {
    gap: 4px;
}

.detail-header-action.icon-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    padding: 0 10px;
    color: #616663;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.detail-header-action.icon-button svg {
    width: 18px;
    height: 18px;
}

.room-detail-main {
    width: min(1340px, calc(100% - 80px));
    padding: 22px 0 86px;
}

.detail-back-link {
    display: none;
}

.detail-gallery,
.detail-gallery.gallery-count-1,
.detail-gallery.gallery-count-2,
.detail-gallery.gallery-count-3,
.detail-gallery.gallery-count-4 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: clamp(390px, 36vw, 500px) 108px;
    gap: 8px;
    height: auto;
    background: #f1f0ed;
    border-radius: 0;
}

.gallery-track {
    display: contents;
}

.gallery-photo,
.gallery-count-1 .gallery-main,
.gallery-count-2 .gallery-main,
.gallery-count-2 .gallery-side-1,
.gallery-count-3 .gallery-side-1,
.gallery-count-3 .gallery-side-2,
.gallery-count-4 .gallery-side-1,
.gallery-count-4 .gallery-side-2,
.gallery-count-4 .gallery-side-3 {
    width: auto;
    height: auto;
}

.gallery-main {
    grid-column: 1 / -1;
    grid-row: 1;
    background: #171b19;
    cursor: zoom-in;
}

.gallery-main img {
    object-fit: contain;
}

.gallery-side {
    grid-row: 2;
}

.gallery-side-1 {
    grid-column: 1;
}

.gallery-side-2 {
    grid-column: 2;
}

.gallery-side-3 {
    grid-column: 3;
}

.gallery-side-4 {
    grid-column: 4;
}

.gallery-side-5 {
    grid-column: 5;
}

.gallery-photo:nth-child(n+7) {
    display: none;
}

.gallery-count-1 .gallery-main {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.detail-gallery.gallery-count-1 {
    grid-template-rows: clamp(430px, 42vw, 560px);
}

.detail-gallery.gallery-count-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-count-2 .gallery-side-1 {
    grid-column: 1 / -1;
    grid-row: 2;
}

.gallery-count-3 .gallery-side-1 {
    grid-column: 1 / 3;
    grid-row: 2;
}

.gallery-count-3 .gallery-side-2 {
    grid-column: 3 / -1;
    grid-row: 2;
}

.gallery-count-4 .gallery-side-1 {
    grid-column: 1 / 3;
    grid-row: 2;
}

.gallery-count-4 .gallery-side-2 {
    grid-column: 3 / 5;
    grid-row: 2;
}

.gallery-count-4 .gallery-side-3 {
    grid-column: 5;
    grid-row: 2;
}

.gallery-photo img {
    object-position: center;
}

.gallery-inline-arrow {
    position: absolute;
    top: calc((100% - 116px) / 2);
    z-index: 4;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0 0 3px;
    color: #656762;
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 3px 13px rgba(36, 33, 28, 0.15);
    font-family: Arial, sans-serif;
    font-size: 27px;
    cursor: pointer;
}

.gallery-inline-arrow:hover {
    color: var(--accent);
    background: #fff;
}

.gallery-inline-arrow.previous {
    left: 22px;
}

.gallery-inline-arrow.next {
    right: 22px;
}

.gallery-thumbnail-arrow {
    position: absolute;
    bottom: 33px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0 0 3px;
    color: #656762;
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 3px 13px rgba(36, 33, 28, 0.2);
    font-family: Arial, sans-serif;
    font-size: 25px;
    cursor: pointer;
}

.gallery-thumbnail-arrow:hover:not(:disabled) {
    color: var(--accent);
    background: #fff;
}

.gallery-thumbnail-arrow:disabled {
    opacity: 0.42;
    cursor: default;
}

.gallery-thumbnail-arrow[hidden] {
    display: none;
}

.gallery-thumbnail-arrow.previous {
    left: 12px;
}

.gallery-thumbnail-arrow.next {
    right: 12px;
}

.gallery-thumbnail.is-selected {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.gallery-main-count {
    position: absolute;
    right: 22px;
    bottom: 129px;
    z-index: 4;
    padding: 7px 12px;
    color: #fff;
    background: rgba(24, 24, 22, 0.58);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    backdrop-filter: blur(6px);
}

.view-all-overlay {
    background: rgba(28, 27, 24, 0.54);
    font-size: 11px;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 48px;
    margin-top: 34px;
}

.detail-content {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
        "summary summary"
        "about about"
        "amenities reviews"
        "stay stay";
    gap: 0 32px;
}

.room-summary {
    grid-area: summary;
    padding: 0 0 30px;
    border-bottom: 1px solid #ece9e4;
}

.room-summary h1 {
    color: #252724;
    font-family: var(--room-serif);
    font-size: clamp(27px, 2.35vw, 36px);
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: -0.7px;
}

.detail-location {
    gap: 7px;
    margin-top: 12px;
    color: #777a77;
    font-size: 14px;
}

.detail-location svg {
    flex: 0 0 16px;
    color: #7e817d;
}

.detail-location a {
    margin-left: 4px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-rating-summary {
    margin-top: 12px;
    color: #555954;
}

.detail-rating-summary > span {
    color: #f17638;
}

.room-fact-chips {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin-top: 24px;
}

.room-fact-chips span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    color: #666a65;
    background: transparent;
    border-right: 1px solid #e7e4df;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.room-fact-chips span:first-child {
    justify-content: flex-start;
    padding-left: 0;
}

.room-fact-chips span:last-child {
    justify-content: flex-end;
    padding-right: 0;
    border-right: 0;
}

.room-fact-chips svg {
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #777b75;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.detail-section {
    padding: 30px 0;
    border-bottom: 1px solid #ece9e4;
}

.section-heading small,
.similar-rooms-heading small {
    color: #ef7136;
    font-size: 11px;
    letter-spacing: 1.2px;
}

.section-heading h2,
.similar-rooms-heading h2 {
    margin-top: 5px;
    color: #2b2d29;
    font-family: var(--room-serif);
    font-size: 23px;
    font-weight: 500;
}

.about-section {
    grid-area: about;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    margin-top: 30px;
    padding: 30px;
    background: #f8f7f2;
    border: 0;
    border-radius: 12px;
}

.about-copy p {
    margin: 15px 0 0;
    color: #686b66;
    font-size: 15px;
    line-height: 1.75;
}

.space-highlights {
    display: grid;
    align-content: center;
    gap: 18px;
    padding-left: 30px;
    border-left: 1px solid #e3dfd7;
}

.space-highlights > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.space-highlights svg {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #ef7136;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.space-highlights span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.space-highlights strong {
    color: #434640;
    font-size: 14px;
}

.space-highlights small {
    color: #92938f;
    font-size: 12px;
}

.amenities-section {
    grid-area: amenities;
}

.reviews-section {
    grid-area: reviews;
}

.amenities-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.amenity-item {
    gap: 10px;
    color: #666a66;
    font-size: 14px;
}

.amenity-item svg {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    color: #ef7136;
}

.show-more-button {
    min-height: 36px;
    margin-top: 22px;
    padding: 0 14px;
    color: #5e625e;
    border-color: #dad6d0;
    border-radius: 7px;
    font-size: 13px;
}

.review-list {
    gap: 0;
}

.review-card {
    padding: 17px 11px 15px;
}

.review-action-panel {
    background: #fbfaf6;
    border-color: #ebe7de;
}

.stay-information-grid {
    grid-area: stay;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    padding: 34px 0;
}

.stay-info-card {
    min-width: 0;
}

.location-map-preview {
    position: relative;
    height: 104px;
    margin-top: 17px;
    overflow: hidden;
    background-color: #ecebe5;
    background-image:
        linear-gradient(28deg, transparent 46%, rgba(255, 255, 255, 0.95) 47% 53%, transparent 54%),
        linear-gradient(112deg, transparent 44%, rgba(211, 207, 197, 0.75) 45% 48%, transparent 49%),
        linear-gradient(165deg, transparent 43%, rgba(255, 255, 255, 0.9) 44% 50%, transparent 51%);
    border-radius: 7px;
}

.location-map-preview::before,
.location-map-preview::after {
    position: absolute;
    background: rgba(193, 206, 182, 0.65);
    content: "";
}

.location-map-preview::before {
    top: -22px;
    left: -7px;
    width: 72px;
    height: 83px;
    border-radius: 48% 52% 66% 34%;
}

.location-map-preview::after {
    right: -17px;
    bottom: -20px;
    width: 100px;
    height: 66px;
    border-radius: 60% 40% 42% 58%;
}

.location-map-preview span {
    position: absolute;
    top: 42%;
    left: 52%;
    z-index: 2;
    width: 15px;
    height: 15px;
    background: #ed6e34;
    border: 4px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 2px 7px rgba(70, 51, 40, 0.25);
    transform: rotate(-45deg);
}

.location-info-card > p,
.cancellation-card > p {
    margin: 13px 0 0;
    color: #6f726d;
    font-size: 14px;
    line-height: 1.65;
}

.location-info-card > a {
    display: inline-flex;
    gap: 4px;
    margin-top: 10px;
    color: #ee7137;
    font-size: 13px;
    font-weight: 700;
}

.rules-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 17px;
}

.rules-grid span {
    color: #6f726d;
    font-size: 14px;
}

.rules-grid span::before {
    width: 5px;
    height: 5px;
    background: #ee7137;
}

.booking-card {
    top: 88px;
    padding: 24px 22px 20px;
    border-color: #e7e2da;
    border-radius: 13px;
    box-shadow: 0 12px 38px rgba(52, 45, 36, 0.1);
}

.booking-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.booking-price strong {
    color: #ef6e31;
    font-size: 26px;
}

.booking-price span {
    color: #8a8c87;
    font-size: 12px;
}

.best-price-badge {
    flex: 0 0 auto;
    padding: 6px 8px;
    color: #ef6e31;
    background: #fff2ea;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.booking-card > .booking-note:first-of-type {
    margin: 8px 0 15px;
    color: #92938f;
    text-align: left;
}

.booking-availability {
    margin: 9px 0 15px;
    padding: 9px 10px;
    color: #56615b;
    background: #f4f6f4;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.booking-availability.is-unavailable {
    color: #a23c32;
    background: #fff0ee;
}

.booking-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.booking-fields[disabled] {
    opacity: 0.5;
}

.booking-fields[disabled] input,
.booking-fields[disabled] select,
.booking-fields[disabled] button {
    cursor: not-allowed;
}

.booking-type-selector {
    margin: 0 0 9px;
    padding: 0;
    border: 0;
}

.booking-type-selector legend {
    margin-bottom: 7px;
    color: #626560;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.booking-type-selector > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.booking-type-selector label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.booking-type-selector input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.booking-type-selector span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 57px;
    padding: 10px 11px;
    color: #737570;
    background: #faf9f6;
    border: 1px solid #e4dfd7;
    border-radius: 8px;
}

.booking-type-selector strong {
    color: #3f4541;
    font-size: 13px;
}

.booking-type-selector small {
    font-size: 10px;
    line-height: 1.35;
}

.booking-type-selector input:checked + span {
    color: #b95628;
    background: #fff5ef;
    border-color: #ef7136;
    box-shadow: 0 0 0 1px rgba(239, 113, 54, 0.12);
}

.booking-type-selector input:checked + span strong {
    color: #dc6029;
}

.booking-type-selector input:focus-visible + span {
    outline: 3px solid rgba(15, 118, 110, 0.18);
    outline-offset: 2px;
}

.booking-type-note {
    margin: 0 2px 10px;
    color: #797c77;
    font-size: 11px;
    line-height: 1.45;
}

.price-breakdown [hidden] {
    display: none;
}

.booking-dates {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
    border-color: #ddd9d2;
    border-radius: 8px;
}

.booking-date-row {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.booking-date-row + .booking-date-row {
    border-top: 1px solid #ddd9d2;
    border-left: 0;
}

.booking-date-label {
    padding-top: 0;
    color: #626560;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.booking-date-controls {
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 8px;
}

.booking-date-value {
    height: 44px;
}

.is-pwa-standalone .booking-date-value > .pwa-date-display {
    padding: 0 10px;
    background: #faf9f6;
    border-color: #ebe7e0;
    font-size: 12px;
}

.booking-dates input,
.booking-dates select {
    height: 44px;
    padding: 0 10px;
    background: #faf9f6;
    border-color: #ebe7e0;
    font-size: 12px;
}

.guest-picker {
    padding: 14px 0;
}

.guest-picker strong {
    font-size: 13px;
}

.guest-picker button {
    width: 28px;
    height: 28px;
}

.booking-field {
    margin-top: 11px;
    font-size: 12px;
}

.booking-field input {
    height: 39px;
    margin-top: 5px;
    border-radius: 7px;
    font-size: 13px;
}

.price-breakdown {
    margin-top: 15px;
    padding: 13px;
    background: #faf9f6;
    border: 0;
    border-radius: 8px;
}

.price-breakdown div {
    margin-bottom: 8px;
    font-size: 12px;
}

.price-breakdown div:last-child {
    margin-bottom: 0;
}

.booking-submit {
    height: 45px;
    margin-top: 15px;
    background: #ef7136;
    border-radius: 7px;
    font-size: 13px;
}

.booking-submit:hover {
    background: #dc6029;
}

.booking-submit:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.booking-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 11px 0 0;
    color: #888b85;
    font-size: 11px;
}

.booking-security svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #6f8b75;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.booking-card > .booking-note:last-child {
    padding-top: 10px;
    border-top: 1px solid #eeeae4;
    line-height: 1.5;
}

.similar-rooms-section {
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid #ece9e4;
}

.similar-rooms-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.similar-rooms-heading h2 {
    margin-bottom: 0;
    font-size: 23px;
}

.similar-rooms-heading > a {
    color: #ef7136;
    font-size: 13px;
    font-weight: 700;
}

.similar-room-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.similar-room-card {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    color: #555853;
    background: #fff;
    border: 1px solid #ebe7e0;
    border-radius: 9px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.similar-room-card:hover {
    border-color: #e1d3c9;
    box-shadow: 0 8px 22px rgba(51, 45, 37, 0.08);
    transform: translateY(-2px);
}

.similar-room-card > img {
    width: 100%;
    height: 116px;
    object-fit: cover;
}

.similar-room-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 13px 14px;
}

.similar-room-copy > strong {
    overflow: hidden;
    color: #343733;
    font-family: var(--room-serif);
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-room-copy > small {
    margin-top: 4px;
    overflow: hidden;
    color: #949691;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-room-copy > span {
    margin-top: 8px;
    color: #858782;
    font-size: 11px;
}

.similar-room-copy > span b {
    color: #ed7137;
}

.similar-room-copy > em {
    margin-top: auto;
    color: #8a8c87;
    font-size: 11px;
    font-style: normal;
}

.similar-room-copy > em b {
    color: #ef6d31;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .detail-site-header .header-row {
        grid-template-columns: 160px minmax(0, 1fr) auto;
        gap: 20px;
        padding: 0 24px;
    }

    .detail-header-action.icon-button span {
        display: none;
    }

    .detail-header-action.icon-button {
        width: 38px;
        padding: 0;
    }

    .room-detail-main {
        width: min(1040px, calc(100% - 48px));
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 28px;
    }

    .detail-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "summary"
            "about"
            "amenities"
            "reviews"
            "stay";
    }

    .stay-information-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .detail-breadcrumbs > span:last-child {
        display: none;
    }

    .detail-breadcrumbs > span:nth-last-child(2) {
        display: none;
    }

    .detail-layout {
        display: block;
    }

    .booking-column {
        margin-top: 34px;
        padding: 28px;
        background: #faf9f6;
    }

    .booking-card {
        position: static;
        max-width: 620px;
        margin: 0 auto;
    }

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

@media (max-width: 760px) {
    .room-detail-page {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .room-detail-main {
        width: 100%;
        padding: 0 0 38px;
    }

    .detail-gallery,
    .detail-gallery.gallery-count-1,
    .detail-gallery.gallery-count-2,
    .detail-gallery.gallery-count-3,
    .detail-gallery.gallery-count-4 {
        display: block;
        height: auto;
        border-radius: 0;
    }

    .gallery-track {
        position: relative;
        z-index: 1;
        display: block;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .gallery-photo,
    .gallery-count-1 .gallery-main,
    .gallery-count-2 .gallery-main,
    .gallery-count-2 .gallery-side-1,
    .gallery-count-3 .gallery-side-1,
    .gallery-count-3 .gallery-side-2,
    .gallery-count-4 .gallery-side-1,
    .gallery-count-4 .gallery-side-2,
    .gallery-count-4 .gallery-side-3 {
        display: block;
        flex: none;
        width: 100%;
        height: 100%;
        scroll-snap-align: none;
    }

    .gallery-main,
    .gallery-count-1 .gallery-main,
    .gallery-count-2 .gallery-main,
    .gallery-count-3 .gallery-main,
    .gallery-count-4 .gallery-main {
        width: 100%;
        height: min(82vw, 360px);
    }

    .gallery-thumbnail-track,
    .gallery-count-2 .gallery-thumbnail-track,
    .gallery-count-3 .gallery-thumbnail-track,
    .gallery-count-4 .gallery-thumbnail-track,
    .gallery-count-5 .gallery-thumbnail-track {
        display: flex;
        gap: 6px;
        width: 100%;
        height: 78px;
        padding: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-thumbnail-track::-webkit-scrollbar {
        display: none;
    }

    .gallery-thumbnail {
        display: block;
        flex: 0 0 76px;
        width: 76px;
        height: 66px;
        border-radius: 7px;
        scroll-snap-align: start;
    }

    .gallery-thumbnail-arrow {
        display: none;
    }

    .gallery-inline-arrow,
    .gallery-main-count {
        display: none;
    }

    .mobile-gallery-count {
        bottom: 91px;
    }

    .detail-content {
        display: block;
        padding: 0 16px;
    }

    .room-summary {
        padding: 22px 0 25px;
    }

    .room-summary h1 {
        font-size: 24px;
    }

    .detail-location {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .detail-location span {
        max-width: calc(100% - 28px);
    }

    .detail-location a {
        margin-left: 23px;
    }

    .room-fact-chips {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
    }

    .room-fact-chips span,
    .room-fact-chips span:first-child,
    .room-fact-chips span:last-child {
        justify-content: flex-start;
        flex: 0 0 auto;
        min-width: 126px;
        padding: 0 14px;
        border-right: 1px solid #e7e4df;
        font-size: 13px;
    }

    .room-fact-chips span:first-child {
        min-width: 106px;
        padding-left: 0;
    }

    .about-section {
        display: block;
        margin-top: 24px;
        padding: 24px 20px;
    }

    .space-highlights {
        margin-top: 24px;
        padding: 22px 0 0;
        border-top: 1px solid #e3dfd7;
        border-left: 0;
    }

    .detail-section {
        padding: 28px 0;
    }

    .review-showcase {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .review-score-summary {
        padding: 18px 12px;
    }

    .review-score-value strong {
        font-size: 30px;
    }

    .review-policy-note {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 10px 12px;
        text-align: left;
    }

    .amenities-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stay-information-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .booking-column {
        margin-top: 0;
        padding: 28px 16px 10px;
    }

    .booking-card {
        padding: 22px 18px;
    }

    .booking-dates {
        grid-template-columns: 1fr;
    }

    .booking-date-row {
        grid-template-columns: 82px minmax(0, 1fr);
        align-items: center;
    }

    .booking-date-row + .booking-date-row {
        border-top: 1px solid #ddd9d2;
        border-left: 0;
    }

    .booking-date-controls {
        grid-template-columns: minmax(110px, 1fr) 70px;
    }

    .similar-rooms-section {
        margin-top: 24px;
        padding: 28px 16px 0;
    }

    .similar-room-grid {
        gap: 12px;
    }

    .similar-room-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .similar-room-card > img {
        height: 108px;
    }

    .mobile-booking-bar button {
        background: #ef7136;
    }
}

@media (max-width: 390px) {
    .booking-date-row {
        grid-template-columns: 1fr;
    }

    .booking-date-controls {
        grid-template-columns: minmax(0, 1fr) 70px;
        width: 100%;
    }

    .similar-room-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }
}
