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

.tracker-room-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 18px;
    background: rgba(20, 20, 20, .62);
    font-family: Arial, sans-serif;
}

.tracker-room-modal.is-open {
    display: flex;
}

.tracker-room-dialog {
    display: flex;
    flex-direction: column;
    width: min(1180px, 100%);
    max-height: calc(100vh - 36px);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 65px rgba(0, 0, 0, .35);
}

.tracker-room-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    box-sizing: border-box;
    padding: 18px 26px;
    border-bottom: 1px solid #eee;
}

.tracker-room-title {
    margin: 0;
    color: #333;
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 400;
}

.tracker-room-close {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 42px;
    font-weight: 200;
    line-height: 1;
}

.tracker-room-scroll {
    min-height: 0;
    overflow-y: auto;
}

.tracker-room-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    height: min(48vh, 430px);
    min-height: 310px;
    background: #eee;
}

.tracker-room-photo {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #ddd;
}

.tracker-room-photo:first-child { grid-row: 1 / 3; }
.tracker-room-photo:nth-child(2) { grid-row: 1 / 2; }
.tracker-room-photo:nth-child(3) { grid-column: 3; grid-row: 1 / 2; }
.tracker-room-photo:nth-child(4) { grid-column: 2; grid-row: 2; }
.tracker-room-photo:nth-child(5) { grid-column: 3; grid-row: 2; }

.tracker-room-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tracker-room-availability {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 13px;
    background: rgba(65, 65, 65, .88);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.tracker-room-info {
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.25fr);
    gap: 34px;
    box-sizing: border-box;
    padding: 26px;
    color: #444;
}

.tracker-room-meta,
.tracker-room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.tracker-room-meta span,
.tracker-room-amenities span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tracker-room-feature-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.tracker-room-amenities {
    margin-top: 18px;
    color: #666;
    font-size: 14px;
}

.tracker-room-description {
    font-size: 16px;
    line-height: 1.55;
}

.tracker-room-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    min-height: 102px;
    box-sizing: border-box;
    padding: 18px 26px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.tracker-room-price { text-align: right; }
.tracker-room-old-price { color: #777; font-size: 13px; text-decoration: line-through; }
.tracker-room-current-price { color: #444; font-size: 25px; line-height: 1.15; }
.tracker-room-rate-label { margin-top: 3px; color: #777; font-size: 12px; }

.tracker-room-select {
    min-width: 112px;
    height: 52px;
    border: 0;
    background: #c8a878;
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
}

.tracker-room-select:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@media (max-width: 768px) {
    .tracker-room-modal { padding: 0; }
    .tracker-room-dialog { width: 100%; max-height: 100vh; min-height: 100vh; }
    .tracker-room-header { min-height: 64px; padding: 12px 16px; }
    .tracker-room-gallery { grid-template-columns: 2fr 1fr; height: 310px; min-height: 310px; }
    .tracker-room-photo:nth-child(n+4) { display: none; }
    .tracker-room-photo:nth-child(3) { grid-column: 2; grid-row: 2; }
    .tracker-room-info { grid-template-columns: 1fr; gap: 18px; padding: 20px 16px; }
    .tracker-room-footer { min-height: 88px; padding: 12px 16px; }
    .tracker-room-current-price { font-size: 21px; }
}
