.trv-button-wrapper {
    margin-top: 10px;
}

.trv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trv-modal {
    background: #ffffff;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow: auto;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
}

.trv-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.trv-modal-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.trv-modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trv-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trv-upload-label {
    display: inline-block;
    padding: 8px 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

.trv-upload-label input[type="file"] {
    display: none;
}

.trv-hint {
    font-size: 12px;
    color: #666;
}

.trv-preview-wrapper {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.trv-preview-room {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.trv-preview-tile {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    opacity: 0.6;
    pointer-events: none;
}

.trv-preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    background: repeating-linear-gradient(
        45deg,
        #f5f5f5,
        #f5f5f5 10px,
        #eeeeee 10px,
        #eeeeee 20px
    );
}

.trv-preview-room.trv-has-image .trv-preview-placeholder {
    display: none;
}
